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

TextLLM:基于动态分辨率的文档多模态大模型

Biao Yang, Yuliang Liu, Qiang Liu, Yingying ZhuJournal of Image and Graphics 2025

Abstract

Document intelligence aims to automate the processing of textual information from forms, tables, and invoices. While traditional methods rely on external Optical Character Recognition (OCR) tools, recent Multimodal Large Language Models (MLLMs) offer an OCR-free alternative. However, these models struggle with high-resolution images and the resulting explosion of visual tokens. This paper introduces TextLLM, a novel MLLM that utilizes dynamic resolution slicing, a learnable feature compression algorithm, and prompt-aware feature selection. TextLLM achieves state-of-the-art results on benchmarks like DocVQA (82.4) and OCRBench (601) while maintaining high computational efficiency.

Introduction

Processing high-resolution document scans is critical for legibility, yet it creates a "token wall" for Large Language Models (LLMs). Slicing a high-res image into many patches generates a massive sequence of visual tokens, leading to high memory usage and computational redundancy. TextLLM addresses these challenges by intelligently managing how visual information is encoded and passed to the LLM, ensuring that only the most relevant features are processed.

Methodology

Architecture Overview

TextLLM integrates several dynamic modules to process document images efficiently. The pipeline begins with dynamic resolution slicing, followed by a visual encoder and a series of refinement modules before the features reach the LLM.

The overall architecture of TextLLM, illustrating the flow from dynamic resolution slicing to the final LLM response.

1. Dynamic Resolution Slicing

Instead of resizing documents to a fixed square, TextLLM calculates an optimal grid (e.g., 1x3 or 2x2) based on the original aspect ratio. It slices the image into 448x448 patches, preserving the spatial integrity of complex layouts like tables and charts.

2. Dynamic Feature Compression

To reduce the token count without losing critical information, TextLLM employs a learnable compression rate. Using the Gumbel Softmax trick, the model learns to select the most important features based on cosine similarity and aggregates them, allowing the model to adapt its information density per patch.

Detailed view of the Dynamic Feature Compression module, highlighting the learnable compression rate and feature selection process.

3. Prompt-Aware Visual Feature Selection

TextLLM utilizes the LLM's internal attention mechanisms to identify which visual tokens are most relevant to the user's specific query. By filtering out irrelevant tokens and retaining only the top 70% of prompt-related features (plus surrounding context), the model significantly reduces the sequence length passed to the LLM.

Results and Discussion

TextLLM was evaluated against several leading models across diverse document understanding tasks. It demonstrated superior performance in:

  • Document QA: Achieved 82.4 on DocVQA.
  • Table/Chart Understanding: Scored 37.6 on WTQ and 70.8 on ChartQA.
  • Comprehensive Capability: Reached 601 on OCRBench, proving its robustness in raw OCR and structural understanding.

Notably, TextLLM achieved these results with significantly lower computational overhead. By reducing the average visual token count from approximately 1816 to 760, it outperformed models like "Monkey" while using roughly 40% fewer tokens.

Conclusion

TextLLM presents a powerful, OCR-free solution for document intelligence. By combining dynamic resolution with intelligent feature compression and prompt-aware selection, it bridges the gap between high-resolution visual requirements and the computational constraints of large language models. Future work will focus on extending these capabilities to multi-page and extremely long-form documents.

Summary updated

BibTeX
@article{yang2025textllm,
  author = {Biao Yang and Yuliang Liu and Qiang Liu and Yingying Zhu},
  title = {{TextLLM:基于动态分辨率的文档多模态大模型}},
  journal = {Journal of Image and Graphics},
  year = {2025},
  doi = {10.11834/jig.240608},
}
Figure