Skip to main content
QUICK REVIEW

[Paper Review] ExpeL: LLM Agents Are Experiential Learners

Andrew Zhao, Daniel Huang|arXiv (Cornell University)|Aug 20, 2023
Topic ModelingComputer Science15 citations
TL;DR

ExpeL autonomously gathers experiences, extracts natural language insights from them, and uses these cross-task insights at inference without updating model weights, improving performance across multiple domains.

ABSTRACT

The recent surge in research interest in applying large language models (LLMs) to decision-making tasks has flourished by leveraging the extensive world knowledge embedded in LLMs. While there is a growing demand to tailor LLMs for custom decision-making tasks, finetuning them for specific tasks is resource-intensive and may diminish the model's generalization capabilities. Moreover, state-of-the-art language models like GPT-4 and Claude are primarily accessible through API calls, with their parametric weights remaining proprietary and unavailable to the public. This scenario emphasizes the growing need for new methodologies that allow learning from agent experiences without requiring parametric updates. To address these problems, we introduce the Experiential Learning (ExpeL) agent. Our agent autonomously gathers experiences and extracts knowledge using natural language from a collection of training tasks. At inference, the agent recalls its extracted insights and past experiences to make informed decisions. Our empirical results highlight the robust learning efficacy of the ExpeL agent, indicating a consistent enhancement in its performance as it accumulates experiences. We further explore the emerging capabilities and transfer learning potential of the ExpeL agent through qualitative observations and additional experiments.

Motivation & Objective

  • Motivate learning without weight updates by leveraging autonomous experience collection across tasks.
  • Develop a cross-task insight extraction mechanism to generalize knowledge in natural language.
  • Enable retrieval of past successful trajectories to guide inference on new tasks.
  • Demonstrate transfer learning from source to target task distributions using extracted insights.

Proposed method

  • Collect success and failure experiences from a pool of training tasks via trial-and-error and Reflexion.
  • Extract and manage cross-task insights using a prompt-driven LLM with ADD, UPVOTE, DOWNVOTE, and EDIT operations.
  • Use task-similarity based retrieval to recall top-k relevant successful trajectories as few-shot demonstrations during evaluation.
  • Augment task specifications with the extracted insights and retrieved demonstrations during inference.
  • Show transfer learning by adapting source-task insights to target tasks using a finetuning-like prompt, without updating LLM weights.
ExpeL: LLM Agents Are Experiential Learners

Experimental results

Research questions

  • RQ1Can an LLM agent improve performance by learning from its own collected experiences without parametric updates?
  • RQ2Do cross-task insights and retrieval of past successes enhance generalization across diverse domains?
  • RQ3What role does transfer learning of insights play when moving from source to target task distributions?
  • RQ4How do different insight extraction strategies (learned vs. hand-crafted) impact performance?
  • RQ5Is cross-task learning compatible with existing planning frameworks like ReAct/Reflexion?

Key findings

  • ExpeL consistently outperforms planning baselines (ReAct/Act) across HotpotQA, ALFWorld, and WebShop.
  • Combining abstracted insights with retrieval of successful trajectories yields performance gains beyond using either component alone.
  • Transfer of insights from HotpotQA to FEVER improves target performance, with finetuned insights providing additional gains.
  • Insights extracted by the agent outperform hand-crafted insights, and larger LLMs (e.g., GPT-4) further enhance results.
Figure 1: ExpeL Agent Overview. Left: ExpeL operates in three stages: (1) Collection of success and failure experiences into a pool. (2) Extraction/abstraction of cross-task knowledge from these experiences. (3) Application of the gained insights and recall of past successes in evaluation tasks. Rig
Figure 1: ExpeL Agent Overview. Left: ExpeL operates in three stages: (1) Collection of success and failure experiences into a pool. (2) Extraction/abstraction of cross-task knowledge from these experiences. (3) Application of the gained insights and recall of past successes in evaluation tasks. Rig

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.