M2IO-R1: An Efficient RL-Enhanced Reasoning Framework for Multimodal Retrieval Augmented Multimodal Generation

Zhiyou Xiao, Qinhan Yu, Binghui Li, Geng Chen, Chong Chen, Wentao ZhangarXiv 2025 · DOI

Introduction

Retrieval-Augmented Generation (RAG) has revolutionized how Large Language Models (LLMs) access external knowledge. While multimodal RAG allows models to process both text and images, most frameworks remain limited to text-only outputs. This paper introduces M2IO-R1, a framework designed to bridge this gap by intelligently interleaving retrieved images into generated text, transforming plain text answers into rich, multimodal responses.

The Challenge of Multimodal Output

For many queries, such as identifying biological differences or following complex instructions, text alone is insufficient. A user asking "What's the difference between a moth and a butterfly?" benefits significantly from visual comparisons that highlight specific anatomical features.

Comparison between standard LLM text output and M2IO-R1's interleaved multimodal output.

Existing approaches to Multimodal Retrieval-Augmented Multimodal Generation (MRAMG) often struggle with the "where" and "which" of image placement. Generating images via diffusion can lead to hallucinations, whereas retrieving and placing real-world images requires complex reasoning that standard supervised fine-tuning (SFT) often fails to master efficiently.

The M2IO-R1 Framework

M2IO-R1 addresses these challenges through a four-stage pipeline:

  1. Multimodal Retrieval: Fetching relevant text and images from a knowledge base.
  2. Text Answer Generation: Using a high-capacity LLM (e.g., GPT-4o) to draft the textual response.
  3. Image Insertion: A specialized RL-based inserter determines the optimal placement for candidate images.
  4. Answer Merging: Combining text and images into a final formatted output.
The M2IO-R1 architecture, highlighting the multimodal retrieval pipeline and the RL-based image insertion process using GRPO.

The core innovation is the Inserter-R1-3B, a 3B parameter Vision-Language Model (Qwen2.5-VL-3B) trained using Group Relative Policy Optimization (GRPO). By framing image insertion as a reasoning task, the model generates a "chain of thought" (enclosed in <think> tags) to justify its selections before outputting structured placement data. This allows the model to be evaluated by rule-based reward functions focusing on format, recall, and positional accuracy.

Key Results and Insights

The M2IO-R1 framework demonstrates that reasoning-capable small models can outperform significantly larger counterparts while maintaining high efficiency.

  • Efficiency and Cost: M2IO-R1 achieves an inference latency of 4.34 seconds, approximately 5.2x faster than traditional rule-based alternatives. By offloading insertion tasks to a local 3B model, API costs are reduced to $0.24 per instance, representing a 22.6% cost reduction compared to using massive proprietary models for the entire pipeline.
  • Superior Performance: The 3B RL-tuned model consistently matched or exceeded the performance of 72B parameter models. On the Arxiv dataset, it improved relevance scores to 97.4, compared to 90.8 for single-shot GPT-4o.
  • Robust Generalization: RL training proved more robust than SFT, allowing the model to generalize from web-style data to specialized domains like academic papers without significant performance degradation. This suggests that RL prevents overfitting in low-data regimes by focusing on logical outcomes rather than pattern matching.

Conclusion

M2IO-R1 proves that outcome-based Reinforcement Learning is a powerful tool for multimodal reasoning tasks. By decomposing the generation process and utilizing lightweight models for complex formatting and selection, M2IO-R1 provides a scalable, cost-effective path toward more helpful and visually grounded AI assistants.

Summary updated

BibTeX
@misc{xiao2025m,
  author = {Zhiyou Xiao and Qinhan Yu and Binghui Li and Geng Chen and Chong Chen and Wentao Zhang},
  title = {{M2IO-R1: An Efficient RL-Enhanced Reasoning Framework for Multimodal Retrieval Augmented Multimodal Generation}},
  year = {2025},
  eprint = {2508.06328},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.06328},
}
Figure