A Token-level Text Image Foundation Model for Document Understanding
Tongkun Guan, Zining Wang, Pei Fu, Zhengtao Guo, Wei Shen, Kai Zhou, Tiezhu Yue, Chen Duan, Hao Sun, Qianyi Jiang, Junfeng Luo, Xiaokang Yang
TL;DR
This work addresses the challenge of fine-grained text understanding in images containing dense and small text by introducing a token-level visual foundation model (TokenFD) trained on the TokenIT dataset (20M images, 1.8B token-mask pairs). It then builds TokenVL, a document-focused multimodal LLM that combines TokenFD with LLM-guided token alignment and supervised instruction tuning to excel in VQA-based document understanding, achieving strong results on OCRBench and documented VQA benchmarks. Ablation studies confirm that explicit token-level alignment and a learnable token abstractor are critical for performance. Overall, TokenIT/TokenFD/TokenVL establish a scalable, token-granularity pathway to unify visual and textual representations for robust document perception, understanding, and reasoning.
Abstract
In recent years, general visual foundation models (VFMs) have witnessed increasing adoption, particularly as image encoders for popular multi-modal large language models (MLLMs). However, without semantically fine-grained supervision, these models still encounter fundamental prediction errors in the context of downstream text-image-related tasks, i.e., perception, understanding and reasoning with images containing small and dense texts. To bridge this gap, we develop TokenOCR, the first token-level visual foundation model specifically tailored for text-image-related tasks, designed to support a variety of traditional downstream applications. To facilitate the pretraining of TokenOCR, we also devise a high-quality data production pipeline that constructs the first token-level image text dataset, TokenIT, comprising 20 million images and 1.8 billion token-mask pairs. Furthermore, leveraging this foundation with exceptional image-as-text capability, we seamlessly replace previous VFMs with TokenOCR to construct a document-level MLLM, TokenVL, for VQA-based document understanding tasks. Finally, extensive experiments demonstrate the effectiveness of TokenOCR and TokenVL. Code, datasets, and weights will be available at https://github.com/Token-family/TokenFD.
