# Wyciąganie pól z formularzy i faktur

EN: **Key information extraction from forms and receipts** · id `kie` · aliases: key information extraction, KIE, form understanding, invoice extraction, receipt understanding, intelligent document processing, IDP, ekstrakcja danych z faktur

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Aplikacje LLM i agenci](https://aiatlasgraph.com/t/applications.md) › [Przetwarzanie dokumentów](https://aiatlasgraph.com/t/docai.md) › Wyciąganie pól z formularzy i faktur

## Description

- PL: Przypisanie fragmentów dokumentu do nazwanych pól (np. NIP, kwota brutto, data) z użyciem tekstu, jego położenia i wyglądu strony.
- EN: Mapping document fragments to named fields (e.g. tax ID, gross amount, date) using text, its position and the page's appearance.

## In one sentence

- PL: Program czyta fakturę, paragon lub wniosek i sam wpisuje z nich potrzebne wartości do odpowiednich rubryk w systemie.
- EN: A program reads an invoice, receipt or application form and fills the needed values into the right fields of a system.

## Problem it solves

- PL: W biurach ludzie godzinami przepisują dane z faktur i wniosków do systemów, a każda literówka w kwocie oznacza kłopot.
- EN: In offices people spend hours retyping data from invoices and forms into systems, and every typo in an amount causes trouble.

## What it does

- PL: Patrzy nie tylko na słowa, ale i na to, gdzie stoją: liczba obok słowa „razem” na dole strony to najpewniej kwota do zapłaty.
- EN: It looks not only at words but at where they sit: a number next to “total” at the bottom is most likely the amount due.

## Everyday example

- PL: Robisz zdjęcie paragonu za lunch służbowy, a aplikacja sama wpisuje sprzedawcę, datę i kwotę do rozliczenia wydatków.
- EN: You photograph a business lunch receipt, and an app fills in the seller, date and amount on your expense claim.

## This concerns you if you…

- PL: rozliczasz wydatki na podstawie paragonów
- PL: wprowadzasz dane z faktur lub wniosków do systemu
- EN: claim expenses from receipts
- EN: enter data from invoices or forms into a system

## Keywords

LayoutLMv3 · Donut · FUNSD · CORD · SROIE · intelligent document processing · key-value extraction · schema-guided extraction

## How it works

- PL: Modele multimodalne łączą tokeny tekstu z OCR, ich współrzędne na stronie i fragmenty obrazu, a następnie oznaczają tokeny etykietami pól lub generują pary klucz–wartość. Coraz częściej model wizyjno-językowy zwraca wynik bezpośrednio w zadanym schemacie, który walidacja sprawdza przed zapisem.
- EN: Multimodal models combine OCR text tokens, their page coordinates and image patches, then tag tokens with field labels or generate key–value pairs. Increasingly a vision-language model returns results directly in a given schema, which validation checks before saving.

## Limits

- PL: Nowe wzory dokumentów i różne języki obniżają trafność, a błędnie odczytana cyfra wygląda tak samo wiarygodnie jak poprawna. Potrzebne są reguły sprawdzające (sumy, formaty, sumy kontrolne) i ludzka weryfikacja przypadków o niskiej pewności.
- EN: New document templates and other languages reduce accuracy, and a misread digit looks as plausible as a correct one. Checking rules (totals, formats, checksums) and human review of low-confidence cases are needed.

## Key terms

- PL: **para klucz–wartość**: Nazwa pola i odczytana z dokumentu wartość, np. data: 3.10.
- PL: **cechy układu**: Położenie słowa na stronie używane przez model obok tekstu.
- PL: **próg pewności**: Poziom, poniżej którego wynik idzie do sprawdzenia przez człowieka.
- EN: **key–value pair**: A field name and the value read from the document, e.g. date: 3 Oct.
- EN: **layout features**: A word's position on the page, used by the model alongside text.
- EN: **confidence threshold**: The level below which a result goes to human review.

## Know first

- [Wydobywanie informacji z tekstu (nazwy własne, relacje) (Information extraction (named entities and relations))](https://aiatlasgraph.com/t/infoextraction.md)
- [Structured outputs i walidacja (Structured outputs and validation)](https://aiatlasgraph.com/t/structured.md)

## Related topics

Untyped, symmetric "see also" links.

- [Automatyczne tagowanie liczb w sprawozdaniach (XBRL) (XBRL tagging of financial filings)](https://aiatlasgraph.com/t/xbrltagging.md)
- [Structured outputs i walidacja (Structured outputs and validation)](https://aiatlasgraph.com/t/structured.md)
- [Wydobywanie informacji z tekstu (nazwy własne, relacje) (Information extraction (named entities and relations))](https://aiatlasgraph.com/t/infoextraction.md)
- [Wyszukiwanie klauzul w umowach (Contract clause extraction)](https://aiatlasgraph.com/t/clauseextraction.md)

## Sources

- [LayoutLMv3: Pre-training for Document AI with Unified Text and Image Masking](<https://arxiv.org/abs/2204.08387>) `layoutlmv3-2022` · by Yupan Huang, Tengchao Lv, Lei Cui, Yutong Lu, Furu Wei (Microsoft Research) · sponsored

---

AI Atlas revision 124 (2026-10-31) · HTML: https://aiatlasgraph.com/t/kie · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
