SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.16789 · 2024

Continual Learning of Large Language Models: A Comprehensive Survey

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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; 3 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2404.16789.json · badge: /api/ran/2404.16789.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
beyonderxx/trace canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
bleu_score Ran
ran, honoured the contract we drafted
beyonderxx/trace/metrics.py
code served (permissive licence) · get_code("ab795c060d39c540")
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 float, ndim 0, dtype family float, shape () 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 re
from nltk.translate.bleu_score import sentence_bleu

def tokenize(text):
    tokens = re.split('\\s|\\.', text)
    tokens = [t for t in tokens if len(t) > 0]
    return tokens

def bleu_score(reference, hypothesis, gram):
    reference_tokens = tokenize(reference)
    hypothesis_tokens = tokenize(hypothesis)
    if gram == 1:
        bleu = sentence_bleu([reference_tokens], hypothesis_tokens, (1.0,))
    elif gram == 2:
        bleu = sentence_bleu([reference_tokens], hypothesis_tokens, (1.0 / 2.0, 1.0 / 2.0))
    elif gram == 3:
        bleu = sentence_bleu([reference_tokens], hypothesis_tokens, (1.0 / 3.0, 1.0 / 3.0, 1.0 / 3.0))
    elif gram == 4:
        bleu = sentence_bleu([reference_tokens], hypothesis_tokens, (1.0 / 4.0, 1.0 / 4.0, 1.0 / 4.0, 1.0 / 4.0))
    return bleu

ARGS = {
    "reference": "the cat sat on the mat",
    "hypothesis": "the cat is on the mat",
    "gram": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () 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
caculate_bleu Ran
ran, honoured the contract we drafted
beyonderxx/trace/metrics.py
code served (permissive licence) · get_code("3fb7352452396dd1")
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 float, ndim 0, dtype family float, shape () 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 re
from nltk.translate.bleu_score import sentence_bleu

def tokenize(text):
    tokens = re.split('\\s|\\.', text)
    tokens = [t for t in tokens if len(t) > 0]
    return tokens

def bleu_score(reference, hypothesis, gram):
    reference_tokens = tokenize(reference)
    hypothesis_tokens = tokenize(hypothesis)
    if gram == 1:
        bleu = sentence_bleu([reference_tokens], hypothesis_tokens, (1.0,))
    elif gram == 2:
        bleu = sentence_bleu([reference_tokens], hypothesis_tokens, (1.0 / 2.0, 1.0 / 2.0))
    elif gram == 3:
        bleu = sentence_bleu([reference_tokens], hypothesis_tokens, (1.0 / 3.0, 1.0 / 3.0, 1.0 / 3.0))
    elif gram == 4:
        bleu = sentence_bleu([reference_tokens], hypothesis_tokens, (1.0 / 4.0, 1.0 / 4.0, 1.0 / 4.0, 1.0 / 4.0))
    return bleu

def caculate_bleu(results, data, gram):
    bleus = []
    for output_id in range(len(results)):
        prediction = results[output_id]
        target = data[output_id]
        if prediction == '' or target == '':
            continue
        bleu = bleu_score(target, prediction, gram)
        bleus.append(bleu)
    avg_bleu = sum(bleus) / len(results)
    return avg_bleu

ARGS = {
    'results': [
        'the quick brown fox',
        'jumps over the lazy dog',
        'hello world test'
    ],
    'data': [
        'the quick brown fox jumps',
        'jumps over the lazy dog runs',
        'hello world this is a test'
    ],
    'gram': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () 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
postprocess Ran
ran; our contract draft was wrong, not the code
beyonderxx/trace/evaluations/eval_Py150.py
code served (permissive licence) · get_code("b906535413fece94")
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 re

# The function takes a single parameter 'code' which is a string
# The function performs string replacements and regex operations on it

ARGS = {
    "code": """
def hello():
    x = <NUM_LIT>42</NUM_LIT>
    message = <STR_LIT>Hello World</STR_LIT>
    char = <CHAR_LIT>A</CHAR_LIT>
    return x
<NUM_LIT:100>
<STR_LIT:test string>
<CHAR_LIT:B>
"""
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
resolve Ran
ran; our contract draft was wrong, not the code
beyonderxx/trace/evaluations/eval_PapyrusF.py
code served (permissive licence) · get_code("90561b6f407e4842")
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. 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

torch.manual_seed(0)

# The function takes a dataset (list) where each element is a string
# that will be split by ' , ' delimiter
# Create a small dataset with strings containing the delimiter

dataset = [
    "keyword1 , keyword2 , keyword3",
    "keyword4 , keyword5",
    "keyword6 , keyword7 , keyword8 , keyword9"
]

ARGS = {
    "dataset": dataset
}
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 — a list output has no array shape of its own; none is 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
tokenize Ran
ran; our contract draft was wrong, not the code
beyonderxx/trace/metrics.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from chengtan9907/mc-cot, is pointer only (licence: NONE) · get_code("e605721addd552ac")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from chengtan9907/mc-cot, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 1 later) and 2 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
tokenize 3 other papers
3 dated earlier
2302.00923 (2023-02)
Multimodal Chain-of-Thought Reasoning in Language Models
2307.12626 (2023-07)
Enhancing Human-like Multi-Modal Reasoning: A New Challenging Dataset and Comprehensive Framework
2311.14109 (2023-11)
Boosting the Power of Small Multimodal Reasoning Models to Match Larger Models with Self-Consistency Training
bleu_score 2 other papers
2 dated earlier
2302.00923 (2023-02)
Multimodal Chain-of-Thought Reasoning in Language Models
2307.12626 (2023-07)
Enhancing Human-like Multi-Modal Reasoning: A New Challenging Dataset and Comprehensive Framework
postprocess 1 other paper
1 later
2411.06171 (2024-11)
SEEKR: Selective Attention-Guided Knowledge Retention for Continual Learning of Large Language Models

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-23.

Repositories linked to this paper

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

Abstract

The recent success of large language models (LLMs) trained on static, pre-collected, general datasets has sparked numerous research directions and applications. One such direction addresses the non-trivial challenge of integrating pre-trained LLMs into dynamic data distributions, task structures, and user preferences. Pre-trained LLMs, when tailored for specific needs, often experience significant performance degradation in previous knowledge domains -- a phenomenon known as "catastrophic forgetting". While extensively studied in the continual learning (CL) community, it presents new manifestations in the realm of LLMs. In this survey, we provide a comprehensive overview of the current research progress on LLMs within the context of CL. This survey is structured into four main sections: we first describe an overview of continually learning LLMs, consisting of two directions of continuity: vertical continuity (or vertical continual learning), i.e., continual adaptation from general to specific capabilities, and horizontal continuity (or horizontal continual learning), i.e., continual adaptation across time and domains (Section 3). We then summarize three stages of learning LLMs in the context of modern CL: Continual Pre-Training (CPT), Domain-Adaptive Pre-training (DAP), and Continual Fine-Tuning (CFT) (Section 4). Then we provide an overview of evaluation protocols for continual learning with LLMs, along with the current available data sources (Section 5). Finally, we discuss intriguing questions pertaining to continual learning for LLMs (Section 6). The full list of papers examined in this survey is available at https://github.com/Wang-ML-Lab/llm-continual-learning-survey.

For agents

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

get_harvested_code_for_paper("2404.16789")
get_code_for_paper("2404.16789")
have("2404.16789")

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

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

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

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

Connect an agent — have() is free.