Abstract
SurpriseNet is a novel "replay-free" continual learning framework designed to mitigate catastrophic forgetting in Class-Incremental Learning (Class-IL). By combining parameter isolation via a novel pruning schedule (EqPrune) with task identification framed as an anomaly detection problem, SurpriseNet achieves competitive performance without the memory overhead or overfitting risks associated with storing old data. This approach proves particularly effective on structured data and low-dimensional vision benchmarks, bridging the gap between Task-Incremental and Class-Incremental performance.
Introduction
In Continual Learning (CL), neural networks encounter a sequence of tasks. The fundamental challenge is catastrophic interference, where learning new information overwrites weights essential for previous tasks. Researchers typically distinguish between Task-Incremental Learning (Task-IL), where task IDs are provided at test time, and the more challenging Class-Incremental Learning (Class-IL), where the model must autonomously distinguish between all previously seen classes.
Standard Class-IL solutions rely on replay buffers—storing a subset of old data to periodically retrain the model. However, replay is memory-intensive and prone to overfitting. SurpriseNet proposes a replay-free alternative that treats task identification as an unsupervised anomaly detection task, allowing the model to infer the correct task context before classification.
Methods: Parameter Isolation and Task Inference
SurpriseNet addresses forgetting and task identification through a dual-strategy architecture:
Parameter Isolation (EqPrune)
To prevent weight overwriting, SurpriseNet utilizes a pruning-based approach. After training on a task, unimportant weights are pruned, and the remaining task-critical weights are frozen. The authors introduce EqPrune, a pruning schedule that ensures an equal proportion of network capacity is reserved for every task in the sequence. This prevents early tasks from monopolizing parameters and ensures later tasks have sufficient capacity to learn.
Task Inference via Anomaly Detection
In Class-IL, the model must guess the task ID. SurpriseNet achieves this by training a task-specific Auto-Encoder (AE) alongside each classifier. At test time, an input is passed through all task-specific sub-networks. The sub-network that yields the lowest reconstruction error—indicating the data is "least surprising" to that specific AE—is identified as the correct task.
SurpriseNetE for High-Dimensional Data
Standard auto-encoders often struggle with high-dimensional images, sometimes assigning lower reconstruction loss to out-of-distribution data. To counter this, SurpriseNetE incorporates a frozen, pre-trained ResNet18 as a feature extractor, reducing dimensionality before the data enters the SurpriseNet architecture.
Experimental Setup
The framework was evaluated across diverse datasets to test its versatility:
- Structured Data (Human Activity Recognition): S-DSADS and S-PAMAP2, involving sensor data like accelerometers.
- Vision Benchmarks: Split-FashionMNIST (S-FMNIST), Split-CIFAR10, and Split-CIFAR100.
To ensure robustness, the authors reported results across randomly shuffled task orders, accounting for the sensitivity of CL models to the sequence of data.
Key Results
SurpriseNet demonstrates that anomaly-based task inference is a viable alternative to replay buffers, particularly in structured and low-dimensional domains.
- Structured Data Superiority: On S-DSADS and S-PAMAP2, SurpriseNet (AE) achieved 78.21% and 80.48% accuracy, respectively. Notably, it outperformed standard Experience Replay on S-DSADS (74.40%) without storing any previous samples.
- Vision Performance: On S-FMNIST, SurpriseNet reached 82.16% accuracy, significantly outperforming other replay-free methods like EWC (22.27%) and even surpassing Experience Replay (76.08%).
- The Dimensionality Gap: While the base SurpriseNet struggled on the complex S-CIFAR100 (16.49%), the feature-extracted SurpriseNetE variant reached 48.15%. This confirms that dimensionality reduction is critical for making reconstruction-based task inference effective for complex imagery.
Discussion and Future Work
SurpriseNet proves that reconstruction loss is a powerful proxy for task identity in Class-IL. However, the method faces a "capacity ceiling" as the fixed-size network is partitioned among increasing numbers of tasks. Future research will focus on more efficient pruning techniques to maximize parameter utility and improving anomaly detection components to handle high-dimensional data without relying on pre-trained extractors. By removing the need for data storage, SurpriseNet offers a more privacy-preserving and memory-efficient path forward for real-world continual learning applications.
Summary updated