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

StrucTexTv3: An Efficient Vision-Language Model for Text-rich Image Perception, Comprehension, and Beyond

Pengyuan Lyu, Yulin Li, Hao Zhou, Weihong Ma, Xingyu Wan, Qunyi Xie, Liang Wu, Chengquan Zhang, Kun Yao, Errui Ding, Jingdong WangarXiv 2024

Abstract

Text-rich images have significant and extensive value, deeply integrated into various aspects of human life. Notably, both visual cues and linguistic symbols in text-rich images play crucial roles in information transmission but are accompanied by diverse challenges. Therefore, the efficient and effective understanding of text-rich images is a crucial litmus test for the capability of Vision-Language Models. We have crafted an efficient vision-language model, StrucTexTv3, tailored to tackle various intelligent tasks for text-rich images. The significant design of StrucTexTv3 is presented in the following aspects: Firstly, we adopt a combination of an effective multi-scale reduced visual transformer and a multi-granularity token sampler (MG-Sampler) as a visual token generator, successfully solving the challenges of high-resolution input and complex representation learning for text-rich images. Secondly, we enhance the perception and comprehension abilities of StrucTexTv3 through instruction learning, seamlessly integrating various text-oriented tasks into a unified framework. Thirdly, we have curated a comprehensive collection of high-quality text-rich images, abbreviated as TIM-30M, encompassing diverse scenarios like incidental scenes, office documents, web pages, and screenshots, thereby improving the robustness of our model. Our method achieved SOTA results in text-rich image perception tasks, and significantly improved performance in comprehension tasks. Among multimodal models with LLM decoder of approximately 1.8B parameters, it stands out as a leader, which also makes the deployment of edge devices feasible. In summary, the StrucTexTv3 model, featuring efficient structural design, outstanding performance, and broad adaptability, offers robust support for diverse intelligent application tasks involving text-rich images, thus exhibiting immense potential for widespread application.

Introduction

Text-rich images, such as documents, charts, and complex street scenes, are ubiquitous in modern information systems. Understanding these images requires a dual capability: perception (accurately reading text) and comprehension (reasoning about the extracted information). Current Multimodal Large Language Models (MLLMs) often struggle with these tasks due to low input resolutions (e.g., 224x224) that render small text illegible. While "sliding window" approaches attempt to mitigate this, they often sacrifice global context, leading to semantic incoherence.

StrucTexTv3, developed by Baidu Inc., addresses these challenges through an efficient 1.8B parameter architecture optimized for high-resolution (1600x1600) processing. By bridging the gap between perception and comprehension, it provides a robust solution for edge-device deployment.

Architecture and Methodology

The model's efficiency stems from three core components:

  1. Visual Encoder: A Swin-Large transformer is utilized for its hierarchical structure and shifted windowing scheme, which efficiently handles high-resolution inputs up to 1600x1600 pixels.
  2. Multi-Granularity Token Sampler (MG-Sampler): This component extracts features from multiple stages of the encoder, compressing them into a fixed sequence of 512 tokens. This allows the model to capture both fine-grained character details and global layout structures.
  3. LLM Decoder: A 1.8B parameter transformer decoder serves as the reasoning engine, augmented with specialized coordinate tokens for precise spatial reasoning.
Overview of StrucTexTv3 tasks including text spotting, document parsing, and chart parsing.

Data and Instruction Learning

To train StrucTexTv3, the researchers curated TIM-30M, a dataset of 30 million high-quality text-rich images. This dataset is split into 25 million perception-focused images (for OCR and parsing) and 5 million comprehension-focused images (for VQA and KIE). The model is trained using instruction learning, enabling it to perform a wide variety of tasks—such as "Convert this chart to JSON" or "Translate the sign in this image"—within a unified framework.

Performance and Results

StrucTexTv3 achieves state-of-the-art results across several benchmarks, demonstrating that resolution is a critical factor for OCR accuracy.

  • Document Parsing: Reaches 95-96% accuracy in Chinese and English, outperforming models like Kosmos-2.5.
  • Chart Understanding: Scores 70.8% on ChartQA, rivaling much larger 13B models.
  • Key Information Extraction (KIE): Shows significant improvements on datasets like FUNSD, achieving an F1 score of 55.7.
Examples of Document-Oriented Visual Question Answering (VQA) handled by StrucTexTv3.

Conclusion

StrucTexTv3 demonstrates that a compact 1.8B parameter model, when paired with high-resolution input and multi-granularity sampling, can outperform much larger general-purpose models in specialized text-rich domains. This efficiency makes high-end document AI feasible for edge devices like phones and tablets. Future work will focus on extending the context window for multi-page documents and improving general reasoning capabilities for AGI-like tasks.

Summary updated

BibTeX
@misc{lyu2024structextv,
  author = {Pengyuan Lyu and Yulin Li and Hao Zhou and Weihong Ma and Xingyu Wan and Qunyi Xie and Liang Wu and Chengquan Zhang and Kun Yao and Errui Ding and Jingdong Wang},
  title = {{StrucTexTv3: An Efficient Vision-Language Model for Text-rich Image Perception, Comprehension, and Beyond}},
  year = {2024},
  eprint = {2405.21013},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.21013},
}
Figure