Model Conversion via Differentially Private Data-Free Distillation

Bochao Liu, Pengju Wang, Shikun Li, Dan Zeng, Shiming Ge

Abstract

Releasing high-performance deep learning models poses significant privacy risks, as these models often memorize sensitive training data. Standard defenses like Differential Privacy (DP) typically require access to the original training data and often result in a substantial "utility tax." This paper introduces DPDFD (Differentially Private Data-Free Distillation), a framework designed to convert a sensitive "teacher" model into a privacy-preserving "student" model without requiring access to the original training data or a public proxy dataset. By combining data-free knowledge distillation with a novel gradient normalization mechanism and low-dimensional noise injection, DPDFD achieves state-of-the-art accuracy under strict privacy budgets (e.g., $\epsilon=1$).

1. Introduction: The Privacy-Utility-Data Trilemma

The deployment of deep learning models in sensitive domains—such as healthcare or finance—is often hindered by the Privacy-Utility-Data Trilemma. Practitioners must balance three competing requirements:

  1. Privacy: Ensuring the model does not leak training data through membership inference or model inversion attacks.
  2. Utility: Maintaining high predictive accuracy.
  3. Data Access: Operating in environments where the original training data is unavailable due to legal, ethical, or logistical constraints.

Existing solutions like Differentially Private Stochastic Gradient Descent (DPSGD) fail the third requirement, as they necessitate access to the original data. Furthermore, DPSGD relies on gradient clipping, which can destroy the relative scale of gradients and severely degrade performance. Other methods, such as PATE, require large ensembles and clean public datasets, which are rarely available in specialized domains.

2. The DPDFD Framework

DPDFD addresses these challenges through a three-party learning framework involving a Teacher (the sensitive pretrained model), a Student (the private target), and a Generator.

2.1 Synthetic Data Generation

In the absence of original data, the generator produces synthetic samples by attempting to match the internal feature distributions of the teacher model. This "massive synthetic data" serves as the medium for knowledge transfer.

2.2 Differentially Private Distillation

The student model is trained to mimic the teacher's outputs on the synthetic data. To ensure privacy, the authors introduce two key technical innovations:

  • The Normalization Trick: Unlike standard DP practices that "clip" gradients (truncating values above a threshold), DPDFD uses normalization. This preserves the relative size and direction of the gradients. The authors demonstrate that maintaining the gradient's orientation is more effective for convergence and accuracy when operating under low norm bounds.
  • Low-Dimensional Noise: Adding noise to millions of model parameters is computationally and privacy-expensive. DPDFD instead adds Gaussian noise to the gradients of the student's outputs. Since the output layer is significantly smaller than the parameter space, this approach achieves better privacy guarantees with minimal distortion to the learning signal.

2.3 Generator Updates and Post-Processing

The generator is updated in an adversarial-style loop, treating the student as a fixed discriminator. A critical theoretical insight utilized here is the Post-Processing Property of Differential Privacy: any function applied to a DP-protected output remains DP-protected. By privatizing the student's outputs, the updates to the generator are automatically "privatized," ensuring the entire pipeline remains secure.

3. Experimental Evaluation

The authors evaluated DPDFD across a diverse set of benchmarks to test its versatility and scalability:

  • Standard Vision: MNIST, Fashion-MNIST (FMNIST), and CIFAR-10.
  • High-Resolution Faces: CelebA, specifically focusing on hair color (CelebA-H) and gender (CelebA-G).
  • Medical Imaging: PathMNIST (colon pathology) and COVIDx.
  • Large-Scale Architectures: ImageNet, utilizing ResNet-50 and Vision Transformers (ViT).

4. Key Results and Insights

4.1 Superior Utility

DPDFD consistently outperformed existing DP-generative approaches. On the MNIST dataset with a strict privacy budget of $\epsilon=1$, DPDFD achieved 95.12% accuracy, compared to 90.46% for the next best baseline (DPGEN). The performance gap was even more pronounced in specialized domains; on the PathMNIST medical dataset, DPDFD reached 80.12% accuracy ($\epsilon=1$), while the DataLens baseline struggled at 53.52%.

4.2 Robustness to Inversion Attacks

To validate the privacy protection, the authors conducted model inversion attacks. While sensitive information could be reconstructed from the original teacher model, the DPDFD-trained student model yielded only unrecognizable noise, demonstrating practical resistance to data leakage.

4.3 Scalability

Unlike many DP methods that are limited to small-scale models, DPDFD successfully scaled to complex architectures like Vision Transformers (ViT) and DenseNet-161. This suggests that the method is viable for modern, large-scale machine learning tasks.

5. Conclusion and Future Work

DPDFD provides a robust solution to the privacy-utility-data trilemma by enabling the creation of private models without original data access. While the synthetic images generated during the process are not visually representative to humans (appearing as "noisy blobs"), they are highly effective for distillation.

Future research may extend DPDFD into Federated Learning environments. In such settings, data-free distillation could allow for the aggregation of local models from multiple users into a single, privacy-preserving global model without ever requiring the transmission of raw, sensitive user data.

Summary updated

BibTeX
@inproceedings{liu2023model,
  author = {Bochao Liu and Pengju Wang and Shikun Li and Dan Zeng and Shiming Ge},
  title = {{Model Conversion via Differentially Private Data-Free Distillation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/243},
}
Figure