Skip to main content
QUICK REVIEW

[Paper Review] Learning from a Teacher using Unlabeled Data

Gaurav Menghani, Sujith Ravi|arXiv (Cornell University)|Nov 13, 2019
Machine Learning and Data ClassificationComputer Science11 references5 citations
TL;DR

This paper proposes 'blind distillation,' a method where a student model learns from a teacher model's soft labels on purely unlabeled data from a different distribution. Despite never seeing labeled examples, the student achieves 96% accuracy on MNIST using only Fashion-MNIST data, demonstrating that knowledge distillation can transfer class relationships beyond original training data.

ABSTRACT

Knowledge distillation is a widely used technique for model compression. We posit that the teacher model used in a distillation setup, captures relationships between classes, that extend beyond the original dataset. We empirically show that a teacher model can transfer this knowledge to a student model even on an {\it out-of-distribution} dataset. Using this approach, we show promising results on MNIST, CIFAR-10, and Caltech-256 datasets using unlabeled image data from different sources. Our results are encouraging and help shed further light from the perspective of understanding knowledge distillation and utilizing unlabeled data to improve model quality.

Motivation & Objective

  • To investigate whether knowledge distillation can transfer class relationships from a teacher model to a student using only unlabeled data from a different distribution.
  • To evaluate if a student model trained on out-of-distribution unlabeled data can generalize effectively to the original labeled dataset.
  • To understand the role of model architecture compatibility between teacher and student in blind distillation.
  • To assess the potential of unlabeled data as a complementary training signal to supervised learning.
  • To explore implications for model security, showing that model performance can be replicated using only access to logits and unlabeled data.

Proposed method

  • Train a teacher model on a labeled dataset (e.g., MNIST) and freeze its parameters to produce soft labels (logits) on unlabeled data from a different distribution (e.g., Fashion-MNIST).
  • Train a student model using cross-entropy loss between its own logits and the teacher’s logits on the unlabeled data, without any access to the original labeled data.
  • Use t-SNE visualization to analyze the embedding space of the teacher model, showing that it captures semantic relationships between classes even across different data distributions.
  • Fine-tune the blind-distilled student model on a small subset of the original labeled data to further improve performance.
  • Compare performance across different teacher-student architecture combinations (e.g., CNN-CNN, MLP-CNN) to assess architectural compatibility.
  • Measure performance via accuracy on the original test set after blind distillation and after fine-tuning.

Experimental results

Research questions

  • RQ1Can a student model achieve high performance on a labeled dataset without ever seeing its training examples, solely by learning from a teacher’s predictions on out-of-distribution unlabeled data?
  • RQ2To what extent does the teacher model’s ability to generalize to out-of-distribution data reflect meaningful class-level relationships beyond the original dataset?
  • RQ3How does architectural mismatch between teacher and student affect performance in blind distillation?
  • RQ4Can blind distillation combined with fine-tuning lead to performance improvements comparable to or better than standard supervised training?
  • RQ5What are the implications of this method for model security, particularly in scenarios where only access to a model’s logits is available?

Key findings

  • A student model trained via blind distillation on Fashion-MNIST data achieved 96% accuracy on the MNIST test set, despite never seeing any MNIST images during training.
  • Fine-tuning the blind-distilled student model on just a small subset of MNIST labels improved accuracy to 98.16% when the student was an MLP and to 99.26% when the student was a CNN.
  • The performance of blind distillation was sensitive to teacher-student architecture compatibility, with mismatched architectures leading to lower accuracy, which was resolved after fine-tuning.
  • More accurate teacher models produced higher cross-entropy loss during student training, indicating they teach more complex decision boundaries.
  • t-SNE visualizations showed that the teacher model's embedding space preserved semantic relationships, with similar-looking images from different datasets clustering near each other.
  • On the Caltech-256 dataset, blind distillation achieved 64.0% accuracy using OpenImages data, which improved to 72.3% after fine-tuning—demonstrating transferability across diverse, high-variation datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.