NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TextSquare: Scaling up Text-Centric Visual Instruction Tuning

Jingqun Tang, Chunhui Lin, Zhen Zhao, Shu Wei, Binghong Wu, Qi Liu, Hao Feng, Yang Li, Siqi Wang, Lei Liao, Wei Shi, Yuliang Liu, Hao Liu, Yuan Xie, Xiang Bai, Can Huang · DOI

Abstract

TextSquare addresses the performance gap between open-source and closed-source Multimodal Large Language Models (MLLMs) in text-centric tasks. By introducing Square-10M, a massive dataset of 10 million high-quality visual instruction-tuning pairs, the authors developed TextSquare. This 8.6B parameter model rivals giants like GPT-4V and Gemini Pro on document and text-rich benchmarks, demonstrating the power of high-quality, reasoning-augmented synthetic data.

Introduction

While Multimodal Large Language Models (MLLMs) have advanced rapidly, a significant performance gap remains between closed-source models (like GPT-4V) and open-source alternatives, particularly in text-centric tasks. These tasks—such as reading charts, understanding dense documents, or parsing receipts—require the model to precisely link visual text with logical reasoning. The primary bottleneck is the lack of large-scale, high-quality instruction-tuning data. Existing datasets are often too small, lack detailed reasoning, or contain "hallucinations" where the model generates information not present in the image.

The Square Pipeline

To overcome data limitations, the authors proposed the Square pipeline, a novel four-step process using a powerful closed-source MLLM (Gemini Pro) to generate high-quality synthetic data:

  1. Self-Questioning: The MLLM analyzes a text-rich image and generates "profound, non-trivial" questions that require deep understanding.
  2. Answering: The MLLM answers these questions using Chain-of-Thought (CoT) prompting to ensure accuracy and logical flow.
  3. Reasoning: The MLLM is prompted to explain why the answer is correct, providing explicit contextual evidence from the image.
  4. Evaluation: A final filtering step uses multi-prompt consistency and model-as-a-judge techniques to discard low-quality or inconsistent pairs.

The resulting model, TextSquare, is built on the InternLM-Xcomposer2 architecture (utilizing an InternLM2-7B backbone) and is fine-tuned at a 700-pixel resolution to capture fine textual details.

The Square-10M Dataset

The core contribution of this work is Square-10M, which contains 3.8 million images collected from diverse sources including natural scenes, charts, tables, receipts, and PDFs. These images are paired with 10 million QA pairs that include detailed reasoning.

Square-10M dataset distribution and token statistics.

As shown in the dataset analysis, Square-10M covers a wide range of domains with significant depth in reasoning tokens, which is crucial for training models to avoid hallucinations and perform complex visual logic.

Experimental Results

TextSquare was evaluated against a comprehensive battery of benchmarks covering document VQA, table/chart understanding, and general scene text tasks.

Comparison of TextSquare with closed-source and open-source models.

Key results include:

  • SOTA Performance: TextSquare set a new standard on OCRBench with a score of 62.2%, becoming the first model in the 10B parameter class to exceed 600 points.
  • Rivaling Closed-Source Models: TextSquare outperformed GPT-4V in 6 out of 10 text-centric benchmarks, including notable gains in ChartQA (+0.9%) and WTQ (+4.2%).
  • General Robustness: It achieved an average of 75.1% across general VQA and hallucination datasets, outperforming previous state-of-the-art open-source models like CogAgent and Monkey.

Discussion and Conclusion

The success of TextSquare highlights several key insights. First, the inclusion of reasoning data ("the power of 'why'") significantly mitigates hallucinations by grounding the model in visual evidence. Second, the authors observed a clear scaling law: model performance is directly proportional to the logarithm of the data volume, suggesting that further scaling of high-quality data will continue to yield improvements.

Despite its success, challenges remain regarding the computational cost of training at this scale and the remaining gap between model performance and human-level reasoning in complex, multi-step document tasks. Future work will explore even larger data scales and more efficient training strategies to bring these capabilities to smaller, edge-compatible models.

Summary updated

BibTeX
@misc{tang2024textsquare,
  author = {Jingqun Tang and Chunhui Lin and Zhen Zhao and Shu Wei and Binghong Wu and Qi Liu and Hao Feng and Yang Li and Siqi Wang and Lei Liao and Wei Shi and Yuliang Liu and Hao Liu and Yuan Xie and Xiang Bai and Can Huang},
  title = {{TextSquare: Scaling up Text-Centric Visual Instruction Tuning}},
  year = {2024},
  eprint = {2404.12803},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.12803},
}
Figure