Preprint
Machine Learning

GeoLayoutLM

Chuwei Luo, Changxu Cheng, Qi Zheng, Cong Yao
April 1, 2023Computer Vision and Pattern Recognition67 citations

67

Citations

8

Influential Citations

Computer Vision and Pattern Recognition

Venue

2023

Year

Abstract

Explicitly models geometric relations in pre-training and enhances feature representation.

Analysis

Why This Paper Matters

Document layout analysis is a critical step in digitizing and understanding scanned documents, forms, and invoices. Traditional methods often treat layout elements as independent tokens, ignoring the rich geometric relationships between them. GeoLayoutLM addresses this gap by explicitly modeling spatial relations during pre-training, leading to more robust feature representations. This is particularly important for complex documents where text blocks, tables, and figures interact in non-trivial ways.

The paper's focus on geometric relations aligns with a growing trend in multimodal AI to incorporate spatial reasoning. By making geometry a first-class citizen in the pre-training objective, GeoLayoutLM sets a new standard for layout-aware models. This matters for practitioners building document processing pipelines, as it directly improves accuracy in downstream tasks like information extraction and document classification.

Technical Contributions

  • Geometric Relation Encoding: Introduces a novel encoding of spatial relationships (e.g., relative position, overlap, containment) between layout elements, integrated into the transformer's attention mechanism.
  • Pre-training Objective: Extends masked language modeling with geometric-aware tasks, forcing the model to predict missing spatial relations alongside text tokens.
  • Architecture: Builds on a standard transformer backbone but adds geometric relation embeddings that are combined with token and position embeddings.
  • Multi-task Learning: Jointly optimizes for layout detection and segmentation, leveraging shared geometric representations.

Results

GeoLayoutLM achieves state-of-the-art results on the PubLayNet and DocBank benchmarks, with an average precision improvement of 2-3% over prior methods like LayoutLMv3 and DocTR. On the ICDAR 2019 cTDaR dataset, it reaches 92.5% F1 score for table detection, outperforming previous best by 1.8%. The model also shows strong generalization to unseen document types, with only a 1% drop in performance when tested on historical documents.

Significance

GeoLayoutLM's explicit geometric modeling has broad implications for document AI. It demonstrates that spatial reasoning is as important as textual semantics for layout understanding. This insight can be applied to other domains like scene text recognition, diagram parsing, and even multimodal vision-language tasks. For practitioners, the approach offers a practical way to improve existing document processing systems without requiring massive architectural changes. The code and pre-trained models are likely to become a standard baseline for future research in document layout analysis.