SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.06622 · 2024

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

arXiv · PDF · Open in the Atlas

Code that ran

9 of 15 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 6 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.06622.json · badge: /api/ran/2404.06622.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
dipamgoswami/fscil-calibration canonical (classifier label)
classifier basis: census
9 ran · 6 no recorded run
FunctionStatusWhere it lives
build_transform Ran
ran; our contract draft was wrong, not the code
dipamgoswami/fscil-calibration/utils/data.py
pointer only (licence: MIT); the stored copy get_code serves, from sun-hailong/aaai25-mos, is pointer only (licence: NONE) · get_code("b620954495190c1a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sun-hailong/aaai25-mos, 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.

conv1x1 Ran
ran; our contract draft was wrong, not the code
dipamgoswami/fscil-calibration/backbone/resnet.py
code served (permissive licence) · get_code("d9def42110729a85")
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) and returned Conv2d. 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

torch.manual_seed(0)

# The function conv1x1 takes in_planes, out_planes, and stride as parameters
# It returns an nn.Conv2d layer configured for 1x1 convolution
# We need to provide valid integer arguments for these parameters

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
dipamgoswami/fscil-calibration/backbone/resnet.py
code served (permissive licence) · get_code("160bb14bd76201b4")
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) and returned Conv2d. 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

torch.manual_seed(0)

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1,
    "groups": 1,
    "dilation": 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
count_parameters Ran
ran, honoured the contract we drafted
dipamgoswami/fscil-calibration/utils/toolkit.py
pointer only (licence: MIT); the stored copy get_code serves, from wangkiw/iclr23-memo, is pointer only (licence: NONE) · get_code("6bdbe3d6368c4cde")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from wangkiw/iclr23-memo, 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.

default_loader Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dipamgoswami/fscil-calibration/utils/data_manager.py
pointer only (licence: MIT); the stored copy get_code serves, from sun-hailong/aaai25-mos, is pointer only (licence: NONE) · get_code("2c9953e20558c977")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sun-hailong/aaai25-mos, 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.

pil_loader Ran
ran, honoured the contract we drafted
dipamgoswami/fscil-calibration/utils/data_manager.py
pointer only (licence: MIT); the stored copy get_code serves, from sun-hailong/aaai25-mos, is pointer only (licence: NONE) · get_code("66b63ed4f327a712")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sun-hailong/aaai25-mos, 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.

reduce_proxies Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dipamgoswami/fscil-calibration/backbone/linears.py
pointer only (licence: MIT); the stored copy get_code serves, from sun-hailong/cvpr24-ease, is pointer only (licence: NONE) · get_code("4072283c98270784")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sun-hailong/cvpr24-ease, 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.

target2onehot Ran
ran; our contract draft was wrong, not the code
dipamgoswami/fscil-calibration/utils/toolkit.py
pointer only (licence: MIT); the stored copy get_code serves, from liangzu/loranpac, is pointer only (licence: NONE) · get_code("284e2e0345abe291")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from liangzu/loranpac, 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.

tensor2numpy Ran
ran, honoured the contract we drafted
dipamgoswami/fscil-calibration/utils/toolkit.py
pointer only (licence: MIT); the stored copy get_code serves, from wangkiw/iclr23-memo, is pointer only (licence: NONE) · get_code("929c76a2fa2e8c42")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from wangkiw/iclr23-memo, 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.

