SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.09610 · 2023

On the Effectiveness of LayerNorm Tuning for Continual Learning in Vision Transformers

arXiv · PDF · Open in the Atlas

Code that ran

12 of 13 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; 1 honoured the contract we drafted, 4 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2308.09610.json · badge: /api/ran/2308.09610.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
tdemin16/continual-layernorm-tuning canonical (classifier label)
classifier basis: census
12 ran · 1 no recorded run
FunctionStatusWhere it lives
calculate_md5 Ran
ran; our contract draft was wrong, not the code
tdemin16/continual-layernorm-tuning/couple/continual_datasets/dataset_utils.py
code served (permissive licence) · get_code("5c3574e986df9984")
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 hashlib
import tempfile
import os

# Create a temporary file with some test content
with tempfile.NamedTemporaryFile(mode='wb', delete=False, suffix='.bin') as f:
    temp_file_path = f.name
    f.write(b'This is test content for MD5 calculation. ' * 100)

ARGS = {
    'fpath': temp_file_path,
    'chunk_size': 1024 * 1024,
}
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
check_integrity Ran
ran, violated the contract we drafted
tdemin16/continual-layernorm-tuning/couple/continual_datasets/dataset_utils.py
code served (permissive licence) · get_code("46b62ccc9e5b9878")
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 bool, 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 os
import tempfile

# Create a temporary file for testing
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt') as f:
    temp_file_path = f.name
    f.write("test content for md5 calculation")

# Calculate the MD5 hash of the test file
import hashlib

def calculate_md5(fpath, chunk_size=1024 * 1024):
    md5 = hashlib.md5()
    with open(fpath, 'rb') as f:
        for chunk in iter(lambda: f.read(chunk_size), b''):
            md5.update(chunk)
    return md5.hexdigest()

expected_md5 = calculate_md5(temp_file_path)

ARGS = {
    'fpath': temp_file_path,
    'md5': expected_md5
}
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 bool, 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
check_md5 Ran
ran, violated the contract we drafted
tdemin16/continual-layernorm-tuning/couple/continual_datasets/dataset_utils.py
code served (permissive licence) · get_code("b3cb500b2f04323d")
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 bool, 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 tempfile
import os
import hashlib

# Create a temporary file with known content
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_file.bin")

# Write some test data to the file
test_data = b"Hello, this is test content for MD5 calculation!"
with open(temp_file, 'wb') as f:
    f.write(test_data)

# Calculate the actual MD5 hash of the test file
md5_hash = hashlib.md5()
md5_hash.update(test_data)
correct_md5 = md5_hash.hexdigest()

# Define arguments for check_md5 function
ARGS = {
    'fpath': temp_file,
    'md5': correct_md5
}
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 bool, 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
checkpoint_filter_fn Ran
ran; our contract draft was wrong, not the code
tdemin16/continual-layernorm-tuning/couple/vision_transformer.py
code served (permissive licence) · get_code("2b5dd89802152360")
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 dict. 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 torch.nn as nn
import math

torch.manual_seed(0)

# Create a minimal model that satisfies the usage in checkpoint_filter_fn
class PatchEmbed(nn.Module):
    def __init__(self):
        super().__init__()
        # proj.weight should be shape (O, I, H, W) for conv2d
        self.proj = nn.Conv2d(3, 16, kernel_size=4, stride=4)
        self.grid_size = (8, 8)

class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.patch_embed = PatchEmbed()
        # pos_embed shape: (batch=1, num_tokens, embedding_dim)
        # num_tokens = 1 (class token) + grid_size[0] * grid_size[1]
        num_tokens = 1 + 8 * 8
        self.pos_embed = nn.Parameter(torch.randn(1, num_tokens, 16))
        self.num_prefix_tokens = 1
        self.no_embed_class = False

model = MinimalModel()

# Create a state_dict with various scenarios
state_dict = {
    'patch_embed.proj.weight': torch.randn(16, 3, 4, 4),
    'pos_embed': torch.randn(1, 65, 16),  # Different size than model.pos_embed
    'layer.0.weight': torch.randn(4, 4),
    'gamma_0': torch.randn(16),
    'pre_logits.fc.weight': torch.randn(10, 16),
}

