← Latest papers
💬 NLP

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

MARDoc is a Memory-Aware Refinement Agent framework that improves multimodal long-document QA by decoupling the process into specialized Explorer, Refiner, and Reflector agents that utilize a dynamically updated structured memory to reduce context noise and enhance multi-hop reasoning.

Original authors: Kaifeng Chen, Hongtao Liu, Qiyao Peng, Jian Yang, Yongqiang Liu, Xiaochen Zhang, Qing Yang

Published 2026-06-05
📖 4 min read☕ Coffee break read

Original authors: Kaifeng Chen, Hongtao Liu, Qiyao Peng, Jian Yang, Yongqiang Liu, Xiaochen Zhang, Qing Yang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to solve a massive, 100-page mystery novel where the clues are scattered across text, charts, photos, and tables. You have a team of detectives (an AI) trying to find the answer to a specific question.

The Old Way: The "Monolithic" Detective
In most current systems, the detective works like a person who never throws anything away. Every time they look at a page, they write down the page number, what they saw, and their thoughts in a single, giant notebook.

  • The Problem: After 20 turns of searching, this notebook is huge. It's filled with the actual clues, but also with dead ends, irrelevant sentences, and "noise." The detective gets overwhelmed. The important clues get buried under pages of junk, making it hard to connect the dots. This is called the "context dilution" problem.

The New Way: MARDoc (The "Memory-Aware" Team)
The paper introduces MARDoc, a smarter system that doesn't just keep a giant notebook. Instead, it uses a team of three specialized detectives who work together using a dynamic, organized filing system (Structured Memory) instead of a messy notebook.

Here is how the team works, using a creative analogy:

1. The Explorer (The Scout)

  • Role: This detective runs around the document looking for clues. They don't just read; they use special tools to jump to specific pages, zoom in on charts, or search for keywords.
  • Action: They gather raw information and bring it back to the team.
  • Analogy: Think of them as a scout running through a forest, picking up leaves, rocks, and branches and dumping them in a pile.

2. The Refiner (The Librarian)

  • Role: This is the most important new part. While the Scout brings back a messy pile of "raw" evidence, the Librarian immediately sorts it.
  • Action: They throw away the noise (irrelevant leaves) and organize the good stuff into two neat categories:
    1. Evidence Memory: The hard facts (e.g., "The chart on page 27 says 26%").
    2. Reasoning Memory: The logical steps connecting the facts (e.g., "Because the chart says X, and the text says Y, we can calculate Z").
  • Analogy: Instead of keeping the whole pile of forest debris, the Librarian creates a clean, concise summary card. They throw away the old pile and replace it with this new, perfect card. This keeps the team's "brain" small and focused, preventing them from getting lost in the past.

3. The Reflector (The Supervisor)

  • Role: This detective looks at the Librarian's summary card and asks, "Do we have enough to solve the mystery?"
  • Action:
    • If Yes: They write the final answer.
    • If No: They don't just say "try again." They give specific instructions to the Scout, like, "You missed the total number of people in the survey; go find that specific table."
  • Analogy: The Supervisor checks the map. If the map is missing a key landmark, they tell the Scout exactly where to go next, rather than letting the Scout wander aimlessly.

Why This Matters

The paper tested this system on two difficult benchmarks (MMLongBench-Doc and DocBench) involving long, complex documents with pictures and text.

  • The Result: MARDoc performed significantly better than previous methods. Even when using a smaller, less powerful AI model, it beat systems using much larger models.
  • The Reason: By constantly cleaning up the "memory" and keeping only the essential facts and logic, the system avoids getting confused by its own history. It stays sharp and focused, just like a detective who keeps a clean case file rather than a messy stack of papers.

In short: MARDoc solves the problem of "forgetting the important stuff because there's too much junk" by having a dedicated team member whose only job is to clean, organize, and summarize the evidence after every step, ensuring the team never loses its way in a long document.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →