SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.01244 · ACL · 2024

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

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

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.01244.json · badge: /api/ran/2403.01244.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
DeepLearnXMU/SSR canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
FunctionStatusWhere it lives
softmax Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
DeepLearnXMU/SSR/mmlu_test/evaluate.py
code served (permissive licence) · get_code("19f01570b0a18e2b")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ndarray, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:44:30Z). If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The softmax function takes a single parameter 'x' which should be array-like
# It uses: max(x), np.exp(z), np.sum(numerator), and division operations
# So x needs to be a numpy array or compatible

x = np.array([1.0, 2.0, 3.0, 4.0])

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_example Ran
ran; our contract draft was wrong, not the code
DeepLearnXMU/SSR/mmlu_test/evaluate.py
code served (permissive licence) · get_code("cd763eaf1ac287e7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd

# Create a small DataFrame with the structure expected by format_example
# The function expects:
# - Column 0: prompt text
# - Columns 1 to k: answer choices (k columns)
# - Column k+1: the correct answer
# With choices = ['A', 'B', 'C', 'D'], we have k=4 choices

data = {
    0: ["What is 2+2?"],
    1: ["3"],
    2: ["4"],
    3: ["5"],
    4: ["6"],
    5: ["B"]  # The answer is 'B' (which corresponds to choice index 1, value "4")
}

df = pd.DataFrame(data)

ARGS = {
    'df': df,
    'idx': 0,
    'include_answer': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_subject Ran
ran; our contract draft was wrong, not the code
DeepLearnXMU/SSR/mmlu_test/evaluate.py
code served (permissive licence) · get_code("6ab745408cb8648b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

def format_subject(subject):
    l = subject.split('_')
    s = ''
    for entry in l:
        s += ' ' + entry
    return s

ARGS = {
    'subject': 'machine_learning_model'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gen_prompt Ran
ran; our contract draft was wrong, not the code
DeepLearnXMU/SSR/mmlu_test/evaluate_flan.py
code served (permissive licence) · get_code("3383488ea82b6c15")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np

# Create a small DataFrame that mimics the structure expected by gen_prompt
# The function expects: question in column 0, answer choices in columns 1 to k, answer in column k+1
data = {
    0: ['What is 2+2?', 'What is the capital of France?'],
    1: ['3', 'London'],
    2: ['4', 'Paris'],
    3: ['5', 'Berlin'],
    4: ['6', 'Madrid'],
    5: ['A', 'B']  # answers column
}

train_df = pd.DataFrame(data)

subject = 'basic_math'

ARGS = {
    'train_df': train_df,
    'subject': subject,
    'k': -1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gen_prompt Ran
ran; our contract draft was wrong, not the code
DeepLearnXMU/SSR/mmlu_test/evaluate_causal.py
code served (permissive licence) · get_code("37d029794d683c68")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np

# Create a small DataFrame with the structure expected by the functions
# Columns: [question, choice_A, choice_B, choice_C, choice_D, answer]
train_data = {
    'question': [
        'What is the capital of France?',
        'What is 2 + 2?'
    ],
    'A': [
        'Paris',
        '3'
    ],
    'B': [
        'London',
        '4'
    ],
    'C': [
        'Berlin',
        '5'
    ],
    'D': [
        'Madrid',
        '6'
    ],
    'answer': [
        'A',
        'B'
    ]
}

train_df = pd.DataFrame(train_data)

# Define all parameters for gen_prompt
ARGS = {
    'train_df': train_df,
    'subject': 'high_school_history',
    'k': -1,
    'template': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_adaptive_bins Ran
ran; our contract draft was wrong, not the code
DeepLearnXMU/SSR/mmlu_test/calib_tools.py
code served (permissive licence) · get_code("432838d3c5f2ab75")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function takes predictions (array-like) and num_bins (int)
# predictions should be sortable and indexable, containing numeric values
# num_bins should be a positive integer

predictions = np.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.95])
num_bins = 3

ARGS = {
    "predictions": predictions,
    "num_bins": num_bins,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_encoder Ran
ran; our contract draft was wrong, not the code
DeepLearnXMU/SSR/mmlu_test/crop.py
code served (permissive licence) · get_code("3c57d0ee2854879f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Encoder. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile
import shutil

# Create a temporary directory for the mock encoder files
temp_dir = tempfile.mkdtemp()
models_dir = os.path.join(temp_dir, 'models', 'gpt2')
os.makedirs(models_dir, exist_ok=True)

# Create mock encoder.json file
encoder_dict = {
    'hello': 0,
    'world': 1,
    ' ': 2,
    'test': 3,
    '!': 4,
}
with open(os.path.join(models_dir, 'encoder.json'), 'w') as f:
    json.dump(encoder_dict, f)

# Create mock vocab.bpe file
bpe_content = "#version: 0.2\n"
bpe_content += "h e\n"
bpe_content += "w o\n"
bpe_content += "l d\n"
bpe_content += "t s\n"
bpe_content += "a b\n"
with open(os.path.join(models_dir, 'vocab.bpe'), 'w', encoding='utf-8') as f:
    f.write(bpe_content)

# Change to temp directory so relative paths work
original_cwd = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'model_name': 'gpt2'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
regex, requests, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Encoder — a Encoder output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Encoder output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_pairs Ran
ran; our contract draft was wrong, not the code
DeepLearnXMU/SSR/mmlu_test/crop.py
code served (permissive licence) · get_code("4f76173dfe4b0c11")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned set. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# The function get_pairs takes a word parameter
# Looking at the function body:
# - word is indexed with [0] to get the first element
# - word is iterated over with word[1:] 
# - Elements are added to a set as tuples (prev_char, char)
# So word should be a sequence/tuple of symbols (strings or any hashable objects)

# Create a simple word as a tuple of symbols
word = ("h", "e", "l", "l", "o")

ARGS = {
    "word": word
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean Ran
ran, honoured the contract we drafted
DeepLearnXMU/SSR/mmlu_test/calib_tools.py
code served (permissive licence) · get_code("0af29c87aa4bd6a8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The function takes inputs and computes mean if non-empty
# inputs should be an array-like object that supports len() and np.mean()

# Test case 1: non-empty array
inputs_nonempty = np.array([1.0, 2.0, 3.0, 4.0, 5.0])

# Test case 2: empty array
inputs_empty = np.array([])

# We'll use the non-empty case as the primary test
ARGS = {
    "inputs": inputs_nonempty
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
one_hot_encode Ran
ran; our contract draft was wrong, not the code
DeepLearnXMU/SSR/mmlu_test/calib_tools.py
code served (permissive licence) · get_code("77933604fbca56e7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (6, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct a small labels array with a few distinct classes
labels = np.array([0, 1, 2, 1, 0, 2])

# Define arguments for the function
ARGS = {
    "labels": labels,
    "num_classes": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (6, 3) — shape (6, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
times Ran
ran, honoured the contract we drafted
DeepLearnXMU/SSR/custom/icl_gen/complete_param_alpaca.py
code served (permissive licence) · get_code("8fde668203acbef4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import List

def times(n: int, length: int) -> List[List[int]]:
    """
    n: number of shots.
    length: length of 
    """
    if n == 1:
        return [[i] for i in range(length)]
    res_list = []
    for i in range(length):
        for lis in times(n - 1, length):
            if i not in lis:
                res_list.append([i] + lis)
    return res_list

ARGS = {
    "n": 2,
    "length": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pack_instructions Not yet run
unverified (harvested, no recorded run)
DeepLearnXMU/SSR/custom/icl_gen/complete_param_alpaca.py
code served (permissive licence) · get_code("9f2267f6821181c7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 1 the same month, 9 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_pairs 258 other papers
116 dated earlier, 14 the same month, 120 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1803.01128 (2018-03)
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
1809.00125 (2018-09)
Simple Fusion: Return of the Language Model
and 255 more not named here
format_subject 21 other papers
10 dated earlier, 11 later
2009.03300 (2020-09)
Measuring Massive Multitask Language Understanding
2304.12986 (2023-04)
Measuring Massive Multitask Chinese Understanding
2305.17306 (2023-05)
Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performance
and 18 more not named here
format_example 16 other papers
5 dated earlier, 11 later
2009.03300 (2020-09)
Measuring Massive Multitask Language Understanding
2305.17306 (2023-05)
Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performance
2310.05736 (2023-10)
LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models
and 13 more not named here
gen_prompt 10 other papers
5 dated earlier, 5 later
2009.03300 (2020-09)
Measuring Massive Multitask Language Understanding
2305.17306 (2023-05)
Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performance
2310.05736 (2023-10)
LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models
and 7 more not named here
softmax 7 other papers
4 dated earlier, 3 later
2009.03300 (2020-09)
Measuring Massive Multitask Language Understanding
2310.04928 (2023-10)
Large Language Models Only Pass Primary School Exams in Indonesia: A Comprehensive Test on IndoMMLU
2310.09550 (2023-10)
Can Large Language Model Comprehend Ancient Chinese? A Preliminary Test on ACLUE
and 4 more not named here
one_hot_encode 4 other papers
2 dated earlier, 1 later, 1 undated
2009.03300 (2020-09)
Measuring Massive Multitask Language Understanding
2401.02718 (2024-01)
Calibration Attacks: A Comprehensive Study of Adversarial Attacks on Model Confidence
2601.16503 (2026-01)
MRAG: Benchmarking Retrieval-Augmented Generation for Bio-medicine
and 1 more not named here
get_adaptive_bins 3 other papers
1 dated earlier, 1 later, 1 undated
2009.03300 (2020-09)
Measuring Massive Multitask Language Understanding
2601.16503 (2026-01)
MRAG: Benchmarking Retrieval-Augmented Generation for Bio-medicine
openreview_g9G7qyAzki
Generalized Correctness Models: Learning Calibrated and Cross-Model Correctness Predictors from Historical Patterns
mean 3 other papers
1 dated earlier, 1 later, 1 undated
2009.03300 (2020-09)
Measuring Massive Multitask Language Understanding
2601.16503 (2026-01)
MRAG: Benchmarking Retrieval-Augmented Generation for Bio-medicine
openreview_g9G7qyAzki
Generalized Correctness Models: Learning Calibrated and Cross-Model Correctness Predictors from Historical Patterns
get_encoder 2 other papers
1 dated earlier, 1 later
2009.03300 (2020-09)
Measuring Massive Multitask Language Understanding
2601.16503 (2026-01)
MRAG: Benchmarking Retrieval-Augmented Generation for Bio-medicine

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.01244")
get_code_for_paper("2403.01244")
have("2403.01244")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.01244.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.01244.svg)](https://syntology.ai/paper/2403.01244)

Connect an agent — have() is free.