MMSearch-R1: Teaching LMMs to Search Intelligently
[HPP] Zihao OuJuly 4, 202525 min
20 connectionsΒ·40 entities in this videoβAddressing LMM Limitations
- π‘ Large Language Models (LMMs) often "hallucinate" or provide incorrect information when their static knowledge base lacks recent or niche data.
- β οΈ Existing solutions like Retrieval-Augmented Generation (RAG) are rigid, leading to inefficient "over-retrieving" and assuming information is always available in a given knowledge base.
- π§ Prompt-engineered search agents follow instructions but don't intrinsically learn or adapt their search capabilities over time.
MMSearch-R1's Innovative Approach
- π MMSearch-R1 is the first end-to-end reinforcement learning (RL) framework enabling LMMs to perform on-demand, multi-turn search directly on the real internet.
- β It teaches LMMs three key abilities: when to search (recognizing knowledge limits), what to search for (formulating precise queries), and how to use search results effectively.
- π― The framework uses Group Relative Policy Optimization (GRPO), an efficient RL algorithm that estimates reward baselines from group performance, making training computationally efficient.
Core Framework Components
- π οΈ MMSearch-R1 integrates two main tools: an image search tool (e.g., Suroppy) for unfamiliar visuals and a text search tool for factual information.
- π The text search pipeline involves query generation, web page retrieval (Gina Reader), and webpage summarization using a powerful language model (Quen 332b) to extract relevant bits.
- π The model engages in multi-turn interactions, reasoning about its steps using special
reason.tags and choosing actions likesearch.oranswer., with retrieved info fed back viainformation.tags.
Training and Data Strategy
- π A guidance reward model drives learning, combining an accuracy score with a crucial search penalty (e.g., 0.1) to incentivize using internal knowledge first.
- π A new, semi-automated FVQA dataset was created, balanced with both search-required and search-free questions (visual and textual knowledge needs), essential for shaping efficient search behavior.
- π§ͺ Ablation studies confirmed that both the balanced data and the search penalty are critical for preventing the model from overusing search tools.
Key Performance Outcomes
- π₯ MMSearch-R1 (7B model) outperformed RAG baselines of the same size by 3% in accuracy and reduced search calls by 33%.
- π It achieved competitive accuracy with a much larger RAG-based model (7B MMSearch-R1 vs. 32B RAG) while making significantly fewer search calls, highlighting the benefit of adaptive search strategies.
- π§ The RL training also improved query generation and information summarization, and led to better utilization of internal knowledge, demonstrating the model learned to "check its own brain first."
- β‘ MMSearch-R1 showed higher data efficiency than supervised fine-tuning (SFT), achieving superior results with roughly half the training data.
Future Implications
- π While robust, performance still depends on the quality of external search tools and the current reward function is best for exact factual answers.
- π‘ Future work includes developing more flexible reward systems that capture semantic meaning and nuance, moving beyond exact string matches.
- π± This research lays groundwork for more reliable and adaptable AI agents that can intelligently navigate and process real-world information, potentially acting as advanced research assistants.
Knowledge graph40 entities Β· 20 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
40 entities
Chapters12 moments
Key Moments
Transcript95 segments
Full Transcript
Topics15 themes
Whatβs Discussed
Large Language Models (LMMs)Reinforcement Learning (RL)Retrieval-Augmented Generation (RAG)On-demand SearchMultimodal ModelsImage SearchText SearchGroup Relative Policy Optimization (GRPO)Search PenaltyFactual VQA (FVQA) DatasetSearch EfficiencyQuery GenerationInformation SummarizationInternal Knowledge UtilizationData Efficiency
Smart Objects40 Β· 20 links
CompaniesΒ· 6
ProductsΒ· 10
ConceptsΒ· 14
PeopleΒ· 2
EventsΒ· 2
MediasΒ· 6