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:
- 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$).
- 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.
- Revert Perturbation: The initial perturbation is subtracted, leaving a clean model updated via a noise-tolerant trajectory.
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.
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