Multimodal Pre-training Based on Graph Attention Network for Document Understanding

Zhenrong Zhang, Jiefeng Ma, Jun Du, Licheng Wang, Jianshu Zhang
3/25/2022
cs.CV
transformer-attentiongnn

Official code: ZZR8066/GraphDoc (45 stars, Python, last commit 2022-07-18).

Abstract

Document intelligence as a relatively new research topic supports many business applications. Its main task is to automatically read, understand, and analyze documents.

Show full abstract

However, due to the diversity of formats (invoices, reports, forms, etc.) and layouts in documents, it is difficult to make machines understand documents. In this paper, we present the GraphDoc, a multimodal graph attention-based model for various document understanding tasks. GraphDoc is pre-trained in a multimodal framework by utilizing text, layout, and image information simultaneously. In a document, a text block relies heavily on its surrounding contexts, accordingly we inject the graph structure into the attention mechanism to form a graph attention layer so that each input node can only attend to its neighborhoods. The input nodes of each graph attention layer are composed of textual, visual, and positional features from semantically meaningful regions in a document image. We do the multimodal feature fusion of each node by the gate fusion layer. The contextualization between each node is modeled by the graph attention layer. GraphDoc learns a generic representation from only 320k unlabeled documents via the Masked Sentence Modeling task. Extensive experimental results on the publicly available datasets show that GraphDoc achieves state-of-the-art performance, which demonstrates the effectiveness of our proposed method. The code is available at https://github.com/ZZR8066/GraphDoc.

View on arXivView PDF

Code Implementations(1)

ZZR8066/GraphDocOfficial100%
4513PythonJul 15, 20224 years ago

Similar Papers

Cite this paper

@article{zhang2022multimodal,
  title  = {Multimodal Pre-training Based on Graph Attention Network for Document Understanding},
  author = {Zhenrong Zhang and Jiefeng Ma and Jun Du and Licheng Wang and Jianshu Zhang},
  year   = {2022},
  eprint = {2203.13530},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.13530}
}

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/2203.13530.svg)](https://codeofpaper.com/paper/2203.13530)

Discussion