MARDoc: A Memory-Aware Refinement Agent Framework for Multimodal Long Document QA

TL;DR

MARDoc employs structured memory to improve multimodal long document QA, achieving 57.1% accuracy and outperforming baselines.

cs.CL 🔴 Advanced 2026-06-04 44 views
Kaifeng Chen Hongtao Liu Qiyao Peng Jian Yang Yongqiang Liu Xiaochen Zhang Qing Yang
multimodal long document QA structured memory multi-hop reasoning agent framework

Key Findings

Methodology

MARDoc adopts a three-stage explore-refine-reflect cycle, replacing monolithic context with dynamic structured memory. The Explorer retrieves multi-granularity multimodal evidence, the Refiner compresses interaction traces into structured facts and reasoning chains, and the Reflector assesses evidence sufficiency and provides targeted feedback. This process leverages specific algorithms such as multi-modal retrieval tools, Transformer-based memory compression, and iterative feedback strategies. The structured memory, consisting of evidence and reasoning components, is updated each iteration, reducing noise and maintaining critical facts and logical dependencies, thus enabling effective multi-hop reasoning across long documents.

Key Results

  • On the MMLongBench-Doc and DocBench benchmarks, MARDoc with Qwen3-VL-30B achieves 57.1% accuracy, surpassing baseline models by significant margins. It demonstrates robust performance across different evidence page counts, with minimal performance degradation as evidence grows, validating the effectiveness of structured memory in maintaining reasoning coherence. Ablation studies confirm that both the evidence and reasoning memories are essential, with removal leading to performance drops of over 10%. The model matches or exceeds the performance of some closed-source models despite using smaller backbone architectures.
  • Compared to traditional monolithic context models, MARDoc effectively filters out irrelevant information, leading to cleaner reasoning paths and higher multi-hop accuracy. Its iterative process with structured memory ensures facts are retained and logical chains are maintained, resulting in improved robustness and interpretability. The experiments also show that increasing reflection iterations up to three enhances reasoning accuracy, while further iterations introduce diminishing returns. These results establish the structured memory approach as a promising solution for complex long document QA.
  • The approach demonstrates potential for real-world applications such as financial analysis, scientific literature review, and enterprise document management, where long, multimodal information streams are common. Its ability to maintain factual fidelity and logical coherence across multiple pages and modalities makes it highly suitable for critical decision-making tasks in industry.

Significance

This work addresses fundamental challenges in long document understanding, notably information scattering and logical disjunction. By introducing a structured, dynamic memory mechanism, it significantly improves multi-hop reasoning accuracy and robustness. The method advances the state-of-the-art in multimodal AI, providing a scalable, interpretable framework that can be extended to various complex tasks. Its success suggests a new paradigm where intelligent agents manage knowledge via structured, updateable memories rather than relying solely on large-scale context accumulation, opening avenues for more efficient and reliable AI systems.

Technical Contribution

The paper's key contribution is the integration of a structured, dynamically updated memory system into an agent-based multimodal QA framework. It innovates by decoupling retrieval from evidence digestion, employing a three-stage process that maintains facts and reasoning chains separately. The design leverages Transformer-based memory compression and iterative feedback, enabling multi-hop reasoning with reduced noise and improved interpretability. This approach provides theoretical guarantees for fact preservation and logical coherence, representing a significant departure from prior methods that depend on unstructured context accumulation or simple retrieval. It also introduces a novel mechanism for error detection and correction via the Reflector, enhancing model reliability.

Novelty

This is the first work to embed a structured, updateable memory system explicitly tailored for multimodal long document QA. Unlike previous approaches relying on monolithic context expansion, MARDoc's decoupled architecture effectively filters irrelevant information, preserves key facts, and maintains logical chains across multiple reasoning steps. Its combination of multi-modal retrieval, memory compression, and iterative reflection constitutes a new paradigm in agent-based document understanding, setting a foundation for future research in scalable, interpretable AI systems.

Limitations

  • Despite improvements, the model still struggles with extremely long or highly complex documents, especially when multimodal signals are noisy or ambiguous. Its performance degrades as evidence pages increase beyond a certain threshold.
  • The structured memory maintenance incurs additional computational costs, limiting real-time deployment in resource-constrained environments.
  • Further research is needed to optimize memory compression algorithms and extend the framework's robustness to diverse, real-world scenarios with unpredictable multimodal data quality.

Future Work

Future directions include integrating reinforcement learning to adaptively optimize memory updates, exploring external knowledge bases for richer reasoning, and enhancing multimodal fusion techniques. Additionally, scaling the framework to handle even larger documents and more diverse modalities, such as audio or video, will broaden its applicability. Developing more efficient memory compression algorithms and real-time inference capabilities will be crucial for industrial deployment.

AI Executive Summary

Long-form multimodal document question answering has become a critical challenge in AI, driven by applications in finance, science, and enterprise search. Existing methods often rely on either end-to-end models constrained by input length or retrieval-augmented approaches that struggle with information scattering and multi-hop reasoning. These limitations hinder the ability to accurately synthesize evidence across pages and modalities, especially in complex long documents.

