Mitigating Catastrophic Forgetting in Large Language Models with Self-Synthesized Rehearsal

Jianheng Huang, Leyang Cui, Ante Wang, Chengyi Yang, Xinting Liao, Linfeng Song, Junfeng Yao, Jinsong Su

arXiv:2403.01244 · 2026-07-27 공개 · arXiv · PDF

llm in-context-learning synthetic-data continual-learning data-efficiency catastrophic-forgetting self-synthesized-rehearsal generalization-capabilities

Abstract

Large language models (LLMs) suffer from catastrophic forgetting during continual learning. Conventional rehearsal-based methods rely on previous training data to retain the model's ability, which may not be feasible in real-world applications. When conducting continual learning based on a publicly-released LLM checkpoint, the availability of the original training data may be non-existent. To address this challenge, we propose a framework called Self-Synthesized Rehearsal (SSR) that uses the LLM to generate synthetic instances for rehearsal. Concretely, we first employ the base LLM for in-context learning to generate synthetic instances. Subsequently, we utilize the latest LLM to refine the instance outputs based on the synthetic inputs, preserving its acquired ability. Finally, we select diverse high-quality synthetic instances for rehearsal in future stages. Experimental results demonstrate that SSR achieves superior or comparable performance compared to conventional rehearsal-based approaches while being more data-efficient. Besides, SSR effectively preserves the generalization capabilities of LLMs in general domains.

한국어 요약

한 줄 요약

LLM에서 카테스트로픽 포겟팅을 완화하기 위해 Self-Synthesized Rehearsal (SSR)이라는 새로운 프레임워크를 제안한다.

핵심 기여도

핵심 아이디어

기존 리허설 기반 연속 학습은 이전 훈련 데이터에 의존하지만, 실제 상황에서는 이 데이터가 없을 수 있다. 이를 해결하기 위해 SSR은 LLM 자체로 합성 인스턴스를 생성하고, 이 인스턴스를 리허설 데이터로 사용한다. 구체적으로, SSR은 다음과 같은 단계로 구성된다:
1. **In-Context Learning (ICL)**: 기존 LLM을 사용해 합성 인스턴스 생성.
2. **Latest LLM 활용**: 최신 LLM을 사용해 생성된 인스턴스를 정제하여 능력 유지.
3. **다양성 및 품질 기반 선택**: 미래 리허설 단계에서 사용할 고질량 합성 인스턴스 선택.
이 방식은 실제 데이터 없이도 LLM의 학습 능력을 유지하는 데 기여하며, 특히 카테스트로픽 포겟팅 문제를 완화한다.

기술적 접근법

주요 결과

의의 및 한계

SSR은 기존 리허설 기반 방법이 필요로 하는 실제 데이터 없이도 LLM의 학습 능력을 유지할 수 있음을 보여준다. 특히, 연속 학습 환경에서 카테스트로픽 포겟팅 문제를 완화하고, SuperNI, Alpaca, MMLU 등 다양한 도메인에서 일반화 능력을 유지하는 데 성공했다.
하지만, SSR은 합성 인스턴스의 품질에 따라 성능이 변동할 수 있으며, 합성 과정에서 발생할 수 있는 오류나 편향 문제는 아직 명시되지 않았다. 또한, 실제 데이터가 존재하는 경우 SSR 대신 기존 리허설 방법이 더 효과적일 수 있다.

실용적 활용

SSR은 실제 데이터가 제한된 환경에서 LLM을 업데이트해야 하는 경우에 유용하게 활용될 수 있다. 예를 들어, 기업이 내부 데이터를 보호하면서도 모델을 지속적으로 학습시키는 데 적용 가능하다. 또한, 공개된 LLM 체크포인트를 기반으로 연속 학습을 수행하는 연구 및 산업 분야에도 적용 가능하다.