P-RAG: Progressive Retrieval Augmented Generation For Planning on Embodied Everyday Task

Weiye Xu, Min Wang, Wengang Zhou, Houqiang Li

Abstract

Embodied AI agents often struggle with complex household tasks due to instruction ambiguity, environmental constraints, and a lack of high-quality demonstration data. We present Progressive Retrieval Augmented Generation (P-RAG), a framework that enables agents to improve their planning capabilities by iteratively building a memory of their own experiences. By retrieving past successes and failures based on situational similarity, P-RAG allows agents to adapt to specific environments without human-provided ground truth, eventually outperforming models trained on significantly larger datasets.

Introduction

Executing high-level commands like "clean the kitchen" requires a robot to navigate several challenges. First, natural language is often underspecified. Second, environments impose physical constraints that are not explicitly mentioned in instructions. Finally, traditional Retrieval Augmented Generation (RAG) methods typically rely on expensive, human-annotated "few-shot" examples. P-RAG addresses these issues by treating the agent's interaction history as a dynamic, growing database, bridging the gap between general common sense and environment-specific constraints.

Methodology: The P-RAG Framework

The core of P-RAG is a "memory-driven" loop that treats the database as an evolving resource rather than a static one.

Overview of the P-RAG framework showing the iterative loop of planning, execution, and database updating.

The process consists of four main stages:

  1. Encoding & Retrieval: Given a goal and a Scene Graph (a structured map of the environment), the agent retrieves the top-K most similar past experiences from its database.
  2. LLM Planning: An LLM (e.g., GPT-4) generates a sequence of high-level actions based on the current state and retrieved memories.
  3. Action Filtering & Decomposition: High-level commands are checked for physical feasibility and decomposed into low-level coordinates using methods like the Fast Marching Method (FMM).
  4. Progressive Database Update: Every trajectory, whether successful or not, is stored back in the database, allowing the agent to learn from its own history in subsequent attempts.

Situational Retrieval and Learning from Failure

A key innovation in P-RAG is the use of Scene Graphs for retrieval. Unlike standard RAG systems that rely solely on text similarity, P-RAG calculates similarity based on both goal instructions and the physical layout of the scene.

The retrieval process in P-RAG, combining goal instruction and scene graph embeddings to find relevant past experiences.

This situational awareness helps the agent account for environmental constraints, such as crowded surfaces. Furthermore, by storing failed attempts, the agent learns what actions to avoid, effectively "debugging" its behavior over time. This "Self-Iteration" allows the agent to build local expertise in a new environment through practice alone.

Experimental Evaluation

P-RAG was evaluated on two benchmarks: ALFRED, which involves long-horizon household tasks with realistic visual observations, and MINI-BEHAVIOR, a grid-world simulation with sparse rewards.

Key Results

  • Superior Performance: On the ALFRED "Valid Unseen" dataset, P-RAG achieved a 14.11% success rate, outperforming the previous state-of-the-art LLM-Planner (12.92%) which relied on human ground truth.
  • The Power of Practice: Through self-iteration on the test set, the success rate on ALFRED improved from 7.05% to 27.4% after five rounds of practice.
  • Data Efficiency: P-RAG achieved these results using only 1/200th of the training data required by traditional learning-based methods like HLSM.

Conclusion and Future Work

P-RAG demonstrates that an agent's own experience can be a more powerful learning signal than static human demonstrations. However, performance eventually plateaus due to the reasoning limits of the underlying LLM. Additionally, the computational cost of iterative planning with large models remains a challenge for real-time deployment. Future research will focus on optimizing retrieval efficiency and bridging the sim-to-real gap regarding noisy sensor data in physical environments.

Summary updated

BibTeX
@inproceedings{xu2024p,
  author = {Weiye Xu and Min Wang and Wengang Zhou and Houqiang Li},
  title = {{P-RAG: Progressive Retrieval Augmented Generation For Planning on Embodied Everyday Task}},
  booktitle = {ACM Multimedia},
  year = {2024},
}
Figure