[Paper Review] Zero-Shot Knowledge Distillation in Deep Networks
This paper presents a data-free knowledge distillation framework that synthesizes Data Impressions from a Teacher model using Dirichlet modeling of the softmax space, enabling KD without training data and achieving competitive performance across MNIST, Fashion-MNIST, and CIFAR-10.
Knowledge distillation deals with the problem of training a smaller model (Student) from a high capacity source model (Teacher) so as to retain most of its performance. Existing approaches use either the training data or meta-data extracted from it in order to train the Student. However, accessing the dataset on which the Teacher has been trained may not always be feasible if the dataset is very large or it poses privacy or safety concerns (e.g., bio-metric or medical data). Hence, in this paper, we propose a novel data-free method to train the Student from the Teacher. Without even using any meta-data, we synthesize the Data Impressions from the complex Teacher model and utilize these as surrogates for the original training data samples to transfer its learning to Student via knowledge distillation. We, therefore, dub our method "Zero-Shot Knowledge Distillation" and demonstrate that our framework results in competitive generalization performance as achieved by distillation using the actual training data samples on multiple benchmark datasets.
Motivation & Objective
- Motivate and address the data accessibility/privacy challenges in knowledge distillation where training data is unavailable or restricted.
- Propose a data-free KD pipeline that synthesizes pseudo samples (Data Impressions) from the Teacher by modeling the softmax space with Dirichlet distributions.
- Derive class similarity priors from the Teacher to guide data synthesis and improve transfer.
- Demonstrate the effectiveness of ZSKD across multiple datasets and compare with data-dependent baselines and meta-data approaches.
Proposed method
- Model the Teacher’s softmax outputs with a Dirichlet distribution per class to capture class similarities.
- Compute a class similarity matrix from the Teacher’s final and pre-final layer weights to form the Dirichlet concentration parameters.
- Sample softmax vectors from Dir(K, alpha^k) for each class k and craft corresponding Data Impressions by optimizing the input to minimize cross-entropy with the sampled softmax目标.
- Generate a transfer set (Data Impressions) and perform knowledge distillation using only the KD loss between Teacher and Student.
- Use a scaling factor beta to control Dirichlet concentration and diversity of Data Impressions.
- Optionally augment Data Impressions during distillation to boost performance.
Experimental results
Research questions
- RQ1Can knowledge distillation be effectively performed without access to any training data or data-derived meta-data?
- RQ2Can pseudo-samples synthesized from a Teacher’s softmax space (Data Impressions) serve as a viable transfer set for training a Student?
- RQ3How well does Dirichlet-based modeling of the softmax space capture inter-class similarities to guide data synthesis?
- RQ4How does Zero-Shot KD compare with data-dependent KD and data-free baselines across standard benchmarks?
Key findings
- ZSKD achieves competitive generalization compared to data-driven KD on MNIST, Fashion-MNIST, and CIFAR-10 while using no original training data.
- Across MNIST, Fashion-MNIST, and CIFAR-10, ZSKD using Data Impressions outperforms prior data-free and few-data methods and approaches the performance of KD with full data on several settings.
- The Dirichlet-based softmax modeling, guided by a learned Class Similarity Matrix, enables diverse yet relevant pseudo samples that effectively transfer knowledge to the Student.
- Increasing the transfer set size (Data Impressions) generally improves performance, with diminishing returns as the set grows, and simpler datasets require fewer impressions to reach competitive results.
- Data Impressions often look visually distinct from real data yet can still induce meaningful KD, sometimes capturing recognizable object patterns.
- Using a mixture of Beta-scaled Dirichlet parameters (beta values 0.1 and 1.0) enhances diversity and performance in practice.
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.