TL;DR
This paper introduces "Born-Again Networks" (BANs), a novel approach to knowledge distillation where a student network, identical in architecture to its teacher, is trained to outperform it. Surprisingly, BANs consistently achieve better performance than their teachers on computer vision and language modeling tasks, challenging the traditional view of distillation solely for model compression.
What Problem Does This Paper Address?
Traditionally, knowledge distillation (KD) is used to transfer knowledge from a large, high-performing "teacher" model to a smaller, more compact "student" model. The primary goal is to achieve a smaller model that retains much of the teacher's accuracy, making it suitable for resource-constrained environments. However, this paper questions whether KD's benefits are solely tied to compression. They investigate a scenario where the student has the same capacity as the teacher, exploring if KD can lead to performance beyond the teacher's capabilities, a phenomenon they term "Born-Again Networks."
Methods
The core of the proposed method, Born-Again Networks (BANs), involves a re-training procedure. After a teacher model converges, a new student model with an identical architecture is initialized. This student is then trained with a dual objective:
- Predicting the correct labels: Standard supervised learning.
- Matching the teacher's output distribution: This is the knowledge distillation component, where the student learns from the teacher's soft predictions (logits).
The paper also explores two specific distillation objectives to understand the role of "dark knowledge" (information in the non-argmax outputs of the teacher):
- Confidence-Weighted by Teacher Max (CWTM): This method weights samples in the student's loss function based on the teacher's confidence in its prediction for that sample.
- Dark Knowledge with Permuted Predictions (DKPP): This approach attempts to isolate the contribution of non-argmax outputs by permuting them while keeping the argmax output fixed.
Datasets
The paper uses the following datasets for training and evaluation:
- CIFAR-10
- CIFAR-100
- Penn Tree Bank (PTB) for language modeling.
The authors note that their experiments on CIFAR-10 and CIFAR-100 use standard preprocessing and training settings, with modifications for regularization like weight decay and dropout.
Key Insights and Ideas
- Students can outperform teachers: The most striking finding is that identical student networks, when trained using KD from a teacher, can significantly surpass the teacher's performance. This challenges the assumption that KD is primarily for compression.
- Dark knowledge is multifaceted: Experiments with CWTM and DKPP suggest that KD's benefits are not solely from the teacher's confidence in the correct class or from the pairwise similarities of incorrect class predictions. The permutation-based DKPP, which scrambles non-argmax attributions, still yields improvements, indicating that higher-order moments of the output distribution are valuable.
- KD can rebalance training data: The CWTM approach suggests that KD can act as a form of importance weighting, effectively rebalancing the training set by giving less weight to samples where the teacher's output is less concentrated.
- Cross-architecture transfer is effective: The paper demonstrates that KD can successfully transfer knowledge between different architectures (e.g., DenseNet to ResNet and vice-versa), leading to improved performance for the student.
Key Results
- Computer Vision:
- On CIFAR-10, BANs achieved state-of-the-art validation error rates of 3.5% and 15.5% for CIFAR-10 and CIFAR-100 respectively.
- BAN-DenseNets consistently outperformed their DenseNet teachers, with improvements ranging from 0.5% to over 2% in test error on CIFAR-100.
- BAN-ResNets trained with DenseNet teachers also showed significant improvements over their ResNet baselines and even the DenseNet teachers.
- Language Modeling:
- On the Penn Tree Bank dataset, BAN-LSTM models achieved significant decreases in perplexity compared to their teachers. For example, a BAN-LSTM model improved test perplexity from 80.05 to 76.97.
- Ensembling: Sequential training of BANs (Born-Again Network Ensembles - BANE) led to further gains, with the largest ensemble achieving a 14.9% error on CIFAR-100.
Limitations and Future Work
- Diminishing returns with sequential BANs: While sequential training of BANs (BANE) yields improvements, these gains tend to saturate after a few generations.
- Interpretability of "dark knowledge": The paper explores the components of dark knowledge but acknowledges that the precise mechanisms and interpretability remain areas for further investigation.
- Generalizability of BANs: While successful on vision and language tasks, the authors suggest further exploration of BANs in other domains.
- Teacher quality: The paper demonstrates that even weaker teachers can benefit students, but the extent to which this holds across all model types and tasks is an open question.
- Future work could involve: Investigating the theoretical underpinnings of why identical student networks outperform teachers, exploring more sophisticated distillation objectives, and applying BANs to a wider range of tasks and architectures.
Summary updated