Introduction
Extracting structured information from Visually Rich Documents (VRDs)—such as invoices, receipts, and legal forms—remains a significant challenge in document AI. While traditional "layout-aware" models like LayoutLMv3 have achieved high performance by learning spatial patterns, they often struggle with generalization to unseen templates and lack the inherent reasoning capabilities required for complex tasks, such as inferring missing values or counting line items.
Large Language Models (LLMs) offer a potential solution due to their advanced reasoning; however, they are frequently overwhelmed by the raw, unstructured OCR text of dense documents. This paper introduces BLOCKIE (Block Level Organization and Contextual Knowledge-based Information Extraction), a framework that bridges this gap by organizing documents into independent, semantically meaningful segments before processing them with LLMs.
The BLOCKIE Framework
The core philosophy of BLOCKIE is a "divide and conquer" approach that mimics human reading patterns. Rather than treating a document as a single sequence of text, the system breaks it down into localized clusters of related information. The process consists of three distinct stages:
- Block Creation: The system identifies "semantic atoms"—the smallest indivisible units of text (e.g., a date or a price). These atoms are then grouped into Semantic Blocks, which are self-contained units of information, such as a header containing a company name and address.
- Block Parsing: Each block is sent to an LLM independently. Utilizing chain-of-thought (CoT) reasoning, the model explains its logic for mapping specific text within the block to a predefined schema. This isolation prevents the model from being distracted by irrelevant global context.
- Combining Blocks: Finally, an LLM acts as a central "judge," aggregating the partial parses from all blocks into a single, coherent, and structured JSON output.
Experimental Results and Key Insights
BLOCKIE was evaluated against industry-standard benchmarks, including CORD (Indonesian receipts), SROIE (scanned receipts), and FUNSD (noisy forms). The framework established new state-of-the-art (SOTA) benchmarks, outperforming models like GeoLayoutLM by 1–3% in F1 scores across all datasets (e.g., 98.83% on CORD and 92.15% on FUNSD).
Generalization and Zero-Shot Performance
A critical advantage of BLOCKIE is its resilience to format changes. Because semantic blocks (like an address block) look similar across different document types, the model is inherently format-agnostic. In zero-shot testing on unseen layouts, BLOCKIE maintained a high F1 score of 94.47%, whereas traditional layout-aware models saw performance drops to approximately 78%.
Value-Absent Inference
Unlike traditional models that can only extract text present on the page, BLOCKIE leverages LLM reasoning to perform "value-absent inference." For instance, in tests requiring the model to count line items that were not explicitly numbered, BLOCKIE achieved 90% accuracy. This capability allows the system to infer document categories and total counts based on the context of the extracted blocks.
Conclusion and Future Work
BLOCKIE demonstrates that organizing documents into semantic blocks significantly enhances the ability of LLMs to extract data from complex, visually rich documents. While the framework currently faces higher latency due to multiple sequential LLM calls, it offers a robust solution for high-accuracy, template-independent extraction. Future research will focus on incorporating visual features—such as font weight and size—directly into the block creation process and optimizing the architecture for multi-page document processing.
Summary updated