atlas

Research map / Multi-agent systems and games / LLM agents

Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization

ICLR 2024 · Multi-agent systems and games › LLM agents · approach: Self-evolving language agent learning · 5 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Retroformer, which trains a small local retrospective LLM (LongChat-7B) with PPO on reward differences between consecutive trials to write reflections that improve a frozen actor LLM's prompt.

Problem

Frozen LLM language agents generate poor verbal self-reflections because they are not optimized for credit assignment from environment rewards, and existing reflective agents (Reflexion) do not use gradient-based learning from rewards.

Approach

Treat the frozen actor LLM as part of the environment and train a plug-in retrospective LM with policy gradient (offline PPO with a learned reward model), where the rating of a reflection is the change in episode return in the next trial.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fine-tune the retrospective model with policy gradients (Retroformer vs. Reflexion)GPT-3 actor · HotPotQA, N=4success rate: 50% -> 54%Helped
Fine-tune the retrospective model with policy gradients (Retroformer vs. Reflexion)GPT-3 actor · AlfWorld, N=4success rate: 84.33% -> 100%Helped
Fine-tune the retrospective model with policy gradients (Retroformer vs. Reflexion)GPT-3 actor · WebShop, N=4success rate: 35% -> 36%Helped
Fine-tune the retrospective model with policy gradients (Retroformer vs. Reflexion)GPT-4 actor · HotPotQA, N=4success rate: 52% -> 54%Helped
Fine-tune the retrospective model with policy gradients (Retroformer vs. Reflexion)GPT-4 actor · AlfWorld, N=4success rate: 85.07% -> 100%Helped
Fine-tune the retrospective model with policy gradients (Retroformer vs. Reflexion)GPT-4 actor · WebShop, N=4success rate: 44% -> 46%Helped
Increase retrospective-model LoRA rank from 1 to 4 (ablation)Retroformer with GPT-3 actor · HotPotQA, N=1success rate: 45% -> 48%Helped
Increase retrospective-model LoRA rank from 1 to 4 (ablation)Retroformer with GPT-3 actor · AlfWorld, N=1success rate: 93.28% -> 97.76%Helped
Increase retrospective-model LoRA rank from 1 to 4 (ablation)Retroformer with GPT-3 actor · WebShop, N=1success rate: 36% -> 34%Hurt
Increase retrospective-model LoRA rank from 1 to 4 (ablation)Retroformer with GPT-4 actor · HotPotQA, N=1success rate: 48% -> 51%Helped
Increase retrospective-model LoRA rank from 1 to 4 (ablation)Retroformer with GPT-4 actor · AlfWorld, N=1success rate: 95.62% -> 97.76%Mixed
Increase retrospective-model LoRA rank from 1 to 4 (ablation)Retroformer with GPT-4 actor · WebShop, N=1success rate: 43% -> 43%No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: HotPotQA AlfWorld WebShop ShareGPT

Benchmarks: HotPotQA AlfWorld WebShop

Metrics: success rate

Baselines: ReAct Reflexion Soft Actor-Critic

Builds on: Reflexion ReAct PPO RLHF LoRA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy