DocIntent: Answerability-Guided Agentic Restoration for Real-World Document Visual Question Answering

Zihan Huang, Shihang Wu, Junle Liu, Peirong Zhang, Yongxin Shi, Xuhan Zheng, Lianwen JinarXiv 2026

TL;DR

DocIntent is a training-free, agentic restoration framework that enables Multimodal Large Language Models (MLLMs) to intelligently clean up degraded document images before answering questions about them. By focusing on whether an image is "answerable" rather than just visually appealing, it selectively applies restoration tools and automatically rolls back changes that introduce harmful artifacts. This approach significantly boosts both the accuracy and consistency of document visual question answering (VQA) across various open- and closed-source models.

What Problem Does This Paper Address?

When MLLMs encounter real-world documents—like scanned invoices, photographed contracts, or mobile-captured forms—they often struggle due to physical degradations like motion blur, shadows, geometric distortion, and moiré patterns.

An intuitive fix is to run these images through preprocessing or restoration tools first. However, traditional image restoration models are designed to maximize global perceptual quality metrics (like PSNR or SSIM). While a restored image might look cleaner overall to a human, the restoration process can inadvertently introduce local artifacts, blur critical text, or distort numbers, making the document less readable to an AI model. Furthermore, blindly applying a fixed pipeline of tools to every image is computationally expensive and risks accumulating errors.

The authors address a key question: How can we tailor document restoration specifically to the needs of a downstream question-answering task without requiring labor-intensive manual tuning or expensive model retraining?

Figure 1: Comparison between existing real-world doc- ument VQA methods and the proposed DocIntent (bot- tom). The ground truth answer to the question is 212.

Methods

The authors introduce DocIntent, a training-free framework that orchestrates a suite of document restoration tools using the backbone MLLM itself as the decision-maker. Instead of relying on separate, specialized degradation classifiers, DocIntent uses a two-phase cyclic mechanism:

  1. Phase A: Answerability-Guided Restoration (AGRes): The MLLM inspects the degraded image and the user's question. It first judges if the question can be answered directly. If not, it identifies the specific degradation blocking the answer (e.g., a shadow over a total balance number) and invokes the corresponding tool from its toolkit (which includes deblurring, dewarping, deshadowing, appearance enhancement, demoiréing, and rotation).
  2. Phase B: Comparison-Based Review: Once a tool executes, the MLLM enters a verification phase. It compares the "before" and "after" images. If the tool improved text readability for the question-relevant area, the change is accepted. If the tool introduced artifacts or made the text harder to decipher, the framework triggers a Comparison-Based Rollback (CBRb), reverts to the previous image state, and disables that specific tool to prevent infinite loops.

To keep token costs low and prevent the MLLM from getting confused by seeing too many images in its conversation history, DocIntent uses a Text-only context strategy. It retains the textual history of tool choices and quality assessments but discards intermediate images, maintaining a clean visual context.

Figure 2: Overview of the DocIntent framework with two-phase cyclic mechanism: Phase A (Answerability-Guided Restoration) and Phase B (Comparison-Based Review). The figure illustrates an example where deshadowing triggers rollback (bottom-left), while appearance enhancement succeeds and continues (bottom-right).

Datasets

The framework was evaluated using WildDoc, a benchmark explicitly designed for document VQA under real-world capture degradations. WildDoc contains three subtasks:

  • WildDocVQA (standard document images)
  • WildChartQA (charts and plots)
  • WildTableVQA (tabular data)

Each question in WildDoc corresponds to document images captured under four distinct real-world degradation conditions, allowing researchers to measure both absolute performance and consistency across different environments. The authors also verified DocIntent on the clean DocVQA dataset to ensure it doesn't degrade performance when documents are already pristine.

Key Insights and Ideas

  • Downstream Task Alignment > Perceptual Quality: Restoring an image to look "pretty" is fundamentally different from restoring it to be "informative." DocIntent succeeds because it evaluates restoration purely through the lens of answerability.
  • Selective Minimality: If a document has a massive shadow on the left, but the answer to the question is clearly visible on the right, DocIntent skips restoration entirely. This saves compute and avoids the risk of tool-induced text distortion.
Examples showing that documents can often be answered directly despite visible degradations.
  • The Power of Rollback: MLLMs are capable of self-correction. When a restoration tool fails (e.g., an appearance enhancement tool introduces blur), the rollback mechanism acts as a vital safety net, especially for smaller, less capable models that are highly sensitive to text distortion.

Key Results

The authors tested DocIntent across a wide range of models, including Qwen3.5-9B, Gemini-3.1-Pro, GPT-4o, and Claude Sonnet 4.6.

  • Narrowing the Score-Consistency Gap: Standard MLLMs suffer from a massive drop in consistency when facing different degradations of the same document. DocIntent significantly stabilized performance. For instance, Gemini-3.1-Pro saw its average score improve from 83.0% to 84.3%, while its consistency score jumped by 4.5 percentage points (75.5% to 80.0%).
  • Boosting Weaker Models: The open-source Qwen3.5-9B model achieved an average score increase from 68.5% to 71.6% and a substantial 5.9 percentage point boost in consistency (49.7% to 55.6%).
  • Close to Human Experts: In comparative tests, DocIntent achieved performance remarkably close to a "Question-aware Human Expert" baseline (where 40 human experts manually selected restoration tools for each image).

Limitations and Future Work

While DocIntent provides an intelligent orchestration layer, its performance is fundamentally bounded by two factors:

  1. Underlying Tool Capabilities: If the available restoration tools (like DocRes or UniDemoiré) fail to clean up an extremely severe degradation, DocIntent cannot magically fix it.
  2. Backbone MLLM Judgment: Because it is training-free, the framework relies entirely on the intrinsic reasoning capabilities of the host MLLM to accurately diagnose degradations and compare image quality. Weaker models may occasionally make misjudgments during the comparison phase.

Future work includes integrating stronger, more modern document restoration models into the standardized tool interface as they become available.

Summary updated

BibTeX
@misc{huang2026docintent,
  author = {Zihan Huang and Shihang Wu and Junle Liu and Peirong Zhang and Yongxin Shi and Xuhan Zheng and Lianwen Jin},
  title = {{DocIntent: Answerability-Guided Agentic Restoration for Real-World Document Visual Question Answering}},
  year = {2026},
  eprint = {2608.29037},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.29037},
}
Figure