Abstract
We introduce AdaMix, an adaptive differentially private algorithm for training deep neural network classifiers using both private and public image data. While pre-training language models on large public datasets has enabled strong differential privacy (DP) guarantees with minor loss of accuracy, a similar practice yields punishing trade-offs in vision tasks. A few-shot or even zero-shot learning baseline that ignores private data can outperform fine-tuning on a large private dataset. AdaMix incorporates few-shot training, or cross-modal zero-shot learning, on public data prior to private fine-tuning, to improve the trade-off. AdaMix reduces the error increase from the non-private upper bound from the 167–311% of the baseline, on average across 6 datasets, to 68-92% depending on the desired privacy level selected by the user. AdaMix tackles the trade-off arising in visual classification, whereby the most privacy sensitive data, corresponding to isolated points in representation space, are also critical for high classification accuracy. In addition, AdaMix comes with strong theoretical privacy guarantees and convergence analysis.
Introduction
Differential Privacy (DP) is the gold standard for ensuring that machine learning models do not leak specific information about individual training samples. However, in computer vision, DP often faces a "punishing" trade-off: achieving strong privacy guarantees typically requires accepting a massive drop in accuracy. This is largely because the most informative data points—those in the "long tail" of a distribution—are often the most privacy-sensitive. Standard DP algorithms treat these points as outliers and clip their influence, which inadvertently destroys the model's ability to learn complex features.
Methodology: The AdaMix Algorithm
To address these challenges, we propose the Mixed Differential Privacy (MixDP) setting, where a researcher has access to a large private dataset and a small (less than 10%) labeled public dataset. The AdaMix algorithm leverages this public data through three adaptive components:
- Smart Initialization: The model is initialized using few-shot learning on public data or zero-shot learning via multi-modal models like CLIP, providing a reference weight ($w_{ref}$) close to the optimal solution.
- Adaptive Clipping: Instead of a fixed threshold, AdaMix uses public data to dynamically calculate the optimal gradient clipping threshold (typically the 90th percentile of gradient norms) during training.
- Adaptive Subspace Projection: To mitigate high-dimensional noise, AdaMix performs Singular Value Decomposition (SVD) on public gradients to identify a low-dimensional subspace of important features. Noisy private gradients are then projected into this cleaner subspace.
Key Insights: The "Only-Public" Surprise
A striking finding in our research is that a model trained only on a few public samples often outperforms a model trained on a massive private dataset using standard DP. This highlights the significant utility loss in traditional private training. The public data acts as a "map," guiding the algorithm toward important features and typical scales without needing to be large itself.
Experimental Results
We evaluated AdaMix on six diverse image classification benchmarks, including Oxford Flowers, CUB-200, and MIT-67. On average, standard DP baselines increased the error of a non-private model by 167-311%. AdaMix slashed this increase to just 68-92%. Furthermore, AdaMix demonstrated robustness to domain shifts—such as using sketches as public data for a model trained on real photos—and maintained strong resistance to membership inference attacks (MIA).
Conclusion and Future Work
AdaMix significantly bridges the accuracy gap in privacy-preserving computer vision by intelligently utilizing small amounts of public data. While current results focus on linear probing of pre-trained backbones, future work will explore the challenges of full private fine-tuning. Additionally, while AdaMix assumes the availability of some labeled public data, its success suggests that "language-augmented" vision, using public text descriptions to anchor private representations, is a promising path forward.
Summary updated