TL;DR
This paper introduces Continual Distillation (CD), a new training paradigm where a single student model learns sequentially from a stream of evolving teacher models (like Foundation Models) without retaining access to previous teachers or their training data. The authors discover that while external unlabeled data helps the student absorb hidden knowledge from the teacher, it also causes the student to rapidly forget what it learned from earlier teachers. To solve this, they propose Self External Data Distillation (SE2D), a method that selectively preserves model outputs on external data to perfectly balance learning new domains and retaining old ones.
What Problem Does This Paper Address?
Deep learning models are scaling at an unprecedented rate, making massive Foundation Models (FMs) incredibly expensive to store, run, and update. A common workaround is knowledge distillation—training a smaller "student" model to mimic a larger "teacher."
However, real-world deployment introduces a major catch: the original training data for these massive FMs is usually proprietary, undisclosed, or too large to reuse. Furthermore, FMs are constantly updated or replaced by newer versions. If you want a student model to learn continuously from a sequence of different teacher models (each with its own domain expertise), traditional machine learning frameworks fall short.
Standard Continual Learning (CL) focuses on a changing stream of data. This paper flips the script to look at a changing stream of models, defining the paradigm of Continual Distillation (CD). The core challenge here is a nasty trade-off between two newly identified phenomena:
- Unseen Knowledge Transfer (UKT): The ability of a student to learn about domains it has never explicitly seen in its training data, purely by exploiting the teacher's implicit knowledge via external unlabeled data.
- Unseen Knowledge Forgetting (UKF): The tendency of the student to aggressively overwrite and forget this fragile, implicit knowledge when it moves on to distill from the next teacher in the sequence.
Methods
The authors categorize the distillation data into two types:
- Internal Data (ID): Publicly available data shared and known by all teachers (e.g., ImageNet).
- External Data (ED): Unlabeled data completely unknown to the teachers.
To maximize UKT while mitigating UKF, the authors introduce Self External Data Distillation (SE2D).
Instead of just distilling from the current teacher, the student model also distills from its own past self (a checkpoint saved from the previous task). Crucially, this self-distillation is performed exclusively on the External Data (ED). Because the Internal Data is stable and shared across all teachers, the student's performance on it remains secure. The fragile, "unseen" domain knowledge is what actually resides within the External Data space. By forcing the student to match its previous logits (outputs) on the ED, SE2D anchors past knowledge without blocking the student from learning new tricks from the current teacher.
Datasets
The authors evaluated their approach across several domain-incremental setups:
- CIFAR20: A modified version of CIFAR100 grouped into 20 superclasses, where different subclasses represent distinct domains.
- Digits: A combination of distinct digit datasets including MNIST, MNIST-M, USPS, and SVHN, with KMNIST used as related external data.
- DomainNet: A highly challenging, unbalanced dataset featuring six distinct visual domains (Real, Clipart, Painting, Infograph, Sketch, Quickdraw) across 345 classes.
- CUB (Birds) & MNIST: Used as unrelated external data benchmarks to test how domain gaps affect knowledge transfer.
Key Insights and Ideas
- External Data is Mandatory but Dangerous: You cannot fully distill a teacher's hidden knowledge using shared internal data alone. External data is required to trigger Unseen Knowledge Transfer. However, without regularization, external data acts as a catalyst for severe forgetting (UKF), biasing the student heavily toward the most recent teacher.
- Teacher Uncertainty Predicts Transferability: The authors found they could predict how well external data would transfer knowledge by looking at the teacher's predictive entropy (uncertainty). A "flatter" entropy distribution on external data indicates a higher potential for successful Unseen Knowledge Transfer.
- Selective Regularization Wins: Standard self-distillation regularizes across all data, which over-reinforces stable internal knowledge and hurts the model's flexibility. Restricting self-distillation strictly to external data optimizes the stability-plasticity trade-off.
Key Results
SE2D consistently outperformed mainstream distillation baselines (like DKD, Logits Standardization, and standard Self-Distillation) in preserving past knowledge:
- CIFAR20: SE2D achieved the highest average final accuracy (76.17%), compared to standard KL-divergence (71.36%) and standard Self-Distillation (74.93%). On older domains (Domain 1), SE2D beat standard baselines by more than 9%, demonstrating a massive reduction in forgetting.
- Digits Benchmark: SE2D reached an average accuracy of 87.00%, significantly outperforming standard distillation (71.75%) and cutting down forgetting on volatile domains like SVHN and MNIST-M.
Limitations and Future Work
- The Domain Gap Penalty: SE2D is highly sensitive to the choice of external data. If the external data is completely unrelated to the target domains (e.g., using MNIST digits as external data for a model distilling animal classifiers), performance degrades, sometimes performing worse than using no external data at all.
- Dependence on Teacher Quality: If the teacher provides poor or noisy supervision on the external data (as seen in some complex DomainNet sequences), SE2D's advantages diminish.
- Data-Origin Knowledge: The system assumes the student can explicitly separate internal data from external data, which might be difficult in fully automated or generative data-free distillation pipelines.
- Next Steps: The authors suggest expanding Continual Distillation to larger scales, specifically targeting Large Language Models (LLMs) and multimodal vision-language models.
Summary updated