REAL: Representation Enhanced Analytic Learning for Exemplar-free Class-incremental Learning

Run He, Di Fang, Yizhu Chen, Kai Tong, Cen Chen, Yi Wang, Lap-pui Chau, Huiping Zhuang · DOI

TL;DR

REAL (Representation Enhanced Analytic Learning) significantly advances exemplar-free class-incremental learning by optimizing the frozen feature backbone during an initial dual-stream pretraining phase. By combining self-supervised contrastive learning with supervised distillation and introducing a multi-layer Feature Fusion Buffer, it achieves state-of-the-art accuracy on major benchmarks. Crucially, it matches or outperforms privacy-invasive exemplar-based methods without storing a single historical image.

What Problem Does This Paper Address?

In machine learning, Class-Incremental Learning (CIL) requires a model to learn new classes sequentially over time. The fundamental challenge here is catastrophic forgetting: when a network learns new data, it tends to overwrite the weights associated with previously learned categories.

To combat this, many top-performing methods rely on Exemplar-Based CIL (EBCIL), which saves a small subset of historical images (exemplars) to replay during new training phases. However, storing user data raises severe privacy, security, and memory concerns. Exemplar-Free CIL (EFCIL) eliminates these risks by banning data storage, but historically suffers from much lower accuracy.

Figure 1: The difference between EBCIL and EFCIL. At each phase, EBCIL utilizes the stored exemplars selected from previous categories to train the model (as shown in (a)), while EFCIL does not keep exemplars and uses the categories within the training phase (i.e., in (b)).

A promising new branch of EFCIL called Analytic Continual Learning (ACL) solves forgetting mathematically. It freezes the feature-extracting "backbone" of a neural network after an initial base training phase and uses a recursive least-squares formulation to update only the final linear classifier. Because the classifier training has a closed-form solution, it exhibits a "weight-invariant property"—meaning the final weights are identical whether learned incrementally or all at once.

However, ACL has two major bottlenecks:

  1. Ineffective Representations: Because the backbone is frozen early on, it struggles to extract high-quality features for unseen future classes.
  2. Underutilized Knowledge: Standard ACL only uses the final layer's output, ignoring rich, transferable features hidden in the intermediate layers of the network.

Methods

The authors introduce REAL to overcome these limitations through three interconnected components implemented during the initial base training phase:

Figure 2: REAL focuses on enhancing the representation and backbone knowledge utilization during training and comprises three parts: (a) Dual-stream base pretraining (DS-BPT), (b) representation enhancing distillation (RED), and (c) analytic learning with feature fusion. Base knowledge is obtained by pretraining the CNN backbones with two streams. One stream acquires general base knowledge (GBK) via self-supervised contrastive learning (SSCL). The other learns supervised feature distribution (SFD) via supervised learning (i.e., in (a)). During RED, the backbone with SFD is frozen and transfers knowledge to the model with GBK via knowledge distillation (i.e., in (b)). Following base training, the enhanced backbone (i.e., backbone with GBK after RED) is embedded in the analytic learning agenda with a feature fusion buffer (i.e., in (c)).

1. Dual-Stream Base Pretraining (DS-BPT)

Instead of training a single backbone using standard labels, REAL trains two separate backbones simultaneously during the base phase:

  • Supervised Feature Distribution (SFD) Stream: Uses standard cross-entropy loss to learn sharp, class-specific boundaries.
  • General Base Knowledge (GBK) Stream: Uses Self-Supervised Contrastive Learning (specifically, SimSiam) to learn general, label-free visual representations (e.g., shapes, textures) that generalize well to unseen future objects.

2. Representation Enhancing Distillation (RED)

To merge these two distinct types of knowledge into a single robust model, the SFD backbone acts as a frozen teacher. It distills its structured feature distribution into the GBK backbone using a cosine similarity loss, alongside a standard label-guided cross-entropy loss. This unified backbone is then frozen for all subsequent incremental learning steps.

3. Feature Fusion Buffer (FFB)

During the incremental phases, REAL replaces the standard final-layer extraction with the FFB. The FFB extracts feature maps from multiple intermediate blocks of the CNN. It applies average pooling to compress channel-wise information, projects them into a high-dimensional space using a training-free random matrix (leveraging Cover's theorem for linear separability), and averages them. This ensures the classifier learns from both highly specific deep features and highly transferable shallow features.

Datasets

The authors evaluated REAL across three widely accepted computer vision benchmarks:

  • CIFAR-100: 100 classes of small $32\times32$ images.
  • ImageNet-100: A 100-class subset of ImageNet-1k.
  • ImageNet-1k: The standard large-scale dataset containing 1.3 million training images across 1,000 classes.

For all datasets, the model was trained on half the classes in the base phase, and the remaining classes were introduced evenly over $K$ incremental steps ($K = 5, 10, 25, 50$).

Key Insights and Ideas

  • Self-Supervision Prevents Overfitting to the Present: Standard supervised pretraining makes a frozen backbone hyper-specialized to the base classes, rendering it blind to future categories. Contrastive learning creates a more holistic feature space that naturally accommodates unseen classes.
  • Sequential Distillation Beats Joint Training: Simply adding supervised and self-supervised loss functions together during initial training causes gradient conflicts. Separating them into a dual-stream pretraining phase followed by a distillation step (RED) allows the model to elegantly absorb both types of knowledge.
  • Shallow Layers are Continual Learning Goldmines: Deep layers in a CNN discard general geometric information to focus on specific class targets. By fusing intermediate layers via the FFB, the analytic classifier gains access to robust, low-level features that remain stable across entirely different tasks.

Key Results

REAL and its variant REAL-DS consistently set new state-of-the-art performance metrics for exemplar-free methods:

  • Immunity to Phase Scaling: While top exemplar-based methods like FOSTER see their final accuracy drop significantly as the number of phases increases (e.g., dropping from 68.57% to 52.23% on CIFAR-100), REAL-DS maintains a rock-solid accuracy of ~61.8% regardless of whether the data arrives in 5 phases or 50 phases.
  • Outperforming the Baseline: On CIFAR-100 (ResNet-18), REAL-DS achieved an average incremental accuracy of 72.23%, outperforming its direct ACL predecessor, DS-AL (68.17%), by over 4%.
  • Large-Scale Success: On the massive ImageNet-1k benchmark ($K=25$), REAL-DS achieved a last-phase accuracy of 59.33%, outperforming all exemplar-free baselines and directly rivaling competitive exemplar-replay methods.

Limitations and Future Work

  • Base Phase Dependency: REAL relies heavily on having a sufficiently large and diverse dataset during the initial base phase (Phase 0) to build its general representations. Performance might degrade if the initial phase contains very few classes or samples.
  • Initial Compute Overhead: Training two separate streams and executing a distillation process increases the training time and memory footprint during the setup phase, though the subsequent incremental steps remain incredibly lightweight and fast.
  • Future Work: The authors suggest exploring how this representation enhancement paradigm can be extended to multi-modal continual learning (e.g., vision-language models) or online continual learning settings.

Summary updated

BibTeX
@article{he2024real,
  author = {Run He and Di Fang and Yizhu Chen and Kai Tong and Cen Chen and Yi Wang and Lap-pui Chau and Huiping Zhuang},
  title = {{REAL: Representation Enhanced Analytic Learning for Exemplar-free Class-incremental Learning}},
  journal = {Knowledge-Based Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=9DJIobczyD},
}
Figure