DocILE Benchmark for Document Information Localization and Extraction

Stepán Simsa, Milan Sulc, Michal Uricár, Yash Patel, Ahmed Hamdi, Matej Kocián, Matyás Skalický, Jirí Matas, Antoine Doucet, Mickaël Coustaty, Dimosthenis Karatzas

TL;DR

The DocILE paper introduces the largest open-source benchmark for Document Information Localization and Extraction (DILE), featuring over 1 million business documents. It specifically targets two critical but underserved tasks: Key Information Localization and Extraction (KILE) and Line Item Recognition (LIR), providing a massive dataset and robust baselines to bridge the gap between academic research and industrial document processing.

What Problem Does This Paper Address?

While "Document AI" has seen massive growth, the field has been held back by a lack of high-quality, large-scale public datasets. Most existing datasets are either too small (a few hundred pages), focus on simple receipts (like CORD), or are kept private by companies due to the sensitive nature of business documents (invoices, tax forms, etc.).

Furthermore, most benchmarks focus on Key Information Extraction (KIE)—simply finding the text of a field. However, in real-world "human-in-the-loop" systems, you need localization (KILE). You need to know exactly where on the page the "Total Amount" is so a human can verify it. Additionally, existing benchmarks often ignore Line Item Recognition (LIR)—the ability to extract structured data from tables, which is the bread and butter of automated accounting.

Methods

The authors don't just provide data; they provide a rigorous framework for evaluation.

  • KILE & LIR Formulation: They treat these tasks as a joint multi-label Named Entity Recognition (NER) problem. Instead of just identifying a word as a "price," they use BIO tagging (Beginning, Inside, Outside) to group tokens into fields and line items.
  • Baseline Architectures: They evaluate three heavy hitters:
  • RoBERTa: A text-only transformer.
  • LayoutLMv3: A multi-modal transformer that looks at text, image patches, and spatial coordinates simultaneously.
  • DETR (DEtection TRansformer): Used specifically for detecting table structures and line items as an alternative to the NER approach.
  • OCR Re-ordering: They highlight a simple but crucial technique: re-ordering OCR tokens into a natural top-down, left-to-right reading order before feeding them into transformers, which significantly helps with table extraction.

Datasets

The DocILE dataset is the star of the show, divided into three parts:

  1. Annotated Set: 6,680 real business documents with high-quality manual labels across 55 classes.
  2. Synthetic Set: 100,000 documents generated using a proprietary engine to mimic real layouts, complete with full ground truth.
  3. Unlabeled Set: Nearly 1 million real documents intended for unsupervised pre-training.

This dwarfs previous datasets like CORD or WildReceipt in both volume and the complexity of the documents (multi-page, complex layouts).

Key Insights and Ideas

  • The "NER Upper Bound": One of the most interesting findings is the calculation of a theoretical upper bound for NER-based solutions. Even if a model classifies every OCR word perfectly, it can still fail if the OCR engine didn't capture the text correctly or if a field only covers part of a word. This highlights that the bottleneck in document AI isn't just the classifier, but the underlying OCR and tokenization.
  • Synthetic Data is a Force Multiplier: The authors show that pre-training on their 100k synthetic documents consistently improves performance on real-world test data. This suggests that for document AI, we can "manufacture" expertise.
  • Localization is Harder than Extraction: By requiring models to provide bounding boxes (KILE) rather than just text strings, the benchmark reveals how often models "hallucinate" the right answer from the wrong part of the page.
  • Zero-Shot vs. Many-Shot: The benchmark explicitly splits the test set into layouts the model has seen before and layouts it hasn't. This reveals a significant "generalization gap"—models are great at memorizing invoice formats they've seen 100 times but struggle when a new vendor appears.

Key Results

  • LayoutLMv3 is the top performer among the "permitted" models, achieving an F1 score of 0.655 on KILE and 0.691 on LIR when boosted by synthetic data.
  • RoBERTa (Text-only) is surprisingly competitive, often trailing LayoutLMv3 by only a few percentage points. This suggests that for many business documents, the semantic meaning of the text is still the strongest signal.
  • The Gap to Perfection: The "NER Upper Bound" for KILE is 0.946, while the best model is at 0.698. This ~25-point gap represents the "frontier" for future researchers to tackle.

Limitations and Future Work

The authors acknowledge that their merging strategy (turning classified tokens into final field boxes) is relatively simplistic. It relies on basic geometric heuristics that can fail on complex, overlapping layouts.

Future work suggested by the paper includes:

  • Moving beyond NER to Sequence-to-Sequence or Generative models (like T5 or UDOP) that can handle text and layout more fluidly.
  • Improving Table Structure Recognition specifically for LIR, as current models still struggle with the "grouping" aspect of line items.
  • Addressing the Zero-shot challenge: creating models that can extract data from a document layout they have never seen before with the same accuracy as a familiar one.

Summary updated

BibTeX
@inproceedings{simsa2023docile,
  author = {Stepán Simsa and Milan Sulc and Michal Uricár and Yash Patel and Ahmed Hamdi and Matej Kocián and Matyás Skalický and Jirí Matas and Antoine Doucet and Mickaël Coustaty and Dimosthenis Karatzas},
  title = {{DocILE Benchmark for Document Information Localization and Extraction}},
  booktitle = {ICDAR},
  year = {2023},
  url = {https://openreview.net/forum?id=fLlmr0BZu8},
}

Loading related content...

Figure