Preprint
Machine Learning

Layout LM

Xinkun Huang, Jinyan Sang, Changrong Jin, Chao Tang, Luqi Yu, Wenjing Gong
December 1, 2019

0

Citations

0

Influential Citations

Venue

2019

Year

Abstract

Utilises BERT as the backbone, adds two new input embeddings: 2-D position embedding and image embedding (Only for downstream tasks).

Analysis

Why This Paper Matters

LayoutLM addresses a critical gap in NLP: most language models treat text as a flat sequence, ignoring spatial layout. In documents like forms, invoices, and receipts, the position of text (e.g., a label next to a value) is essential for understanding. By injecting 2-D position embeddings into BERT, LayoutLM enables the model to leverage layout cues without sacrificing the power of pre-trained language representations. This work laid the foundation for a new line of research on layout-aware document AI, which has become increasingly important for enterprise automation.

Technical Contributions

  • 2-D Position Embeddings: Each token receives two additional embeddings encoding its bounding box coordinates (x0, y0, x1, y1) relative to the page. These are added to the token, segment, and position embeddings of BERT.
  • Image Embeddings (Downstream Only): For fine-tuning tasks, visual features from a CNN (e.g., Faster R-CNN) are extracted for each token region and concatenated with the token embeddings. This allows the model to incorporate visual cues like font style, color, and logos.
  • Minimal Architectural Change: The core BERT architecture remains unchanged; only the input layer is extended. This makes the approach easy to implement and compatible with existing BERT checkpoints.

Results

The abstract does not provide quantitative results. However, the paper's significance is demonstrated by its influence: LayoutLM became a baseline for document understanding tasks, and subsequent works (LayoutLMv2, LayoutLMv3) built directly on its design, achieving state-of-the-art on benchmarks like FUNSD, CORD, and SROIE.

Significance

LayoutLM was one of the first models to successfully combine pre-trained language models with spatial layout information for document AI. It inspired a wave of research on multi-modal document understanding, including models that jointly pre-train text, layout, and image. Its impact extends to real-world applications in OCR post-processing, form understanding, and automated data extraction, making it a cornerstone of modern document intelligence.