FUNSD

Also known as: Form Understanding in Noisy Scanned Documents

On this page 7

FUNSD, short for Form Understanding in Noisy Scanned Documents, is a public benchmark dataset of 199 fully annotated scanned forms used to evaluate how well models extract structured information from forms. In document AI, it is one of the most widely cited benchmarks for form understanding, the task of identifying questions, answers and headers on a page and linking them into key-value pairs.

The dataset was released in 2019 and is small by modern standards, yet it remains a standard reference point because its scans are low quality, varied in layout and annotated at word, entity and relation level. Results on FUNSD appear in most papers on layout-aware language models such as LayoutLM and its successors.

What the FUNSD dataset contains

FUNSD consists of single-page scanned forms sampled from the form category of the larger RVL-CDIP collection, which itself derives from tobacco industry documents released through litigation. The pages date mostly from the 1980s and 1990s and were scanned in grayscale at low resolution, so they contain noise, skew, faint text and handwritten marks.

The table summarizes the main figures of the original release.

PropertyValueComment
Annotated forms199One page each
Training split149 formsStandard split used in papers
Test split50 formsNo official validation split
WordsAbout 31,500With bounding boxes and text
Semantic entitiesAbout 9,700Groups of words with one label
RelationsAbout 5,300Directed links between entities
Key figures of the original FUNSD release

Each form is stored as an image plus a JSON annotation file. Every entity has a label, a bounding box, its list of words with individual boxes and a list of links to other entities. The text was transcribed by annotators, so the ground truth does not depend on any particular OCR engine.

Annotation scheme and labels

FUNSD uses a compact label set of four entity types, which keeps the task focused on the logical structure of a form instead of domain-specific fields such as invoice totals.

LabelMeaningTypical example
QuestionA field name or prompt“Date:” or “Name of company”
AnswerThe value filled in for a question“March 4, 1992”
HeaderA title for the form or a block“Request for payment”
OtherText not belonging to the classes abovePage numbers, footnotes
Entity labels in FUNSD

Relations typically connect a question to its answer or a header to the questions below it. Because the links are explicit, the dataset supports evaluation of the full chain from raw words to a hierarchical structure, which distinguishes it from datasets that only label isolated fields.

Benchmark tasks and evaluation

FUNSD defines three related tasks that together describe form understanding. Most published work reports results for semantic entity labeling, while entity linking remains harder and less often reported.

TaskInputOutputUsual metric
Word groupingWords and boxesWords grouped into entitiesAdjusted Rand index or F1
Semantic entity labelingWords or entitiesLabel per entityEntity-level F1
Entity linkingLabeled entitiesQuestion-answer linksLink-level F1
Tasks defined on FUNSD

Entity labeling is usually framed as sequence labeling with BIO tags over OCR tokens. Text-only baselines reach F1 scores in the 60s, the first LayoutLM models reached the high 70s, and later multimodal models report scores around 90. Exact numbers vary with OCR input, tokenization and whether ground-truth or predicted entities are used, so comparisons across papers require care.

Modern approaches fall into three broad families. Layout-aware encoders such as LayoutLM add two-dimensional position embeddings for each token’s bounding box to a text transformer, so the model learns that a value usually sits to the right of or below its field name. Graph-based models treat entities as nodes and predict links as edges between nodes. OCR-free models such as Donut read the page image directly and generate structured output, which removes OCR errors but makes word-level evaluation on FUNSD less straightforward. Large language models prompted with OCR text and coordinates are increasingly tested as well, although their results depend heavily on prompt design and output parsing.

FUNSD compared with other document benchmarks

FUNSD is one member of a family of document understanding benchmarks, each focusing on a different document type or task. Choosing the right one depends on whether the target is generic forms, receipts, page layout or question answering.

DatasetDocument typeMain taskScale
FUNSDScanned formsEntity labeling and linking199 pages
XFUNDForms in seven languagesMultilingual form understandingAbout 1,400 pages
SROIEScanned receiptsKey information extractionAbout 1,000 receipts
CORDReceiptsFine-grained field parsingAbout 1,000 receipts
DocVQAMixed documentsDocument question answeringAbout 12,000 pages
RVL-CDIPMixed documentsDocument classification400,000 pages
Related benchmarks

XFUND follows the FUNSD annotation scheme for Chinese, Japanese, Spanish, French, Italian, German and Portuguese, which makes FUNSD the de facto English counterpart in multilingual evaluations.

Limitations and known issues

The small size of FUNSD is its main weakness. With only 50 test forms, a difference of one or two F1 points between models can fall within statistical noise, and leaderboard gains near the top should be treated cautiously.

  • Annotation inconsistencies: later work found mislabeled entities and missing links, which led to revised versions such as FUNSD+.
  • Narrow domain: forms come from one industry archive and period, so results do not guarantee performance on modern digital forms.
  • OCR dependence: many evaluations use ground-truth text, which hides errors that a real OCR pipeline would introduce.
  • Overfitting risk: repeated tuning on the same test split inflates reported progress.

For production decisions, FUNSD is best used as a sanity check of layout reasoning, combined with an internal test set drawn from the actual forms an organization processes.

In simple terms

FUNSD is a practice exam for computers that read forms. It contains about two hundred old, blurry scanned forms. People marked every field name, every filled-in value and which value belongs to which field.

Researchers give these forms to their AI models and compare the answers with the human markings. A higher score means the model understands form layout better. Because the set is small, it is a quick test, not a final verdict.

A practical example

A team at a logistics company is choosing a model to extract data from scanned customs declarations. Before labeling its own documents, it fine-tunes two layout-aware models on the 149 FUNSD training forms and compares their entity labeling F1 on the 50 test forms.

One model scores about six points higher on FUNSD and also links questions to answers more reliably. The team then labels 300 of its own declarations, fine-tunes the stronger model further and confirms that the ranking holds on its real documents.

Using FUNSD as an early filter saves the team from labeling data for both candidates, and the deployed model now fills most declaration fields automatically, with low-confidence fields sent for human review.