ARGS = {
    'state_dict': state_dict,
    'model': model,
    'adapt_layer_scale': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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_init_weights_vit Ran
ran; our contract draft was wrong, not the code
tdemin16/continual-layernorm-tuning/couple/vision_transformer.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from skyofbeginning/fedmgp, is pointer only (licence: NONE) · get_code("6c600a2f0f2361f1")
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 skyofbeginning/fedmgp, 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.

get_optimizer Ran
ran; our contract draft was wrong, not the code
tdemin16/continual-layernorm-tuning/couple/utils.py
code served (permissive licence) · get_code("f0220ff4f9a3c317")
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 Adam. 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 torch.nn as nn
from timm.optim import create_optimizer

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class Args:
    def __init__(self):
        self.opt = 'adam'
        self.opt_eps = 1e-8
        self.opt_betas = (0.9, 0.999)
        self.momentum = 0.9
        self.weight_decay = 0.0001
        self.lr = 0.001
        self.layer_decay = 1.0
        self.warmup_lr = 0.0
        self.min_lr = 1e-6

model = SimpleModel()
args = Args()

ARGS = {
    'args': args,
    'model': model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Adam — a Adam output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Adam 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
is_trainable Ran
ran, violated the contract we drafted
tdemin16/continual-layernorm-tuning/couple/utils.py
code served (permissive licence) · get_code("8cdb71f9c1b524f8")
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 bool, 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 torch
import torch.nn as nn

torch.manual_seed(0)

class MockArgs:
    def __init__(self):
        self.train_layers = ['12', '5', '8']

ARGS = {
    'args': MockArgs(),
    'name': 'head.layer.w'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
mask_logits Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tdemin16/continual-layernorm-tuning/couple/utils.py
code served (permissive licence) · get_code("3dd88ba90d737da4")
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 Tensor, ndim 2, dtype family float, shape (2, 4) 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
import torch

torch.manual_seed(0)

# Construct arguments for mask_logits function
logits = torch.randn(2, 4)  # batch_size=2, nb_classes=4
mask = [np.array([0, 2]), np.array([1, 3])]  # mask for each task_id
nb_classes = 4
task_id = 0

ARGS = {
    "logits": logits,
    "mask": mask,
    "nb_classes": nb_classes,
    "task_id": task_id,
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 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
non_negative_float Ran
ran, honoured the contract we drafted
tdemin16/continual-layernorm-tuning/couple/configs/custom_types.py
code served (permissive licence) · get_code("f1a58177a84f9ec9")
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 argparse

def non_negative_float(x):
    try:
        x = float(x)
    except ValueError:
        raise argparse.ArgumentTypeError('%r not a floating-point literal' % (x,))
    if x < 0:
        raise argparse.ArgumentTypeError('%r is negative' % (x,))
    return x

# The function takes a single parameter 'x' which should be a string or numeric value
# that can be converted to a float and must be non-negative.

ARGS = {
    'x': '3.14'
}
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 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
resize_pos_embed Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tdemin16/continual-layernorm-tuning/couple/vision_transformer.py
code served (permissive licence) · get_code("321424d80e3f6eed")
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 Tensor, ndim 3, dtype family float, shape (1, 17, 4) 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 torch
import math

torch.manual_seed(0)

# Small position embedding tensor with batch=1, seq_len=10, embedding_dim=4
# Structure: [batch, seq_len, embed_dim]
# With num_prefix_tokens=1, we have 1 prefix token + 9 grid tokens
# 9 = 3x3 grid, so sqrt(9) = 3
posemb = torch.randn(1, 10, 4)

# New position embedding tensor with different sequence length
# Let's say we want a 4x4 grid + 1 prefix token = 17 tokens
posemb_new = torch.randn(1, 17, 4)

# Number of prefix tokens (e.g., class token in ViT)
num_prefix_tokens = 1

# New grid size (height, width) for interpolation
# For 16 grid tokens: 4x4
gs_new = (4, 4)

ARGS = {
    'posemb': posemb,
    'posemb_new': posemb_new,
    'num_prefix_tokens': num_prefix_tokens,
    'gs_new': gs_new,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (1, 17, 4) — shape (1, 17, 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
restricted_float Ran
ran; our contract draft was wrong, not the code
tdemin16/continual-layernorm-tuning/couple/configs/custom_types.py
code served (permissive licence) · get_code("cad22a420d442cb1")
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 argparse

def restricted_float(x, range=(0.0, 1.0)):
    try:
        x = float(x)
    except ValueError:
        raise argparse.ArgumentTypeError('%r not a floating-point literal' % (x,))
    if x < range[0] or x > range[1]:
        raise argparse.ArgumentTypeError('%r not in range [0.0, 1.0]' % (x,))
    return x


ARGS = {
    'x': '0.5',
    'range': (0.0, 1.0)
}
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 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
target_transform Ran
ran, violated the contract we drafted
tdemin16/continual-layernorm-tuning/couple/datasets.py
code served (permissive licence) · get_code("265ea374aab10001")
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 Tensor, ndim 1, dtype family float, shape (4,) 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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function: target_transform(x, nb_classes)
# The function returns x + nb_classes
# x should be numeric (supports addition)
# nb_classes should be numeric (supports addition with x)

# Create a small numeric value for x
x = torch.tensor([1, 2, 3, 4], dtype=torch.float32)

# Create a small numeric value for nb_classes
nb_classes = 10

ARGS = {
    'x': x,
    'nb_classes': nb_classes
}
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 Tensor, 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
get_dataset Not yet run
unverified (harvested, no recorded run)
tdemin16/continual-layernorm-tuning/couple/datasets.py
code served (permissive licence) · get_code("b507dddcf36a89ad")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 2 the same month, 7 later) and 6 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_init_weights_vit 25 other papers
6 dated earlier, 1 the same month, 17 later, 1 same year, order not determinable · 1 only as an assembly brick
2112.08654 (2021-12)
Learning to Prompt for Continual Learning
2207.12819 (2022-07)
S-Prompts Learning with Pre-trained Transformers: An Occam's Razor for Domain Incremental Learning
2210.08823 (2022-10)
Scaling &amp; Shifting Your Features: A New Baseline for Efficient Model Tuning
and 22 more not named here
calculate_md5 13 other papers
9 dated earlier, 3 later, 1 same year, order not determinable
2001.00326 (2020-01)
NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search
2003.09553 (2020-03)
Adversarial Continual Learning
2106.05390 (2021-06)
Optimizing Reusable Knowledge for Continual Learning via Metalearning
and 10 more not named here
check_md5 13 other papers
9 dated earlier, 3 later, 1 same year, order not determinable
2001.00326 (2020-01)
NAS-Bench-201: Extending the Scope of Reproducible Neural Architecture Search
2003.09553 (2020-03)
Adversarial Continual Learning
2106.05390 (2021-06)
Optimizing Reusable Knowledge for Continual Learning via Metalearning
and 10 more not named here
target_transform 6 other papers
1 dated earlier, 5 later
2112.08654 (2021-12)
Learning to Prompt for Continual Learning
2310.13888 (2023-10)
Towards a General Framework for Continual Learning with Pre-training
2311.12048 (2023-11)
One Size Fits All for Semantic Shifts: Adaptive Prompt Tuning for Continual Learning
and 3 more not named here
check_integrity 5 other papers
4 dated earlier, 1 later
2003.09553 (2020-03)
Adversarial Continual Learning
2106.05390 (2021-06)
Optimizing Reusable Knowledge for Continual Learning via Metalearning
2112.08654 (2021-12)
Learning to Prompt for Continual Learning
and 2 more not named here
checkpoint_filter_fn 4 other papers
1 dated earlier, 3 later
2112.08654 (2021-12)
Learning to Prompt for Continual Learning
2310.13888 (2023-10)
Towards a General Framework for Continual Learning with Pre-training
2404.14721 (2024-04)
Dynamically Anchored Prompting for Task-Imbalanced Continual Learning
and 1 more not named here
resize_pos_embed 3 other papers
1 dated earlier, 1 the same month, 1 later
2303.11403 (2023-03)
eP-ALM: Efficient Perceptual Augmentation of Language Models
2308.03374 (2023-08)
Heterogeneous Forgetting Compensation for Class-Incremental Learning
2311.12048 (2023-11)
One Size Fits All for Semantic Shifts: Adaptive Prompt Tuning for Continual Learning

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

Repositories linked to this paper

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

Abstract

State-of-the-art rehearsal-free continual learning methods exploit the peculiarities of Vision Transformers to learn task-specific prompts, drastically reducing catastrophic forgetting. However, there is a tradeoff between the number of learned parameters and the performance, making such models computationally expensive. In this work, we aim to reduce this cost while maintaining competitive performance. We achieve this by revisiting and extending a simple transfer learning idea: learning task-specific normalization layers. Specifically, we tune the scale and bias parameters of LayerNorm for each continual learning task, selecting them at inference time based on the similarity between task-specific keys and the output of the pre-trained model. To make the classifier robust to incorrect selection of parameters during inference, we introduce a two-stage training procedure, where we first optimize the task-specific parameters and then train the classifier with the same selection procedure of the inference time. Experiments on ImageNet-R and CIFAR-100 show that our method achieves results that are either superior or on par with {the state of the art} while being computationally cheaper.

For agents

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

get_harvested_code_for_paper("2308.09610")
get_code_for_paper("2308.09610")
have("2308.09610")

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

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

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

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

Connect an agent — have() is free.