Retrieval-Augmented Embodied Agents

Yichen Zhu, Zhicai Ou, Xiaofeng Mou, Jian Tang · DOI

Abstract

Embodied agents operating in complex and uncertain environments face considerable challenges. While some advanced agents handle complex manipulation tasks with proficiency, their success often hinges on extensive training data to develop their capabilities. In contrast, humans typically rely on recalling past experiences and analogous situations to solve new problems. Aiming to emulate this human approach in robotics, we introduce the Retrieval-Augmented Embodied Agent (RAEA). This innovative system equips robots with a form of shared memory, significantly enhancing their performance. Our approach integrates a policy retriever, allowing robots to access relevant strategies from an external policy memory bank based on multi-modal inputs. Additionally, a policy generator is employed to assimilate these strategies into the learning process, enabling robots to formulate effective responses to tasks. Extensive testing of RAEA in both simulated and real-world scenarios demonstrates its superior performance over traditional methods, representing a major leap forward in robotic technology.

Introduction

In the world of AI, Large Language Models (LLMs) have scaled massively by tapping into vast repositories of human knowledge. However, embodied agents (robots) still struggle with a "scaling wall." Most robotic models store their knowledge implicitly within their neural network parameters. To learn a new task, they typically require an enormous amount of specific training data.

In contrast, humans don't start from scratch for every task; we recall analogous situations and adapt. The challenge addressed here is: How can we give robots an explicit "shared memory" of physical actions so they can learn more efficiently with less data?

The RAEA Framework

The authors propose the RAEA framework, which shifts robotic control from purely implicit learning to a retrieval-augmented approach. This system consists of two primary innovative modules:

  1. Policy Retriever: This module acts as the "search engine." When a robot receives a command (e.g., "pick up the black box") and an observation, the retriever searches an external Policy Memory Bank. It uses ImageBind, a multi-modal encoder, to convert text, images, and video into a unified mathematical space to find the top-$k$ most relevant past policies.
  2. Policy Generator: This is the "brain" that processes the retrieved information. It uses a Transformer-based architecture with a cross-attention mechanism. Instead of just looking at the current camera feed, the robot "attends" to the retrieved examples to guide its next move, effectively enabling in-context learning for robotics.
The RAEA framework architecture, illustrating the flow from input to policy retrieval and generation.

To ensure the retrieved data is useful, the authors implemented a Diversity Strategy, bypassing candidates that are too similar to the current query to avoid redundancy and using token dropout during training to ensure robustness.

Experimental Evaluation

To validate the robustness of RAEA, the authors tested the model across a wide variety of benchmarks, ranging from simulated kitchen tasks to real-world object manipulation. The Policy Memory Bank was populated using Open X-Embodiment, a massive repository containing robotic data across various robot types and environments.

Overview of the simulation and real-world environments used to evaluate RAEA's performance.

Key Results

  • Superior Few-Shot Learning: In the Franka Kitchen benchmark with only 10 demonstrations, RAEA significantly outperformed state-of-the-art baselines like R3M and EmbodiedGPT.
  • Simulation Success: In Meta-World, RAEA achieved near 100% success rates on several tasks where baselines struggled to reach 60-80%.
  • Real-World Performance: In physical robot tests, RAEA achieved a 69% success rate when using a combination of Image, Video, and Text modalities.

Key Insights

  • Cross-Robot Learning: One of the most surprising findings was that including data from different types of robots in the memory bank actually improved performance. The diversity of environments and commands outweighed the differences in physical hardware.
  • Proprioception is Vital: The paper found that retrieving just visuals isn't enough. Including the robot's internal state (joint angles, velocity) in the retrieved memory is vital; without it, success rates in real-world tests dropped from 54% to 36%.
  • Multi-Modality Boosts Generalization: Combining language and visual instructions significantly increased the model's ability to handle scenarios it hadn't seen during training.

Conclusion and Future Work

While RAEA represents a major leap forward, challenges remain. Retrieval Latency is a concern for high-speed tasks, as searching a massive external memory bank in real-time can introduce delays. Furthermore, the system is heavily dependent on the quality of the Open X-Embodiment dataset. Future work may involve integrating this strategy with larger Multi-Modal Models to allow for real-time, natural language "corrections" from humans during task execution.

Summary updated

BibTeX
@misc{zhu2024retrieval,
  author = {Yichen Zhu and Zhicai Ou and Xiaofeng Mou and Jian Tang},
  title = {{Retrieval-Augmented Embodied Agents}},
  year = {2024},
  eprint = {2404.11699},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.11699},
}
Figure