Manuscript Offprint

arXiv:2608.29472

Knowledge Distillation under Teacher Misspecification: An Order-Parameter Analysis of the Gap between Teacher Mimicry and Task Performance

Kazuyuki Hara, Hideitsu Hino

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Knowledge distillation trains a small student model to reproduce the outputs of a large teacher model, and its progress is typically monitored through the teacher–student discrepancy. The quantity of ultimate interest, however, is the student’s error with respect to the true task. We study the relation between these two objectives in a minimal three-party model, a true teacher (generative model), a teacher, and a student, all soft committee machines, in which the true teacher contains a shared latent factor that the teacher cannot represent, with mismatch strength controlled by a single scalar δmiss\delta_{miss}. Within an order-parameter description of online distillation, and exploiting closed-form (arcsine-type) expressions for all errors under error-function activations, we prove that the learning dynamics and the distillation error EtsE_{ts} are exactly invariant to δmiss\delta_{miss}, whereas the true error Et0sE_{t_0s} and the gap Δ=Et0s−Ets\Delta = E_{t_0s} - E_{ts} are strictly increasing in δmiss\delta_{miss}, with a rate that is amplified linearly by the complexity M0M_0 of the true teacher. Numerical phase diagrams over the plane spanned by true-teacher complexity and student capacity confirm the predicted deformation: the contours of EtsE_{ts} do not move while the landscape of Et0sE_{t_0s} rises systematically, and a teacher-miss regime, where mimicry succeeds but the task fails, expands with δmiss\delta_{miss}. The results give a quantitative warning against evaluating distillation solely through teacher-mimicry metrics and identify the gap Δ\Delta as a minimal diagnostic for distinguishing teacher-miss from capacity-limited failure.

1 Introduction

The high accuracy of deep learning models is achieved by stacking many layers and using a large number of parameters (degrees of freedom). As a result, training and running deep learning models require enormous computational resources, making their practical deployment difficult. To address this issue, knowledge distillation has been proposed as a method that reduces computation time while retaining knowledge equivalent to that of a large model. Knowledge distillation (Hinton et al., 2015) is a basic technique for transferring the input–output relationship of a large model (the teacher) to a small model (the student), reducing inference cost while maintaining performance. Although it has attracted attention as a key technology for deploying AI systems, theoretical understanding of which large, complex models can be approximated by which learning models has not kept pace, and the scope of applicability of distillation remains unclear.

The learning objective of distillation is typically that the student reproduce the teacher's outputs, and its achievement is measured by the discrepancy between teacher and student, or by the loss against the teacher's soft targets. We collectively refer to metrics of this type as teacher-output approximation. What we are ultimately interested in, however, is the student's error on the true task, which is to minimize the gap between the true teacher, the generative model, or the unknown target function. We refer to metrics in this sense as the true error. Teacher-output approximation and true error tend to agree when the teacher adequately represents the true task, but they are not identical in general. Teacher-output approximation only measures the accuracy of imitating the teacher; when the teacher itself misses part of the true task, there is no guarantee that the true error improves even if the student imitates the teacher perfectly.

The more widely distillation is used in practice, the more this duality becomes an operational risk: an evaluation design that declares success whenever the distillation loss decreases can conflate “success of imitation” (teacher-output approximation) with “success on the task” (true error). Un-understanding distillation therefore requires a framework that theoretically separates the two and makes visible the conditions under which they diverge.

The central phenomenon addressed in this paper is the following: even though distillation reduces the teacher–student discrepancy (the imitation error, i.e., teacher-output approximation), the error between the true teacher and the student (the true error) does not decrease, or stalls.

This phenomenon comes in two broad types. The first is teacher-miss (teacher misspecification). When the teacher fails to capture structure possessed by the true teacher, the student's imitation transfers the teacher including what it misses: the imitation error decreases, but the error with respect to the task (the true error) does not. The second is capacity-limited failure. Even when the teacher represents the true task well, if the student's capacity (degrees of freedom) is insufficient, the imitation error itself does not decrease sufficiently, and naturally the true error does not improve either.

Importantly, these two failure modes are difficult to distinguish from the same observation (e.g., convergence of the distillation loss). Teacher-miss is a failure in which successful imitation does not translate into task success, while capacity-limited failure is one in which the imitation itself is insufficient. Without this distinction, the appropriate remedy, that is, improving the teacher, enlarging the student, or changing the distillation target, cannot be determined.

We perform this separation by simultaneously tracking the errors among the three parties (the true teacher t0t_{0}, the teacher t, and the student s),

Ets=12E[(t−s)2],Et0s=12E[(t0−s)2],E_{t s}=\frac{1}{2}\mathbb{E}\big[(t-s)^{2}\big],\qquad E_{t_{0}s}=\frac{1}{2}\mathbb{E}\big[(t_{0}-s)^{2}\big],

and in particular using their difference,

Δ≡Et0s−Ets,\Delta\equiv E_{t_{0}s}-E_{t s},

as a diagnostic that renders teacher-miss visible. A large Δ\Delta indicates a region where imitating the teacher continues to reduce EtsE_{ts} while the true objective Et0sE_{t_{0}s} does not improve.

