Abstract
There has been significant recent progress in training differentially private (DP) models which achieve accuracy that approaches the best non-private models. These DP models are typically pretrained on large public datasets and then fine-tuned on private downstream datasets that are relatively large and similar in distribution to the pretraining data. However, in many applications including personalization and federated learning, it is crucial to perform well (i) in the few-shot setting, as obtaining large amounts of labeled data may be problematic; and (ii) on datasets from a wide variety of domains for use in various specialist settings. To understand under which conditions few-shot DP can be effective, we perform an exhaustive set of experiments that reveals how the accuracy and vulnerability to attack of few-shot DP image classification models are affected as the number of shots per class, privacy level, model architecture, downstream dataset, and subset of learnable parameters in the model vary. We show that to achieve DP accuracy on par with non-private models, the shots per class must be increased as the privacy level increases. We also show that learning parameter-efficient FiLM adapters under DP is competitive with learning just the final classifier layer or learning all of the network parameters. Finally, we evaluate DP federated learning systems and establish state-of-the-art performance on the challenging FLAIR benchmark.
Introduction: The Privacy Tax in Low-Data Regimes
Differential Privacy (DP) is the gold standard for protecting individual data points in a training set, but it comes with a "privacy tax": the noise added during training typically degrades model accuracy. While recent breakthroughs have shown that DP models can approach non-private performance when fine-tuned on large datasets, many real-world applications—such as personalizing a model on a user's phone or analyzing rare medical images—exist in the few-shot setting, where only a handful of labeled examples per class are available.
This paper provides the first comprehensive study on how to make few-shot image classification work under the strict constraints of DP. The researchers demonstrate that while DP usually requires massive datasets, high accuracy can be achieved in low-data regimes by using parameter-efficient adapters and quantifying the additional data needed to offset privacy noise.
Methodology and Benchmarking
The authors employed a transfer learning pipeline, pretraining large backbones (ResNet-50 and Vision Transformers) on public data (ImageNet-21K) and fine-tuning them on private downstream tasks using DP-SGD. They explored three model parameterizations:
- Head: Updating only the final linear classifier layer.
- All: Updating every parameter in the network.
- FiLM (Feature-wise Linear Modulation): Adding small "adapters" that scale and shift internal activations.
To categorize task difficulty, they introduced a Transfer Difficulty (TD) metric based on the performance gap between tuning just the head versus the whole model in a non-private setting. Benchmarks included standard vision tasks (CIFAR-10, CIFAR-100, SVHN), the diverse VTAB-1k suite, and the large-scale FLAIR federated learning benchmark.
Quantifying the Privacy Tax: The Data Multiplier
A key contribution of this work is the quantification of the "privacy tax" in terms of a Data Multiplier. To match the accuracy of a non-private model, a specific multiplier of extra data is required. For a high privacy regime ($\epsilon=1$), roughly 20–35x more shots per class are needed. At lower privacy levels ($\epsilon=8$), this requirement drops significantly to 4–8x more shots.
DP-SGD as a Regularizer in Few-Shot Learning
In few-shot learning, non-private models often "interpolate," achieving 100% training accuracy but failing to generalize. Interestingly, DP-SGD acts as a powerful regularizer in these settings. It prevents the model from overfitting to the small training set, forcing the training and test accuracies to remain close together. This regularization effect is crucial for maintaining performance when data is scarce.
Parameter-Efficient Adaptation and Architecture
The study identifies FiLM adapters as a "Goldilocks" solution. While tuning only the "Head" is private but inflexible, and tuning "All" parameters introduces excessive DP noise, FiLM provides sufficient flexibility to adapt to new domains while keeping the learnable parameter count low. Furthermore, Vision Transformers (ViT-B) generally outperformed ResNets in DP settings, particularly as the number of shots increased.
Security and Scalability in Federated Learning
Beyond accuracy, DP provides critical security benefits. Non-private few-shot models were found to be highly vulnerable to Membership Inference Attacks (MIA), with attackers identifying training images with over 80% confidence. DP almost entirely eliminates this risk.
In federated learning contexts, the authors established a new state-of-the-art on the FLAIR benchmark, increasing Macro-Average Precision from 44.3% to 51.9%. The use of FiLM also drastically improved communication efficiency, reducing the parameters sent per round from 11.9 million to just 17,000.
Conclusion and Future Directions
While this study establishes a foundation for DP few-shot learning, limitations remain. The research focused on FiLM adapters and transfer learning, leaving other adapters (like LoRA) and meta-learning approaches for future exploration. Additionally, the privacy cost of hyperparameter tuning remains an open challenge. Future work may also investigate zero-shot capabilities to further reduce the need for private data.
Summary updated