GeoContrastNet: Contrastive Key-Value Edge Learning for Language-Agnostic Document Understanding

Nil Biescas,Carlos Boned,Josep Lladós,Sanket Biswas
2024-05-06
Abstract:This paper presents GeoContrastNet, a language-agnostic framework to structured document understanding (DU) by integrating a contrastive learning objective with graph attention networks (GATs), emphasizing the significant role of geometric features. We propose a novel methodology that combines geometric edge features with visual features within an overall two-staged GAT-based framework, demonstrating promising results in both link prediction and semantic entity recognition performance. Our findings reveal that combining both geometric and visual features could match the capabilities of large DU models that rely heavily on Optical Character Recognition (OCR) features in terms of performance accuracy and efficiency. This approach underscores the critical importance of relational layout information between the named text entities in a semi-structured layout of a page. Specifically, our results highlight the model's proficiency in identifying key-value relationships within the FUNSD dataset for forms and also discovering the spatial relationships in table-structured layouts for RVLCDIP business invoices. Our code and pretrained models will be accessible on our official GitHub.
Computer Vision and Pattern Recognition
What problem does this paper attempt to address?
The paper proposes a new framework called GeoContrastNet for language-independent structured document understanding. The framework combines contrastive learning objectives and Graph Attention Networks (GATs) to emphasize the importance of geometric features. In the study, the authors present an approach that combines geometric edge features and visual features using a two-stage GAT-based framework, demonstrating its potential in link prediction and semantic entity recognition performance. The main contributions include: 1. Introducing a simple contrastive learning strategy for learning geometric edge features that help identify key-value relationships in documents. 2. Introducing graph attention mechanisms to combine learned edge features with visual features to address node classification (entity recognition) and edge classification (entity linking) tasks. 3. Conducting a comprehensive analysis of different geometric features to demonstrate their utility in entity recognition and labeling tasks. 4. Quantitatively evaluating a model using only geometric features in invoice understanding tasks, highlighting the importance of geometric features in handling multilingual scenarios and limited computational resources. This research primarily focuses on administrative forms and invoices, utilizing layout cues and geometric information instead of relying on optical character recognition (OCR) or large-scale pretraining models specific to certain languages to recognize text entities and their relationships. Experimental results show that GeoContrastNet performs well in identifying spatial relationships in table layouts and the structure of commercial invoices.