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

Docopilot: Improving Multimodal Models for Document-Level Understanding

Yuchen Duan, Zhe Chen, Yusong Hu, Weiyun Wang, Shenglong Ye, Botian Shi, Lewei Lu, Qibin Hou, Tong Lu, Hongsheng Li, Jifeng Dai, Wenhai Wang

Introduction

While Multimodal Large Language Models (MLLMs) have achieved significant success in single-image tasks, they often struggle with long-form, multi-page document understanding. Tasks such as analyzing a 50-page PDF require more than simple Optical Character Recognition (OCR); they necessitate tracking cross-page dependencies, interpreting hierarchical structures, and maintaining a robust visual memory across long contexts.

Traditional approaches frequently rely on Retrieval-Augmented Generation (RAG) to manage long documents by feeding only relevant snippets to the model. However, RAG introduces context fragmentation, risks error accumulation if retrieval fails, and imposes a significant "latency tax." Docopilot addresses these challenges by introducing a native multimodal model and a massive, high-quality dataset (Doc-750K) designed to process entire documents directly.

The Doc-750K Dataset

The core of Docopilot's training is Doc-750K, a large-scale dataset comprising 758,000 QA pairs, 3.1 million images, and 5.2 billion text tokens. Sourced from high-quality academic repositories like Sci-Hub, arXiv, and OpenReview, the dataset includes a diverse range of tasks, from human-written reviews to structurally derived challenges like section translation.

The Doc-750K data engine pipeline, from source collection to structured QA pair construction.

To facilitate native understanding, the authors developed a pipeline that extracts content in two primary formats:

  1. Interleaved Text-Image: Mimics human reading by placing images exactly where they are referenced in the text.
  2. Multi-Image Format: Renders every page as an image to preserve original visual layouts and pagination.

Using GPT-4o, the authors generated complex, structurally aware question-answer pairs that require the model to synthesize information across different pages and modalities (e.g., relating a table on one page to a chart on another).

Engineering for Long-Context Efficiency

Processing thousands of images and tokens is computationally demanding. Docopilot employs three key technical optimizations to maintain efficiency:

  • Multimodal Data Packing: Concatenates multiple samples into single sequences to maximize GPU utilization.
  • Ring Attention: Partitions long sequences across multiple GPUs, enabling the model to handle massive context windows without memory exhaustion.
  • Liger Kernel: Utilizes specialized GPU kernels to speed up training through kernel fusion and in-place operations.

Key Results and Evaluation

Docopilot was evaluated against rigorous benchmarks, including MP-DocVQA and the Multimodal Needle In A Haystack (MM-NIAH) test. The results demonstrate that native document understanding significantly outperforms RAG-based methods in both accuracy and efficiency.

Performance comparison on the MM-NIAH benchmark: Docopilot-8B achieves superior accuracy with significantly lower latency than larger baselines.

As shown in the evaluation results, Docopilot-8B achieved a 61.8% accuracy on the MM-NIAH test, representing a +19.9% improvement over the InternVL2-8B baseline. Notably, Docopilot-8B also surpassed the performance of the much larger InternVL2-26B while requiring less than 31% of the inference latency. Even the smaller Docopilot-2B model showed performance comparable to models ten times its size, validating the effectiveness of the Doc-750K training recipe.

Discussion and Future Work

The success of Docopilot suggests that for document-level understanding, data quality and long-context architecture are more critical than raw parameter count. By training on structural proxy tasks—such as writing abstracts or captioning figures based on surrounding text—the model learns the underlying logic of documents rather than just character recognition.

Future work will focus on expanding the dataset beyond academic papers to include legal contracts and financial records, as well as further optimizing hardware utilization to handle even higher-resolution multi-page inputs.

Summary updated

BibTeX
@inproceedings{duan2025docopilot,
  author = {Yuchen Duan and Zhe Chen and Yusong Hu and Weiyun Wang and Shenglong Ye and Botian Shi and Lewei Lu and Qibin Hou and Tong Lu and Hongsheng Li and Jifeng Dai and Wenhai Wang},
  title = {{Docopilot: Improving Multimodal Models for Document-Level Understanding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00381},
}
Figure