TL;DR
HierDoc introduces a two-stage hierarchical framework for long-document visual question answering (DocVQA) that routes evidence from full pages down to specific semantic regions. By optimizing separate, answer-agnostic page and region selection policies using Group Relative Policy Optimization (GRPO), it bridges the gap between coarse page retrieval and fine-grained visual element extraction. This approach achieves state-of-the-art performance across multiple long-document benchmarks while keeping the evidence pipeline highly interpretable and auditable.
What Problem Does This Paper Address?
Document Visual Question Answering (DocVQA) is shifting from single-page analysis to multi-page, long-document reasoning (such as massive PDFs and complete slide decks). In these scenarios, the evidence required to answer a question is often highly sparse, buried across dozens of pages and within specific visual elements like charts or tables.
Existing methods typically suffer from a granularity mismatch:
- Page-centric methods (like visual retrievers) excel at finding the right pages but leave fine-grained evidence localization implicit.
- Region-centric methods can zoom into specific elements but assume the relevant pages have already been filtered and supplied.
Because these two granularities remain disconnected, current systems lack a unified, successive evidence-routing policy. HierDoc addresses this gap by formulating long-document evidence acquisition as a two-stage set prediction problem: first finding the right pages, and then isolating the precise semantic regions within them.
Methods
HierDoc breaks down the long-document VQA pipeline into three distinct stages:
- Page Routing: A trainable page policy evaluates the document in fixed-size windows to select candidate evidence pages. It includes a "heuristic reflection" step to prune redundant pages if the initial selection is too large.
- Region Routing: The selected pages are processed by a layout parser (MinerU2.5-Pro) to extract semantic regions (paragraphs, tables, figures, captions). A trainable region policy then selects the specific region IDs relevant to the question.
- Grounded Answering: A downstream Multimodal Large Language Model (MLLM) receives the full selected pages (preserving global layout context) along with the specific region crops and OCR/table text (highlighting local evidence) to generate the final answer.
Novelty
Both the page and region policies are answer-agnostic and optimized independently using Group Relative Policy Optimization (GRPO). Instead of relying on end-to-end language generation rewards, they use custom structured-set rewards tailored to their specific granularities (balancing recall, precision, and F1-score against gold evidence annotations).
Datasets
The framework was evaluated on five multi-page and long-document VQA benchmarks:
- MMLongBench-Doc: Long, visually rich PDFs requiring cross-page evidence aggregation.
- LongDocURL: Focuses on numerical reasoning and cross-element localization in long documents.
- SlideVQA: Question answering over complete slide decks.
- PaperTab & FetaTab: Table-oriented subsets of UDA-QA derived from academic papers and Wikipedia, respectively.
The training data utilized subsets from MMDocIR (for page routing) and ViDoRe-v3 (for region routing).
Key Insights and Ideas
- Coarse-to-Fine Factorization: Separating page selection from region selection allows each policy to be optimized at its own granularity without the burden of simultaneous answer generation.
- Global Context + Local Prominence: Feeding the final answer model both the full page and the cropped regions outperforms using either alone. The full page preserves layout structure and cross-element relationships, while the crops boost the visual prominence of local evidence.
- Reflection Pruning: The heuristic reflection mechanism successfully reduces visual context size by filtering out redundant pages/regions accumulated across independent processing windows, without needing an additional training objective.
Key Results
HierDoc achieved state-of-the-art or highly competitive performance among open-weight systems across the evaluated benchmarks:
- When using Qwen3-VL-8B-Instruct as the answer model, HierDoc delivered relative accuracy improvements of 27.36% on MMLongBench-Doc and 16.87% on LongDocURL compared to the strong Doc-$V^*$ baseline.
- Controlled ablation studies showed that adding the region routing stage improved final QA accuracy by 5.51% and F1 by 4.82% over a page-only baseline.
Limitations and Future Work
The authors acknowledge several key limitations in the current architecture:
- Irreversible Error Propagation: Because it is a strict cascade, any evidence page missed during the first stage (Page Routing) cannot be recovered during Region Routing.
- Parser Dependency: The region routing quality is heavily bounded by the upstream layout parser (MinerU). Errors in layout detection or OCR noise directly constrain the available action space.
- Independent Optimization: The routing policies are trained using set-level rewards rather than end-to-end feedback from the final answer quality, meaning improvements in retrieval metrics might not always translate perfectly to better answers.
Future Directions: The authors suggest incorporating uncertainty-aware recovery mechanisms across routing stages and exploring joint optimization of evidence acquisition directly with grounded answering.
Summary updated