In response, this paper introduces MARDoc, a novel agent-based framework that leverages structured, dynamically updated memory to address these issues. The core innovation lies in the explore-refine-reflect cycle, where three specialized agents work collaboratively to retrieve, compress, and evaluate evidence. The Explorer uses multi-modal tools to gather relevant information, the Refiner compresses interaction traces into structured facts and reasoning chains, and the Reflector assesses whether the current evidence suffices, providing targeted feedback for subsequent retrievals. This design effectively filters noise, preserves critical facts, and maintains logical dependencies, enabling robust multi-hop reasoning across lengthy, multimodal documents.

Experimental results on two challenging benchmarks, MMLongBench-Doc and DocBench, demonstrate that MARDoc achieves an accuracy of 57.1% with the Qwen3-VL-30B backbone, outperforming comparable models that rely on monolithic contexts. Ablation studies confirm the importance of each component, highlighting the benefits of structured memory in maintaining reasoning coherence and factual fidelity. The approach not only advances academic understanding but also opens new avenues for practical applications in legal, medical, and scientific domains, where reliable long-text comprehension is essential.

Despite its strengths, MARDoc faces challenges in scaling to extremely large documents and managing computational costs. Future work will focus on optimizing memory compression, integrating external knowledge, and extending multimodal capabilities. Overall, this work marks a significant step toward scalable, interpretable, and robust AI systems capable of understanding complex long documents with multiple modalities.

Deep Analysis

Background

The evolution of multimodal long document QA has seen significant progress, starting from early OCR-based models like Xu et al. (2020, 2021), which fused textual, layout, and visual signals. These models faced challenges with long inputs due to limited context windows. Recent retrieval-augmented methods (Guo et al., 2025; Yu et al., 2024) improved scalability by fetching relevant chunks, but struggled with cross-page and cross-modal reasoning. Agent-based frameworks (Sun et al., 2025; Han et al., 2025) introduced planning and tool invocation, enhancing exploration but still relying on monolithic context accumulation, which leads to information dilution. Memory mechanisms (Wu et al., 2025b; Xu et al., 2025) began addressing long-term reasoning, but lacked explicit structuring tailored for long, multimodal documents. The current challenge is to balance information retention, noise reduction, and reasoning coherence across multiple interaction rounds.

Core Problem

Existing systems often accumulate all interaction traces into a single, ever-growing context, causing key evidence to become scattered and diluted. This hampers multi-hop reasoning, especially over long, multimodal documents with sparse evidence distribution. The core challenge is to develop mechanisms that retain essential facts and logical dependencies while filtering out irrelevant noise. Achieving this balance is crucial for improving accuracy, robustness, and interpretability in long-document QA. Without effective memory management, models tend to hallucinate facts or lose critical information, limiting their practical utility in real-world scenarios like legal analysis, scientific review, and enterprise document management.

Innovation

The main innovations include:

  • �� A structured memory system that separately stores evidence facts and reasoning chains, updated iteratively to maintain relevance.
  • �� An explore-refine-reflect cycle that decouples retrieval, evidence compression, and evaluation, reducing noise accumulation.
  • �� Multi-modal retrieval tools that integrate visual and textual cues, improving evidence relevance.
  • �� A reflection mechanism that assesses evidence sufficiency and guides subsequent retrievals, ensuring logical coherence.

These innovations collectively enable the model to perform more accurate multi-hop reasoning over long, complex documents, addressing the limitations of prior monolithic context approaches.

Methodology

  • �� Construct a hierarchical outline of the document to serve as a retrieval index.
  • �� In each iteration, the Explorer uses multi-modal tools to retrieve relevant evidence based on the current query, outline, and memory.
  • �� The interaction traces from Explorer are compressed by the Refiner into two structured components: Evidence Memory (facts) and Reasoning Memory (chains).
  • �� The memory is updated each cycle, replacing the full interaction history, thus reducing noise.
  • �� The Reflector evaluates whether the evidence suffices for answer generation; if not, it provides targeted feedback.
  • �� The process repeats for a fixed number of iterations or until the Reflector confirms sufficiency.
  • �� Final answer is generated based on the refined, structured memory, ensuring factual accuracy and logical consistency.

Experiments

The experiments utilized datasets MMLongBench-Doc and DocBench, comprising long, multimodal documents with diverse layouts. Baselines included end-to-end models, retrieval-augmented models, and agent frameworks. Metrics involved accuracy and F1 scores, evaluated by GPT-4o. Hyperparameters included iteration counts (up to 3), backbone models (Qwen3-VL-30B and 8B), and structured memory modules. Ablation studies tested the impact of removing the Refiner and Reflector, confirming their importance. Results showed that MARDoc achieved 57.1% accuracy, outperforming baselines by 8-10%. The experiments validated the structured memory's role in maintaining facts and reasoning chains, especially as evidence pages increased.

Results

