DocVLM: Make Your VLM an Efficient Reader

Mor Shpigel Nacson, Aviad Aberdam, Roy Ganz, Elad Ben-Avraham, Alona Golts, Yair Kittenplon, Shai Mazor, Ron Litman

Introduction

Vision-Language Models (VLMs) have demonstrated remarkable capabilities in general visual tasks, yet they frequently encounter a "resolution tax" when applied to document understanding. High-resolution input is necessary to capture fine-grained text in dense documents, but this leads to a "token explosion" that increases computational costs and memory requirements. Conversely, low-resolution inputs often fail to resolve small characters, rendering the model "blind" to critical details.

DocVLM, a framework developed by AWS AI Labs, addresses this challenge by integrating Optical Character Recognition (OCR) data into VLMs as a distinct modality. By compressing OCR information into a compact set of learned tokens, DocVLM achieves state-of-the-art performance with significantly reduced token counts.

Architecture and Methodology

The core of DocVLM is a model-agnostic framework that augments existing VLMs with a specialized OCR branch. Unlike traditional methods that simply append OCR text to the prompt, DocVLM preserves spatial context and layout information.

The DocVLM architecture integrates a Vision Module with a specialized OCR Module, distilling information into a compact set of tokens for the LLM Decoder.

The architecture consists of two primary components:

  1. OCR Encoder: Utilizing a DocFormerV2-based encoder, the system processes textual tokens alongside their 2D coordinates (bounding boxes), ensuring that the layout and spatial relationships are maintained.
  2. Query Compression Mechanism: To prevent token bloat, DocVLM employs 64 learnable queries that probe the OCR encoder's output. This distills the dense document information into a fixed, compact set of features, regardless of the original page complexity.

The training process follows a two-stage alignment strategy. First, the model is trained to understand documents using only the compressed OCR features. Second, the vision input is reintroduced, allowing the model to learn the synergy between "reading" (OCR) and "seeing" (visual features like logos and lines).

Performance and Efficiency

DocVLM demonstrates significant improvements across various document-centric benchmarks, particularly in token-constrained environments. By offloading the primary "reading" task to the OCR branch, the vision branch can operate at lower resolutions without sacrificing accuracy.

Performance comparison on DocVQA ANLS vs. Number of Tokens. DocVLM variants achieve high accuracy with significantly fewer tokens than baseline models.

Key results include:

  • Benchmark Superiority: On the DocVQA benchmark, DocVLM improved InternVL2's score from 56.0% to 86.6% at a 448x448 resolution. When applied to Qwen2-VL, it achieved 92.8% ANLS with only 576 tokens, rivaling closed-source models like GPT-4o.
  • Multi-page Scalability: Due to its small token footprint (64 tokens per page), DocVLM scales effectively to multi-page documents. It achieved a state-of-the-art 86.3% ANLS on the MP-DocVQA benchmark, despite being trained primarily on single-page data.
  • Token Efficiency: In models such as LLaVA-OneVision, DocVLM maintained high performance while utilizing up to 80% fewer image tokens compared to standard high-resolution approaches.

Conclusion

DocVLM represents a significant step toward efficient and scalable document understanding. By treating OCR as a first-class modality and employing query compression, it breaks the traditional trade-off between resolution and computational efficiency. Future research may focus on adaptive query counts for varying document complexities and tighter end-to-end integration of the OCR and vision components.

Summary updated

BibTeX
@inproceedings{nacson2025docvlm,
  author = {Mor Shpigel Nacson and Aviad Aberdam and Roy Ganz and Elad Ben-Avraham and Alona Golts and Yair Kittenplon and Shai Mazor and Ron Litman},
  title = {{DocVLM: Make Your VLM an Efficient Reader}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02701},
}
Figure