Abstract
Traditional Key Information Extraction (KIE) systems typically rely on discriminative tagging, which makes them highly susceptible to errors introduced by Optical Character Recognition (OCR) engines. In this work, we present GenKIE, a generative multimodal model that redefines KIE as a sequence-to-sequence task. By integrating visual, layout, and textual features within a unified encoder-decoder architecture, GenKIE leverages internal language knowledge to auto-correct OCR mistakes during extraction. Our evaluations on standard benchmarks (SROIE, FUNSD, CORD) demonstrate that GenKIE achieves state-of-the-art performance and exhibits remarkable robustness, maintaining high accuracy even when OCR noise levels reach 50%.
1. Introduction
Extracting structured data from scanned documents—such as receipts, invoices, and forms—is a critical component of document intelligence. Most existing systems follow a discriminative approach, assigning labels (e.g., BIO tags) to text tokens. However, these models suffer from a significant limitation: they are "OCR-sensitive." If an OCR engine misidentifies a character (e.g., "BOOK" as "B00K"), the model extracts the erroneous string as-is.
GenKIE addresses this by treating KIE as a generative task. Instead of labeling existing tokens, the model "writes" the extracted information based on multimodal document context. This approach allows the model to utilize its learned language priors to correct transcription errors and resolve semantic ambiguities through spatial and visual cues.
2. Methods
GenKIE utilizes a multimodal encoder-decoder architecture based on the OFA backbone. The system processes three primary information streams: textual tokens via Byte-Pair Encoding (BPE), layout information through 2D spatial coordinates, and visual features extracted from document images using ResNet blocks.
The model performs extraction through natural language prompting. Two prompting strategies were explored: Template Prompts (e.g., "Company is [SEP] Address is...") and Question Prompts (e.g., "What is the company?"). During inference, a constrained prefix beam search is employed to ensure the generated output adheres to the expected schema, improving both speed and reliability.
3. Experimental Setup and Datasets
The model was evaluated on three diverse KIE benchmarks:
- SROIE: Focused on entity extraction from scanned receipts (Company, Address, Date, Total).
- FUNSD: Comprising noisy scanned forms for entity labeling (Headers, Questions, Answers).
- CORD: Featuring receipts with a complex hierarchical taxonomy of 30 subcategories.
4. Results and Discussion
GenKIE achieved state-of-the-art results, matching or outperforming established models like LayoutLMv3 and DocFormer across all tested datasets. A key finding is the "Auto-Correct" effect: the decoder's language model component acts as a corrector for noisy OCR input.
The most significant result is the model's extreme robustness. In simulations where OCR noise was introduced by replacing characters with visually similar ones, GenKIE's performance remained stable. At a 50% noise level, while the baseline LayoutLMv2's F1 score dropped by approximately 40%, GenKIE's performance decreased by only 3%, maintaining an F1 score of roughly 94%.
5. Conclusion
GenKIE demonstrates that a generative approach to multimodal document extraction provides a robust solution to the long-standing problem of OCR sensitivity. By shifting from token tagging to sequence generation, the model effectively combines visual, layout, and textual context to produce clean, structured data from noisy inputs. Future research will focus on tighter integration of visual features into the decoding process and pre-training on larger document-specific corpora.
Summary updated