Continual learning (CL) models often suffer from catastrophic forgetting—the tendency of neural networks to overwrite previously learned knowledge when absorbing new information. Furthermore, CL is frequently deployed in dynamic, resource-constrained environments (like edge devices or robotics) where computational efficiency is just as critical as accuracy. While researchers have previously studied intermediate representations in neural networks and developed "early-exit" architectures for standard settings, this paper bridges these concepts to tackle the unique challenges of class-incremental continual learning.
The authors discover that early network layers actually forget much less than later ones. By attaching Auxiliary Classifiers (ACs) to these intermediate layers, they boost overall accuracy by an average of 10% across various methods and enable "dynamic inference" to cut computational costs by 10-60% without sacrificing baseline performance.
Methods: Auxiliary Classifiers
The authors propose a surprisingly simple yet highly effective architectural tweak: attaching lightweight Auxiliary Classifiers (ACs) to intermediate layers of the neural network.
- Training: The main network and the ACs are trained end-to-end. The total loss is a weighted sum of the losses from all classifiers. To prevent the network from overfitting to the early layers (which have lower capacity), the losses from earlier ACs are weighted less than the final classifier. Standard CL strategies (like replay buffers or regularization) are applied uniformly across all classifiers.
- Static Inference: During standard evaluation, the model runs the full forward pass and outputs the prediction from whichever classifier (intermediate or final) has the highest confidence.
- Dynamic Inference: To save compute, the model evaluates classifiers sequentially. If an intermediate AC's confidence exceeds a predefined threshold, the model "exits early" and returns that prediction, skipping the remaining layers entirely.
Key Insights: Early Layers Forget Less
Using Centered Kernel Alignment (CKA) to measure representational similarity over time, the authors proved that early layers remain highly stable across sequential tasks, whereas later layers change drastically.
In standard machine learning, deeper layers almost always yield better predictions. However, in continual learning, the authors found the opposite is often true for older tasks. Later layers overwrite their representations to learn new classes, causing them to misclassify old data that early layers still get right. Different ACs learn to classify based on different features. Early ACs rely on shared, general features that are robust across tasks. This redundancy means that if the final layer completely forgets a past task, an earlier layer might still remember it, effectively rescuing the prediction.
Key Results: Accuracy and Efficiency Gains
The authors evaluated their approach on standard computer vision benchmarks adapted for class-incremental learning, including CIFAR100 and ImageNet100.
- Universal Accuracy Boost: Adding ACs yielded an average 10% relative accuracy improvement across 10 different established CL baselines (including Fine-Tuning, EWC, LwF, ER, DER++, BiC, and SSIL).
- Massive Efficiency Gains: Using dynamic inference, AC-enhanced models matched the accuracy of standard single-classifier baselines while using only 40-60% of the compute (FLOPs) on ImageNet100, and 50-70% on CIFAR100.
- Lossless Acceleration: If users are willing to spend 80-90% of the original computational budget, the AC model's performance saturates. This means you can get a 10-20% "free" speedup while actually outperforming the baseline accuracy.
- Scales to Deep/Large Models: The approach works beautifully with deeper/wider architectures. When applied to VGG19, WideResNet, and Vision Transformers (ViT), the relative gains were sometimes even larger than on standard ResNets.
Limitations and Future Work
Because the network must compute gradients for multiple classifiers, training time increases. For a small model like ResNet-32, training time increased by ~50% and peak GPU memory by ~10% (though this overhead is proportionally much smaller for large models like ViT, adding only ~1% overhead). The paper strictly focuses on computer vision classification tasks. Future work could explore ACs in other modalities (like NLP or audio) and optimize the placement and architecture of the ACs to further reduce the training overhead.
Summary updated