Abstract
Effectively retrieving, reasoning, and understanding multimodal information remains a critical challenge for agentic systems. Traditional Retrieval-augmented Generation (RAG) methods rely on linear interaction histories, which struggle to handle long-context tasks, especially those involving information-sparse yet token-heavy visual data in iterative reasoning scenarios. To bridge this gap, we introduce VimRAG, a framework tailored for multimodal Retrieval-augmented Reasoning across text, images, and videos. Inspired by our systematic study, we model the reasoning process as a dynamic directed acyclic graph that structures the agent states and retrieved multimodal evidence. Building upon this structured memory, we introduce a Graph-Modulated Visual Memory Encoding mechanism, with which the significance of memory nodes is evaluated via their topological position, allowing the model to dynamically allocate high-resolution tokens to pivotal evidence while compressing or discarding trivial clues. To implement this paradigm, we propose a Graph-Guided Policy Optimization strategy. This strategy disentangles step-wise validity from trajectory-level rewards by pruning memory nodes associated with redundant actions, thereby facilitating fine-grained credit assignment. Extensive experiments demonstrate that VimRAG consistently achieves state-of-the-art performance on diverse multimodal RAG benchmarks.
Introduction
Retrieval-Augmented Generation (RAG) has emerged as a powerful technique for grounding large language models in external knowledge. However, traditional RAG systems typically maintain interaction histories as simple linear sequences. This approach encounters significant bottlenecks in complex, iterative multimodal scenarios:
- State Blindness: Linear histories make it difficult for agents to distinguish between unproductive "dead-end" searches and novel inquiries, often leading to repetitive queries.
- The Visual Token Tax: Visual data is inherently "token-heavy" but "semantically sparse." Storing every retrieved image or video frame at high resolution quickly exhausts the context window with noise.
- Coarse Supervision: Standard reinforcement learning rewards agents based on final outcomes, failing to provide granular credit for individual retrieval steps within a trajectory.
The VimRAG Framework
VimRAG (Visual Multimodal RAG) addresses these limitations by restructuring the agentic reasoning paradigm through three core innovations.
Multimodal Memory Graph
Instead of a linear list, VimRAG constructs a dynamic Directed Acyclic Graph (DAG) where each node represents an "epistemic state"—the action taken, the query used, and the evidence retrieved. This structure explicitly captures logical dependencies, enabling the agent to backtrack or branch out effectively.
Graph-Modulated Visual Memory Encoding
To manage the "visual token tax," VimRAG introduces a mechanism that dynamically allocates tokens based on a node's "energy" score.
This score is calculated using:
- Topological Position: Importance based on graph centrality (how many future steps rely on the node).
- Semantic Relevance: Direct alignment with the current goal.
- Temporal Decay: A reduction in priority for older, unused information. High-energy nodes are allocated high-resolution tokens, while low-energy nodes are compressed or discarded, optimizing the model's attention budget.
Graph-Guided Policy Optimization (GGPO)
VimRAG utilizes the graph structure for fine-grained training. By performing "node pruning," the system identifies the "critical path" to the correct answer. Steps on this path are reinforced, while redundant or "dead-end" nodes are masked out, ensuring the model learns efficiency alongside accuracy.
Experimental Results
The authors evaluated VimRAG across a comprehensive suite of benchmarks, including text (HotpotQA), images (WebQA), and long-context video (LVBench). They also introduced XVBench, a benchmark designed for cross-video reasoning.
VimRAG consistently achieved state-of-the-art (SOTA) performance. On the Qwen3-VL-8B-Instruct model, VimRAG improved the overall score from 43.6% to 50.1%. Furthermore, the system demonstrated significant gains in efficiency, reducing token consumption and trajectory length by avoiding the redundant loops common in linear-history models.
Conclusion
VimRAG represents a significant advancement in multimodal RAG by treating reasoning as a structured graph rather than a linear sequence. By modulating visual encoding based on topological importance and optimizing policies through graph-guided pruning, VimRAG efficiently navigates massive visual contexts. Future work will explore unified multi-task models and latency optimizations for real-time applications.
Summary updated