Official implementation of the paper "Diverse Image Priors for Black-box Data-free Knowledge Distillation", accepted at ICCCI 2026.
models/— neural network componentsmodels/classifiers/— AlexNet, LeNet-5, ResNet (standard and CIFAR variants)models/GANs/— GAN, ProGAN, StyleGAN architectures and utilitiesmodels/distillers/— distillation pipeline and self-boosting utilitiesmodels/distillers/selfboosting_utils/— contrastive synthesizer, coupled distiller, samplers, losses, filters
configs/selfboosting/— experiment configuration files (YAML/JSON)teacher/— teacher pre-training configssynth/— image synthesis configsdistillcontr/— contrastive distillation configsdistilldfad/— DFAD-style distillation configsdistilliter/— iterative distillation configsdistillraw/— raw distillation configsadapt/— domain adaptation configsconvergence/— convergence study configscrossarch/— cross-architecture transfer configsvizembed/— embedding visualisation configs
utils/— training infrastructureutils/callbacks/— checkpointing, logging, schedulers, WandB integrationutils/data/— dataset loaders (CIFAR, Tiny ImageNet, Imagenette, SVHN, USPS)utils/metrics/— accuracy, DDP-aware metricsutils/trainers/— trainer base class and utilitiesutils/ddp/— distributed data parallel helpers
results/— experiment notebooks and reporting utilities
conda env create -f environment.yml
conda activate aim2python -m models.distillers.selfboosting --config configs/selfboosting/teacher/teacher-cifar10-resnet18.yaml# Contrastive distillation (DIP-KD)
python -m models.distillers.selfboosting --config configs/selfboosting/distillcontr/distillcontr-cifar10-resnet18.yamlConfigs follow the naming convention <experiment>-<dataset>-<architecture>.yaml. Select a config from configs/selfboosting/ to reproduce any experiment in the paper.
DIP-KD operates in three phases under the restrictive black-box setting — only top-1 predictions from the teacher are available, with no access to training data:
- Synthesis — generates diverse image priors via multi-scale noise sampling with random augmentations, covering varied visual semantics across classes.
- Contrast — applies contrastive learning through a
ContrastiveSynthesizerto sharpen inter-class distinctions among synthetic samples. - Distillation — a
CoupledDistilleruses a primer student to enable soft-probability knowledge transfer across multiple generations.
If you find this work useful, please cite:
@inproceedings{vo2026diverse,
title = {Diverse Image Priors for Black-box Data-free Knowledge Distillation},
author = {Vo, Tri-Nhan and Nguyen, Dang and Le, Trung and Do, Kien and Gupta, Sunil},
booktitle = {Proceedings of the International Conference on Computational Collective Intelligence (ICCCI)},
year = {2026},
}