Global Structure Knowledge-Guided Relation Extraction Method for Visually-Rich Document

Xiangnan Chen, Qian Xiao, Juncheng Li, Duo Dong, Jun Lin, Xiaozhong Liu, Siliang Tang

Abstract

Visual Relation Extraction (VRE) is critical for understanding the semantic structure of visually-rich documents. However, existing methods often suffer from local-view limitations, leading to logically inconsistent "conflicted links" and poor performance on long-range entity pairs. This paper presents GOSE (GlObal Structure knowledge-guided relation Extraction), a novel framework that iteratively mines global structural patterns to refine relation predictions. By incorporating spatial layout as a geometric prior and utilizing a "generate-capture-incorporate" cycle, GOSE achieves state-of-the-art performance on benchmark datasets and demonstrates exceptional data efficiency in few-shot scenarios.

1. Introduction

Visually-rich documents (VRDs), such as forms, invoices, and receipts, convey information through both textual content and spatial layout. Visual Relation Extraction (VRE) aims to identify semantic links between entities, such as connecting a "Date" label to its corresponding value. While pre-trained models have advanced the field, they primarily focus on local pairwise features, often ignoring the global structural constraints inherent in document design.

2. Challenges in Visual Relation Extraction

Current VRE models are frequently "short-sighted," leading to two primary failure modes:

  • Conflicted Links: Models may predict relations that are logically impossible or visually contradictory from a global perspective, such as overlapping or crossing links that violate standard document formatting conventions.
  • Long-Range Dependencies: Without a global context, models struggle to accurately link entities that are separated by significant physical distance on the page.

3. The GOSE Framework

The proposed GOSE framework addresses these limitations through an iterative learning process designed to capture and incorporate global structural knowledge.

3.1 Architecture Overview

The framework consists of three primary components organized into a "generate-capture-incorporate" cycle:

  • Base Module: Utilizes a pre-trained encoder (e.g., LiLT or LayoutXLM) to generate initial word and layout embeddings.
  • Relation Feature Generation (RFG): Produces initial pairwise relation predictions based on local features.
  • Global Structure Knowledge Mining (GSKM): The core innovation of GOSE. It employs Spatial Prefix-guided Local Self-attention (SPLS) to treat the 2D spatial layout—specifically distances and angles between all entity pairs—as a "prefix" for the attention mechanism. This allows the model to learn inter-dependencies between different potential links.
The GOSE framework architecture, highlighting the iterative GSKM module.

3.2 Iterative Learning

The global structural knowledge captured by the GSKM module is integrated back into entity representations via a gating mechanism. This refined information is then fed back into subsequent iterations, allowing the model to progressively "denoise" its predictions and resolve conflicts over $K$ iterations.

4. Experimental Evaluation

The model was evaluated on the FUNSD (English forms) and XFUND (multilingual forms) benchmarks. These datasets present complex layouts that test a model's ability to handle diverse structural patterns.

5. Results and Discussion

GOSE demonstrates significant improvements over existing state-of-the-art models across various training regimes.

5.1 Performance Gains

In standard fine-tuning, GOSE outperformed the LiLT baseline by an average of 14.20% in F1 score across all tested datasets. Its ability to leverage structural priors also makes it highly effective for cross-lingual zero-shot transfer, showing a 17.99% improvement over LiLT when training on English and testing on other languages.

5.2 Data Efficiency

One of the most striking results is GOSE's performance in low-data regimes. As shown in Figure 4, GOSE achieves a higher F1 score with only 64 training samples than the baseline model achieves using the entire dataset. This suggests that the global structural priors effectively guide the model toward correct logical patterns even when examples are scarce.

Performance comparison in few-shot settings, showing GOSE's superior data efficiency.

6. Conclusion and Future Work

GOSE introduces a powerful paradigm for VRE by explicitly modeling global document structure. By treating spatial layout as a geometric prior and employing an iterative refinement process, it overcomes the limitations of local-only models. Future work will explore the integration of additional visual cues such as typography and color, and extend the global structural approach to other document understanding tasks like Semantic Entity Recognition (SER).

Summary updated

BibTeX
@inproceedings{chen2023global,
  author = {Xiangnan Chen and Qian Xiao and Juncheng Li and Duo Dong and Jun Lin and Xiaozhong Liu and Siliang Tang},
  title = {{Global Structure Knowledge-Guided Relation Extraction Method for Visually-Rich Document}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.107},
}
Figure