Papers › Calibrating Higher-Order Statistics for Few-Shot Class-Incremental Learning with...

Calibrating Higher-Order Statistics for Few-Shot Class-Incremental Learning with Pre-trained Vision Transformers

9 Apr 2024arXiv:2404.06622archive 2025-07-28

Dipam Goswami, Bartłomiej Twardowski, Joost Van de Weijer

Few-shot class-incremental learning (FSCIL) aims to adapt the model to new classes from very few data (5 samples) without forgetting the previously learned classes. Recent works in many-shot CIL (MSCIL) (using all available training data) exploited pre-trained models to reduce forgetting and achieve better plasticity. In a similar fashion, we use ViT models pre-trained on large-scale datasets for few-shot settings, which face the critical issue of low plasticity. FSCIL methods start with a many-shot first task to learn a very good feature extractor and then move to the few-shot setting from the second task onwards. While the focus of most recent studies is on how to learn the many-shot first task so that the model generalizes to all future few-shot tasks, we explore in this work how to better model the few-shot data using pre-trained models, irrespective of how the first task is trained. Inspired by recent works in MSCIL, we explore how using higher-order feature statistics can influence the classification of few-shot classes. We identify the main challenge of obtaining a good covariance matrix from few-shot data and propose to calibrate the covariance matrix for new classes based on semantic similarity to the many-shot base classes. Using the calibrated feature statistics in combination with existing methods significantly improves few-shot continual classification on several FSCIL benchmarks. Code is available at https://github.com/dipamgoswami/FSCIL-Calibration.

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

Code

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

By repository: official repository: 15 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.

dipamgoswami/fscil-calibration officialmentioned in papermentioned on GitHubpytorchMIT 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

15 samples harvested; 6 ran; 2 honoured the contract we drafted; 9 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 · honoured contract
3ran · our draft was wrong
1ran · fixture could not drive it
9unverified

Licence: 0 of the 15 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 dipamgoswami/fscil-calibration. “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.

conv1x1 dipamgoswami/fscil-calibration/backbone/resnet.py official repository ran · our draft was wrong MIT (permissive) · d9def42110729a85 · report
conv3x3 dipamgoswami/fscil-calibration/backbone/resnet.py official repository ran · our draft was wrong MIT (permissive) · 160bb14bd76201b4 · report
count_parameters dipamgoswami/fscil-calibration/utils/toolkit.py official repository ran · honoured contract MIT (permissive) · 6bdbe3d6368c4cde · report
reduce_proxies dipamgoswami/fscil-calibration/backbone/linears.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 4072283c98270784 · report
target2onehot dipamgoswami/fscil-calibration/utils/toolkit.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 284e2e0345abe291 · report
tensor2numpy dipamgoswami/fscil-calibration/utils/toolkit.py official repository ran · honoured contract MIT (permissive) · 929c76a2fa2e8c42 · report
accimage_loader dipamgoswami/fscil-calibration/utils/data_manager.py official repository unverified MIT (permissive) · cf462ad7948ff43b · report
build_transform dipamgoswami/fscil-calibration/utils/data.py official repository unverified MIT (permissive) · b620954495190c1a · report
default_loader dipamgoswami/fscil-calibration/utils/data_manager.py official repository unverified MIT (permissive) · 2c9953e20558c977 · report
get_backbone dipamgoswami/fscil-calibration/utils/inc_net.py official repository unverified MIT (permissive) · cebcd10bc5d204d3 · report
get_model dipamgoswami/fscil-calibration/utils/factory.py official repository unverified MIT (permissive) · e6737521b2cde29c · report
pil_loader dipamgoswami/fscil-calibration/utils/data_manager.py official repository unverified MIT (permissive) · 66b63ed4f327a712 · report
resnet18 dipamgoswami/fscil-calibration/backbone/resnet.py official repository unverified MIT (permissive) · 1b21828124579725 · report
vit_base_patch16_224_adapter dipamgoswami/fscil-calibration/backbone/vision_transformer_adapter.py official repository unverified MIT (permissive) · da00da4b8fae8fe5 · report
vit_base_patch16_224_in21k_adapter dipamgoswami/fscil-calibration/backbone/vision_transformer_adapter.py official repository unverified MIT (permissive) · 9ed8a1105d420fac · report

Tasks

Class Incremental LearningFew-Shot Class-Incremental LearningIncremental LearningSemantic SimilaritySemantic Textual Similarityclass-incremental learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

BASEFocus

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