D2-ScaleAgent: Dual-Dimensional Scaling for Long Document Understanding

Hao Zhang, Longrong Yang, Lunhao Duan, Ziyang Wang, Qing-Guo Chen, Shanshan ZhaoarXiv 2026

TL;DR

D2-ScaleAgent is a novel multi-modal agentic framework designed to solve the "evidence insufficiency problem" in long, visually rich document understanding. By replacing static "retrieve-then-read" pipelines with a Verifier-driven dynamic routing loop, it scales outward for broader retrieval and inward for deeper reasoning based on query difficulty. This adaptive approach achieves state-of-the-art performance across multiple complex document QA benchmarks.

What Problem Does This Paper Address?

Answering questions from long, visually rich documents—such as financial reports, legal filings, and scientific papers—is a massive challenge for Large Vision-Language Models (LVLMs). These documents contain complex layouts, charts, and tables that require fine-grained visual processing, yet LVLMs are constrained by limited context windows.

Current solutions generally fall into two camps: multi-modal Retrieval-Augmented Generation (RAG) or multi-agent systems. However, both typically rely on fixed, static workflows (e.g., fetching a rigid "Top-K" number of pages and reading them once). The authors argue that long-document QA failures stem from an Evidence Insufficiency Problem, which manifests in two ways:

  1. Breadth Insufficiency: The system fails to locate all the relevant pages scattered across a massive document.
  2. Depth Insufficiency: The system finds the right page but performs a superficial reading, missing precise numerical values or localized layout details.

Methods

Instead of treating document analysis as a linear pipeline, D2-ScaleAgent reformulates it as an on-demand compute routing problem. The system maintains a global Evidence Bank that serves as its dynamic working memory, tracking page-level, region-level, and atomic-level evidence.

The core of the architecture is a closed loop driven by a Verifier Agent. At each step, the Verifier assesses whether the current evidence is sufficient to answer the user's query. If it detects an "evidence gap," it dynamically routes the computation along two dimensions:

  • Attribute-Guided Retrieval Scaling (Outward): If foundational pages are missing, the agent decomposes the query into multiple attribute-focused keyword phrases. It runs parallel retrievals, fuses the results using a rank-based scoring mechanism, and adaptively prunes the candidate pool until the retrieved set stabilizes.
  • Gap-Aware Reasoning Scaling (Inward): If fine-grained details are missing from the located pages, the system invokes a toolkit of cost-stratified sub-agents:
  • Global Surveyor (Low-cost): Scans pages macroscopically to establish semantic priors.
  • Region Locator (Medium-cost): Isolates critical regions, such as specific tables or charts.
  • Fine-grained Extractor (High-cost): Performs high-resolution precision reading to extract verifiable atomic facts.

This loop repeats iteratively until the Verifier achieves "logical closure," meaning all evidence gaps are resolved, before generating the final answer.

Overview of the D2-ScaleAgent framework, illustrating the Verifier loop, Evidence Bank, Outward Retrieval Scaling, and Inward Reasoning Scaling.

Datasets

The authors evaluated D2-ScaleAgent across six diverse multi-modal long-document benchmarks:

  • MMLongBench-Doc: A benchmark for long-context document understanding with visualizations.
  • LongDocURL: A comprehensive benchmark integrating document understanding, reasoning, and locating.
  • PaperTab & FetaTab: Table-centric document datasets requiring complex data extraction.
  • ViDoSeek: A visual document QA dataset.
  • UniDocBench: A unified benchmark for document-centric multi-modal RAG.

Key Insights and Ideas

  • Compute as a Dynamic Variable: Traditional RAG treats retrieval and reading budgets as fixed constants. D2-ScaleAgent treats compute as a dynamic resource that scales up or down at test time based on the intrinsic difficulty of the query.
  • Explicit Gap Tracking: By forcing the Verifier to output an explicit "gap signal" rather than just a binary correctness score, the system can translate missing information directly into new retrieval intents or targeted extraction tasks.
  • Coarse-to-Fine Efficiency: Deploying high-resolution vision processing across an entire 100-page document is prohibitively expensive. Hierarchically filtering pages through a Surveyor, then a Locator, and finally an Extractor ensures that expensive compute is only spent on high-value document regions.

Key Results

D2-ScaleAgent consistently outperformed traditional RAG and fixed-workflow multi-agent baselines across all evaluated models (including GPT-4o, Gemini-3-flash-preview, Qwen2.5-VL, and Qwen3-VL).

  • End-to-End Accuracy: Using GPT-4o, D2-ScaleAgent achieved an average accuracy of 63.7% across all benchmarks, notably outperforming advanced baselines like MDocAgent (58.3%) and MoLoRAG (53.6%).
  • Ablation Impact: Ablation studies on MMLongBench-Doc revealed that disabling the Verifier-driven loop caused the steepest performance drop (falling from 52.0% to 44.1%), proving that closed-loop verification is critical to preventing premature or hallucinated answers.
  • Better Retrieval Quality: The framework also demonstrated superior retrieval metrics (Recall, Precision, nDCG, and MRR), showing that query decomposition and iterative expansion find relevant pages more effectively than static Top-K methods.
Figure 1: Architecture and performance of our proposed method, D2-ScaleAgent. (a) The framework achieves dual-dimensional scaling through a Verifier agent-driven dynamic routing loop, addressing evidence insufficiency by dynamically scaling outward for retrieval and inward for fine-grained understanding. (b) It shows improve- ments in comprehensive end-to-end QA accuracy across multiple long-document benchmarks, consistently out- performing existing baselines.

Limitations and Future Work

The primary trade-off of D2-ScaleAgent is computational overhead and latency. Because the system relies on an iterative, multi-round routing loop with sequential sub-agent calls, its execution time is significantly longer than standard single-pass models. For example, the end-to-end latency averages 11.89 seconds on ViDoSeek and 16.22 seconds on MMLongBench-Doc using the GPT-4o API.

Consequently, the current architecture is less suited for strict real-time applications. The authors note that future work will focus on optimizing this efficiency trade-off to reduce token usage and latency.

Summary updated

BibTeX
@misc{zhang2026d,
  author = {Hao Zhang and Longrong Yang and Lunhao Duan and Ziyang Wang and Qing-Guo Chen and Shanshan Zhao},
  title = {{D2-ScaleAgent: Dual-Dimensional Scaling for Long Document Understanding}},
  year = {2026},
  eprint = {2608.16417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.16417},
}
Figure