Graph Convolution for Multimodal Information Extraction from Visually Rich Documents

Xiaojing Liu, Feiyu Gao, Qiong Zhang, Huasha Zhao

Introduction

Information Extraction (IE) from Visually Rich Documents (VRDs)—such as receipts, invoices, and forms—presents a unique challenge. Unlike plain text, the semantic meaning in VRDs is deeply intertwined with the 2D spatial layout. Traditional 1D sequence models like BiLSTM-CRF often struggle because physical proximity in a document does not always translate to proximity in a serialized text string. This paper introduces a graph convolution-based approach that explicitly models these spatial relationships to improve extraction accuracy.

The Challenge of Visually Rich Documents

Traditional IE models treat text as a linear sequence. However, in a receipt, a "Total" label and its corresponding value might be horizontally aligned but separated by many other characters in a standard OCR serialization. The authors identify two primary hurdles:

  1. Multimodal Integration: Effectively combining textual semantics ("what") with spatial coordinates ("where").
  2. Template Variability: Creating a system robust enough to handle diverse layouts without relying on brittle, hand-crafted rules.

Methodology: Documents as Graphs

The core innovation lies in representing a document as a graph where nodes are text segments and edges represent spatial relationships.

Graph Representation and Feature Extraction

Each text segment identified by OCR becomes a node. Node features are generated using a BiLSTM to capture local textual context. Edges are defined between nodes to encode visual context, specifically calculating horizontal and vertical distances and relative aspect ratios.

Mapping text segments to a document graph.

Graph Convolution and the "Triplet" Approach

The model employs a specialized graph convolution that operates on node-edge-node triplets. By using a self-attention mechanism, each segment can "attend" to its neighbors, learning which spatial cues are most relevant for identifying specific entities. For example, the model learns that a numeric value's identity is often determined by the text label located immediately to its left.

The Extraction Pipeline

The final architecture integrates these spatial insights into a standard sequence labeling framework. Graph embeddings, enriched with spatial context, are concatenated with token-level embeddings. This combined representation is then processed by a BiLSTM-CRF layer for entity extraction.

The overall BiLSTM-CRF architecture with integrated graph embeddings.

To further enhance performance, the authors utilized multi-task learning, training the model to classify text segments into categories (e.g., "address") alongside the primary extraction task.

Experimental Evaluation

The model was tested on two distinct datasets:

  • VATI (Value-Added Tax Invoices): 3,000 Chinese tax invoices with fixed templates but significant noise.
  • IPR (International Purchase Receipts): 1,500 English receipts featuring 146 different layout templates, testing the model's adaptability.

Key Results

The GCN-enhanced model consistently outperformed 1D baselines. In the VATI dataset, it achieved an $F_1$ score of 0.873 (vs. 0.854), and in the highly variable IPR dataset, it reached 0.836 (vs. 0.820). The most significant gains were observed in "layout-dependent" entities like Buyer and Seller names, whereas "format-dependent" entities like dates saw less dramatic improvement.

Insights and Discussion

Ablation studies confirmed that visual features are critical; removing them led to a drop of over 5% in $F_1$ score. The attention mechanism proved vital for different reasons across datasets: in fixed layouts, it acted as an "anchor finder," while in variable layouts, it focused on immediate spatial neighbors.

Despite its success, the model remains dependent on OCR quality. Future work could involve incorporating additional visual cues like font styles and colors, and addressing the quadratic computational complexity inherent in fully connected graph representations for very long documents.

Summary updated

BibTeX
@inproceedings{liu2019graph,
  author = {Xiaojing Liu and Feiyu Gao and Qiong Zhang and Huasha Zhao},
  title = {{Graph Convolution for Multimodal Information Extraction from Visually Rich Documents}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-2005},
}
Figure