Skip to main content
QUICK REVIEW

[Paper Review] StructuralLM: Structural Pre-training for Form Understanding

Chenliang Li, Bin Bi|arXiv (Cornell University)|May 24, 2021
Handwritten Text Recognition TechniquesComputer Science24 references9 citations
TL;DR

StructuralLM proposes a novel pre-training approach for form and document understanding by modeling cells as semantic units with cell-level 2D-position embeddings and a new cell position classification objective. It achieves state-of-the-art results across form understanding (85.14 F1), document VQA (83.94 F1), and document image classification (96.08 accuracy), outperforming LayoutLM and other baselines by leveraging joint cell and layout representations without relying on image features.

ABSTRACT

Large pre-trained language models achieve state-of-the-art results when fine-tuned on downstream NLP tasks. However, they almost exclusively focus on text-only representation, while neglecting cell-level layout information that is important for form image understanding. In this paper, we propose a new pre-training approach, StructuralLM, to jointly leverage cell and layout information from scanned documents. Specifically, we pre-train StructuralLM with two new designs to make the most of the interactions of cell and layout information: 1) each cell as a semantic unit; 2) classification of cell positions. The pre-trained StructuralLM achieves new state-of-the-art results in different types of downstream tasks, including form understanding (from 78.95 to 85.14), document visual question answering (from 72.59 to 83.94) and document image classification (from 94.43 to 96.08).

Motivation & Objective

  • To address the limitation of existing pre-trained models that treat text only and ignore cell-level layout structure in scanned documents.
  • To improve form understanding by modeling words within the same cell as a semantic unit rather than as isolated tokens.
  • To enhance interaction between cells and layout by introducing cell-level 2D-position embeddings and a novel cell position classification pre-training objective.
  • To achieve state-of-the-art performance in downstream document understanding tasks without relying on image features.

Proposed method

  • StructuralLM uses a BERT-based Transformer encoder with cell-level 2D-position embeddings, where all tokens in the same cell share the same 2D-position embedding.
  • It retains 1D-position embeddings within each cell to preserve sequential order of tokens inside a cell.
  • A new pre-training objective, cell position classification, is introduced: mask the 2D-positions of some cells and train the model to predict which of N equal-sized regions the masked cells belong to.
  • The model is pre-trained on large-scale unlabeled document images using a masked visual-language modeling objective and the cell position classification objective.
  • Unlike LayoutLM, StructuralLM omits image embeddings in the encoder, making it more efficient and directly applicable to real-world document tasks.
  • The model is fine-tuned on downstream tasks such as form understanding, document VQA, and document image classification.

Experimental results

Research questions

  • RQ1Can modeling cells as semantic units improve performance in form and document understanding tasks compared to word-level modeling?
  • RQ2How effective is a cell position classification objective in capturing spatial relationships between cells and layout structures?
  • RQ3Does joint modeling of cell-level semantics and 2D layout information lead to better generalization across diverse document types like forms and tables?
  • RQ4Can a pre-trained model without image features still achieve state-of-the-art results in document understanding?

Key findings

  • StructuralLM achieves a new state-of-the-art F1 score of 85.14 on the form understanding task, improving from 78.95 in LayoutLM.
  • It improves document visual question answering performance to 83.94 F1, up from 72.59 in LayoutLM.
  • For document image classification, StructuralLM reaches 96.08 accuracy, a significant improvement over LayoutLM’s 94.43.
  • The model outperforms strong baselines across all three benchmark datasets, demonstrating the effectiveness of cell-level layout modeling.
  • Qualitative analysis shows that StructuralLM correctly predicts entire entities from the same cell (e.g., 'Call Connie Drath or Carol Musgrave at 800/424-9876') as a single unit, unlike LayoutLM which splits them.
  • The ablation study confirms that both cell-level 2D-position embeddings and the cell position classification objective contribute significantly to performance gains.

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.