NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DPAdapter: Improving Differentially Private Deep Learning through Noise Tolerance Pre-training

Zihao Wang, Rui Zhu, Dongruo Zhou, Zhikun Zhang, John Mitchell, Haixu Tang, XiaoFeng Wang

TL;DR

DPAdapter is a plug-and-play pre-training technique designed to bridge the gap between data privacy and model utility in deep learning. By enhancing a model's parameter robustness during public pre-training, it makes the model inherently tolerant to the noise injected by downstream Differential Privacy (DP) algorithms, significantly boosting final accuracy without compromising privacy guarantees.

What Problem Does This Paper Address?

Integrating Differential Privacy (DP) into deep learning—most commonly via Differentially Private Stochastic Gradient Descent (DP-SGD)—is the gold standard for protecting training data from privacy attacks like membership inference or data reconstruction. However, DP-SGD works by clipping individual sample gradients and adding Gaussian noise to the aggregate. This injected noise frequently leads to severe model performance degradation, creating a harsh trade-off between privacy and utility.

While transfer learning (pre-training on a public dataset before fine-tuning on private data) helps mitigate this, standard pre-trained models remain highly sensitive to parameter perturbations. The authors identify a key missing ingredient: parameter robustness. If a pre-trained model's parameters can be made inherently resilient to noise, it will better retain its learned features and generalize much more effectively when subjected to DP noise during downstream fine-tuning.

Methods

To cultivate parameter robustness, the authors introduce DPAdapter, a novel pre-training framework that builds upon and enhances Sharpness-Aware Minimization (SAM).

Standard SAM attempts to find flat minima by adding a worst-case perturbation to model parameters during a training step. However, standard SAM uses the same small mini-batch to calculate both the perturbation and the final gradient update. This creates a conflict: small batches yield highly inaccurate estimates of the worst-case perturbation, while large batches degrade the stochastic nature and convergence of gradient descent.

DPAdapter solves this by decoupling the batch sizes using a two-batch strategy:

  1. Worst-case Model Perturbation: It uses a large batch ($\mathcal{B}_1$) to compute an accurate, stable estimate of the worst-case parameter perturbation ($\Delta$).
  2. Update on the Perturbed Model: It applies this perturbation, then uses a separate, standard-sized small batch ($\mathcal{B}_2$) to compute the optimization gradient via standard SGD, ensuring efficient convergence.
  3. Revert Perturbation: The initial perturbation is subtracted, leaving a clean model updated via a noise-tolerant trajectory.
Figure 4: Overview of the DPAdapter approach. In the first step, known as standard training, we use the training data to conduct standard training on the model. This is analogous to the preheating process common in typical Adversarial Training (AT), where the model’s accuracy is first brought up to a standard level, resulting in the model fθ. Next, in step 2, We selected a batch data B1 (big batch size) from the training data, and utilize it to compute the worst-case model perturbation by Equation 3 ( 1⃝), producing the model fθ+∆. In step 3, we use another batch of data B2 to do sgd on the model fθ+∆( 2⃝), resulting in the model fw+∆+α. In step 4, we reverse the perturbation made in step 2 within the model fθ+∆+α ( 3⃝), obtaining the model fθ+α. Steps 2 to 4 are performed iteratively ( 4⃝), and upon reaching the desired number of iterations, we return the target model ( 5⃝). This culminating model is tailored to facilitate subsequent fine-tuning processes, enabling models built upon it to more efficaciously deploy the DPML optimization algorithm( 6⃝). This ensures not only the protection of the privacy of the fine-tuned dataset but also a notable enhancement in DPML performance.

Datasets

The paper evaluates DPAdapter using a transfer learning setup across several standard computer vision benchmarks:

  • Public Pre-training Dataset: CIFAR-100 (used to simulate the publicly available data for building the robust base model).
  • Private Downstream Datasets: CIFAR-10, SVHN, and STL-10 (used for private fine-tuning under DP constraints).

Key Insights and Ideas

  • Parameter Robustness is Transferable: The authors empirically demonstrate that parameter robustness gained during upstream pre-training is not lost; it successfully transfers to downstream tasks, protecting the model from DP noise during fine-tuning.
  • The Generality-Robustness Trade-off: Increasing the perturbation magnitude ($\gamma$) improves noise tolerance up to a point, but excessive perturbation degrades the model's baseline accuracy, which hurts downstream transferability. DPAdapter optimizes this trade-off.
  • Decoupling is Essential: As shown in the paper's analysis, perturbation math doesn't benefit from being stochastic—ideally, it would use the whole dataset. By separating the large batch for perturbation estimation from the small batch for gradient updates, DPAdapter achieves superior parameter flatness without sacrificing optimization efficiency.
Figure 2: The relationship between the parameter robustness of the pretrained models and that of the models fine-tuned on the downstream tasks.

Key Results

DPAdapter was tested alongside vanilla DP-SGD and three state-of-the-art DPML variants (AdpClip, GEP, and AdpAlloc).

  • Substantial Accuracy Gains: For a standard DP-SGD setup with a privacy budget of $\epsilon = 4$, DPAdapter raised the average downstream accuracy across tasks from 72.92% (standard pre-training) to 77.09%.
  • Strong Performance at Low Privacy Budgets: Under a strict privacy budget of $\epsilon = 1$ using the AdpClip algorithm, DPAdapter boosted accuracy from 42.67% to 52.54%—nearly a 10% absolute improvement.
  • Universal Compatibility: Because it modifies only the pre-training phase, DPAdapter acts as a true plug-and-play component that consistently amplifies the performance of whatever downstream DPML algorithm is selected.

Limitations and Future Work

  • Supervised Learning Constraint: The current design of DPAdapter is tailored strictly to supervised learning, meaning the public pre-training dataset must be labeled. The authors note that extending this concept to unsupervised or contrastive learning remains an open challenge.
  • Single-Party Focus: The evaluation focuses primarily on centralized training. While theoretically adaptable to multi-party settings like Federated Learning (e.g., combining with DP-FedAvg), the authors acknowledge that its scalability and communication efficiency in distributed environments require further validation.

Summary updated

BibTeX
@inproceedings{wang2024dpadapter,
  author = {Zihao Wang and Rui Zhu and Dongruo Zhou and Zhikun Zhang and John Mitchell and Haixu Tang and XiaoFeng Wang},
  title = {{DPAdapter: Improving Differentially Private Deep Learning through Noise Tolerance Pre-training}},
  booktitle = {USENIX Security},
  year = {2024},
}
Figure