ExpWeaver: LLM Agents Learn from Experience via Latent RAG
On the map: LLM reasoning → Knowledge- and tool-augmented reasoning
also in 1 more
Abstract (arXiv)
Experience learning has achieved promising results in enhancing LLM agent planning and reasoning by integrating past interactions as reusable knowledge. However, existing methods remain confined to explicit text space, retrieving experiences via semantic similarity and concatenating them into the context window, leading to substantial token overhead and a decoupled architecture that separates retrieval from generation. To address these limitations, we propose ExpWeaver, a framework that enables LLM agents to learn from experience via latent retrieval-augmented generation, without requiring a separate RAG module. ExpWeaver encodes experiences using the LLM's own hidden states, retrieves relevant experiences directly in latent space at each decoding step, and integrates them through cross-attention aggregation and gated residual mechanisms. The entire pipeline is optimized end-to-end with reinforcement learning, supporting both generative and ranking tasks. We evaluate ExpWeaver on 13 diverse tasks spanning question answering, reasoning, coding, scientific prediction, and recommendation. Results demonstrate that ExpWeaver achieves state-of-the-art performance on 12 out of 13 tasks, outperforming the strongest baseline by over 6.8%; maintains token efficiency comparable to non-retrieval baselines while text-based retrieval methods require 1.5 to 2 times more tokens; and exhibits superior cross-domain generalization, outperforming the strongest baseline by 16.32% under zero-shot transfer and 15.21% under few-shot transfer. Our code for ExpWeaver is released at https://github.com/ulab-uiuc/ExpWeaver.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 25 of its 68 references that are in the map. First posted on arXiv 31 May 2026.
Builds on
25 of 68 references.
Closest ancestors · 3
Same direction, newest first
- 2025R1-Ranker: Teaching LLM Rankers to Reason25 Jun
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learning12 Mar
- 2025Search-o1: Agentic Search-Enhanced Large Reasoning Models9 Jan
Other references · 22
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,276
10 more
- 2025Group Sequence Policy Optimizationcited by 788
- 2024DeepSeek-V3 Technical Reportcited by 724
- 2024Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Modelscited by 552
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 533
- 2025The Entropy Mechanism of Reinforcement Learning for Reasoning Language Modelscited by 463
- 2024Training Language Models to Self-Correct via Reinforcement Learningcited by 405
- 2021Therapeutics Data Commons: Machine Learning Datasets and Tasks for Drug Discovery and Developmentcited by 258
- 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memorycited by 253
- 2025Rec-R1: Bridging Generative Large Language Models and User-Centric Recommendation Systems via Reinforcement Learningcited by 32
- 2025Beyond Detection: Exploring Evidence-based Multi-Agent Debate for Misinformation Intervention and Persuasioncited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Retrieval-Augmented LLM Agents: Learning to Learn from Experience
- 2026ExpGraph: Model-Agnostic Experience Learning with Graph-Structured Memory for LLM Agents
- 2026ElasticMem: Latent Memory as a Learnable Resource for LLM Agents
- 2023ExpeL: LLM Agents Are Experiential Learners
- 2026An Agent-Oriented Pluggable Experience-RAG Skill for Experience-Driven Retrieval Strategy Orchestration
- 2026Decocted Experience Improves Test-Time Inference in LLM Agents
- 2026Experience Compression Spectrum: Unifying Memory, Skills, and Rules in LLM Agents
- 2026DELTAMEM: Incremental Experience Memory for LLM Agents via Residual Trees