[Paper Review] Distilling Model Knowledge
This thesis introduces a general knowledge distillation framework that trains compact models to mimic complex ones by matching their outputs and derivatives. It achieves state-of-the-art results in model compression, Bayesian predictive distribution distillation, and intractable generative model distillation, with novel techniques like derivative matching and online distillation.
Top-performing machine learning systems, such as deep neural networks, large ensembles and complex probabilistic graphical models, can be expensive to store, slow to evaluate and hard to integrate into larger systems. Ideally, we would like to replace such cumbersome models with simpler models that perform equally well. In this thesis, we study knowledge distillation, the idea of extracting the knowledge contained in a complex model and injecting it into a more convenient model. We present a general framework for knowledge distillation, whereby a convenient model of our choosing learns how to mimic a complex model, by observing the latter's behaviour and being penalized whenever it fails to reproduce it. We develop our framework within the context of three distinct machine learning applications: (a) model compression, where we compress large discriminative models, such as ensembles of neural networks, into models of much smaller size; (b) compact predictive distributions for Bayesian inference, where we distil large bags of MCMC samples into compact predictive distributions in closed form; (c) intractable generative models, where we distil unnormalizable models such as RBMs into tractable models such as NADEs. We contribute to the state of the art with novel techniques and ideas. In model compression, we describe and implement derivative matching, which allows for better distillation when data is scarce. In compact predictive distributions, we introduce online distillation, which allows for significant savings in memory. Finally, in intractable generative models, we show how to use distilled models to robustly estimate intractable quantities of the original model, such as its intractable partition function.
Motivation & Objective
- Address the practical challenges of deploying large, complex machine learning models that are slow to evaluate and expensive to store.
- Develop a unified framework for knowledge distillation that enables simpler models to replicate the behavior of complex models.
- Improve model efficiency in three key applications: model compression, compact Bayesian predictive distributions, and distillation of intractable generative models.
- Enable better performance under data scarcity and reduced memory usage through novel distillation techniques.
- Provide robust estimation of intractable quantities (e.g., partition functions) using distilled models.
Proposed method
- Train a compact student model to mimic a complex teacher model by minimizing a loss that penalizes deviations in output and derivative values.
- Use derivative matching in model compression to improve generalization when training data is limited.
- Implement online distillation for Bayesian inference, maintaining running averages of sufficient statistics to reduce memory usage.
- Apply stochastic gradient training to distill unnormalizable models (e.g., RBMs) into tractable models (e.g., NADEs) via KL divergence minimization.
- Leverage R{backprop} for efficient second-order derivative computation in both student and teacher models.
- Use batch and online EM algorithms to train mixture models during distillation, with adaptive learning rate schedules for convergence.
Experimental results
Research questions
- RQ1Can knowledge distillation be generalized into a unified framework applicable across diverse machine learning applications?
- RQ2How does derivative matching improve distillation performance when data is scarce?
- RQ3Can online distillation significantly reduce memory usage in Bayesian predictive distribution learning?
- RQ4Can distilled models robustly estimate intractable quantities (e.g., partition functions) of complex models like RBMs?
- RQ5What is the relative performance gain of distillation in model compression, Bayesian inference, and intractable generative modeling?
Key findings
- Derivative matching significantly improves distillation performance in model compression, especially under data scarcity, by aligning both function values and gradients.
- Online distillation reduces memory consumption by maintaining running averages of sufficient statistics instead of storing full data batches.
- The distilled NADE model successfully estimates the intractable partition function of the original RBM with high accuracy.
- The framework enables effective distillation of large ensembles of neural networks into compact, single-model equivalents with comparable predictive performance.
- The use of stochastic gradient training with adaptive learning rates ensures stable and convergent optimization in online distillation.
- The proposed distillation framework achieves state-of-the-art results across all three applications: model compression, Bayesian inference, and intractable generative modeling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.