Embodied-RAG: General Non-parametric Embodied Memory for Retrieval and Generation

Quanting Xie, So Yeon Min, Tianyi Zhang, Kedi Xu, Aarav Bajaj, Russ Salakhutdinov, Matthew Johnson-Roberson, Yonatan Bisk

TL;DR

This paper introduces Embodied-RAG, a novel framework that adapts the powerful Retrieval-Augmented Generation (RAG) paradigm for embodied agents. By building a hierarchical semantic memory, Embodied-RAG enables robots to effectively retrieve and generate information for both navigation and explanation tasks, bridging the gap between language models and real-world robotic interaction.

What Problem Does This Paper Address?

Current embodied agents struggle with building and utilizing rich, searchable memories of their environments. While techniques like semantic mapping and scene graphs exist, they often fall short of the dynamic and flexible memory capabilities humans possess. Existing language-based RAG methods, which leverage large non-parametric knowledge bases, don't directly translate to the embodied domain due to its multimodal nature, inherent spatial correlations, and the need for perceptual abstraction. This paper tackles the challenge of creating a general-purpose, non-parametric memory system for embodied agents that can handle diverse queries and environments, enabling more sophisticated navigation and explanation capabilities.

Methods

The core of Embodied-RAG lies in its two-part memory system:

  1. Topological Map: This forms a graph of the environment, abstracting away specific control parameters like velocity and yaw. Each node represents a location and stores its allocentric coordinates, yaw angle, and a path to an ego-centric image. This abstraction makes the system compatible with various robotic platforms and is more memory-efficient than traditional metric maps.
  2. Semantic Forest: Built upon the topological map, this is a hierarchical structure that organizes language descriptions at varying levels of detail. It uses agglomerative clustering to group spatially proximate nodes, creating a semantic forest where non-leaf nodes represent larger areas with coarser semantic specificity. A large language model (LLM) is used to generate hierarchical descriptions bottom-up.

For Retrieval, Embodied-RAG uses a parallelized tree traversal guided by an LLM to select the most relevant nodes based on a given query. This process allows for retrieval at different abstraction levels (explicit, implicit, global).

For Generation, the retrieved semantic chains are fed as context to an LLM. For navigation, the LLM selects a waypoint and provides reasoning, which is then used by a planner. For explanations, the LLM generates a response based on the retrieved information, leveraging the spatial scale of attention within the chains.

Datasets

The paper introduces a novel benchmark called the Embodied-RAG benchmark. This benchmark consists of over 200 tasks requiring multimodal outputs and reasoning, encompassing queries from the cross-product of {explicit, implicit, global} questions with potential {navigational action, language} generation outputs. The benchmark is designed to evaluate Embodied-RAG's performance across diverse environments (small and large, indoor and outdoor).

Key Insights and Ideas

  • Bridging RAG to Embodiment: The most significant insight is the successful adaptation of RAG principles to the embodied domain. This demonstrates that non-parametric memory mechanisms, proven effective in NLP, can be extended to robots.
  • Hierarchical Memory is Crucial: The semantic forest's hierarchical structure is key to handling queries at different levels of detail, from specific objects to holistic environmental descriptions. This is a significant advantage over flat memory structures.
  • Implicit and Global Queries are Solvable: Embodied-RAG shows a marked improvement in handling implicit (requiring pragmatic understanding) and global (holistic environmental descriptions) queries, areas where traditional RAG and semantic matching methods struggle.
  • Robustness to Perception Errors: The hierarchical structure and spatial relevancy in Embodied-RAG make it more robust to object detection errors in explicit queries compared to baseline methods.

Key Results

  • Quantitative Performance: Embodied-RAG consistently outperforms RAG and Semantic Match across explicit, implicit, and global retrieval tasks.
  • On implicit queries, Embodied-RAG shows a 220% improvement over Semantic Match and a 30% improvement over RAG.
  • On global questions, Embodied-RAG excels, while Semantic Match is not applicable due to its lack of summarization and reasoning capabilities.
  • Qualitative Findings:
    • For implicit queries like "Where can I buy drinks?", Embodied-RAG correctly identifies suitable locations (e.g., cafeteria, vending machines) by performing multi-step reasoning, whereas baselines provide irrelevant answers.
  • For global queries, Embodied-RAG provides cohesive environmental descriptions (e.g., "suburban neighborhood with a park"), integrating elements like trees and shrubs, unlike RAG which produces fragmented interpretations.

Limitations and Future Work

  • Focus on Topological Map: The current work primarily focuses on the semantic forest, with less emphasis on the topological map. This means Embodied-RAG may not be robust to obstacle avoidance involving dynamic objects and people.
  • Small-Scale Counting: The system struggles with precise counting of objects at a small scale (e.g., "How many chairs are there around the red table?"). This limitation stems from the agglomerative clustering not considering multi-view consistency.
  • Future Directions: The authors suggest incorporating multi-view consistency into the semantic forest's hierarchies, potentially using a learned or pre-trained mechanism that clusters with positional information (e.g., via an LLM). They also envision integrating large non-parametric memories into robotics models for manipulation and dynamic environments, enabling more advanced robotic tasks.

Summary updated

BibTeX
@inproceedings{xie2024embodied,
  author = {Quanting Xie and So Yeon Min and Tianyi Zhang and Kedi Xu and Aarav Bajaj and Russ Salakhutdinov and Matthew Johnson-Roberson and Yonatan Bisk},
  title = {{Embodied-RAG: General Non-parametric Embodied Memory for Retrieval and Generation}},
  booktitle = {AFM @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=tZWwK7Si4A},
}

Loading related content...

Figure