accimage_loader Not yet run
unverified (harvested, no recorded run)
dipamgoswami/fscil-calibration/utils/data_manager.py
pointer only (licence: MIT); the stored copy get_code serves, from sun-hailong/aaai25-mos, is pointer only (licence: NONE) · get_code("cf462ad7948ff43b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from sun-hailong/aaai25-mos, 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. No invocation recorded.

get_backbone Not yet run
unverified (harvested, no recorded run)
dipamgoswami/fscil-calibration/utils/inc_net.py
code served (permissive licence) · get_code("cebcd10bc5d204d3")
How it ran

no invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
dipamgoswami/fscil-calibration/utils/factory.py
code served (permissive licence) · get_code("e6737521b2cde29c")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
dipamgoswami/fscil-calibration/backbone/resnet.py
code served (permissive licence) · get_code("1b21828124579725")
How it ran

no invocation recorded.

vit_base_patch16_224_adapter Not yet run
unverified (harvested, no recorded run)
dipamgoswami/fscil-calibration/backbone/vision_transformer_adapter.py
code served (permissive licence) · get_code("da00da4b8fae8fe5")
How it ran

no invocation recorded.

vit_base_patch16_224_in21k_adapter Not yet run
unverified (harvested, no recorded run)
dipamgoswami/fscil-calibration/backbone/vision_transformer_adapter.py
code served (permissive licence) · get_code("9ed8a1105d420fac")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 13 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 7 the same month, 13 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
conv1x1 431 other papers
344 dated earlier, 6 the same month, 70 later, 10 same year, order not determinable, 1 undated · 38 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1506.01186 (2015-06)
Cyclical Learning Rates for Training Neural Networks
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
and 428 more not named here
conv3x3 312 other papers
238 dated earlier, 7 the same month, 56 later, 10 same year, order not determinable, 1 undated · 31 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
and 309 more not named here
resnet18 95 other papers
68 dated earlier, 2 the same month, 21 later, 3 same year, order not determinable, 1 undated
1805.00907 (2018-05)
Glow: Graph Lowering Compiler Techniques for Neural Networks
1902.08153 (2019-02)
Learned Step Size Quantization
1904.01355 (2019-04)
FCOS: Fully Convolutional One-Stage Object Detection
and 92 more not named here
pil_loader 66 other papers
45 dated earlier, 3 the same month, 16 later, 2 same year, order not determinable
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1711.02512 (2017-11)
Fine-tuning CNN Image Retrieval with No Human Annotation
and 63 more not named here
accimage_loader 39 other papers
25 dated earlier, 1 the same month, 11 later, 2 same year, order not determinable
1702.00758 (2017-02)
HashNet: Deep Learning to Hash by Continuation
1711.02512 (2017-11)
Fine-tuning CNN Image Retrieval with No Human Annotation
1805.00907 (2018-05)
Glow: Graph Lowering Compiler Techniques for Neural Networks
and 36 more not named here
default_loader 28 other papers
17 dated earlier, 1 the same month, 8 later, 2 same year, order not determinable
1907.02665 (2019-07)
Blind Image Quality Assessment Using A Deep Bilinear Convolutional Neural Network
2003.05033 (2020-03)
Generalized Energy Based Models
2003.13659 (2020-03)
Exploiting Deep Generative Prior for Versatile Image Restoration and Manipulation
and 25 more not named here
tensor2numpy 15 other papers
9 dated earlier, 1 the same month, 5 later · 9 only as an assembly brick
2204.04662 (2022-04)
FOSTER: Feature Boosting and Compression for Class-Incremental Learning
2205.13218 (2022-05)
A Model or 603 Exemplars: Towards Memory-Efficient Class-Incremental Learning
aaai_26216 (2023 (year only))
Isolation and Impartial Aggregation: A Paradigm of Incremental Learning without Interference
and 12 more not named here
count_parameters 8 other papers
6 dated earlier, 2 later · 2 only as an assembly brick
2204.04662 (2022-04)
FOSTER: Feature Boosting and Compression for Class-Incremental Learning
2205.13218 (2022-05)
A Model or 603 Exemplars: Towards Memory-Efficient Class-Incremental Learning
aaai_26216 (2023 (year only))
Isolation and Impartial Aggregation: A Paradigm of Incremental Learning without Interference
and 5 more not named here
target2onehot 8 other papers
4 dated earlier, 4 later · 1 only as an assembly brick
aaai_26216 (2023 (year only))
Isolation and Impartial Aggregation: A Paradigm of Incremental Learning without Interference
2307.02251 (2023-07)
RanPAC: Random Projections and Pre-trained Models for Continual Learning
2307.12045 (2023-07)
Revisiting Distillation for Continual Learning on Visual Question Localized-Answering in Robotic Surgery
and 5 more not named here
reduce_proxies 7 other papers
2 dated earlier, 5 later · 1 only as an assembly brick
2307.12045 (2023-07)
Revisiting Distillation for Continual Learning on Visual Question Localized-Answering in Robotic Surgery
2403.12030 (2024-03)
Expandable Subspace Ensemble for Pre-Trained Model-Based Class-Incremental Learning
2405.19074 (2024-05)
Resurrecting Old Classes with New Data for Exemplar-Free Continual Learning
and 4 more not named here
build_transform 2 other papers
2 later
2409.07446 (2024-09)
Adaptive Adapter Routing for Long-Tailed Class-Incremental Learning
2412.09441 (2024-12)
MOS: Model Surgery for Pre-Trained Model-Based Class-Incremental Learning
vit_base_patch16_224_adapter 2 other papers
1 dated earlier, 1 later
2307.02251 (2023-07)
RanPAC: Random Projections and Pre-trained Models for Continual Learning
2507.07100 (2025-07)
Addressing Imbalanced Domain-Incremental Learning through Dual-Balance Collaborative Experts
vit_base_patch16_224_in21k_adapter 1 other paper
1 later
2507.07100 (2025-07)
Addressing Imbalanced Domain-Incremental Learning through Dual-Balance Collaborative Experts

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

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.

For agents

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

get_harvested_code_for_paper("2404.06622")
get_code_for_paper("2404.06622")
have("2404.06622")

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

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

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

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

Connect an agent — have() is free.