Fine-tuning with RAG for Improving LLM Learning of New Skills
On the map: Retrieval-augmented generation → Agentic RAG, agents and memory
Abstract (arXiv)
Large language model (LLM) agents deployed for multi-step tasks frequently fail in predictable ways: attempting actions with unmet preconditions, issuing redundant commands, or mishandling environment constraints. While retrieval-augmented generation (RAG) can improve performance by providing runtime guidance, it requires maintaining external knowledge databases and adds computational overhead at every deployment. We propose a simple pipeline that converts inference-time retrieval into learned competence through distillation. Our approach: (1) extracts compact, reusable hints from agent failures, (2) uses these hints to generate improved teacher trajectories via one-shot retrieval at episode start, and (3) trains student models on these trajectories with hint strings removed, forcing internalization rather than memorization. Across two interactive benchmarks, ALFWorld (household tasks) and WebShop (online shopping), distilled students consistently outperform baseline agents, achieving up to 91% success on ALFWorld (vs. 79% for baselines) and improving WebShop scores to 72 (vs. 61 for baselines), while using 10-60% fewer tokens than retrieval-augmented teachers depending on the environment. The approach generalizes across model scales (7B/14B parameters) and agent architectures (ReAct/StateAct), demonstrating that retrieval benefits can be effectively internalized through targeted fine-tuning without permanent runtime dependencies.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Agentic RAG, agents and memory, one of 15 directions in Retrieval-augmented generation. Builds on 18 of its 23 references that are in the map. First posted on arXiv 1 Oct 2025.
Builds on
18 of 23 references.
References · 18
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
- 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
- 2023Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agentscited by 356
6 more
- 2023Large Language Models are Effective Text Rankers with Pairwise Ranking Promptingcited by 302
- 2024AutoGuide: Automated Generation and Selection of Context-Aware Guidelines for Large Language Model Agentscited by 69
- 2024AutoManual: Constructing Instruction Manuals by LLM Agents via Interactive Environmental Learningcited by 52
- 2024THREAD: Thinking Deeper with Recursive Spawningcited by 24
- 2024Efficient Knowledge Injection in LLMs via Self-Distillationcited by 22
- 2024StateAct: Enhancing LLM Base Agents via Self-prompting and State-trackingcited by 21
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026RoboAgent: Chaining Basic Capabilities for Embodied Task Planningcited by 6
- 2026Agent Memory Distillation: Empowering Small LLM Agents with Hierarchical Teacher Memorycited by 3
- 2026The FIL Hypothesis: Inductive Biases Help with Kernel Engineeringcited by 0
- 2026AgentBrew: Lifelong Knowledge Brewing from Strong Teachers to Weak LLM Agentscited by 0
- 2026Persistent Teacher Anchoring for Tool-Using Agentscited by 0
- 2026Persistent Teacher Anchoring for Tool-Using Agents4 Sep 2026
- 2026Agent Memory Distillation: Empowering Small LLM Agents with Hierarchical Teacher Memory7 Aug 2026
- 2026AgentBrew: Lifelong Knowledge Brewing from Strong Teachers to Weak LLM Agents18 Jul 2026
- 2026The FIL Hypothesis: Inductive Biases Help with Kernel Engineering29 Jun 2026
- 2026RoboAgent: Chaining Basic Capabilities for Embodied Task Planning9 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG
- 2024RAG-DDR: Optimizing Retrieval-Augmented Generation Using Differentiable Data Rewards
- 2023Enhancing LLM Intelligence with ARM-RAG: Auxiliary Rationale Memory for Retrieval Augmented Generation
- 2026Improving Retrieval-Augmented Generation without Taxonomy-based Error Categorization
- 2026Search-P1: Path-Centric Reward Shaping for Stable and Efficient Agentic RAG Training
- 2025Post-training an LLM for RAG? Train on Self-Generated Demonstrations
- 2026RAGShaper: Eliciting Sophisticated Agentic RAG Skills via Automated Data Synthesis
- 2024A Tale of Trust and Accuracy: Base vs. Instruct LLMs in RAG Systems