[Paper Review] Constrained Few-shot Class-incremental Learning
C-FSCIL proposes a constrained few-shot class-incremental learning framework using a frozen meta-learned feature extractor, a fixed-size trainable classifier, and a dynamically growing memory storing quasi-orthogonal prototypes. It achieves state-of-the-art accuracy with minimal accuracy drop (under 1.6%) when learning 423 novel classes on top of 1,200 base classes, while maintaining constant compute cost and linear memory growth.
Continually learning new classes from fresh data without forgetting previous knowledge of old classes is a very challenging research problem. Moreover, it is imperative that such learning must respect certain memory and computational constraints such as (i) training samples are limited to only a few per class, (ii) the computational cost of learning a novel class remains constant, and (iii) the memory footprint of the model grows at most linearly with the number of classes observed. To meet the above constraints, we propose C-FSCIL, which is architecturally composed of a frozen meta-learned feature extractor, a trainable fixed-size fully connected layer, and a rewritable dynamically growing memory that stores as many vectors as the number of encountered classes. C-FSCIL provides three update modes that offer a trade-off between accuracy and compute-memory cost of learning novel classes. C-FSCIL exploits hyperdimensional embedding that allows to continually express many more classes than the fixed dimensions in the vector space, with minimal interference. The quality of class vector representations is further improved by aligning them quasi-orthogonally to each other by means of novel loss functions. Experiments on the CIFAR100, miniImageNet, and Omniglot datasets show that C-FSCIL outperforms the baselines with remarkable accuracy and compression. It also scales up to the largest problem size ever tried in this few-shot setting by learning 423 novel classes on top of 1200 base classes with less than 1.6% accuracy drop. Our code is available at https://github.com/IBM/constrained-FSCIL.
Motivation & Objective
- Address the challenge of continual few-shot learning under strict memory, compute, and model size constraints.
- Prevent catastrophic forgetting when learning new classes from only a few samples.
- Enable scalable, efficient, and accurate incremental learning with minimal retraining and linear memory growth.
- Improve prototype representation quality through quasi-orthogonal alignment in hyperdimensional space.
- Provide a flexible update mechanism balancing accuracy and computational cost across three distinct modes.
Proposed method
- Architecturally separates a frozen meta-learned CNN feature extractor from a trainable fixed-size fully connected layer, with a rewritable memory storing class prototypes.
- Employs hyperdimensional computing to represent classes as high-dimensional vectors, enabling exponential capacity and minimal interference via concentration of measure.
- Introduces three update modes: Mode 1 uses simple prototype averaging without gradient updates; Mode 2 performs limited retraining with bipolarized prototypes; Mode 3 uses novel loss functions to nudge prototypes toward quasi-orthogonality before retraining.
- Utilizes a soft absolute attention mechanism during meta-learning to enhance feature representation quality and inter-class separation.
- Applies prototype quasi-orthogonalization via a combination of angular and reconstruction loss functions to minimize interference between classes.
- Employs a globally averaged activation (GAA) memory in Mode 2 to store activation patterns for efficient retraining with minimal compute.
Experimental results
Research questions
- RQ1Can a few-shot class-incremental learning system maintain high accuracy while scaling to thousands of classes under strict memory and compute constraints?
- RQ2How effective is hyperdimensional computing in enabling minimal interference between class prototypes during continual learning with few samples?
- RQ3What trade-offs exist between accuracy and computational cost when using different prototype update strategies in a constrained FSCIL setting?
- RQ4Can quasi-orthogonal prototype alignment significantly improve generalization and robustness without adversarial training?
- RQ5To what extent can model compression and low-precision representations be applied in FSCIL without sacrificing performance?
Key findings
- C-FSCIL achieves a 1.6% accuracy drop when learning 423 novel classes on top of 1,200 base classes, outperforming all baselines on CIFAR100, mini-ImageNet, and Omniglot.
- Even the simplest Mode 1 (prototype averaging without retraining) outperforms all prior methods on CIFAR100 and mini-ImageNet, demonstrating the effectiveness of quasi-orthogonal prototypes.
- Mode 3, which uses prototype nudging with novel loss functions, achieves up to 4% higher accuracy than baselines on large-scale FSCIL problems.
- On Omniglot, C-FSCIL in Mode 3 achieves 85.70% accuracy after 10 sessions, outperforming ProtoNet and CEC by at least 8.30% and 16.99%, respectively.
- Reducing the embedding dimension to d = 64 (below the number of classes) results in only marginal accuracy degradation while still surpassing all baselines.
- The soft absolute attention function improves performance, especially during novel class learning, compared to standard exponential attention.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.