Fast-StrucTexT: An Efficient Hourglass Transformer with Modality-Guided Dynamic Token Merge for Document Understanding

Abstract

Transformers achieve promising performance in document understanding because of their high effectiveness and still suffer from quadratic computational complexity dependency on the sequence length. General efficient transformers are challenging to be directly adapted to model document. They are unable to handle the layout representation in documents, e.g. word, line and paragraph, on different granularity levels and seem hard to achieve a good trade-off between efficiency and performance. To tackle the concerns, we propose Fast-StrucTexT, an efficient multi-modal framework based on the StrucTexT algorithm with an hourglass transformer architecture, for visual document understanding. Specifically, we design a modality-guided dynamic token merging block to make the model learn multi-granularity representation and prunes redundant tokens. Additionally, we present a multi-modal interaction module called Symmetry Cross-Attention (SCA) to consider multi-modal fusion and efficiently guide the token mergence. The SCA allows one modality input as query to calculate cross attention with another modality in a dual phase. Extensive experiments on FUNSD, SROIE, and CORD datasets demonstrate that our model achieves the state-of-the-art performance and almost 1.9x faster inference time than the state-of-the-art methods.

Cite

Text

Zhai et al. "Fast-StrucTexT: An Efficient Hourglass Transformer with Modality-Guided Dynamic Token Merge for Document Understanding." International Joint Conference on Artificial Intelligence, 2023. doi:10.24963/IJCAI.2023/585

Markdown

[Zhai et al. "Fast-StrucTexT: An Efficient Hourglass Transformer with Modality-Guided Dynamic Token Merge for Document Understanding." International Joint Conference on Artificial Intelligence, 2023.](https://mlanthology.org/ijcai/2023/zhai2023ijcai-fast/) doi:10.24963/IJCAI.2023/585

BibTeX

@inproceedings{zhai2023ijcai-fast,
  title     = {{Fast-StrucTexT: An Efficient Hourglass Transformer with Modality-Guided Dynamic Token Merge for Document Understanding}},
  author    = {Zhai, Mingliang and Li, Yulin and Qin, Xiameng and Yi, Chen and Xie, Qunyi and Zhang, Chengquan and Yao, Kun and Wu, Yuwei and Jia, Yunde},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year      = {2023},
  pages     = {5269-5277},
  doi       = {10.24963/IJCAI.2023/585},
  url       = {https://mlanthology.org/ijcai/2023/zhai2023ijcai-fast/}
}