Research map / Multi-agent systems and games / LLM agents
Learn-by-interact: A Data-Centric Framework For Self-Adaptive Agents in Realistic Environments
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 Learn-by-interact, a fully autonomous pipeline that synthesizes environment-specific agent trajectories via self-instruct, LLM rollouts, and backward instruction construction, then uses the data for agentic retrieval in ICL and for LoRA fine-tuning.
Problem
LLM agents underperform on realistic digital environments (SWE-bench, WebArena, OSWorld, Spider2-V) due to a lack of high-quality environment-specific agent data, and human annotation of long agent trajectories is costly.
Approach
Generate tasks from environment documentation, collect interaction trajectories, then relabel every sub-trajectory with LLM-written summary or abstraction instructions (backward construction) to fix instruction-trajectory misalignment and multiply data; use model-based plus observation-based agentic retrieval for ICL and SFT on the filtered data.
Key results
- On OSWorld with Claude-3.5-sonnet, Learn-by-interact ICL raises success from 12.4% to 22.5%, nearly doubling the baseline.
- On WebArena, Codestral-22B improves from 4.7% to 24.2% after LoRA tuning on the synthesized data, versus 10.2% for data distillation.
- Training-free Learn-by-interact outperforms Reflexion and LATS across all four benchmarks for both Gemini-1.5-pro and Claude-3.5-sonnet (e.g., SWE-bench 60.0 vs 55.2 for Claude).
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add backward construction to synthesized trajectory data (ablation) | Learn-by-interact · WebArena, OSWorld, SWE-bench, Spider2-V | success rate | Helped |
| Combine model-based and observation-based retrieval (ablation) | Learn-by-interact ICL · SWE-bench, WebArena, OSWorld, Spider2-V | success rate: Gemini: SWE 17.0 -> 18.7, Web 24.3 -> 25.6, OS 9.5 -> 10.3, Spider2-V 15.4 -> 16.4 | Helped |
| Use model-based retrieval only instead of combined agentic retrieval (ablation) | Learn-by-interact ICL · SWE-bench, WebArena, OSWorld, Spider2-V | success rate: Gemini: SWE 18.7 -> 17.0, Web 25.6 -> 24.3, OS 10.3 -> 9.5, Spider2-V 16.4 -> 15.4 | Hurt |
| Use observation-based retrieval only instead of combined agentic retrieval (ablation) | Learn-by-interact ICL · SWE-bench, WebArena, OSWorld, Spider2-V | success rate: Gemini: SWE 18.7 -> 16.3, Web 25.6 -> 23.5, OS 10.3 -> 8.7, Spider2-V 16.4 -> 14.6 | Hurt |
| Disable retrieval (ablation) | Learn-by-interact ICL · SWE-bench, WebArena, OSWorld, Spider2-V | success rate: Gemini: SWE 18.7 -> 13.3, Web 25.6 -> 17.9, OS 10.3 -> 4.9, Spider2-V 16.4 -> 8.3 | Hurt |
| Use short trajectories rather than medium or long trajectories (ablation) | Learn-by-interact synthesized data · WebArena and OSWorld | success rate: Claude Web: Short 39.4, Medium 38.8, Long 37.6; OS: Short 17.9, Medium 16.6, Long 15.2 | Helped |
| Combine short, medium, and long trajectory data (ablation) | Learn-by-interact synthesized data · WebArena and OSWorld | success rate: Claude Web: Short+Medium+Long 42.0; OS 19.8 | Helped |
| Generate task instructions from related resources rather than environments alone (ablation) | Learn-by-interact ICL with Claude-3.5-sonnet · WebArena | success rate: 39.6 -> 48.0 | Helped |
| Train Codestral-22B with Learn-by-interact data instead of using it only as ICL examples | Codestral-22B · WebArena | success rate: 9.9 -> 24.2 | Helped |
| Use Learn-by-interact data instead of data distillation for training | Codestral-22B · WebArena and OSWorld | success rate: Web 10.2 -> 24.2; OS 5.4 -> 11.7 | Helped |
| Add synthesized Learn-by-interact data as ICL examples | Claude-3.5-sonnet · OSWorld | success rate: 12.4 -> 22.5 | Helped |
| Add synthesized Learn-by-interact data as ICL examples | Codestral-22B · WebArena | success rate: 4.7 -> 9.9 | Helped |
Surprising findings
- Data distillation without backward construction gives at most about 2% gain over baseline with Gemini, suggesting raw distilled trajectories are noisy.
- Short-trajectory data is more useful than medium or long trajectories for both ICL and training.
Limitations
- Requires many LLM calls for generation and committee-based filtering.
- Depends on environment-related documentation, which may be incomplete or unavailable.
Experimental setup
Datasets: SWE-bench Verified documentation (python files) WebArena documentation sources OSWorld documentation sources Spider2-V documentation sources
Benchmarks: SWE-bench Verified WebArena OSWorld Spider2-V
Metrics: resolved rate pass@1
Baselines: RAG Data distill Reflexion LATS
Builds on: self-instruct Reflexion LATS ReAct CodeAct
Closest papers by meaning
- Test-Time Adaptation for LLM Agents via Environment Interaction (ICLR 2026 · similarity 0.90)
- WebFactory: Automated Compression of Foundational Language Intelligence into Grounded Web Agents (ICLR 2026 · similarity 0.89)
- How to Train Your LLM Web Agent: A Statistical Diagnosis (NeurIPS 2025 · similarity 0.89)
- Self-Generated In-Context Examples Improve LLM Agents for Sequential Decision-Making Tasks (NeurIPS 2025 · similarity 0.89)
- AutoManual: Constructing Instruction Manuals by LLM Agents via Interactive Environmental Learning (NeurIPS 2024 · similarity 0.89)
- GenEnv: Difficulty-Aligned Co-Evolution Between LLM Agents and Environment Simulators (NeurIPS 2026 · similarity 0.89)
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.
