atlas

Research map / Large language models / Agents, code and math

Self-Generated In-Context Examples Improve LLM Agents for Sequential Decision-Making Tasks

NeurIPS 2025 · Large language models › Agents, code and math · approach: Long-horizon LLM agents · 0 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.

Shows that a ReAct-style LLM agent can improve by accumulating its own successful trajectories as retrieved in-context examples, further boosted by population-based database curation and exemplar-level utility-based curation.

Problem

LLM agents for sequential decision-making usually need heavy task-specific knowledge engineering (prompts, human-curated examples, custom observation/action spaces); the paper asks whether agents can improve automatically by curating a database of their own successful trajectories used as in-context

Approach

Bootstrap a trajectory database from the agent's own successful training-task attempts, retrieved per decision point via multi-key KNN; add population-based training over N parallel databases (TrajBootstrap-DBCuration) and a retrieval-weighted quality metric to keep high-utility exemplars (ExemplarCuration).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Accumulate self-generated successful trajectories instead of using a fixed databaseGPT-4o-mini ReAct agent · ALFWorldsuccess rate: 0.73±0.02 -> 0.89±0.01Helped
Accumulate self-generated successful trajectories instead of using a fixed databaseGPT-4o-mini ReAct agent · InterCode-SQLsuccess rate: 0.75±0.01 -> 0.79±0.01Helped
Accumulate self-generated successful trajectories instead of using a fixed databaseGPT-4o-mini ReAct agent · Wordcraftsuccess rate: 0.55±0.03 -> 0.64±0.03Helped
Add population-based database curationTrajectory bootstrapping · ALFWorldsuccess rate: 0.89±0.01 -> 0.91±0.01Helped
Add population-based database curationTrajectory bootstrapping · InterCode-SQLsuccess rate: 0.79±0.01 -> 0.78±0.01Hurt
Add population-based database curationTrajectory bootstrapping · Wordcraftsuccess rate: 0.64±0.03 -> 0.64±0.01No clear effect
Select high-utility successful trajectories as exemplarsTrajectory bootstrapping · ALFWorldsuccess rate: 0.89±0.01 -> 0.90±0.02No clear effect
Select high-utility successful trajectories as exemplarsTrajectory bootstrapping · InterCode-SQLsuccess rate: 0.79±0.01 -> 0.81±0.01Helped
Select high-utility successful trajectories as exemplarsTrajectory bootstrapping · Wordcraftsuccess rate: 0.64±0.03 -> 0.72±0.02Helped
Combine database-level and exemplar-level curationTrajectory bootstrapping · ALFWorldsuccess rate: 0.89±0.01 -> 0.93±0.03Helped
Combine database-level and exemplar-level curationTrajectory bootstrapping · InterCode-SQLsuccess rate: 0.79±0.01 -> 0.82±0.01Helped
Combine database-level and exemplar-level curationTrajectory bootstrapping · Wordcraftsuccess rate: 0.72±0.02 -> 0.69±0.01Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ALFWorld InterCode-SQL Wordcraft

Benchmarks: ALFWorld InterCode-SQL Wordcraft

Metrics: success rate pass@k

Baselines: Fixed-DB AutoGuide AutoManual GameSQL GameSQL+Cheat gpt-4o Fixed-DB Fixed-DB pass@k

Builds on: ReAct AutoGuide AutoManual ExpeL RAP

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