MLLM as Retriever: Interactively Learning Multimodal Retrieval for Embodied Agents

Junpeng Yue, Xinrun Xu, Börje F. Karlsson, Zongqing Lu

TL;DR

Current embodied agents often struggle to pick the right past experiences to guide them in new tasks because they rely on surface-level visual or textual similarity. This paper introduces MART, a method that fine-tunes a Multimodal Large Language Model (MLLM) to retrieve trajectories based on their actual effectiveness for a task, significantly boosting success rates in complex, unseen environments.

What Problem Does This Paper Address?

For an embodied agent—like a robot navigating a virtual kitchen—success depends on "grounding" its general knowledge in the specific environment it inhabits. One way to do this is by retrieving "expert trajectories" (sequences of past successful actions) to serve as a roadmap.

However, traditional retrieval methods (like CLIP or Sentence Transformers) focus on similarity. They look for trajectories that look like the current scene or have similar instructions. The authors demonstrate that similarity is a poor proxy for utility: a trajectory might be visually similar but functionally useless if the room layout is slightly different or if it fails to highlight a critical sub-task. As the data shows, there is almost no correlation between embedding similarity and task success, whereas the authors' proposed "Effectiveness Score" correlates strongly.

Correlation between similarity and effectiveness vs. success rate

Methods

The authors propose a two-pronged approach: MART (MLLM As ReTriever) and Trajectory Abstraction.

Comparison of Similarity-Based vs. MART retrieval
  1. MART: Instead of using a frozen embedding model, the researchers use an MLLM (specifically LLaVA-7B) as the retriever. They use interactive learning to train it: the agent attempts tasks using various expert trajectories, collects the resulting success rates, and organizes this data into "preference pairs" (e.g., "Trajectory A was more helpful than Trajectory B"). They then fine-tune the MLLM using a Bradley-Terry reward model to predict an "Effectiveness Score" for any given trajectory relative to the current task.
  2. Trajectory Abstraction: Raw trajectories are long and token-heavy, often exceeding the context windows of MLLMs. The authors use GPT-4o to "abstract" these trajectories into milestones—key actions and observations (e.g., "Opened the cabinet containing the kettle")—while stripping away redundant navigation steps. This makes the retrieved knowledge much easier for the agent to digest.

Datasets

The authors evaluated MART across three distinct simulated environments:

  • AI2-THOR: A complex household simulator requiring fine-grained interaction (e.g., "pick up the cooled potato").
  • LEGENT: A home environment focused on cross-room navigation and simpler tasks.
  • ReALFRED: A diverse and challenging benchmark derived from the ALFRed dataset, featuring realistic 3D-captured scenes.

Expert trajectories were generated using a planner-based method to ensure the "memory" the agent retrieves from is high-quality.

Key Insights and Ideas

  • Effectiveness > Similarity: The core "aha moment" is that an MLLM can be trained to act as a "critic" that understands the logic of a task, rather than just a pattern matcher. It can recognize that a trajectory involving a microwave is useful for a "heating" task even if the visual background is different.
  • Milestones are the "Compressed Sensing" of Robotics: By focusing on milestones through Trajectory Abstraction, the agent avoids distracting information. Abstraction reduces long transition sequences into critical steps, preventing the agent from getting lost in the noise.
  • Interactive Feedback is the Best Teacher: By allowing the retriever to learn from the agent's actual failures and successes during training, the system bridges the gap between "retrieval" and "execution."

Key Results

MART consistently outperformed all baselines, including standard similarity-based retrievers and "plain" MLLM agents without memory.

  • AI2-THOR: MART achieved a 40% success rate, nearly doubling the performance of similarity-based methods (~24%).
  • LEGENT: Success rates reached 87%, compared to 75% for the best similarity-based baseline.
  • Generalization: MART showed a significant advantage in unseen scenes, proving that learning "effectiveness" helps the agent adapt to new layouts better than simple visual matching.

Qualitatively, while a similarity-based retriever might pick a trajectory just because it sees a kettle, MART picks a trajectory that actually demonstrates the correct sequence of actions for the specific task at hand.

Limitations and Future Work

  • One-Shot Constraint: Due to MLLM context window limits, the agent currently only retrieves a single expert trajectory (one-shot). The authors hope to explore few-shot learning to combine skills from multiple past experiences.
  • Computational Overhead: Using a full MLLM for retrieval is more computationally expensive than a simple vector search.
  • Domain Specificity: Currently, retrievers are trained for specific domains (e.g., household tasks). Future work will look into training more universal retrievers that can transfer knowledge across vastly different environments, like web navigation or open-ended games.

Summary updated

BibTeX
@inproceedings{yue2025mllm,
  author = {Junpeng Yue and Xinrun Xu and Börje F. Karlsson and Zongqing Lu},
  title = {{MLLM as Retriever: Interactively Learning Multimodal Retrieval for Embodied Agents}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=K5yeB4dTtS},
}
Figure