Towards Effective Data-Free Knowledge Distillation via Diverse Diffusion Augmentation

Muquan Li, Dongyang Zhang, Tao He, Xiurui Xie, Yuan-Fang Li, Ke Qin · DOI

Introduction

Knowledge Distillation (KD) has emerged as a cornerstone for model compression, enabling a compact "student" model to inherit the performance of a large, pre-trained "teacher." However, standard KD relies on the availability of the original training data, which is often restricted due to privacy concerns or proprietary limitations. Data-Free Knowledge Distillation (DFKD) addresses this by synthesizing training data through model inversion. Despite its potential, DFKD frequently suffers from a lack of diversity and realism in synthetic samples, leading to suboptimal student performance. This paper proposes Diverse Diffusion Augmentation (DDA), a framework designed to bridge the gap between synthetic and real-world data distributions using pre-trained diffusion models.

The DDA Framework

The core of the proposed approach is the integration of a diffusion-based augmentation pipeline into the traditional DFKD loop. Unlike previous methods that rely solely on GANs or simple noise, DDA leverages the rich generative priors of Stable Diffusion to enhance the diversity of synthetic images.

Comparison between traditional DFKD and the proposed DDA framework.

As illustrated in the figure above, the DDA framework consists of four primary stages:

  1. Enhanced Data Synthesis: The process begins with model inversion, augmented by a contrastive learning component. A memory bank of previously synthesized images ensures the generator produces novel samples, preventing mode collapse.
  2. Diverse Diffusion Augmentation: Synthetic images are passed through a pre-trained Stable Diffusion-V2 model to generate multiple high-fidelity variations. This process is guided by feedback from the student model to ensure the augmentations remain semantically relevant.
  3. Cosine Similarity Filtering: To mitigate "hallucinations" where the diffusion model alters the core semantics of an image, a filtering mechanism calculates the cosine similarity between the original synthetic image and its augmented counterparts. Samples falling below a specific threshold ((\omega = 0.75)) are discarded.
  4. Knowledge Distillation: The student model is trained using a combination of KL-divergence and feature-map matching against the teacher model's outputs on the filtered, augmented dataset.

Experimental Evaluation

The researchers evaluated DDA across several benchmarks, including CIFAR-10, CIFAR-100, and Tiny-ImageNet, using various teacher-student pairs such as ResNet-34 to ResNet-18 and Wide ResNet (WRN) architectures.

DDA consistently outperformed state-of-the-art (SOTA) methods. On CIFAR-100, for instance, a WRN-40-2 to WRN-16-2 distillation task achieved 70.27% accuracy, a significant improvement over previous methods that typically reached 68-69%. Ablation studies confirmed that the diffusion module was the primary driver of these gains, contributing an average accuracy increase of 1.245%.

Visual Quality and Insights

A key advantage of DDA is the visual fidelity of its generated data. While earlier SOTA methods like CMI or ADI often produce abstract textures or noisy patterns, DDA generates images that are remarkably recognizable to the human eye.

High-fidelity synthetic images generated by the DDA framework across various classes.

Quantitatively, this improvement is reflected in the Fréchet Inception Distance (FID). DDA achieved an FID of 0.127 in the first pooling layer, substantially lower than CMI (0.140) and ADI (2.021), indicating a much closer alignment with the real data distribution. This high fidelity, combined with the diversity introduced by the diffusion model, allows the student to learn more robust features.

Conclusion and Future Work

DDA demonstrates that pre-trained diffusion models can serve as powerful augmentors for Data-Free Knowledge Distillation, effectively solving the fidelity-diversity tradeoff. While the computational overhead of running diffusion models remains a challenge, the performance gains and the quality of the synthetic data represent a significant step forward for privacy-preserving model compression. Future research may focus on optimizing the efficiency of these diffusion steps and extending the framework to non-visual modalities like text and audio.

Summary updated

BibTeX
@inproceedings{li2024towards,
  author = {Muquan Li and Dongyang Zhang and Tao He and Xiurui Xie and Yuan-Fang Li and Ke Qin},
  title = {{Towards Effective Data-Free Knowledge Distillation via Diverse Diffusion Augmentation}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3680711},
}
Figure