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

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

18 Aug 2023arXiv:2308.09610archive 2025-07-28

Thomas De Min, Massimiliano Mancini, Karteek Alahari, Xavier Alameda-Pineda, Elisa Ricci

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.

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="2308.09610")

Code

Syntology Ran 12 of 13 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 12 ran with no contract checked.

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

tdemin16/continual-layernorm-tuning officialmentioned in papermentioned on GitHubpytorchApache-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

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

12ran
1unverified

Licence: 0 of the 13 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 tdemin16/continual-layernorm-tuning. “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.

calculate_md5 tdemin16/continual-layernorm-tuning/couple/continual_datasets/dataset_utils.py official repository ran Apache-2.0 (permissive) · 5c3574e986df9984 · report
check_integrity tdemin16/continual-layernorm-tuning/couple/continual_datasets/dataset_utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 46b62ccc9e5b9878 · report
check_md5 tdemin16/continual-layernorm-tuning/couple/continual_datasets/dataset_utils.py official repository ran Apache-2.0 (permissive) · b3cb500b2f04323d · report
checkpoint_filter_fn tdemin16/continual-layernorm-tuning/couple/vision_transformer.py official repository ran Apache-2.0 (permissive) · 2b5dd89802152360 · report
get_init_weights_vit tdemin16/continual-layernorm-tuning/couple/vision_transformer.py official repository ran Apache-2.0 (permissive) · 6c600a2f0f2361f1 · report
get_optimizer tdemin16/continual-layernorm-tuning/couple/utils.py official repository ran Apache-2.0 (permissive) · f0220ff4f9a3c317 · report
is_trainable tdemin16/continual-layernorm-tuning/couple/utils.py official repository ran Apache-2.0 (permissive) · 8cdb71f9c1b524f8 · report
mask_logits tdemin16/continual-layernorm-tuning/couple/utils.py official repository ran Apache-2.0 (permissive) · 3dd88ba90d737da4 · report
non_negative_float tdemin16/continual-layernorm-tuning/couple/configs/custom_types.py official repository ran Apache-2.0 (permissive) · f1a58177a84f9ec9 · report
resize_pos_embed tdemin16/continual-layernorm-tuning/couple/vision_transformer.py official repository ran Apache-2.0 (permissive) · 321424d80e3f6eed · report
restricted_float tdemin16/continual-layernorm-tuning/couple/configs/custom_types.py official repository ran Apache-2.0 (permissive) · cad22a420d442cb1 · report
target_transform tdemin16/continual-layernorm-tuning/couple/datasets.py official repository ran fingerprinted Apache-2.0 (permissive) · 265ea374aab10001 · report
get_dataset tdemin16/continual-layernorm-tuning/couple/datasets.py official repository unverified Apache-2.0 (permissive) · b507dddcf36a89ad · report

Tasks

Continual LearningTransfer Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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