Neural Networks Are More Productive Teachers Than Human Raters: Active Mixup for Data-Efficient Knowledge Distillation From a Blackbox Model

Dongdong Wang, Yandong Li, Liqiang Wang, Boqing Gong

Abstract

We study how to train a student deep neural network for visual recognition by distilling knowledge from a blackbox teacher model in a data-efficient manner. Progress on this problem can significantly reduce the dependence on large-scale datasets for learning high-performing visual recognition models. There are two major challenges. One is that the number of queries into the teacher model should be minimized to save computational and/or financial costs. The other is that the number of images used for the knowledge distillation should be small; otherwise, it violates our expectation of reducing the dependence on large-scale datasets. To tackle these challenges, we propose an approach that blends mixup and active learning. The former effectively augments the few unlabeled images by a big pool of synthetic images sampled from the convex hull of the original images, and the latter actively chooses from the pool hard examples for the student neural network and query their labels from the teacher model. We validate our approach with extensive experiments.

Introduction

Modern computer vision relies heavily on massive, labeled datasets. However, in many practical scenarios, we only have access to a high-performing "teacher" model via a blackbox API and a very limited amount of unlabeled data. Knowledge Distillation (KD) aims to transfer intelligence from this teacher to a smaller "student" model. Traditional KD requires either the original training data or internal access to the teacher's gradients (whitebox). This paper addresses the challenge of distilling knowledge when the teacher is a blackbox and data is scarce.

The Active Mixup Framework

The proposed solution, Active Mixup, is an iterative framework designed to "steal" the teacher's expertise using minimal resources. It leverages the fact that neural networks can provide meaningful, probabilistic "soft labels" even for synthetic images that would confuse a human rater.

Overview of the Active Mixup framework compared to traditional data-intensive labeling.

The methodology consists of three main components:

  1. Candidate Pool Construction (Mixup): Starting with as few as 100 unlabeled images, the system generates millions of synthetic examples by linearly blending pairs of images. This "mixup" technique explores the convex hull of the natural image manifold, creating a dense field of potential training points.
  2. Active Selection: To minimize expensive API queries, the student model identifies "hard" examples—those it is most uncertain about—from the massive synthetic pool.
  3. Teacher Querying: Only these informative images are sent to the blackbox teacher. The teacher returns soft labels (probability distributions), which capture the "dark knowledge" of the teacher's decision boundaries more effectively than hard labels.

Experimental Results

The researchers evaluated Active Mixup on benchmarks ranging from MNIST to the high-resolution Places365-Standard dataset.

Performance comparison of Active Mixup against other knowledge distillation methods across various benchmarks.

Key findings include:

  • Superior Accuracy and Success Rate: On CIFAR-10, Active Mixup achieved a distillation success rate of 89.87%, vastly outperforming Few-Shot KD (FSKD) at 48.85%.
  • Query Efficiency: The method is remarkably efficient. For CIFAR-10, it required only 40,000 queries, whereas Zero-Shot KD (ZSKD) methods often require millions of queries to reach lower performance levels.
  • Out-of-Domain Robustness: The framework proved robust even when the unlabeled images came from a different domain than the teacher's original training set (e.g., using CIFAR-100 images to distill a CIFAR-10 teacher).

Conclusion

Active Mixup demonstrates that neural networks are more productive teachers than humans for this task because they can provide consistent, informative signals for synthetic "mixup" images. By combining data augmentation via mixup with the efficiency of active learning, this approach significantly reduces the data and query barriers to high-quality knowledge distillation from blackbox models.

Summary updated

BibTeX
@inproceedings{wang2020neural,
  author = {Dongdong Wang and Yandong Li and Liqiang Wang and Boqing Gong},
  title = {{Neural Networks Are More Productive Teachers Than Human Raters: Active Mixup for Data-Efficient Knowledge Distillation From a Blackbox Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=CsLDDs8sB3},
}
Figure