Skip to main content
QUICK REVIEW

[Paper Review] BROS: A Pre-trained Language Model Focusing on Text and Layout for Better Key Information Extraction from Documents

Teakgyu Hong, Donghyun Kim|arXiv (Cornell University)|Aug 10, 2021
Handwritten Text Recognition TechniquesComputer Science18 citations
TL;DR

BROS is a pre-trained language model that enhances key information extraction from documents by modeling relative spatial positions of text blocks and using an area-masking pre-training objective, achieving state-of-the-art performance on KIE benchmarks without relying on visual features. It demonstrates superior robustness to text serialization errors and strong generalization with few training examples.

ABSTRACT

Key information extraction (KIE) from document images requires understanding the contextual and spatial semantics of texts in two-dimensional (2D) space. Many recent studies try to solve the task by developing pre-trained language models focusing on combining visual features from document images with texts and their layout. On the other hand, this paper tackles the problem by going back to the basic: effective combination of text and layout. Specifically, we propose a pre-trained language model, named BROS (BERT Relying On Spatiality), that encodes relative positions of texts in 2D space and learns from unlabeled documents with area-masking strategy. With this optimized training scheme for understanding texts in 2D space, BROS shows comparable or better performance compared to previous methods on four KIE benchmarks (FUNSD, SROIE*, CORD, and SciTSR) without relying on visual features. This paper also reveals two real-world challenges in KIE tasks-(1) minimizing the error from incorrect text ordering and (2) efficient learning from fewer downstream examples-and demonstrates the superiority of BROS over previous methods. Code is available at https://github.com/clovaai/bros.

Motivation & Objective

  • To improve key information extraction (KIE) from document images by focusing on effective integration of text and layout semantics without relying on visual features.
  • To address the real-world challenge of unreliable text serialization in OCR pipelines, which degrades performance in sequence-based models.
  • To enhance model generalization when fine-tuning with limited downstream training examples.
  • To develop a pre-training strategy that preserves 2D spatial dependencies critical for complex document layouts.
  • To demonstrate that relative spatial encoding and area masking can outperform absolute positioning and visual feature fusion.

Proposed method

  • Proposes BROS, a pre-trained language model that encodes relative positions between text blocks in 2D layout space instead of absolute coordinates.
  • Introduces an area-masking self-supervision objective that masks contiguous regions of text in document images during pre-training.
  • Trains the model on large-scale unlabeled document data using masked language modeling on spatially masked regions.
  • Uses a modified BERT-style transformer architecture with relative positional embeddings tailored for 2D spatial relationships.
  • Employs a SPADE decoder for inference to extract key information without dependency on text serialization order.
  • Conducts ablation studies comparing absolute vs. relative positional encoding and pre-training objectives to isolate contributions.

Experimental results

Research questions

  • RQ1Can a pre-trained language model achieve state-of-the-art KIE performance without using visual features from document images?
  • RQ2How does relative spatial encoding compare to absolute 2D positional encoding in modeling document layout for KIE?
  • RQ3To what extent does area masking during pre-training improve generalization and robustness to layout variations?
  • RQ4How does BROS perform under extreme low-resource settings with only 5–10 fine-tuning examples?
  • RQ5How robust is BROS to incorrect text serialization, a common failure mode in real-world document processing pipelines?

Key findings

  • BROS achieves 84.52% F1 on FUNSD with the LARGE variant, outperforming LayoutLMv2-LARGE (84.20%) and LayoutLM-LARGE (78.95%) without visual features.
  • On the p-FUNSD benchmark with permuted text order, BROS maintains high performance (F1: 74.42), while LayoutLM* drops to 48.30, showing robustness to serialization errors.
  • With only 10 training examples, BROS achieves 72.60 F1 on FUNSD, significantly outperforming LayoutLM* (69.92) and LayoutLMv2* (62.53).
  • In few-shot learning (5 examples), BROS achieves 68.35 F1 on FUNSD, surpassing LayoutLM* (48.23) and LayoutLMv2* (64.26).
  • Ablation studies confirm that relative spatial encoding contributes +3.62pp average F1 gain, and area masking adds +1.14pp, with combined effect yielding +5.10pp gain.
  • BROS shows consistent performance across different serialization orders (original, yx, xy, p-FUNSD), indicating strong robustness to layout perturbations.

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.