[Paper Review] RAP: Retrieval-Augmented Planning with Contextual Memory for Multimodal LLM Agents
RAP stores past experiences and retrieves them dynamically to guide planning for text-only and multimodal LLM agents, achieving state-of-the-art performance on textual tasks and strong gains in embodied multimodal tasks.
Owing to recent advancements, Large Language Models (LLMs) can now be deployed as agents for increasingly complex decision-making applications in areas including robotics, gaming, and API integration. However, reflecting past experiences in current decision-making processes, an innate human behavior, continues to pose significant challenges. Addressing this, we propose Retrieval-Augmented Planning (RAP) framework, designed to dynamically leverage past experiences corresponding to the current situation and context, thereby enhancing agents' planning capabilities. RAP distinguishes itself by being versatile: it excels in both text-only and multimodal environments, making it suitable for a wide range of tasks. Empirical evaluations demonstrate RAP's effectiveness, where it achieves SOTA performance in textual scenarios and notably enhances multimodal LLM agents' performance for embodied tasks. These results highlight RAP's potential in advancing the functionality and applicability of LLM agents in complex, real-world applications.
Motivation & Objective
- Motivate the need for leveraging past experiences in LLM agent planning across textual and multimodal environments.
- Propose a Retrieval-Augmented Planning (RAP) framework that stores, retrieves, and utilizes past experiences to inform current decisions.
- Demonstrate RAP’s effectiveness across text-based benchmarks (e.g., ALFWorld, WebShop) and embodied robotics benchmarks (e.g., Franka Kitchen, Meta-World).
- Show that memory-augmented planning improves performance across multiple LLM backbones and vision-language models.
Proposed method
- Introduce four core RAP components: Memory, Reasoner, Retriever, and Executor.
- Store episodic logs of successful task executions as memory, including task info, overall plans, and trajectories.
- Use a Reasoner (LLMs) to generate overall and action plans and retrieval keys based on current context.
- Compute a retrieval score as a weighted combination of task similarity, plan alignment, and retrieval-key similarity to select relevant memories.
- Employ the Executor (LLM) to generate the next action via in-context learning with retrieved experiences as prompts.
- Demonstrate memory transferability across models (memory constructed with one model can aid evaluation with another).
Experimental results
Research questions
- RQ1How can past experiences be effectively stored and retrieved to improve planning for LLM agents in textual and multimodal environments?
- RQ2Do memory-augmented planners outperform state-of-the-art baselines on text-based benchmarks and embodied robotics benchmarks?
- RQ3Is RAP robust across different language models and vision-language models, and can memory be transferred across models?
- RQ4What retrieval strategies (act vs. obs vs. multimodal) yield the best performance in various environments?
Key findings
- RAP achieves substantial gains over ReAct across ALFWorld, WebShop, Franka Kitchen, and Meta World benchmarks (e.g., 33.6%, 13.0%, 18.2%, 12.7% gains respectively).
- In ALFWorld, RAP with GPT-3.5 reaches 85.8% overall, and RAP train reaches 91.0% across tasks, outperforming ReAct, Reflexion, and ADaPT.
- In WebShop, RAP with GPT-3.5 attains 76.1% overall score and 48.0% success rate, higher than ReAct, Reflexion, and ADaPT.
- In multimodal benchmarks (Franka Kitchen, Meta-World), RAP-enhanced LLaVA and CogVLM agents show notable improvements in average success rates (e.g., LLaVA from 43.4% to 61.6%, CogVLM from 44.2% to 56.9%).
- RAP demonstrates transfer learning via memory across models (memory built with GPT-3.5 aiding LLaMA-13B evaluation).
- RAP’s ablations indicate benefits from using multimodal retrieval keys (images) and intra-task/product-category retrieval components.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.