DP-Mix: Mixup-based Data Augmentation for Differentially Private Learning

Wenxuan Bao, Francesco Pittaluga, Vijay Kumar b g, Vincent Bindschaedler

Introduction

Training deep learning models with Differential Privacy (DP) is essential for protecting sensitive data, yet it frequently incurs a significant "privacy tax"—a substantial drop in model accuracy compared to non-private training. This performance gap is primarily due to the noise injection and gradient clipping required by Differentially Private Stochastic Gradient Descent (DP-SGD) to bound the influence of any single training example (sensitivity).

While data augmentation is a standard technique to improve generalization in non-private settings, multi-sample augmentations like Mixup—which creates new samples by interpolating between two different images—present a fundamental conflict with DP. If a single private image is mixed into multiple training samples, its influence spreads, forcing a proportional increase in noise to maintain the same privacy budget. This added noise typically outweighs the regularization benefits of the augmentation. Consequently, DP learning has historically been limited to single-sample augmentations like random crops or flips.

The DP-Mix Framework

To overcome the sensitivity bottleneck, the authors propose DP-Mix, a framework that enables the benefits of Mixup without violating DP constraints. The core innovation lies in ensuring that the interpolation process does not increase the sensitivity of the gradient calculation. The paper introduces two primary variants:

1. DP-MIXSELF

Instead of mixing two distinct training images, DP-MIXSELF generates multiple "self-augmentations" of a single image (e.g., different crops, rotations, or color jitters) and performs Mixup between these variations. Because all components of the mixed sample originate from the same individual data point, the sensitivity remains bounded to that single example. The gradients of all augmented versions are averaged before the clipping and noising steps of DP-SGD, preserving the privacy accounting while providing a unique smoothing effect that improves generalization.

2. DP-MIXDIFF

DP-MIXDIFF incorporates synthetic data to provide "privacy-free" regularization. The method utilizes a pre-trained diffusion model (e.g., trained on public data like LAION-2B) to generate class-specific synthetic images. A real, private training image is then mixed with these synthetic samples. Since the synthetic data is generated independently of the private dataset, it carries no privacy cost. This allows for diverse Mixup combinations that introduce high-quality external information without increasing the sensitivity of the private data.

Experimental Results

The authors evaluated DP-Mix across several benchmarks, including CIFAR-10, CIFAR-100, and specialized datasets like EuroSAT (satellite imagery) and Caltech 256. The results demonstrate that DP-Mix sets new state-of-the-art (SoTA) standards for private learning:

  • Training from Scratch: On CIFAR-10 with a privacy budget of $\epsilon=8$, DP-MIXSELF achieved 79.8% accuracy, surpassing the previous SoTA of 78.7%.
  • Fine-tuning Performance: The gains were most pronounced when using synthetic data. On Caltech 256 at $\epsilon=1$, DP-MIXDIFF reached 89.7% accuracy, a significant improvement over the 80.4% achieved by standard self-augmentation.
  • Gradient Stability: Analysis indicates that DP-Mix leads to more concentrated gradient magnitudes, which contributes to more stable training and faster convergence compared to baseline DP methods.

Discussion and Key Insights

A critical finding of the paper is the empirical proof of the "Microbatching Trap." The authors show that the intuitive approach of performing Mixup on pairs of real images (using microbatches of size 2) fails because the mathematical requirement to double the noise to account for shared sensitivity cancels out the regularization benefits.

Furthermore, the success of DP-MIXSELF suggests that the linear interpolation of pixel values provides a robust decision boundary smoothing that simple augmentation cannot replicate, even when no new label information is introduced. DP-MIXDIFF effectively treats diffusion models as a "privacy cheat code," allowing models to learn complex features from high-quality synthetic data while maintaining strict privacy for the real dataset.

Limitations and Future Work

Despite its success, DP-Mix faces two primary challenges:

  1. Computational Overhead: Processing multiple augmentations per image before clipping increases training time significantly (e.g., from 2 hours to 7.5 hours on an A100 GPU).
  2. Domain Gap: The effectiveness of DP-MIXDIFF is tied to the quality of the diffusion model. On specialized datasets like EuroSAT, performance can degrade if the diffusion model cannot accurately replicate the target domain (e.g., satellite imagery vs. general objects).

Future research may explore extending these principles to other multi-sample techniques like CutMix or applying them to non-vision domains such as Natural Language Processing.

Summary updated

BibTeX
@inproceedings{bao2023dp,
  author = {Wenxuan Bao and Francesco Pittaluga and Vijay Kumar b g and Vincent Bindschaedler},
  title = {{DP-Mix: Mixup-based Data Augmentation for Differentially Private Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=7rm3OcASkg},
}
Figure