arXiv(opens in a new tab)cs.IRSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.10750

When Synthetic Data Hurts: On Catastrophic Forgetting in Skill Retrieval for LLM Agents

Syed Shariyar Murtaza, Yifan Nie, Utkarsh Soni, Eugene Wen, Arvid Frydenlund

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLM agents increasingly rely on external skills retrieved at runtime, making skill selection from large repositories a critical challenge. We present a production skill router over 34,396 skills and a large-scale study of skill retrieval using limited real supervision and synthetic data. We found that the synthetic-data fine-tuning improves in-distribution retrieval but it causes catastrophic forgetting on real and out-of-distribution (OOD) data. We evaluate several forgetting mitigation fine-tuning approaches inspired by continual learning, including embedding-anchor regularization, Learning without Forgetting (LwF), Elastic Weight Consolidation (EWC), and L2-initialization. The results show that these approaches not only retain the performance on OOD skills retrieval but also improve the retrieval on synthetic in-distribution skills by 13.98% for 0.6B Qwen retriever and reranker. Our results provide a practical benchmark and a robust fine-tuning recipe for scarce, multi-positive supervision.

1 Introduction

Modern LLM-driven agents increasingly rely on skills: short, agent-readable procedures retrieved at run time and injected into the agent's context to solve specific tasks (Anthropic, 2026; Yao et al., 2022). These tasks span scientific (detecting exoplanets and computing orbital periods), engineering (HVAC control), financial (SEC report generation), software (debugging a Node.js app) and many other domains, and they require specific skills for end-to-end completion; e.g., a fraud-detection task may depend on fuzzy matching, database search, PDF reading, and Excel analysis. As skill registries grow, retrieving the right skills for a task becomes hard. The common information retrieval practice is to use sparse retrieval algorithms, such as BM25 and dense vector retrieval models to match on lexical and semantic similarity (Robertson and Zaragoza, 2009; Karpukhin et al., 2020). This practice is also enhanced with synthetic supervision from an LLM to fine-tune a model for improving retrieval performance (Dai et al., 2022; Bonifacio et al., 2022; Gao et al., 2023; Wang et al., 2024).

We follow this paradigm and conduct a systematic empirical study of skill retrieval over a repository of 34,396 skills (Liu et al., 2026). We use tasks from SkillsBench and Terminal-Bench 2 and execute approximately 1K trials across 109 tasks using hybrid retrieval pipelines in Harbor environment (Harbor Framework Team, 2026). We further construct two synthetic training tracks: Track A ( ∼\sim15K pairs) creates anchor-skill tasks with retrieval-derived positives and hard negatives, while Track B ( ∼\sim14K pairs) combines real data, paraphrase generation, and multi-skill task synthesis. Using these datasets, we evaluate compact retrieval models, such as Qwen3-Embedding-0.6B under varying fine-tuning regimes. 1^{1}

Our experiments show that synthetic supervision improves in-distribution retrieval performance but can also induce substantial forgetting. In the most aggressive fine-tuning configuration, OOD recall drops from 0.850 to 0.650, demonstrating that gains on synthetic training data do not necessarily translate to robust deployment behavior.

This raises an important deployment question that has received limited attention: does synthetic-data fine-tuning degrade a model's ability to retrieve skills for real-world or out-of-distribution (OOD) tasks? Catastrophic forgetting is well studied in continual learning, where approaches such as Learning without Forgetting (LwF) and Elastic Weight Consolidation (EWC) preserve pretrained behaviour (Li and Hoiem, 2018; Kirkpatrick et al., 2017). However, it remains unclear how these preservation strategies behave in the context of synthetic-data-driven skill retrieval for LLM agents,

1^{1}https://github.com/manulife-ai/emnlp2026/

Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: Industry Track, Oct 26-29, 2026, ©2026 Association for Computational Linguistics especially at realistic deployment scale.

Therefore, we study several forgetting mitigation regularization approaches, including embedding-anchor regularization, LwF, EWC, and L2-initialization, under a common fine-tuning recipe (Li and Hoiem, 2018; Kirkpatrick et al., 2017; Li et al., 2018). Our results show that these fine-tuning regularization approaches not only retain the behavior of the frozen model on OOD or real tasks for LoRA adapters (Hu et al., 2022), but also improve performance on the synthetic (in-distribution) data compared to aggressive LoRA fine-tuning.

Our contributions are threefold. (A) We present a systematic study of skill retrieval for agents at a realistic scale, covering 34,396 skills and 109 verifier-scored tasks, and identify synthetic-data-induced forgetting as a deployment failure mode. (B) We introduce a unified benchmark that combines real and synthetic supervision under a shared evaluation protocol. (C) We evaluate multiple forgetting-mitigation approaches, including embedding anchors, LwF, EWC, and L2-initialization, and show that conservative regularized fine-tuning preserves real-world and out-of-distribution behavior while improving in-distribution gains, providing a practical recipe for deployed skill-retrieval systems.

References (23)