Class-incremental Learning with Pre-allocated Fixed Classifiers

Federico Pernici, Matteo Bruni, Claudio Baecchi, Francesco Turchini, Alberto Del Bimbo · DOI

Abstract

Class-incremental learning (CIL) is a fundamental challenge in artificial intelligence, where models must learn new tasks sequentially without forgetting previous ones. A primary cause of "catastrophic forgetting" is feature drift, often triggered by the expansion of the classification layer as new classes are introduced. We discuss a novel solution: the Pre-allocated Regular Polytope Classifier (RPC). By fixing the classifier weights as vertices of a regular polytope at initialization, the model maintains a stable geometric feature space. This approach not only prevents feature drift but also allows the model to utilize future class nodes for negative sampling before their specific data is encountered. Evaluations on SplitMNIST and SplitCIFAR benchmarks show that RPC achieves state-of-the-art performance, proving that fixed, symmetric classifiers are a robust alternative to traditional expanding layers.

Introduction: The Challenge of Incremental Learning

In Class-Incremental Learning (CIL), an AI agent learns to recognize new categories of data over time. For instance, a model might first learn to distinguish between cats and dogs, and later be tasked with identifying birds and fish. Standard deep learning models suffer from "catastrophic forgetting," where learning new information overwrites the weights necessary for previous tasks.

A significant, yet often overlooked, driver of this forgetting is the "expanding classifier." In traditional setups, the final output layer grows as new classes arrive. To accommodate these new classes in the mathematical feature space, the network must shift the representations (features) of old classes. This "motion" or drift in the feature space causes the model to lose its grip on previously learned concepts.

Methodology: Pre-allocated Regular Polytope Classifier (RPC)

To address feature drift, researchers from the University of Florence proposed the Pre-allocated Regular Polytope Classifier (RPC). This method introduces three fundamental shifts from the standard CIL paradigm:

  1. Fixed Weights: Unlike traditional classifiers where weights are learned, RPC weights are fixed at initialization and never updated. This provides a stationary target for the feature extractor.
  2. Geometric Symmetry: The weights are arranged as vertices of a d-simplex (a higher-dimensional version of an equilateral triangle). This ensures that every class is equidistant from all others, maximizing the separation in the feature space.
  3. Early Negative Sampling: All output nodes are present from the start. When the model learns Class A, it simultaneously treats that data as a "negative sample" for all future classes (B, C, D, etc.). This helps the network pre-shape the boundaries of future classes before their data arrives.
Comparison of standard expanding classifiers versus the proposed fixed RPC. (a) Geometric view: standard vectors shift to accommodate new classes, while RPC vectors remain fixed. (b) Architectural view: standard layers expand, whereas RPC pre-allocates all nodes.

Key Insights

The effectiveness of RPC stems from two main factors:

  • Stability: By fixing the classifier, the internal representations do not need to reconfigure themselves to "make room" for new classes. The feature extractor simply learns to map inputs to the correct, unchanging coordinates, significantly reducing forgetting.
  • The Power of Negatives: In standard CIL, a node for a new class is only activated when its data arrives. In RPC, future nodes are active from day one. Even without "positive" examples, the thousands of "negative" examples from other classes help define the region in the feature space where the future class will eventually reside.
The RPC architecture enables early negative sampling. Unlike standard methods (a), the RPC approach (b) uses data from current classes as negative samples for future class nodes, pre-shaping their decision boundaries.

Experimental Results

The researchers evaluated RPC on several standard benchmarks, combining it with a small episodic memory for Experience Replay (ER).

  • SplitMNIST: The model achieved 96.90% accuracy, slightly outperforming the standard expanding classifier baseline.
  • SplitCIFAR100: On this more complex 100-class dataset, the model reached 51.77% accuracy.
  • Robustness: An ablation study revealed that the method is robust to over-allocation. Pre-allocating for 1,000 classes when only 100 were eventually used did not degrade performance, suggesting RPC is well-suited for lifelong learning scenarios where the total number of future classes is unknown.

Conclusion

The Pre-allocated Regular Polytope Classifier demonstrates that training the final classification layer is not strictly necessary for high performance in incremental learning. By providing a fixed, symmetric geometric structure, RPC mitigates feature drift and leverages negative sampling to prepare for future tasks. This shift towards stationary targets offers a promising path for building more stable and efficient continual learning systems.

Summary updated

BibTeX
@inproceedings{pernici2020class,
  author = {Federico Pernici and Matteo Bruni and Claudio Baecchi and Francesco Turchini and Alberto Del Bimbo},
  title = {{Class-incremental Learning with Pre-allocated Fixed Classifiers}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9413299},
}
Figure