Rethinking the Evaluation of Pre-trained Text-and-Layout Models from an Entity-Centric Perspective

Chong Zhang, Yixi Zhao, Chenshu Yuan, Yi Tu, Ya Guo, Qi ZhangarXiv 2024 · DOI · arXiv

Introduction

Pre-trained Text-and-Layout Models (PTLMs), such as the LayoutLM family, have significantly advanced the field of Visually-rich Document Information Extraction (VrD-IE). These models consistently achieve near-perfect scores on standard benchmarks like FUNSD. However, a persistent gap remains between benchmark performance and real-world utility. This paper investigates the root cause of this discrepancy, identifying a "spurious correlation bias" in existing datasets that allows models to rely on layout shortcuts rather than semantic understanding.

The Spurious Correlation Bias

In traditional datasets like FUNSD, annotations are typically "block-level." A single bounding box often encompasses an entire semantic entity, such as a multi-line answer or a header. This structure creates a "cheat code" for models: they can achieve high accuracy by simply identifying the boundaries of these blocks without truly processing the text. When these models encounter real-world data where OCR engines might segment text differently, their performance collapses because the learned layout shortcuts are no longer valid.

The EC-FUNSD Dataset

To address this bias, the authors introduce EC-FUNSD (Entity-Centric FUNSD). This dataset is a manually re-annotated version of FUNSD where the layout (OCR-derived segments) is decoupled from the semantic entities.

Comparison of annotations in FUNSD (block-level) vs. EC-FUNSD (entity-centric).

As shown in the figure above, while FUNSD might group a whole paragraph into one box, EC-FUNSD treats each line as a separate segment while maintaining their collective identity as a single entity. This forces models to learn the semantic connections between segments.

Multi-Dimensional Evaluation

The researchers propose a rigorous evaluation pipeline across four key dimensions:

  1. Spurious Correlation: Measuring the performance gap between the original biased FUNSD and the new EC-FUNSD.
  2. Generalization: Assessing how models handle documents when segment-level layout information (like line boxes) is unavailable—a common scenario with standard OCR outputs.
  3. Robustness: Testing model stability against "natural noise," such as jitter or slight rotations in bounding boxes.
  4. Fairness: Evaluating performance on "complex entities" (e.g., those spanning multiple lines or columns) compared to simple, single-line entries.
Illustration of entity-centric annotation where entities span multiple layout segments.

This decoupling (illustrated above) ensures that models are evaluated on their ability to group related segments into coherent entities, rather than just classifying pre-defined blocks.

Key Results and Analysis

The evaluation reveals significant weaknesses in current PTLMs:

  • Performance Drop: Top-tier models like LayoutLMv3-base saw a drop of approximately 8% F1 (from 90.85 to 82.30) when moving from FUNSD to EC-FUNSD.
  • The "Layout Crutch": Models are heavily dependent on segment-level features. When line-level bounding boxes were removed, LayoutLMv3’s F1 score on FUNSD plummeted from 90.85 to 22.75. While it performed better on EC-FUNSD (50.53), the drop still highlights a critical lack of generalization.
  • Fairness Gap: Models struggle significantly with complex entities. Recall for multi-line entities is often much lower than for simple ones, indicating that current architectures fail to capture long-range structural dependencies fairly.

Conclusion

The introduction of EC-FUNSD exposes the "shortcut learning" prevalent in current document AI benchmarks. By shifting to an entity-centric perspective, researchers can develop models that are more robust, fair, and capable of handling the messiness of real-world documents. Future work will focus on reducing reliance on segment-level shortcuts and improving the handling of complex, multi-line entities across diverse document domains.

Summary updated

Abstract

Recently developed pre-trained text-and-layout models (PTLMs) have shown remarkable success in multiple information extraction tasks on visually-rich documents (VrDs). However, despite achieving extremely high performance on benchmarks, their real-world performance falls short of expectations. Owing to this issue, we investigate the prevailing evaluation pipeline to reveal that: (1) The inadequate annotations within benchmark datasets introduce spurious correlations between task inputs and labels, which would lead to overly-optimistic estimation of model performance. (2) The evaluation solely relies on the performance on benchmarks and is insufficient to comprehensively explore the capabilities of methods in real-world scenarios. These problems impede the prevailing evaluation pipeline from reflecting the real-world performance of methods, misleading the design choices of method optimization. In this work, we introduce EC-FUNSD, an entity-centric dataset crafted for benchmarking information extraction from visually-rich documents. This dataset contains diverse layouts and high-quality annotations. Additionally, this dataset disentangles the falsely-coupled segment and entity annotations that arises from the block-level annotation of FUNSD. Using the proposed dataset, we evaluate the real-world information extraction capabilities of PTLMs from multiple aspects, including their absolute performance, as well as generalization, robustness and fairness. The results indicate that prevalent PTLMs do not perform as well as anticipated in real-world information extraction scenarios. We hope that our study can inspire reflection on the directions of PTLM development.
BibTeX
@misc{zhang2024rethinking,
  author = {Chong Zhang and Yixi Zhao and Chenshu Yuan and Yi Tu and Ya Guo and Qi Zhang},
  title = {{Rethinking the Evaluation of Pre-trained Text-and-Layout Models from an Entity-Centric Perspective}},
  year = {2024},
  eprint = {2402.02379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.02379},
}
Figure