PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 5, 20251 citationsOpen Access

Fine-tuning with RAG for Improving LLM Learning of New Skills

View Full Paper
HIHumaid IbrahimNRNikolai RozanovMRMarek ReiLeonardo (United Kingdom)

Key Points

  • Distilled models achieved up to 91% success on ALFWorld, outperforming baseline agents by a notable margin.
  • Retrieval-augmented generation enhances performance but incurs computational overhead; this approach mitigates that.
  • A simple pipeline extracts hints from agent failures, creating more effective teacher trajectories through one-shot retrieval.
  • The technique generalizes across different model sizes and architectures, highlighting its broad applicability.

Abstract

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.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Ibrahim et al. (2025) studied this question.

synapsesocial.com/papers/68e25382d6d66a53c2474a25https://doi.org/10.48550/arxiv.2510.01375
Ask AI
Helpful
Bookmark
Share
View Full Paper