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

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

2 Mar 2024arXiv:2403.01244archive 2025-07-28

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

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.01244")

Code

Syntology Ran 6 of 12 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

deeplearnxmu/ssr officialmentioned in papermentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 6 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
1ran · fixture could not drive it
3ran
6unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from DeepLearnXMU/SSR. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

softmax DeepLearnXMU/SSR/mmlu_test/evaluate.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 19f01570b0a18e2b · report
format_example DeepLearnXMU/SSR/mmlu_test/evaluate.py official repository ran · our draft was wrong Apache-2.0 (permissive) · cd763eaf1ac287e7 · report
format_subject DeepLearnXMU/SSR/mmlu_test/evaluate.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 6ab745408cb8648b · report
gen_prompt DeepLearnXMU/SSR/mmlu_test/evaluate_flan.py official repository ran Apache-2.0 (permissive) · 3383488ea82b6c15 · report
gen_prompt DeepLearnXMU/SSR/mmlu_test/evaluate_causal.py official repository ran Apache-2.0 (permissive) · 37d029794d683c68 · report
times DeepLearnXMU/SSR/custom/icl_gen/complete_param_alpaca.py official repository ran fingerprinted Apache-2.0 (permissive) · 8fde668203acbef4 · report
get_adaptive_bins DeepLearnXMU/SSR/mmlu_test/calib_tools.py official repository unverified Apache-2.0 (permissive) · 432838d3c5f2ab75 · report
get_encoder DeepLearnXMU/SSR/mmlu_test/crop.py official repository unverified Apache-2.0 (permissive) · 3c57d0ee2854879f · report
get_pairs DeepLearnXMU/SSR/mmlu_test/crop.py official repository unverified Apache-2.0 (permissive) · 4f76173dfe4b0c11 · report
mean DeepLearnXMU/SSR/mmlu_test/calib_tools.py official repository unverified Apache-2.0 (permissive) · 0af29c87aa4bd6a8 · report
one_hot_encode DeepLearnXMU/SSR/mmlu_test/calib_tools.py official repository unverified Apache-2.0 (permissive) · 77933604fbca56e7 · report
pack_instructions DeepLearnXMU/SSR/custom/icl_gen/complete_param_alpaca.py official repository unverified Apache-2.0 (permissive) · 9f2267f6821181c7 · report

Tasks

Continual LearningIn-Context Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

BASE

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections