arXiv:2610.21327cs.AIOct 2026

Manuscript Offprint

arXiv:2610.21327

DocPilot: Interactive Agent Orchestration and Training for Long Visual Document Understanding

Zhuowen Liang, Xiaotian Lin, Yuyu Luo, Haixun Wang, Nan Tang

ABSTRACT

Multimodal long-document question answering requires models to seek sparse evidence across pages and modalities, understand heterogeneous document content, and reason over the collected evidence. Even advanced vision-language models (VLMs) can overlook sparse evidence and struggle with cross-modal reasoning in a single pass. Existing document agents further introduce multi-step interaction, but some still rely on predefined workflows or coarse-grained actions, limiting the flexibility and granularity of document reasoning. We introduce DOCPILOT, an agentic document framework that supports expressive orchestration and makes complex document solving learnable by small language models (SLMs). DOCPILOT orchestrates evidence seeking through page-level navigation and fine-grained evidence localization, and integrates local visual inspection, code-based numerical reasoning, and cross-modal reasoning for multimodal understanding. To transfer these capabilities to small models, we propose curriculum-based agentic training that progresses from single-ability learning to adaptive orchestration through supervision from data-grounded reasoning traces and executable interaction trajectories. Across MMLongBench-Doc, DocBench, FinRAGBench-V, and MADQA, DOCPILOT achieves strong gains with frontier VLM backbones, while DOCPILOT-4B delivers competitive performance against substantially larger models, demonstrating strong effectiveness and generalization across diverse long-document reasoning settings. The code is available at https://github.com/HKUSTDial/DocPilot.

1 INTRODUCTION

Multimodal long-document question answering (DocVQA) is a fundamental problem in real-world document intelligence, with applications in financial analysis, scientific literature, legal or compliance

*Corresponding author: Nan Tang (E-mail: nantang@hkust-gz.edu.cn)

(a)

Figure

(b)

Figure 2: Performance of our proposed DOCPILOT on MMLongBench-Doc: (a) competitive accuracy with only 4B parameters; (b) performance gains with Gemini-2.5-Pro as the backbone.

review, and enterprise knowledge management (Liu et al., 2025; Mathew et al., 2021). Unlike text-only QA or single-image understanding, real documents contain heterogeneous information sources, including paragraphs, tables, charts, figures, and complex layouts. Answering questions over such documents often requires connecting evidence distributed across multiple pages/documents and modalities, remaining challenging even for advanced vision-language models (VLMs) (Qwen Team, 2026; ClaudeTeam, 2025; OpenAITeam, 2025; Comanici et al., 2025).

Human readers typically follow a coarse-to-fine reading process: they skim for a global view, selectively inspect relevant pages or regions, and revisit evidence to verify their conclusions (Pirolli & Card, 1999; Keshav, 2007; Rayner, 1998). This motivates modeling long-document QA as an iterative process supported by two core capabilities: evidence seeking and multimodal understanding. Evidence seeking identifies information needs, locates relevant evidence across documents, pages, and regions, and guides further search when evidence is insufficient. Multimodal understanding involves interpreting heterogeneous document elements and reasoning over their relationships.

Existing approaches remain limited along these two dimensions. For multimodal understanding, OCR-based pipelines convert documents into textual or structural representations (Xu et al., 2020), potentially losing visual cues and propagating parsing errors. Long-context VLMs directly process page-image sequences (Liu et al., 2026; Ma et al., 2024), but face high computational costs, context limits, and the lost-in-the-middle effect. Retrieval-augmented generation (RAG) targets evidence seeking by retrieving relevant pages or passages (Saad-Falcon et al., 2024; Cho et al., 2024; Faysse et al., 2025), but conventional static retrieval may overlook evidence dispersed across pages and modalities and lacks the flexibility to adapt to evolving information needs during reasoning.

Recent agentic document frameworks extend static retrieval with multi-step document interactions, but remain limited in two ways. First, predefined workflows (Han et al., 2025; Jain et al., 2025; Zhu et al., 2026) limit the flexibility to adapt reasoning paths to intermediate observations. Second, some agentic systems mainly rely on coarse-grained actions: DocDancer (Zhang et al., 2026a) models document interaction through SEARCH and READ, while Doc-V* (Zheng et al., 2026) adopts an OCR-free VLM-based paradigm centered on page-level retrieval and reading. As illustrated in Fig. 1, complex DocVQA requires adaptive evidence seeking to locate the map and supporting evidence across pages, and fine-grained multimodal understanding to identify the leading state, compute the reduction in cost per GW, and check the efficiency criterion. These coupled requirements motivate our agent orchestration framework, DOCPILOT, whose flexible composition of these operations yields substantial gains on MMLongBench-Doc (Ma et al., 2024), as shown in Fig. 2.

Despite their strong reasoning capabilities, LLM-based document agents can be costly and privacy-sensitive in practical deployment, motivating small language models (SLMs) for efficient, on-premise inference (Liang et al., 2026a; Li et al., 2026). However, training compact models to master the complex orchestration required for document reasoning remains challenging. Existing approaches based on coarse-grained interactions (Zhang et al., 2026a), simplify the interaction structure but leave substantial multimodal reasoning implicit within each action. Consequently, SLMs may imitate action sequences without mastering the capabilities required for reliable execution. Finer-grained actions facilitate explicit supervision of these capabilities, but increase the complexity of adaptive orchestration. Reconciling these demands in SLM-based document agents motivates our objective:

A agentic document framework should not only support expressive orchestration, but also turn the complex document-solving process into a learnable objective for SLMs.

To this end, we introduce DOCPILOT, a trainable interactive document agent 1^{1} for multimodal long-document QA. We model heterogeneous document content as a unified multimodal environment, over which DOCPILOT orchestrates three complementary capabilities: (i) adaptive evidence seeking over page-level visual cues and OCR-derived structured representations, guided by intermediate state; (ii) fine-grained multimodal understanding, supported by specialized operations for local visual inspection, and code-based numerical reasoning; and (iii) iterative refinement via answer-grounding verification, enabling self-correction. As illustrated in Fig. 2 (a), with only 4B parameters, DOCPILOT achieves performance competitive with much larger proprietary models. This performance is enabled by a curriculum-based agentic training paradigm that mitigates reward sparsity through progressive capability learning. The curriculum proceeds in two stages: single-ability supervised fine-tuning (SFT) establishes core document interaction capabilities, while multi-ability agentic training learns to adaptively compose them according to intermediate observations. To address trajectory scarcity, we develop a data-grounded synthesis pipeline that provides high-quality, executable interaction trajectories for this training process. In summary, our key contributions are three-fold.

  1. Agentic Orchestration. We introduce DOCPILOT, a comprehensive agent orchestration framework for long visual document QA, modeling heterogeneous documents as a unified environment for adaptive evidence seeking, fine-grained multimodal understanding, and iterative refinement.

  2. Agentic Training. We develop a curriculum-based agentic training paradigm with data-grounded trajectory synthesis, enabling compact models to progressively acquire and orchestrate document-solving capabilities through single-ability fine-tuning and multi-ability orchestration learning.

  3. Empirical Validation. Experiments on MMLongBench-Doc, DocBench, FinRAGBench-V, and MADQA demonstrate substantial gains across diverse baselines, while DOCPILOT-4B achieves competitive performance against substantially larger proprietary models with only 4B parameters. Analyses such as evidence localization and training ablations, further substantiate robustness.