Abstract
Form understanding requires transforming unstructured OCR output into structured semantic entities and identifying their relationships. Traditional pipeline approaches often suffer from error propagation between these stages. This paper introduces GroupLink, an end-to-end multitask framework that simultaneously performs word grouping and relation extraction. By leveraging a joint training strategy, GroupLink allows these tasks to mutually reinforce each other. Experimental results on the FUNSD benchmark demonstrate that GroupLink achieves state-of-the-art performance, highlighting the benefits of integrated spatial and textual modeling.
Introduction
Automated form processing typically begins with Optical Character Recognition (OCR), which yields a collection of words and their spatial coordinates. However, these "bags of words" lack semantic structure. To extract meaningful information, systems must solve two primary challenges: Word Grouping (aggregating individual words into entities like "Division Name") and Relation Extraction (linking entities, such as connecting a label to its corresponding value).
Most existing methods treat these as sequential steps. This pipeline approach is inherently fragile; errors in the grouping stage inevitably degrade relation extraction. GroupLink addresses this by treating them as interdependent tasks within a unified architecture, allowing structural feedback from relations to improve entity grouping.
Methodology
GroupLink utilizes a multitask architecture designed to capture both textual and spatial information through two parallel paths.
Multimodal Feature Extraction
The model employs a Sliding Window BERT to process textual context, bypassing standard sequence length limitations. Simultaneously, a Coordinate Project Network embeds the 2D spatial coordinates of word bounding boxes. These features are merged to form a comprehensive representation for each word.
Joint Task Modules
- Word Grouping (The Linker): This module uses a BiLSTM-CRF layer to perform sequence labeling. It assigns tags (Begin, Inside, End, Single) to words, effectively defining the boundaries of semantic entities.
- Relation Extraction (The Grouper): Identified entities are processed through a multi-layer Transformer encoder. To handle the directional nature of form relationships (e.g., Key-to-Value), an asymmetric relation module calculates link probabilities between entities.
The model is trained using a joint loss function. A "Teacher Forcing" strategy is employed during training, where the relation extraction module occasionally receives ground-truth entity spans to stabilize learning while the grouping module is still converging.
Experimental Results
The model was evaluated on the FUNSD (Form Understanding in Noisy Scanned Documents) dataset, which consists of 199 noisy, real-world scanned forms. The dataset includes over 30,000 word-level boxes and 9,000+ semantic entities.
GroupLink demonstrated superior performance over strong baselines like LayoutLM:
- Word Grouping: Achieved an accuracy of 91.55%, outperforming LayoutLM's 90.56%.
- Relation Extraction: In the reconstruction task (predicting links given entities), it reached a Mean Average Precision (mAP) of 0.8297, a significant improvement over the previous state-of-the-art (0.7177).
- Multitask Synergy: Joint training further boosted performance to 91.94% accuracy for grouping and 0.8359 mAP for relations, confirming that the two tasks provide beneficial feedback to one another.
Conclusion
GroupLink successfully bridges the gap between raw OCR and structured form understanding by unifying word grouping and relation extraction. The results underscore the importance of spatial layout and the advantages of multitask learning in document AI. Future work may involve integrating visual features (e.g., lines and logos) and testing on more diverse document types to further enhance robustness.
Summary updated