A Bounding Box is Worth One Token: Interleaving Layout and Text in a Large Language Model for Document Understanding
<|reference_start|>A Bounding Box is Worth One Token: Interleaving Layout and Text in a Large Language Model for Document Understanding: Recently, many studies have demonstrated that exclusively incorporating OCR-derived text and spatial layouts with large language models (LLMs) can be highly effective for document understanding tasks. However, existing methods that integrate spatial layouts with text have limitations, such as producing overly long text sequences or failing to fully leverage the autoregressive traits of LLMs. In this work, we introduce Interleaving Layout and Text in a Large Language Model (LayTextLLM)} for document understanding. In particular, LayTextLLM projects each bounding box to a single embedding and interleaves it with text, efficiently avoiding long sequence issues while leveraging autoregressive traits of LLMs. LayTextLLM not only streamlines the interaction of layout and textual data but also shows enhanced performance in Key Information Extraction (KIE) and Visual Question Answering (VQA). Comprehensive benchmark evaluations reveal significant improvements, with a 27.2% increase on KIE tasks and 12.0% on VQA tasks compared to previous state-of-the-art document understanding MLLMs, as well as a 15.1% improvement over other SOTA OCR-based LLMs on KIE tasks.<|reference_end|>
@article{lu2024a,
    title={A Bounding Box is Worth One Token: Interleaving Layout and Text in a
  Large Language Model for Document Understanding},
    author={Jinghui Lu, Haiyang Yu, Yanjie Wang, Yongjie Ye, Jingqun Tang, Ziwei
  Yang, Binghong Wu, Qi Liu, Hao Feng, Han Wang, Hao Liu, Can Huang},
    journal={arXiv preprint arXiv:2407.01976},
    year={2024},
    archivePrefix={arXiv},
    eprint={2407.01976},
    primaryClass={cs.CL cs.AI cs.MM}
}