Continual Distillation of Teachers from Different Domains

Nicolas Michel, Maorong Wang, Jiangpeng He, Toshihiko Yamasaki

TL;DR

As foundation models scale up, storing every iteration or its massive training dataset becomes impossible. This paper introduces Continual Distillation (CD), a new paradigm where a single student model sequentially learns from a stream of heterogeneous teacher models without retaining access to previous teachers or their original data. To combat the unique forgetting challenges of this setup, the authors propose Self External Data Distillation (SE2D), which leverages unlabeled external data to safely transfer and preserve cross-domain knowledge.

What Problem Does This Paper Address?

Traditional Continual Learning (CL) is data-centric: a model learns from a continuous stream of changing datasets. However, the deep learning landscape has shifted toward massive Foundation Models (FMs) that are frequently updated or swapped out. Storing multiple 100B+ parameter models or their proprietary training data is prohibitively expensive.

To address this, the authors propose a model-centric paradigm shift: Continual Distillation (CD). Here, the data remains fixed, but the teachers change over time. A single student model must distill knowledge from a sequence of distinct teachers, each with its own domain expertise (e.g., one excels at animals, another at insects), while only sharing a small, common baseline domain (like ImageNet).

Figure 1. Overview of the Continual Distillation problem. A student model S learns through distillation from a sequence of teachers {T1, T2, T3}. During distillation, part of the teachers’ training data is unavailable. The objective is for the student to maintain high performance on all domains known to the teachers, but not necessarily introduced to the student.

The CD setup introduces two novel phenomena:

  1. Unseen Knowledge Transfer (UKT): The student can actually acquire knowledge about domains it has never explicitly been trained on, purely through the teacher's predictions on unlabeled External Data (ED).
  2. Unseen Knowledge Forgetting (UKF): Because this transferred knowledge is fragile and not anchored by the student's own training labels, the student rapidly forgets what it learned from earlier teachers when it moves on to distill from a new teacher.

Methods

To balance the trade-off between acquiring new knowledge (UKT) and retaining old knowledge (UKF), the authors introduce Self External Data Distillation (SE2D).

Standard self-distillation approaches save a checkpoint of the student at the end of a task and use it as a regularizer alongside the new teacher. However, regularizing on the shared Internal Data (ID) simply reinforces already stable knowledge.

SE2D modifies this by splitting the distillation process:

  • Learning from the Teacher: The student distills from the current teacher ($T_t$) using the entire available dataset ($D^S = D_i \cup D_e$).
  • Learning from Itself: The student simultaneously distills from its own previous checkpoint ($S_{t-1}$), but exclusively on External Data ($D_e$).
Figure 4. Overview of Self External Data Distillation (SE2D). While the distillation from the teacher sequence is done on the en- tire distillation data, distillation from the checkpoint of the student at the end of the previous task is done only on De.

By restricting self-distillation to external data, SE2D specifically targets and preserves the fragile, "unseen" domain knowledge transferred by previous teachers without causing the student to become rigid or overfit to the baseline internal data.

Datasets

The authors adapted several standard Domain Incremental Learning benchmarks to fit the CD formulation:

  • CIFAR20: Grouped into 5 distinct domains based on superclasses to simulate related domain shifts.
  • Digits: A mixture of MNIST, MNIST-M, USPS, and SVHN as distinct domains, using KMNIST as a related external dataset.
  • DomainNet: A highly challenging dataset featuring six visual domains (Real, Clipart, Painting, Infograph, Sketch, Quickdraw) sharing 345 classes.
  • CUB & MNIST: Used as unrelated external data sources to test the boundaries of domain gaps in UKT.

Key Insights and Ideas

  • External Data is Mandatory for Full Transfer: You cannot fully extract a teacher's unique domain knowledge by only distilling on data the teacher shares with other models. Unlabeled external data acts as the essential catalyst for Unseen Knowledge Transfer (UKT).
  • The "Data Ratio" Rule: The intensity of UKT scales with the proportion of external data used. The more data unknown to the teacher that you introduce during distillation, the better the student performs on the teacher's hidden expertise domains.
  • The Domain Gap Goldilocks Zone: The origin of the external data matters immensely. If the external data is semantically related (e.g., using CUB bird images as external data for a CIFAR animal model), UKT succeeds. If the domain gap is too large (e.g., using MNIST digits as external data for a CIFAR model), performance degrades significantly.

Key Results

SE2D consistently outperformed mainstream distillation baselines (including standard KL-divergence, Decoupled Knowledge Distillation (DKD), and Logits Standardization (LS)) across all benchmarks when related external data was provided.

  • CIFAR20: SE2D achieved an average accuracy of 76.17% across all domains, outperforming standard KL-divergence (71.36%) and standard Self-Distillation (74.93%).
  • Digits: On the Digits benchmark combined with KMNIST external data, SE2D reached 87.00% average accuracy, yielding a massive improvement over standard distillation methods which suffered heavily from UKF (e.g., KL-divergence dropped to 71.75%).
Figure 5. Average Accuracy of the student across all domains known by teachers at the end of training on CIFAR20.

Limitations and Future Work

While SE2D successfully mitigates forgetting, it has a few key limitations:

  1. Data-Origin Knowledge: The student must explicitly know which data is "internal" (shared) and which is "external" (unknown to the teacher), which can be difficult to determine in real-world data-free or generative settings.
  2. Teacher Quality Dependency: SE2D relies heavily on the teacher providing high-quality supervision on the external data; poor teacher performance on ED causes the method's advantages to narrow.

Future Directions: The authors suggest exploring how Unseen Knowledge Transfer behaves in even larger models, such as large language models (LLMs) or multimodal vision-language models, where uncontrolled knowledge transfer could introduce unintended biases.

Summary updated

BibTeX
@inproceedings{michel2026continual,
  author = {Nicolas Michel and Maorong Wang and Jiangpeng He and Toshihiko Yamasaki},
  title = {{Continual Distillation of Teachers from Different Domains}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=Y0fqf898Hm},
}
Figure