Skip to main content
QUICK REVIEW

[Paper Review] Spatial Dependency Parsing for Semi-Structured Document Information Extraction

Wonseok Hwang, Jinyeong Yim|arXiv (Cornell University)|May 1, 2020
Handwritten Text Recognition TechniquesComputer Science34 references16 citations
TL;DR

This paper proposes SPADE$\varspadesuit$, an end-to-end spatial dependency parsing framework for semi-structured document information extraction that models both linguistic and 2D spatial relationships between text tokens without requiring token serialization. It achieves state-of-the-art or superior performance on receipts, invoices, name cards, and forms, outperforming BERT-based IOB taggers by up to +1.9 F1 on complex layouts and +11.5 F1 on entity labeling in the FUNSD benchmark.

ABSTRACT

Information Extraction (IE) for semi-structured document images is often approached as a sequence tagging problem by classifying each recognized input token into one of the IOB (Inside, Outside, and Beginning) categories. However, such problem setup has two inherent limitations that (1) it cannot easily handle complex spatial relationships and (2) it is not suitable for highly structured information, which are nevertheless frequently observed in real-world document images. To tackle these issues, we first formulate the IE task as spatial dependency parsing problem that focuses on the relationship among text tokens in the documents. Under this setup, we then propose SPADE (SPAtial DEpendency parser) that models highly complex spatial relationships and an arbitrary number of information layers in the documents in an end-to-end manner. We evaluate it on various kinds of documents such as receipts, name cards, forms, and invoices, and show that it achieves a similar or better performance compared to strong baselines including BERT-based IOB taggger.

Motivation & Objective

  • To address the limitations of sequence tagging in semi-structured document IE, particularly the inability to model complex spatial layouts and hierarchical information.
  • To eliminate reliance on manual or heuristic serialization of OCR-extracted tokens, which distorts spatial relationships in multi-column or irregular documents.
  • To develop an end-to-end, serializer-free model that jointly learns linguistic and spatial dependencies for structured information extraction.
  • To evaluate the model on diverse real-world document types, including receipts, invoices, name cards, and forms, with varying structural complexity.
  • To demonstrate that modeling spatial relationships explicitly leads to improved performance on hierarchical and complex layout documents.

Proposed method

  • Formulate document information extraction as a spatial dependency parsing problem, where each text token is a node in a directed graph and edges represent linguistic and spatial relationships.
  • Design a spatially-aware self-attention mechanism that incorporates relative 2D coordinates (x, y) of tokens into the attention computation, enabling the model to learn spatial dependencies directly.
  • Use a graph-based decoding strategy to predict the final dependency structure, allowing for arbitrary hierarchical and multi-layered information grouping.
  • Train the model end-to-end using a combination of IOB-style labeling and graph structure prediction, with data augmentation via random token shuffling and rotation to improve robustness.
  • Employ a BERT-based backbone for contextual encoding, enhanced with relative spatial position embeddings to capture both semantic and spatial context.
  • Decompose the parsing task into two relation types: rel-s (serialization and field classification) and rel-g (inter-grouping between fields), enabling structured output generation.

Experimental results

Research questions

  • RQ1Can modeling spatial relationships between text tokens in 2D layout improve information extraction performance on complex semi-structured documents?
  • RQ2Does a serializer-free, end-to-end spatial dependency parsing approach outperform traditional IOB tagging with sequence-based models on documents with hierarchical or multi-column layouts?
  • RQ3How does the inclusion of relative spatial coordinates in self-attention layers affect model performance and robustness to layout variations?
  • RQ4Can the proposed framework generalize across diverse document types such as receipts, invoices, name cards, and forms without architectural modification?
  • RQ5To what extent does data augmentation involving token shuffling and rotation improve generalization in spatial dependency parsing?

Key findings

  • SPADE$\varspadesuit$ achieves +1.9 F1 on the invoice dataset compared to the strong BERT-based IOB tagger baseline, demonstrating superior performance on complex, hierarchical layouts.
  • On the FUNSD form understanding benchmark, SPADE$\varspadesuit$ achieves a 37.3% absolute F1 improvement on entity linking (ELK) and +11.5 F1 on entity labeling (ELB) over the BERT-Base Tagger baseline.
  • The model maintains stable performance under data augmentation (e.g., shuffled tokens or rotated documents), with only a 1.1 F1 drop in ELB-R and a 0.4 F1 increase in ELB-S, proving robustness to layout perturbations.
  • Ablation studies show that removing relative spatial coordinates causes a 74.0 F1 drop, highlighting the critical role of spatial inductive bias in the model's performance.
  • The model achieves state-of-the-art performance on all evaluated datasets, including receipts, name cards, forms, and invoices, without requiring layout pretraining or external data.
  • The use of relative coordinates instead of absolute coordinates improves performance by 6.9 F1, and data augmentation contributes a 2.6 F1 gain, confirming their importance in training stability and generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.