[Paper Review] GeoLayoutLM: Geometric Pre-training for Visual Information Extraction
GeoLayoutLM proposes a geometric pre-training framework for visual information extraction (VIE) that explicitly models spatial relationships between text segments through three novel pre-training tasks—GeoPair, GeoMPair, and GeoTriplet—while introducing pre-trained relation heads to close the gap between pre-training and fine-tuning. It achieves state-of-the-art performance, boosting F1 on FUNSD RE from 80.35% to 89.45%.
Visual information extraction (VIE) plays an important role in Document Intelligence. Generally, it is divided into two tasks: semantic entity recognition (SER) and relation extraction (RE). Recently, pre-trained models for documents have achieved substantial progress in VIE, particularly in SER. However, most of the existing models learn the geometric representation in an implicit way, which has been found insufficient for the RE task since geometric information is especially crucial for RE. Moreover, we reveal another factor that limits the performance of RE lies in the objective gap between the pre-training phase and the fine-tuning phase for RE. To tackle these issues, we propose in this paper a multi-modal framework, named GeoLayoutLM, for VIE. GeoLayoutLM explicitly models the geometric relations in pre-training, which we call geometric pre-training. Geometric pre-training is achieved by three specially designed geometry-related pre-training tasks. Additionally, novel relation heads, which are pre-trained by the geometric pre-training tasks and fine-tuned for RE, are elaborately designed to enrich and enhance the feature representation. According to extensive experiments on standard VIE benchmarks, GeoLayoutLM achieves highly competitive scores in the SER task and significantly outperforms the previous state-of-the-arts for RE (\eg, the F1 score of RE on FUNSD is boosted from 80.35\% to 89.45\%). The code and models are publicly available at https://github.com/AlibabaResearch/AdvancedLiterateMachinery/tree/main/DocumentUnderstanding/GeoLayoutLM
Motivation & Objective
- Address the limitation of implicit layout representation in existing document pre-trained models, which hinders relation extraction (RE) performance.
- Overcome the objective gap between pre-training and fine-tuning for RE by explicitly pre-training relation heads.
- Improve geometric reasoning in VIE by designing dedicated pre-training tasks that model spatial relationships between text segments at multiple levels.
- Enhance few-shot learning capability for RE by leveraging geometric pre-training and pre-trained heads.
- Demonstrate that explicit geometric modeling leads to more robust and generalizable relation predictions than heuristic geometric constraints.
Proposed method
- Introduce three geometry-specific pre-training tasks: GeoPair (pairwise spatial relations), GeoMPair (multi-pair relations), and GeoTriplet (three-segment spatial configurations).
- Design a multi-modal encoder that jointly processes text, visual features, and 2D layout coordinates to learn geometry-aware representations.
- Develop two novel relation heads: a coarse relation prediction (CRP) head and a relation feature extractor (RFE) head, both pre-trained using the geometric objectives.
- Apply a relation-specific fine-tuning (RSF) strategy combining variance loss during training and post-processing filtering to improve precision.
- Pre-train the relation heads using the same geometric pre-training objectives to align their inductive bias with downstream RE tasks.
- Use a unified architecture that maintains the backbone of LayoutLMv3 but enhances it with geometric pre-training and specialized heads for better generalization.
Experimental results
Research questions
- RQ1Can explicit geometric pre-training improve the performance of relation extraction in visually-rich documents?
- RQ2Does pre-training the relation head using geometric objectives reduce the domain gap between pre-training and fine-tuning for RE?
- RQ3How does GeoLayoutLM compare to strong baselines like LayoutLMv3 in few-shot RE settings?
- RQ4To what extent does geometric pre-training mitigate the reliance on semantic similarity in relation prediction?
- RQ5Can geometric pre-training recover missed relations that are missed by models relying only on semantics?
Key findings
- GeoLayoutLM achieves a new state-of-the-art F1 score of 89.45% on the FUNSD relation extraction benchmark, a significant improvement from the previous SOTA of 80.35%.
- The ablation study shows that pre-training the RFE head yields a 2.7% F1 improvement over a randomly initialized version, highlighting the importance of head pre-training.
- The RSF strategy (post-processing + variance loss) improves precision by 3.69 points (from 85.26% to 88.94%) while maintaining high recall, with the best F1 of 89.45% when both components are used.
- In few-shot learning, GeoLayoutLM outperforms LayoutLMv3 even with only 30 training samples (71.53% F1 vs. 71.07% with 104 samples), demonstrating strong data efficiency.
- The model reduces false positives by relying on geometric layout rather than semantics, as shown in case studies where LayoutLMv3 incorrectly links entities based on semantics alone.
- The geometric pre-training tasks (GeoPair, GeoMPair, GeoTriplet) enable the model to learn discriminative spatial representations, evidenced by better generalization across diverse document layouts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.