End-to-End Optimization for Multimodal Retrieval-Augmented Generation via Reward Backpropagation

Zhiyuan Fan, Longfei Yun, Yan Ming, Yumeng Wang, Dadi Guo, Brian Mak, James T. Kwok, Yi R. Fung2025 · DOI

Abstract

Multimodal Retrieval-Augmented Generation (MM-RAG) enhances Large Vision-Language Models (LVLMs) by integrating external knowledge. However, end-to-end optimization is hindered by non-differentiable operations across components. We propose MM-RewardRAG, a paradigm that backpropagates global rewards instead of gradients to optimize discrete components. By tuning only two lightweight modules—a Query Translator and an Adaptive Reranker—using verifiable reward signals, our method achieves state-of-the-art performance on knowledge-intensive benchmarks with high training efficiency, requiring only 4,000 training samples.

Introduction

Large Vision-Language Models (LVLMs) often struggle with "hallucinations" when answering questions requiring specific real-world knowledge. While Multimodal RAG (MM-RAG) addresses this by fetching text and images, optimizing the full pipeline is challenging. Standard RAG involves non-differentiable steps like database searching and ranking, creating a "differentiability gap." Consequently, components are often optimized in isolation, leading to misalignments where a retriever might find "relevant" documents that actually confuse the final answer generator.

Methodology: MM-RewardRAG

The proposed MM-RewardRAG framework enables end-to-end optimization by backpropagating global rewards from the system output to each component, bypassing the need for differentiable paths through the entire pipeline.

Overview of the MM-RewardRAG framework showing the forward tensor flow and backward reward propagation.

Architecture

The system inserts two trainable, lightweight components into a pipeline where the backbone LVLM and retriever remain frozen:

  1. Query Translator: Acts as a soft connector, converting multimodal questions into specific queries tailored for diverse knowledge bases (Text, Image, and LLM-as-a-KB).
  2. Adaptive Reranker: Dynamically evaluates retrieved items, categorizing them as useful, neutral, or useless to filter out noise before it reaches the generator.

Reward Backpropagation

Instead of standard loss gradients, the system uses a verifiable reward signal based on the final output's correctness. This signal is used to optimize the adapters through two main mechanisms:

Detailed backward pass optimization: Generator to Reranker via Group Preference Tuning and Reranker to Translator via Queries Adaption.
  • Generator to Reranker (Group Preference Tuning): The reranker learns to prioritize document groups that lead the frozen generator to a higher reward.
  • Reranker to Translator (Queries Adaption): The translator is optimized using a curriculum learning strategy. Initially, it focuses on broad recall, gradually shifting toward high-precision ranking as training progresses using an evolving reward function.

Experimental Results

MM-RewardRAG was evaluated on several knowledge-intensive benchmarks, including E-VQA, Infoseek, MultimodalQA, and WebQA.

Performance and Efficiency

  • State-of-the-Art: The model achieved 43.2% on E-VQA and 39.8% on Infoseek, outperforming both open-source and proprietary models.
  • Data Efficiency: SOTA results were reached using only 4,000 training samples, a significant reduction compared to methods requiring massive, component-specific datasets.
  • Reranking Superiority: The Adaptive Reranker significantly outperformed standard baselines (e.g., Jina, Mono-reranker) across NDCG, MAP, and MRR metrics.

Key Insights

  • Reward as Gradient Proxy: The study demonstrates that global rewards can effectively align multi-stage pipelines even when internal operations (like retrieval) are non-differentiable.
  • Filtering vs. Ranking: Traditional RAG uses fixed Top-K retrieval. This work shows that filtering useless information is as crucial as ranking relevant data for final answer accuracy.
  • Modality-Specific KBs: The Query Translator is essential for navigating the heterogeneity of knowledge, as different modalities (text vs. image) provide distinct types of information.

Conclusion

MM-RewardRAG demonstrates that end-to-end optimization of complex RAG pipelines is possible through reward backpropagation. By focusing on lightweight adapters and global rewards, the framework provides a highly efficient and effective path for enhancing the factuality of multimodal AI systems. Future work will explore more powerful retrievers and automated reward models for more nuanced feedback.

Summary updated

Abstract

Multimodal Retrieval-Augmented Generation (MM-RAG) has emerged as a promising approach for enhancing the reliability and factuality of large vision-language models (LVLMs). While end-to-end optimization is infeasible due to non-differentiable operations across each component during the forward process, current methods primarily focus on component-level optimizations, necessitate extensive component-specific training datasets, and suffer from a gap between local and global optimization objectives. In this paper, we propose a new paradigm that ensures end-to-end optimization, referred to as MM-RewardRAG. It backpropagates global rewards instead of losses from the system output to each component, and then transforms these rewards into specific local losses, enabling each component to perform gradient descent and thus perform end-to-end optimization. Specifically, we first insert two lightweight multimodal components, a query translator and an adaptive reranker, to address the heterogeneity of multimodal knowledge and the varying knowledge demands for different questions, and then tune only these inserted components, relying exclusively on an external verifiable reward signal. Our method achieves state-of-the-art performance on multiple knowledge-intensive multimodal benchmarks with high training efficiency, using only 4k training data samples. Ablation study results show the performance evolution of each component during the training process, revealing that each component learns how to generate outputs that contribute to better final answers, demonstrating the potential of this paradigm as a promising direction for MM-RAG research. The code is available at https://github.com/toward-agi/MM-Reward-RAG.
BibTeX
@misc{fan2025end,
  author = {Zhiyuan Fan and Longfei Yun and Yan Ming and Yumeng Wang and Dadi Guo and Brian Mak and James T. Kwok and Yi R. Fung},
  title = {{End-to-End Optimization for Multimodal Retrieval-Augmented Generation via Reward Backpropagation}},
  year = {2025},
  doi = {10.18653/v1/2025.findings-emnlp.24},
}
Figure