S3C: Self-Supervised Stochastic Classifiers for Few-Shot Class-Incremental Learning

Jayateja Kalla, Soma BiswasECCV 2022

Introduction

Deep learning models typically require massive datasets to learn effectively. In real-world applications, however, data often arrives incrementally, and new categories may only have a handful of examples. This scenario, known as Few-Shot Class-Incremental Learning (FSCIL), presents a dual challenge: overfitting to the scarce new data and catastrophic forgetting of previously learned "base" classes.

S3C (Self-Supervised Stochastic Classifier) is a novel framework designed to resolve this dilemma. By rethinking how classifiers represent knowledge and how feature extractors are trained, S3C enables models to learn robust, generalized features that adapt to new classes while maintaining high performance on old ones.

The S3C Methodology

The S3C framework introduces three primary components to stabilize incremental learning.

1. Stochastic Classifiers (SC)

Standard classifiers use a fixed weight vector (a prototype) for each class. S3C instead represents each class as a probability distribution defined by a mean ($\mu$) and variance ($\sigma$).

During training, classifier weights are sampled from this distribution. This process acts as a form of "infinite augmentation" at the classifier level. It forces the feature extractor to cluster samples more tightly and creates a wider decision margin, which significantly improves the model's robustness to the noise and scarcity inherent in few-shot data.

Comparison of standard, multi-prototype, and stochastic classifiers. The stochastic classifier (c) creates a wider decision margin by modeling class weights as distributions.

2. Rotation-Based Self-Supervision (SSL)

To ensure the feature extractor learns generic, structural features rather than just class-specific ones, S3C incorporates a self-supervised pretext task. During the initial base training phase, the model is trained to predict both the original class of an image and its rotation (0°, 90°, 180°, or 270°). This "future-proofs" the frozen backbone, making it more effective at extracting useful features from completely unseen classes encountered later.

3. Semantic Initialization

When a new class is introduced, S3C uses GloVe word embeddings to find the most semantically similar base class. The new class then inherits the variance from this similar base class (e.g., "sparrow" inheriting from "robin"). This provides a semantically grounded starting point for the new class's distribution, further mitigating the risk of overfitting.

Experimental Evaluation

S3C was evaluated on three standard FSCIL benchmarks: CIFAR100, miniImageNet, and CUB200 (Birds). It consistently outperformed the previous state-of-the-art (CEC) across all metrics:

  • CIFAR100: Achieved a final Top-1 accuracy of 53.96%, compared to 49.14% for the previous best.
  • CUB200: Showed a dramatic improvement in the Harmonic Mean of accuracies, reaching 56.41% at the final task, whereas previous methods lagged at 44.69%.
  • Robustness: In "realistic" imbalanced scenarios (FSCIL-im), where some classes have as few as one training image, S3C maintained significantly higher accuracy than its competitors.

Conclusion

S3C demonstrates that modeling uncertainty in the classifier itself is a powerful regularizer for few-shot learning. By combining stochasticity with self-supervised feature learning, the framework achieves a superior balance between plasticity (learning new things) and stability (remembering old things). Future work may explore more complex self-supervised tasks, such as contrastive learning, to further enhance the generality of the base features.

Summary updated

BibTeX
@inproceedings{kalla2022s,
  author = {Jayateja Kalla and Soma Biswas},
  title = {{S3C: Self-Supervised Stochastic Classifiers for Few-Shot Class-Incremental Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19806-9\_25},
}
Figure