Autoencoder-Based Incremental Class Learning without Retraining on Old Data

Euntae Choi, Kyungmi Lee, Kiyoung ChoiarXiv 2019

Abstract

Incremental class learning, a scenario in continual learning context where classes and their training data are sequentially and disjointedly observed, challenges a problem widely known as catastrophic forgetting. In this work, we propose a novel incremental class learning method that can significantly reduce memory overhead compared to previous approaches. Apart from conventional classification scheme using softmax, our model bases on an autoencoder to extract prototypes for given inputs so that no change in its output unit is required. It stores only the mean of prototypes per class to perform metric-based classification, unlike rehearsal approaches which rely on large memory or generative model. To mitigate catastrophic forgetting, regularization methods are applied on our model when a new task is encountered. We evaluate our method by experimenting on CIFAR-100 and CUB-200-2011 and show that its performance is comparable to the state-of-the-art method with much lower additional memory cost.

Introduction

In real-world applications, data often arrives in a continuous stream. Standard Deep Neural Networks (DNNs) trained sequentially on new classes suffer from catastrophic forgetting, where new information rapidly overwrites representations of older classes. Existing solutions typically use rehearsal (storing old data) or pseudo-rehearsal (generative models), both of which scale poorly in terms of memory and computation. Pure regularization methods often struggle in Incremental Class Learning (ICL) because the expanding softmax layer destabilizes the model. This work proposes an architecture that avoids the growing softmax bottleneck and eliminates the need for storing raw data.

Proposed Method

The proposed framework replaces the traditional softmax-based classifier with an autoencoder-based architecture combined with metric-based classification.

Overview of the proposed autoencoder-based incremental class learning architecture.

Architecture and Classification

The model utilizes a fixed, pretrained feature extractor (VGG-19) followed by an autoencoder. The encoder compresses features into a "prototype" vector (code vector). Classification is performed using a cosine-distance Nearest-Class-Mean (NCM) rule. For each class, the model stores only a single mean prototype. During inference, an input is assigned to the class with the closest mean prototype in the cosine space.

Training and Regularization

Initial training involves a combination of reconstruction loss, cosine embedding loss, and L1 penalty for sparsity. To ensure robust class means, a Local Outlier Factor (LOF) filters noisy prototypes, and a "center loss" encourages tighter clustering around the means. When new classes are introduced, only the encoder is updated. To prevent forgetting, parameter regularization techniques like Synaptic Intelligence (SI) or Memory Aware Synapses (MAS) are applied to penalize changes to weights critical for previous tasks.

Experiments and Results

The model was evaluated on the CIFAR-100 and CUB-200-2011 datasets.

Performance

On CIFAR-100, the model using MAS regularization achieved an overall accuracy ($\Psi_{all}$) of 0.850, outperforming rehearsal-based methods like iCaRL (0.749) and dual-memory systems like GeppNet (0.754). While it slightly trails the state-of-the-art FearNet (0.947), it demonstrates superior retention of base knowledge compared to iCaRL.

Memory Efficiency

The most significant advantage of this approach is its minimal memory footprint. By storing only class means and parameter importance weights, the memory requirement remains nearly constant per class.

Comparison of memory overhead for different models across 100 and 1,000 classes.

As shown in the table above, for 100 classes on CIFAR-100, the proposed model requires only 0.8 MB of additional memory, compared to 3.3 MB for FearNet and 24.8 MB for iCaRL. This efficiency scales well; at 1,000 classes, the model is estimated to require only 8.2 MB, while iCaRL would balloon to nearly 248 MB.

Discussion and Conclusion

The results demonstrate that the softmax layer is a primary bottleneck for incremental learning. By shifting to an autoencoder and metric-based classification, the model can accommodate new classes without architectural changes. Furthermore, regularization methods like SI and MAS prove highly effective when decoupled from a growing output layer.

While the model currently relies on pretrained VGG-19 features, which may not generalize to all domains (e.g., medical imaging), it provides a highly scalable and privacy-preserving foundation for continual learning. Future work will focus on training representations from scratch on complex datasets to remove the dependency on ImageNet pretraining.

Summary updated

BibTeX
@misc{choi2019autoencoder,
  author = {Euntae Choi and Kyungmi Lee and Kiyoung Choi},
  title = {{Autoencoder-Based Incremental Class Learning without Retraining on Old Data}},
  year = {2019},
  eprint = {1907.07872},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.07872},
}
Figure