Improving Diversity in Black-box Few-shot Knowledge Distillation

arXiv cs.CV / 4/29/2026

📰 NewsDeveloper Stack & InfrastructureModels & Research

Key Points

  • The paper introduces a practical “black-box few-shot knowledge distillation” setting where a student learns from a small dataset using a teacher that cannot be accessed internally.
  • It proposes a GAN-based training scheme that adaptively selects high-confidence images from the black-box teacher and injects them into adversarial learning in real time.
  • The method specifically targets improving the diversity of the distillation set, addressing limitations of prior approaches that generate synthetic images without an active diversity strategy.
  • Experiments across seven image datasets show the approach achieves state-of-the-art performance compared with other few-shot KD methods, and the authors release code publicly.

Abstract

Knowledge distillation (KD) is a well-known technique to effectively compress a large network (teacher) to a smaller network (student) with little sacrifice in performance. However, most KD methods require a large training set and internal access to the teacher, which are rarely available due to various restrictions. These challenges have originated a more practical setting known as black-box few-shot KD, where the student is trained with few images and a black-box teacher. Recent approaches typically generate additional synthetic images but lack an active strategy to promote their diversity, a crucial factor for student learning. To address these problems, we propose a novel training scheme for generative adversarial networks, where we adaptively select high-confidence images under the teacher's supervision and introduce them to the adversarial learning on-the-fly. Our approach helps expand and improve the diversity of the distillation set, significantly boosting student accuracy. Through extensive experiments, we achieve state-of-the-art results among other few-shot KD methods on seven image datasets. The code is available at https://github.com/votrinhan88/divbfkd.