NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Quantifying Cross-Domain Knowledge Distillation in the Presence of Domain Shift

Xiangchao Li, Xiao Han, Qing Yang, Xin Tong

Introduction

Knowledge Distillation (KD) has emerged as a cornerstone of modern artificial intelligence. In this paradigm, a large, highly capable "teacher" model helps train a smaller, more efficient "student" model by sharing its predictive insights. While originally designed for model compression within the same domain, KD is increasingly deployed for domain adaptation—for instance, leveraging a speech model trained on standard English to bootstrap a model for a specific regional dialect.

Despite its empirical success, the field has lacked a rigorous mathematical "ground truth" explaining why cross-domain KD works. When the source domain (where the teacher learned) and the target domain (where the student learns) differ, the system experiences a domain shift. This shift can manifest in the data distribution itself (covariate shift) or in the underlying relationship between inputs and labels (model shift). This paper addresses a fundamental question: Can we mathematically guarantee that a teacher from a different domain actually improves student performance, and under what conditions might it hinder learning?

Methodology: High-Dimensional Asymptotic Analysis

To establish a theoretical foundation, the authors employ high-dimensional asymptotic analysis and Random Matrix Theory to study a linear teacher-student model. Specifically, they analyze ridge and ridgeless regression settings where both the number of features ($M$) and the number of samples ($N$) grow to infinity at a fixed ratio.

A central innovation in their approach is the introduction of an imitation parameter ($\xi$). Standard KD often assumes the student should strictly "copy" the teacher. In contrast, this parameter allows for a weighted balance between the teacher’s predictions and the actual ground-truth labels available in the target domain. Crucially, the authors do not restrict $\xi$ to the $[0, 1]$ interval. This flexibility allows for "anti-learning," a scenario where the student might intentionally diverge from a biased teacher's predictions to achieve superior generalization.

Experimental Validation

Because the focus is on rigorous theoretical proofs, the authors validate their findings using synthetically generated datasets rather than standard image or text benchmarks. This approach allows for precise control over domain shift variables:

  • Covariate Shift Simulations: Data is generated using distinct covariance matrices ($\Sigma_1$ for the source, $\Sigma_2$ for the target) to simulate changes in the input data distribution.
  • Model Shift Simulations: Data is constructed such that the underlying "true" parameter vectors ($\beta_1$ and $\beta_2$) differ between the source and target domains.
  • Nonlinear Extensions: To demonstrate broader applicability, the authors also run simulations using two-layer and four-layer neural networks with Leaky ReLU activations, showing that their linear theories likely generalize to more complex, nonlinear architectures.

Key Insights and Discoveries

Formal Efficacy Guarantees

The paper provides mathematical proofs characterizing the exact excess risk of cross-domain KD. The authors demonstrate that even if the domain shift is substantial, there almost always exists an optimal imitation parameter $\xi$ that allows the student to outperform a "student-only" baseline trained entirely without the teacher. As the authors note, "stones from other mountains can polish jade"—external knowledge is rarely useless if calibrated correctly.

The Power of Negative Imitation

In certain high-shift scenarios, the optimal $\xi$ is mathematically proven to be negative. This "anti-learning" phenomenon suggests that knowing what a biased teacher would predict is highly valuable information, even if the prediction is wrong. By applying a negative weight, the student can effectively "subtract" the teacher's known bias from its own learning process.

Crossed Double Descent

The machine learning community is familiar with the "double descent" phenomenon, where model error decreases, spikes, and then decreases again as model complexity grows. This paper identifies a novel crossed double descent: the student’s risk is a non-monotonic function of both the teacher’s and the student’s dimension-to-sample-size ratios. The interaction between the teacher's capacity and the student's learning dynamics creates a highly complex risk surface.

Bias-Variance Decomposition

The authors derive a precise, closed-form formula for "excess risk." This decomposition breaks down the error into components originating from the model shift (bias) versus the inherent noise in the training data (variance), providing a clear mathematical lens into the mechanics of cross-domain distillation.

Limitations and Future Directions

The primary limitation of this work is that its core mathematical proofs are derived specifically for linear models. While the numerical simulations strongly suggest these insights hold for nonlinear neural networks, formal mathematical guarantees for deep, non-convex models remain an open challenge for the field.

Additionally, the current framework assumes the source and target domains are largely independent. Future research should explore scenarios where domains exhibit stronger dependencies, or where multiple teachers from diverse domains are utilized simultaneously—a setup increasingly common in large-scale "mixture-of-experts" and multi-task learning environments.

Summary updated

BibTeX
@inproceedings{li2026quantifying,
  author = {Xiangchao Li and Xiao Han and Qing Yang and Xin Tong},
  title = {{Quantifying Cross-Domain Knowledge Distillation in the Presence of Domain Shift}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=a8kD1LcwZf},
}
Figure