← Latest papers
🤖 AI

Reason Before You Retrieve: Agentic Planning for Multi-modal RAG

The paper proposes MM-R2, a multimodal agentic framework that improves retrieval-augmented generation by explicitly reasoning about retrieval targets and structuring the search space via a KnowledgeMap, supported by a new trajectory dataset and two-stage post-training strategy to achieve superior accuracy and interpretability on benchmark datasets.

Original authors: Tianyu Yang, Shir Simon, Zhenzhen Li, Minhao Cheng, Xiangliang Zhang

Published 2026-07-28
📖 7 min read🧠 Deep dive

Original authors: Tianyu Yang, Shir Simon, Zhenzhen Li, Minhao Cheng, Xiangliang Zhang

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 mystery, but instead of a single clue, you have a giant, messy pile of books, photos, and maps all thrown into one big box. This is the world of "Multimodal Retrieval-Augmented Generation" (mRAG). It's a fancy way of saying we want computers to answer questions about pictures by looking up facts in a huge library. Usually, when a computer tries to do this, it acts a bit like a frantic shopper in a massive supermarket: it grabs a question, shouts it into the whole store, and hopes the first few items it finds on the shelves are the right ones. The problem is, the computer often grabs the wrong things because it doesn't really understand what it's looking for or where in the store that item might be hidden. It's like asking for "the red car" and getting a picture of a red apple because the computer just saw the word "red" and grabbed the first red thing it could find.

This is where the new paper comes in. The researchers realized that before you even start searching, you need to stop and think. They call their new system MM-R2, which stands for "Reason Before You Retrieve." Instead of blindly shouting into the void, MM-R2 acts like a smart detective. First, it looks at the picture and the question together to figure out exactly what the "clue" is (the specific object in the photo) and what kind of information is needed. Then, instead of searching the whole messy box, it consults a special, organized map of the library called a "KnowledgeMap." It picks the right aisle, grabs the right book, reads it, and decides if it needs to look elsewhere. The paper suggests that by doing this "thinking first" step, the computer gets much better at finding the right answers and can even show you its work, proving exactly how it solved the mystery.

The Detective's New Strategy

The core idea of this paper is that computers are currently too eager to jump into action. When you ask a computer, "What kind of bird is in this picture?" while showing it a photo, current systems often just mash the words and the image together and start searching everything at once. The authors argue this is a mistake. They found that these systems get confused because they don't know which part of the image matters or what specific fact they need. It's like trying to find a specific recipe in a library by searching for the word "cake" across every single book in the building, rather than going straight to the "Baking" section.

To fix this, the team built MM-R2, a system that forces the computer to pause and plan before it searches. They break the process down into three fun steps:

  1. The "What" and "Where" Plan: Before searching, the system creates a "retrieval state." Think of this as writing a perfect shopping list. It identifies the Information Need (what do I need to know?), the Grounded Referent (which specific thing in the photo am I talking about?), and the Constraints (do I need a date? a location? a scientific name?). This stops the computer from getting distracted by irrelevant details.
  2. The Organized Map (KnowledgeMap): The researchers realized that searching a flat, messy list of facts is inefficient. So, they organized their library into a KnowledgeMap. Imagine the library isn't just a pile of books, but a set of neatly labeled bins: one bin for "Birds," one for "Cars," one for "History." When the computer has its shopping list, it doesn't search the whole library; it first decides which bin to open. This is called "routing."
  3. The Detective Loop: Once the computer picks the right bin (the retrieval unit), it searches inside that bin for the specific answer. If it finds the answer, great! If not, it can decide to pick a different bin or ask a more specific question. It keeps doing this until it has enough evidence to solve the case.

How They Taught the Computer to Think

You might wonder, "How does a computer learn to plan like a detective?" The authors didn't just tell the computer to "be smart." Instead, they created a massive training dataset called MM-R2-Traj. This dataset contains 900,000 examples of "thought processes."

Imagine a teacher showing a student how to solve a puzzle. The teacher doesn't just give the answer; they show the steps: "First, look at the corner pieces. Then, sort by color. Then, try to fit these two together." The researchers used a "teacher" AI to generate these step-by-step stories for the student AI. They taught the student to:

  • Analyze the picture and question to make a plan.
  • Choose the right "bin" (KnowledgeMap unit).
  • Ask a specific question inside that bin.
  • Summarize what it found.
  • Decide if it's done or needs to look again.

They trained the computer in two stages. First, they used Supervised Fine-Tuning (SFT), which is like having the student copy the teacher's notes to learn the basic rules. Then, they used Group Relative Policy Optimization (GRPO), which is like a game where the student tries different strategies, and if it gets the right answer, it gets a high score. If it gets the answer wrong, it learns to try a different path next time. This helped the computer get really good at making the right choices.

The Results: Smarter and Clearer

When they tested MM-R2 on two big challenges—InfoSeek (a dataset with 1.3 million image-question pairs) and Encyclopedic VQA (a test of encyclopedia-style knowledge)—the results were impressive.

On the InfoSeek test, MM-R2 got the right answer 54.3% of the time overall. This is a big jump compared to other smart systems, which usually hovered around 46-47%. On the specific "Unseen-Question" part of the test (where the computer has to handle questions it has never seen before), MM-R2 scored 56.0%, beating the previous best by a solid margin. Even on the Encyclopedic VQA test, it reached 39.4%, showing it works well even when the questions are very specific and hard.

But the paper suggests something even more important than just getting the right score: transparency. Because MM-R2 plans its steps, we can actually see how it solved the problem.

  • Better Routing: The system correctly picked the right "bin" (KnowledgeMap unit) 74% of the time, compared to only 23% for the older systems. It stopped wasting time looking in the wrong places.
  • Clearer Explanations: When the system explained its answer, it was more concise and focused. The "Fidelity" score (which checks if the answer really came from the evidence found) was 0.90, meaning the answer was almost entirely based on the facts it found, not just guessing.

What This Means

The paper suggests that the old way of just "searching everything" is hitting a wall. By forcing the computer to reason before it retrieves, we can build systems that are not only smarter but also more trustworthy. They don't just guess; they follow a logical path, check their work, and can show you exactly how they found the answer. It's the difference between a chaotic scavenger hunt and a well-planned detective mission. While the researchers note that this is a specific approach to multimodal AI and doesn't solve every problem in the world, the results suggest that taking a moment to think before acting is a powerful strategy for the future of smart computers.

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 →