Contextual Experience Replay for Self-Improvement of Language Agents
Yitao Liu, Chenglei Si, Karthik Narasimhan, Shunyu Yao

TL;DR
This paper introduces Contextual Experience Replay (CER), a training-free framework that enables language agents to self-improve by leveraging past experiences, significantly enhancing their performance in complex web navigation tasks.
Contribution
The paper proposes CER, a novel method for language agents to self-improve during inference by synthesizing past experiences into a dynamic memory buffer.
Findings
CER achieves 31.9% on VisualWebArena.
CER improves success rate by 51.0% over baseline.
CER demonstrates efficiency and validity through comprehensive analysis.
Abstract
Large language model (LLM) agents have been applied to sequential decision-making tasks such as web navigation, but without any environment-specific experiences, they often fail in these complex tasks. Moreover, current LLM agents are not designed to continually learn from past experiences during inference time, which could be crucial for them to gain these environment-specific experiences. To address this, we propose Contextual Experience Replay (CER), a training-free framework to enable efficient self-improvement for language agents in their context window. Specifically, CER accumulates and synthesizes past experiences into a dynamic memory buffer. These experiences encompass environment dynamics and common decision-making patterns, allowing the agents to retrieve and augment themselves with relevant knowledge in new tasks, enhancing their adaptability in complex environments. We…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMultimodal Machine Learning Applications · Topic Modeling · Artificial Intelligence in Healthcare and Education
MethodsExperience Replay
