ERNIE-Layout: Layout Knowledge Enhanced Pre-training for Visually-rich Document Understanding

Qiming Peng, Yinxu Pan, Wenjin Wang, Bin Luo, Zhenyu Zhang +10 more
10/12/2022
114 citations
cs.CLcs.AI

Official code: PaddlePaddle/PaddleNLP (12,983 stars, Python, Apache-2.0, last commit 2025-12-17).

Abstract

Recent years have witnessed the rise and success of pre-training techniques in visually-rich document understanding. However, most existing methods lack the systematic mining and utilization of layout-centered knowledge, leading to sub-optimal performances.

Show full abstract

In this paper, we propose ERNIE-Layout, a novel document pre-training solution with layout knowledge enhancement in the whole workflow, to learn better representations that combine the features from text, layout, and image. Specifically, we first rearrange input sequences in the serialization stage, and then present a correlative pre-training task, reading order prediction, to learn the proper reading order of documents. To improve the layout awareness of the model, we integrate a spatial-aware disentangled attention into the multi-modal transformer and a replaced regions prediction task into the pre-training phase. Experimental results show that ERNIE-Layout achieves superior performance on various downstream tasks, setting new state-of-the-art on key information extraction, document image classification, and document question answering datasets. The code and models are publicly available at http://github.com/PaddlePaddle/PaddleNLP/tree/develop/model_zoo/ernie-layout.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Easy-to-use and powerful LLM and SLM library with awesome model zoo.

12,9833,019Python, CudaFeb 5, 202111 months agoApache-2.0
bertcompressiondistributed-trainingdocument-intelligenceembedding+14 more

Similar Papers

Cite this paper

@article{peng2022ernielayout,
  title  = {ERNIE-Layout: Layout Knowledge Enhanced Pre-training for Visually-rich Document Understanding},
  author = {Qiming Peng and Yinxu Pan and Wenjin Wang and Bin Luo and Zhenyu Zhang and Zhengjie Huang and Teng Hu and Weichong Yin and Yongfeng Chen and Yin Zhang and Shikun Feng and Yu Sun and Hao Tian and Hua Wu and Haifeng Wang},
  year   = {2022},
  eprint = {2210.06155},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.06155}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.06155.svg)](https://codeofpaper.com/paper/2210.06155)

Discussion