TL;DR
This paper introduces TokenFD, the first token-level visual foundation model specifically designed for text-image tasks, and TokenVL, a multimodal large language model (MLLM) built upon it. By aligning visual and language information at the token level, they achieve significant improvements in document understanding tasks, outperforming existing models.
What Problem Does This Paper Address?
The proliferation of multimodal large language models (MLLMs) has led to the widespread adoption of visual foundation models (VFMs) as their image encoders. However, VFMs trained with image-level supervision struggle with tasks requiring fine-grained understanding of text-rich images, such as document analysis. These models often make fundamental prediction errors when dealing with dense, small texts. Existing approaches to bridge this gap, like using multiple VFMs or complex combinations, are often inefficient and inflexible. The paper identifies a critical need for a unified, token-level VFM that can effectively handle the nuances of text-image understanding.
Methods
The core innovation is TokenFD, a token-level visual foundation model. It's trained using a novel "image-as-text" alignment strategy. This involves:
- TokenIT Dataset: A new dataset comprising 20 million images and 1.8 billion token-mask pairs, where each BPE token from text transcriptions is precisely aligned with its corresponding pixel mask in the image.
- Token-level Alignment: TokenFD aligns token-level visual embeddings (derived from mean pooling over token masks) with token-level language embeddings. This is achieved through a simplified training objective that encourages matching pairs to align in a shared semantic space.
- TokenVL MLLM: Built upon TokenFD, TokenVL is a multimodal LLM designed for document understanding. It incorporates a "LLM-guided Token Alignment" stage, where language tokens are explicitly aligned with their corresponding spatial image tokens using the BPE token masks. This complements the implicit semantic alignment achieved through standard VQA training.
Datasets
- TokenIT: A newly introduced dataset consisting of 20 million images and 1.8 billion token-mask pairs. It's curated from various sources including natural scene text, documents, tables, charts, and GUIs, with precise BPE token-to-mask alignments.
- Evaluation Datasets: The paper evaluates on a wide range of existing benchmarks for text segmentation, visual question answering (VQA), and text retrieval, including OCRBench, DocVQA, InfoVQA, ChartQA, TextVQA, and others.
Key Insights and Ideas
- Token-level supervision is crucial for text-image tasks: The paper strongly suggests that image-level supervision is insufficient for tasks involving dense text. Aligning visual and language information at the token level unlocks a new level of understanding.
- "Image-as-text" at the token level is a powerful paradigm: By treating visual tokens as analogous to text tokens, the model can leverage the strengths of LLMs for visual understanding in a more direct and effective way.
- Explicit token alignment in LLMs enhances understanding: The TokenVL model's explicit spatial alignment of language tokens with visual tokens, beyond standard VQA training, significantly improves performance, particularly for tasks requiring precise localization and understanding of text within images.
- Unified foundation model simplifies downstream adaptation: TokenFD's design as a general-purpose token-level VFM allows it to be seamlessly integrated into various downstream tasks and MLLMs, offering flexibility and improved performance.
Key Results
- TokenFD: Demonstrates significant improvements in zero-shot and linear probe text segmentation tasks, outperforming models like CLIP and SAM by substantial margins (e.g., 18.78% higher average score in zero-shot).
- TokenVL:
- Achieves state-of-the-art performance on the OCRBench benchmark, with the 8B model reaching a score of 860, outperforming existing MLLMs by up to 38%.
- Shows strong performance gains on various document understanding benchmarks, with TokenVL-2B achieving an average gain of 13.34% on ten VQA tasks.
- The token alignment strategy in TokenVL leads to improved text recognition performance and a notable gain in VQA performance.
Limitations and Future Work
- Computational Cost: While TokenFD is designed to be more efficient than combining multiple VFMs, training large-scale token-level models still requires significant computational resources.
- Generalization: The paper focuses on text-image tasks. While TokenFD is presented as a general foundation model, its full potential across a broader range of visual tasks is not extensively explored.
- Future Directions: The authors express hope that their products (TokenIT, TokenFD, TokenVL) will serve as reproducible baselines for future research. They suggest that further improvements can be made through more effective training strategies or additional architectural designs.
Summary updated