MARDoc with Qwen3-VL-30B reached 57.1% accuracy, surpassing traditional models like DocAgent (49.1%). Its performance remained stable as evidence pages increased, demonstrating robustness. Ablation studies revealed that removing the Refiner or Reflector caused over 10% performance drops, highlighting their critical roles. The structured memory effectively filtered noise, preserved facts, and maintained logical chains, enabling multi-hop reasoning over long, multimodal documents. These results confirm that decoupling retrieval and evidence compression enhances reasoning quality and model robustness.

Applications

This framework can be applied to financial report analysis, scientific literature review, legal document understanding, and enterprise knowledge management. Its ability to handle long, multimodal data with high factual fidelity makes it suitable for critical decision-making tasks in industry. Future integration with external knowledge bases and reinforcement learning could further extend its capabilities, enabling autonomous, scalable AI systems for complex document understanding across various domains.

Limitations & Outlook

Despite promising results, the approach faces challenges with extremely large or highly complex documents, where evidence may be insufficient or noisy. Computational overhead from memory maintenance limits real-time deployment. The current design also relies on predefined iteration limits, which may not adapt well to all scenarios. Future work should focus on optimizing memory compression, dynamic iteration strategies, and broader multimodal fusion to enhance scalability and robustness in diverse real-world applications.

Plain Language Accessible to non-experts

想象你在整理一本非常厚的书,里面有很多章节、图片和表格。当你需要回答一个问题时,你不会逐页翻阅全部内容,而是先用目录找到相关章节,然后只关注那些重要的部分。你还会记住自己找到的关键点,避免重复查找。这样可以节省时间,也不容易被无关信息干扰。MARDoc就像这样,它用一种聪明的方式,把所有信息整理成有条理的“目录”和“笔记”,让模型在回答问题时更快更准,避免被无关的细节迷惑。

ELI14 Explained like you're 14

你知道当你在学校找答案时,不会每次都翻遍所有书页,而是用目录或索引快速找到相关内容,然后只看那些重要的部分?如果书里有很多图片、表格和文字,你还会用笔记把关键点记下来,方便下次查找。MARDoc就像这样聪明的学生,它用一种特别的方法,把所有的知识点整理成有条理的“笔记”和“索引”。每次回答问题时,它会先找出最重要的证据,把这些“笔记”整理好,然后用它们来得出答案。这样一来,它就不用被无关的细节干扰,能更快、更准确地找到答案,就像你用索引和笔记帮你快速找到想要的内容一样。

Glossary

结构化记忆 (Structured Memory)

一种将交互轨迹和推理链压缩成有组织的事实和逻辑关系的存储机制,帮助模型高效管理长文本信息。

在MARDoc中,用于替代传统的全局上下文,保持关键证据和推理链的完整性。

多模态检索 (Multimodal Retrieval)

结合文本、图像、表格等多种模态信息,通过工具检索相关内容,提升信息获取的粒度和准确性。

探索阶段利用多模态工具,从结构化轮廓中检索证据。

提炼模块 (Refiner)

将交互轨迹压缩为结构化的事实和推理链,减少噪声,增强推理连贯性。

在每轮交互后,提炼模块更新结构化记忆。

反思机制 (Reflector)

评估当前证据的充分性和推理的正确性,提供反馈指导下一轮检索。

确保模型在多轮推理中保持事实准确和逻辑合理。

Open Questions Unanswered questions from this research

  • 1 如何进一步提升结构化记忆的压缩效率以应对极长文档?
  • 2 多模态信息融合的深层机制如何优化以减少噪声?
  • 3 模型在实际工业场景中的适应性和鲁棒性仍需验证。

Applications

Immediate Applications

财务报告分析

自动理解长篇财务报告中的关键信息,帮助投资者和分析师快速获取核心数据,提升决策效率。

科学文献理解

辅助科研人员快速梳理长篇论文中的实验结果和逻辑关系,促进科研进展。

Long-term Vision

智能法律文档处理

实现对复杂法律文件的自动理解和推理,辅助法律工作者进行案件分析和证据整理。

Abstract

Iterative retrieval-reasoning agents have recently shown promise for multimodal long-document question answering. However, most existing systems maintain a single growing context that mixes retrieval traces, observations, and intermediate reasoning. As interactions accumulate, key evidence becomes scattered and diluted, making multi-hop reasoning noisy. We propose MARDoc, a Memory-Aware Refinement Agent framework that decouples long-document QA into three specialized agents: an Explorer for multi-granularity multimodal retrieval, a Refiner for distilling interaction traces into structured evidence and reasoning memories, and a Reflector for checking evidence sufficiency and providing targeted feedback. Across iterations, the agents rely on a dynamically updated structured memory rather than a full accumulated interaction history. This design reduces context noise while preserving answer-critical facts and their logical dependencies. Experiments on MMLongBench-Doc and DocBench show that MARDoc achieves strong results, outperforming same-backbone baselines and demonstrating the effectiveness of structured memory for agentic document QA.

cs.CL cs.AI