TL;DR
DocPilot is a new agentic framework designed to master long, multimodal documents by breaking down complex reasoning into fine-grained, interactive steps. By using a curriculum-based training approach, the researchers enabled a compact 4B-parameter model to outperform much larger proprietary models on challenging document-based benchmarks.
What Problem Does This Paper Address?
Answering questions about a 60-page financial report or a dense scientific paper is a "needle in a haystack" problem. Even the most advanced Vision-Language Models (VLMs) struggle because they often try to process the entire document in a single pass, leading to "lost-in-the-middle" effects or missed visual details in charts and tables.
While previous "document agents" attempted to solve this by searching and reading, they were often limited by coarse-grained actions (just "search" and "read") or rigid, predefined workflows. They lacked the flexibility to zoom in on a specific chart, write code to calculate a percentage, or double-check their own work before answering. Furthermore, training smaller, more efficient models to handle these complex "agentic" behaviors has historically been very difficult due to a lack of high-quality training data.
Methods
The authors introduce DocPilot, which treats document understanding as an iterative, closed-loop process. The framework relies on two main pillars:
- Expressive Orchestration: Instead of simple search, DocPilot uses six specialized actions:
<Navigate>: Scans page thumbnails to find relevant sections.<Extract>: Pulls structured text, tables, or figures from a page.<Focus>: Performs local visual inspection (zooming/cropping) on specific elements.<Solve>: Generates and executes Python code for precise numerical reasoning.<Analyze>: A self-correction step that verifies if the evidence collected so far is sufficient.<Answer>: Synthesizes the final response.- Curriculum-based Agentic Training: To teach these skills to a Small Language Model (SLM), the authors used a two-stage curriculum (see Figure 4):
- Stage 1 (Single-Ability SFT): The model learns individual tools (e.g., how to zoom or how to write code).
- Stage 2 (Multi-Ability Agentic Training): The model learns to orchestrate these tools into a full reasoning trajectory.
To power this training, they synthesized DocAgent-Instruct-40K, a dataset of 40,000 high-quality reasoning traces generated by a massive "teacher" model (Qwen3.5-397B).
Datasets
The researchers evaluated DocPilot across four diverse benchmarks:
- MMLongBench-Doc: 1,082 questions over 135 long PDFs with rich multimodal layouts.
- DocBench: A general-purpose benchmark spanning five domains (Academia, Finance, etc.).
- FinRAGBench-V: Focused on realistic financial document understanding with dense tables and charts.
- MADQA: A benchmark for cross-document reasoning, requiring the agent to navigate multiple files to find an answer.
Key Insights and Ideas
- Fine-Grained Actions Matter: Ablation studies showed that removing the
<Focus>tool (zooming) caused a massive drop in chart and figure accuracy (7.2 and 11.9 points, respectively). Coarse reading isn't enough for small labels. - The Power of Python: Using
<Solve>to execute code for math, rather than relying on the model's internal arithmetic, significantly boosted performance on tabular data. - Curriculum is Key for SLMs: Training on multi-step trajectories directly is too hard for small models. Learning "single abilities" first provides the necessary foundation for complex orchestration.
- Self-Correction Works: The
<Analyze>step allows the model to realize it has a "gap" in its evidence and go back to navigate or extract more information before committing to an answer.
Key Results
The most striking result is the efficiency of the DocPilot-4B model. Despite its small size, it delivered competitive performance against models many times its size:
- Beating Giants: DocPilot-4B outperformed vanilla versions of Gemini-2.5-Pro and GPT-5.4 on several benchmarks.
- Massive Gains: Compared to a standard 4B model (Qwen3.5-4B), DocPilot achieved absolute accuracy gains of 4.2% on MMLongBench-Doc and 11.0% on DocBench.
- Superior Localization: DocPilot achieved much higher precision in finding evidence compared to traditional retrieval methods, retrieving fewer pages while maintaining higher recall (see Figure 6).
Limitations and Future Work
While DocPilot is highly effective, the authors noted that its performance is still somewhat sensitive to the underlying "backbone" model. For instance, while it excelled on most document types, it saw slight declines on brochures when using certain backbones.
Future work includes exploring self-evolution, where the model learns from its own successful and failed trajectories to further refine its orchestration strategies without needing a larger teacher model. The authors also suggest developing a "semantic layer" to help the agent consolidate knowledge across extremely large document collections.
Summary updated