Papers › Few-shot Tuning of Foundation Models for Class-incremental Learning

Few-shot Tuning of Foundation Models for Class-incremental Learning

26 May 2024arXiv:2405.16625archive 2025-07-28

Shuvendu Roy, Elham Dolatabadi, Arash Afkanpour, Ali Etemad

For the first time, we explore few-shot tuning of vision foundation models for class-incremental learning. Unlike existing few-shot class incremental learning (FSCIL) methods, which train an encoder on a base session to ensure forward compatibility for future continual learning, foundation models are generally trained on large unlabelled data without such considerations. This renders prior methods from traditional FSCIL incompatible for FSCIL with the foundation model. To this end, we propose Consistency-guided Asynchronous Contrastive Tuning (CoACT), a new approach to continually tune foundation models for new classes in few-shot settings. CoACT comprises three components: (i) asynchronous contrastive tuning, which learns new classes by including LoRA modules in the pre-trained encoder, while enforcing consistency between two asynchronous encoders; (ii) controlled fine-tuning, which facilitates effective tuning of a subset of the foundation model; and (iii) consistency-guided incremental tuning, which enforces additional regularization during later sessions to reduce forgetting of the learned classes. We perform an extensive study on 16 diverse datasets and demonstrate the effectiveness of CoACT, outperforming the best baseline method by 2.47% on average and with up to 12.52% on individual datasets. Additionally, CoACT shows reduced forgetting and robustness in low-shot experiments. As an added bonus, CoACT shows up to 13.5% improvement in standard FSCIL over the current SOTA on benchmark evaluations. We make our code publicly available at https://github.com/ShuvenduRoy/CoACT-FSCIL.

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

Code

Syntology Ran 6 of 10 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 6 ran with no contract checked.

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

shuvenduroy/coact-fscil 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

10 samples harvested; 6 ran; 0 honoured the contract we drafted; 4 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.

6ran
4unverified

Licence: 0 of the 10 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 shuvenduroy/coact-fscil. “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.

get_few_shot_samples_indices_per_class shuvenduroy/coact-fscil/dataloaders/utils.py official repository ran MIT (permissive) · 63025523d2abf626 · report
get_model_args shuvenduroy/coact-fscil/models/model_utils.py official repository ran fingerprinted MIT (permissive) · de7c95a0e22002e9 · report
get_optimizer_base shuvenduroy/coact-fscil/methods/helper.py official repository ran MIT (permissive) · dc4c55b2bb7e61f7 · report
get_session_classes shuvenduroy/coact-fscil/dataloaders/utils.py official repository ran MIT (permissive) · a15a9f5297aabec5 · report
override_training_configs shuvenduroy/coact-fscil/utils/train_utils.py official repository ran MIT (permissive) · 6f0eb419e44fffcf · report
str2bool shuvenduroy/coact-fscil/utils/train_utils.py official repository ran MIT (permissive) · bba3a1320c12ccd7 · report
count_acc shuvenduroy/coact-fscil/methods/helper.py official repository unverified MIT (permissive) · 8b95e799ab827c9c · report
get_hf_data shuvenduroy/coact-fscil/dataloaders/datasets/hf_dataset.py official repository unverified MIT (permissive) · 0568a7c52850965e · report
get_transform shuvenduroy/coact-fscil/dataloaders/helpter.py official repository unverified MIT (permissive) · efe02552f3ea842a · report
test shuvenduroy/coact-fscil/methods/helper.py official repository unverified MIT (permissive) · 4d2b757d67335855 · report

Tasks

Class Incremental LearningContinual LearningFew-Shot Class-Incremental LearningIncremental Learningclass-incremental learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Few-Shot Class-Incremental Learning CIFAR-100 CoACT Last Accuracy 84.63 #2 of 11 Archive leaderboard report
Few-Shot Class-Incremental Learning CUB-200-2011 CoACT Last Accuracy 81.19 #1 of 6 Archive leaderboard report
Few-Shot Class-Incremental Learning mini-Imagenet CoACT Last Accuracy 96.24 #1 of 12 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

BASE

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