Abstract
Standard Continual Learning (CL) paradigms typically assume a fixed neural architecture throughout the learning process. However, as deep learning research progresses, the need to upgrade models to more advanced architectures (e.g., from ResNets to Vision Transformers) becomes a practical necessity. We introduce Heterogeneous Continual Learning (HCL), a framework designed to handle evolving network architectures alongside a stream of new tasks. To facilitate knowledge transfer across different structures, we propose a modified knowledge distillation approach where the previous, potentially weaker model acts as a teacher to the new, stronger student. Furthermore, we introduce Quick Deep Inversion (QDI), a method to recover visual features of prior tasks when original data is unavailable. QDI significantly reduces computational overhead and improves performance compared to existing data-free methods. Our evaluations across various benchmarks demonstrate that HCL achieves state-of-the-art accuracy while maintaining architectural flexibility.
Introduction
Continual Learning (CL) aims to enable artificial agents to learn from a continuous stream of data without suffering from "catastrophic forgetting." While significant progress has been made, most existing research assumes the model's architecture remains static. In real-world scenarios, the rapid pace of architectural innovation means that a model deployed today may be obsolete tomorrow.
The challenge of Heterogeneous Continual Learning lies in transferring knowledge between models with different parameter spaces and structural biases. When an architecture changes, weights cannot be directly copied, and if original training data is restricted due to privacy (e.g., GDPR) or storage constraints, the risk of forgetting increases. This paper addresses these challenges by enabling seamless architectural upgrades during the continual learning process.
Methodology
Heterogeneous Knowledge Distillation
In the HCL framework, we redefine the roles in the traditional knowledge distillation (KD) paradigm. Typically, KD involves a high-capacity teacher guiding a smaller student. In HCL, the old model (Teacher)—despite potentially having a simpler architecture—serves as the repository of historical knowledge for the new model (Student).
To ensure effective transfer, we employ two key techniques:
- Consistency Augmentation: Both the teacher and student models are fed identical augmented versions of the input data to ensure their feature representations remain aligned.
- Label Smoothing: We soften the target distributions to help the new architecture capture the nuances of the previous model's decision boundaries rather than just hard class assignments.
Quick Deep Inversion (QDI)
When access to previous task data is prohibited, we must synthesize data to prevent forgetting. Traditional "Deep Inversion" methods generate images from random noise, a process that is computationally expensive and often results in low-quality priors.
Quick Deep Inversion (QDI) optimizes this process by starting with images from the current task rather than Gaussian noise. By optimizing these images to trigger the feature maps associated with previous tasks, QDI creates "hybrid" synthetic samples. This approach provides a natural image prior that makes the generated data more effective for distillation. QDI achieves a 4x speedup in synthesis compared to standard data-free inversion methods.
Experimental Setup
We evaluated the HCL framework on three standard benchmarks: Split CIFAR-10, Split CIFAR-100, and Split Tiny-ImageNet. Unlike standard CL experiments, we varied the architecture for each task, cycling through a diverse set of models including LeNet, ResNet, DenseNet, SENet, RegNet, and Swin Transformers.
Results and Discussion
Performance and Efficiency
Our results indicate that the HCL framework significantly outperforms existing data-free continual learning baselines. In Split CIFAR-100 and Tiny-ImageNet, the inclusion of QDI led to an absolute accuracy improvement of 22% to 40%. Furthermore, the "KD with Buffer" variant achieved forgetting rates as low as 0.73% on CIFAR-10, nearly matching the performance of multitask learning (where all data is available simultaneously).
Architectural Flexibility
The framework demonstrated robust performance even when transitioning between radically different architectures, such as moving from a convolutional ResNet-18 to a self-attention-based Swin Transformer. This confirms that the distillation-based approach is agnostic to the specific structural biases of the models involved.
The Value of the "Weaker" Teacher
A key insight from our study is that a more capable student can still derive significant value from a weaker teacher. The teacher model acts as a historical anchor, preventing the student from over-fitting to the new task's data and ensuring the preservation of the previously learned manifold.
Conclusion
Heterogeneous Continual Learning represents a vital step toward more sustainable and adaptable AI systems. By allowing models to upgrade their "brains" without losing their accumulated knowledge, HCL bridges the gap between architectural innovation and incremental learning. While future work is needed to address unsupervised settings and extreme domain shifts, the current HCL framework and QDI method provide a powerful foundation for long-term, flexible model evolution.
Summary updated