[Paper Review] Subclass Distillation
This paper proposes subclass distillation, a method that enhances knowledge distillation for low-class datasets by training a teacher network to split each class into multiple learned subclasses. By distilling from these subclass probabilities using a contrastive auxiliary loss, the student model achieves better generalization and faster convergence, even when trained without direct supervision on the binary labels.
After a large "teacher" neural network has been trained on labeled data, the probabilities that the teacher assigns to incorrect classes reveal a lot of information about the way in which the teacher generalizes. By training a small "student" model to match these probabilities, it is possible to transfer most of the generalization ability of the teacher to the student, often producing a much better small model than directly training the student on the training data. The transfer works best when there are many possible classes because more is then revealed about the function learned by the teacher, but in cases where there are only a few possible classes we show that we can improve the transfer by forcing the teacher to divide each class into many subclasses that it invents during the supervised training. The student is then trained to match the subclass probabilities. For datasets where there are known, natural subclasses we demonstrate that the teacher learns similar subclasses and these improve distillation. For clickthrough datasets where the subclasses are unknown we demonstrate that subclass distillation allows the student to learn faster and better.
Motivation & Objective
- Address the inefficiency of conventional knowledge distillation in low-class scenarios, such as binary classification, where limited class information reduces transfer effectiveness.
- Improve model generalization and training efficiency for resource-constrained applications by leveraging hidden subclass structures within data.
- Enable distillation from a teacher that learns semantically meaningful subclasses even with only binary labels, without requiring prior knowledge of the subclass structure.
- Demonstrate that students can learn binary classification tasks indirectly by mimicking intra-class subclass probabilities, without explicit supervision on the target class.
Proposed method
- Train a deep teacher network to produce logits for s subclasses per original class, with the final class probabilities derived by summing subclass probabilities.
- Introduce an auxiliary contrastive loss that encourages subclass diversity and confidence by contrasting each example with itself in a momentum-updated queue.
- Apply temperature scaling to the softmax of subclass logits to emphasize relative differences between subclasses while preserving intra-class relationships.
- Train the student network using two cross-entropy losses: one on the original class labels and one on matching the teacher’s subclass probability distributions.
- Use a momentum update for the teacher’s momentum encoder to stabilize the learning of subclass representations during training.
- Apply the method end-to-end on datasets with known (CIFAR-2x5, MNIST-2x5) and unknown (CelebA, Criteo) subclass structures to evaluate generalization and efficiency.
Experimental results
Research questions
- RQ1Can a teacher network discover semantically meaningful subclasses in a binary classification task when only given binary labels?
- RQ2Does distilling from subclass probabilities lead to better generalization than conventional distillation or penultimate layer distillation?
- RQ3Can a student learn a binary classification task without direct supervision on the target class by mimicking the relative subclass probabilities of the teacher?
- RQ4How does subclass distillation affect training speed and performance when data is limited or the subclass structure is unknown?
- RQ5To what extent do the learned subclasses correlate with known or natural data structures in real-world datasets?
Key findings
- On CIFAR-2x5, the teacher successfully discovered the original CIFAR-10 classes through subclass learning, achieving 1.83% error rate with subclass distillation, outperforming conventional distillation and penultimate layer distillation.
- On CelebA, the teacher’s learned subclasses showed strong correlation with other binary labels it was never trained on, indicating semantic meaningfulness and improved distillation performance.
- On the Criteo click prediction dataset, subclass distillation achieved faster convergence and better performance, especially when the student had limited access to the full dataset.
- On MNIST-2x5, the student achieved a 2.06% ± 0.18 error rate by learning only the relative subclass probabilities, without ever seeing the binary labels, demonstrating indirect learning of the target task.
- The auxiliary contrastive loss successfully encouraged diverse and confident subclass predictions, and the subclass structure was found to be semantically coherent across multiple datasets.
- Subclass distillation provided more bits per example than standard distillation, especially in low-data regimes, indicating higher information transfer efficiency.
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.