The contributions of this paper are as follows. First, we present a framework in which teacher-miss is induced with a minimal modification and its onset is visualized as a phase diagram. Concretely, the true teacher possesses, in addition to latent factors (U1,U2)(U_{1}, U_{2}), a shared latent factor U3U_{3} that the teacher cannot observe, and the strength of this factor is controlled by a single scalar δmiss≥0\delta_{\text{miss}} \geq 0. Here δmiss=0\delta_{\text{miss}} = 0 corresponds to no mismatch, and δmiss>0\delta_{\text{miss}} > 0 induces teacher-miss. This design keeps the distillation dynamics (updates targeting the teacher tt) intact while systematically changing only the evaluation on the true-error side.

Second, we treat distillation as a set of ordinary differential equations (ODEs) for order parameters and analyze the resulting global phase structure. Under a learning rate η\eta and continuous time α\alpha, teacher-student correlations and intra-student correlations (in the symmetric reduction, rr, qdq_d, qoq_o) follow closed ODEs, in the tradition of the statistical mechanics of online learning (Saad and Solla, 1995a; Biehl and Schwarze, 1995). This allows systematic statements over the parameter space, where teacher-miss occurs and where capacity limitation dominates, without relying on individual finite-size experiments. Moreover, choosing the error function as the activation renders the distillation error and the true error in closed (arcsine-type) form in the order parameters, and we prove that the learning dynamics and EtsE_{ts} are exactly invariant to δmiss\delta_{miss}, while Et0sE_{t_0s} and Δ\Delta are strictly increasing in δmiss\delta_{miss}, with a rate amplified in proportion to the true-teacher complexity M0M_0 (Section 4.4). Our three-party setting can be viewed as a nonlinear, structured-mismatch counterpart of the linear three-party models studied in the statistical mechanics of learning, such as a student supervised by a moving teacher orbiting a true teacher (Miyoshi and Okada, 2006b) or by ensembles of imperfect teachers (Miyoshi and Okada, 2006a).

Third, we present the phase structure through two visualizations: (i) a comparison of the landscapes and contours of EtsE_{ts} and Et0sE_{t_0s} over the (M0,Ktot)(M_0, K_{\text{tot}}) plane, and (ii) heat maps of the gap Δ=Et0s−Ets\Delta = E_{t_0s} - E_{ts}. Experimentally, increasing δmiss\delta_{\text{miss}} leaves the contours of EtsE_{ts} unchanged while the landscape of Et0sE_{t_0s} rises systematically and the region of large Δ\Delta expands. This observation shows that the region where improving teacher-output approximation does not guarantee improvement on the true task appears as a phase diagram controlled by the mismatch strength δmiss\delta_{\text{miss}}.

References (37)

  • High-dimensional dynamics of generalization error in neural networks
  • The committee machine: Computational to statistical gaps in learning a two-layers neural network
  • Do deep nets really need to be deep? In Advances in neural information processing systems, pages 2654–2662, 2014
  • Knowledge distillation: A good teacher is patient and consistent
  • Learning by on-line gradient descent
  • On the efficacy of knowledge distillation
  • Statistical mechanics of learning
  • Dynamics of stochastic gradient descent for two-layer neural networks in the teacher-student setup
  • Generalisation dynamics of online learning in over-parameterised neural networks, 2019b (opens arXiv in a new tab)
  • Knowledge distillation: A survey
  • Ensemble learning of linear perceptrons: On-line learning theory
  • Statistical mechanics of mutual learning with latent teacher
  • Statistical mechanics of on-line mutual learning with many linear perceptrons
  • Distilling the Knowledge in a Neural Network
  • Stopping criterion for active learning based on deterministic generalization bounds
  • A stopping criterion for Bayesian optimization by the gap of expected minimum simple regrets
  • Neural tangent kernel: Convergence and generalization in neural networks
  • Knowledge distillation in wide neural networks: Risk bound, data efficiency and imperfect teacher
  • Information geometrically generalized covariate shift adaptation
  • Unifying distillation and privileged information
  • A statistical perspective on distillation
  • Improved knowledge distillation via teacher assistant
  • Statistical mechanics of online learning for ensemble teachers
  • Analysis of on-line learning when a moving teacher goes around a true teacher
  • Analysis of ensemble learning using simple perceptrons based on online learning theory
  • Self-distillation amplifies regularization in Hilbert space
  • When does label smoothing help? In Advances in Neural Information Processing Systems, volume 32, 2019
  • Overparameterized nonlinear learning: Gradient descent takes the shortest path? In International Conference on Machine Learning, pages 4951–4960, 2019
  • Towards understanding knowledge distillation
  • Analysis of natural gradient descent for multilayer neural networks
  • Fitnets: Hints for thin deep nets (opens arXiv in a new tab)
  • Exact solution for on-line learning in multilayer neural networks
  • On-line learning in soft committee machines
  • Statistical mechanics of learning from examples
  • Does knowledge distillation really work? In Advances in Neural Information Processing Systems, volume 34, pages 6906–6919, 2021
  • Learning using privileged information: Similarity control and knowledge transfer
  • Statistical mechanics of learning a rule