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

On the Efficacy of Differentially Private Few-shot Image Classification

Marlon Tobaben, Aliaksandra Shysheya, John Bronskill, Andrew Paverd, Shruti Tople, Santiago Zanella-Beguelin, Richard E Turner, Antti Honkela

TL;DR

This paper presents the first comprehensive study on differentially private (DP) few-shot image classification, exploring how privacy constraints interact with low-data regimes and out-of-domain transfer. The authors demonstrate that while DP requires an exponentially higher number of samples to match non-private performance as privacy tightens, parameter-efficient FiLM adapters offer an excellent balance of accuracy, privacy, and communication efficiency in both centralized and federated settings.

What Problem Does This Paper Address?

Differential Privacy (DP) has become the gold standard for protecting sensitive training data, but it typically requires large datasets to achieve high accuracy. In many real-world applications—such as medical imaging or personalized mobile applications—data is scarce (few-shot) and highly sensitive. Furthermore, downstream private data often looks very different from the public data used to pretrain large models (out-of-domain transfer).

While DP transfer learning has seen massive success recently, its efficacy in the few-shot, out-of-domain regime remained poorly understood. This paper systematically investigates the conditions under which DP few-shot image classification can be effective, analyzing the interplay between the number of shots, privacy levels, model architectures, dataset difficulty, and fine-tuning parameterizations.

Methods

The authors evaluate transfer learning by pretraining large backbones—specifically BiT-M-R50x1 (ResNet-50) and ViT-Base-16 (Vision Transformer)—on public data (ImageNet-21K) and fine-tuning them on private downstream data using DP-SGD (centralized) or DP-FedAvg/FedADAM (federated).

They compare three distinct fine-tuning strategies:

  1. Head: Tuning only the final linear classifier layer while keeping the backbone frozen.
  2. All: Tuning all network parameters.
  3. FiLM: Tuning parameter-efficient Feature Linear Modulation adapters alongside the head (modifying <0.05% of the backbone parameters).

To standardize their analysis, they introduce a metric called Transfer Difficulty (TD), which quantifies the domain shift based on how much better an all-parameter non-private model performs compared to a head-only model. Finally, they empirically evaluate privacy bounds using the state-of-the-art Likelihood Ratio Attack (LiRA) for membership inference.

Datasets

The paper evaluates these methods across a diverse set of benchmarks:

  • Centralized Few-Shot: CIFAR-10 (low TD), CIFAR-100 (medium TD), and SVHN (high TD).
  • VTAB-1k: A challenging benchmark consisting of 19 diverse datasets grouped into natural, specialized, and structured image tasks, each restricted to 1,000 training examples.
  • Federated Learning: FLAIR (Federated Learning Annotated Image Repository, containing ~400k images across ~50k users), Federated EMNIST, and a federated split of CIFAR-100.

Key Insights and Ideas

  • The DP Data Tax Scales Exponentially: To match non-private baseline accuracy, the number of shots per class must scale up dramatically as privacy demands increase ($\epsilon$ decreases).
  • Fundamentally Different Learning Dynamics: Non-private few-shot models easily overfit and operate in an "interpolating regime" (achieving 100% training accuracy). Conversely, DP-SGD acts as a massive regularizer; training and testing accuracies remain closely aligned, but overall performance drops significantly when data is scarce.
Figure 4: Snapshots at ϵ ∈{1, 8, ∞}, δ = 1/|D| of the train/test accuracies as a function of S for CIFAR-100 and SVHN. The trends in accuracy gap are shown with red arrows. At low S, the gap grows as ϵ increases, at high S gap decreases to nearly zero, and the gap grows as S decreases. Analysis: In the non-private setting (ϵ = ∞), learning operates in the interpolation mode (i.e. train accuracy is 100%, yet accuracy continues to increase as S increases). As the privacy level increases, learning operates learn under heavy regularization and the gap between train and test accuracy reduces.
  • Adapters Win in High-Shift Settings: When a downstream dataset is highly out-of-domain (high TD), freezing the backbone (Head) fails because the model cannot adapt. However, tuning All parameters under DP introduces too much noise due to the high parameter count. Parameter-efficient adapters like FiLM strike the perfect middle ground.
  • Few-Shot Models are Highly Vulnerable to Privacy Leaks: Without DP, few-shot models are incredibly susceptible to Membership Inference Attacks (MIAs) because small training sets make individual examples stand out drastically.

Key Results

  • Data Multipliers Quantified: To match non-private accuracy, DP requires roughly 4–8× more shots per class at a moderate privacy level ($\epsilon=8$), and a staggering 20–35× more shots under strict privacy ($\epsilon=1$).
Figure 2: Multiplier of shots required to reach non-private accuracy. Left: Average over S ∈{5, 10}, datasets, and network architectures. Right: Average over S ∈{5, 10}, network architectures, and learnable parameters. The data is obtained using linear interpolation. See Appendix A.2.2. δ = 1/|D|. Analysis: S must be increased by approximately 20 −35× to meet non-private accuracy at ϵ = 1 and 4 −8× at ϵ = 8
  • New SOTA on FLAIR: In the federated learning setup on the FLAIR benchmark, using FiLM adapters on a ResNet-18 backbone achieved a new state-of-the-art Macro-Average Precision (Macro-AP) of 51.9% (up from the previous 44.3% baseline) while drastically reducing communication costs from 11.19M to just 17K parameters per round.
  • MIA Mitigation: For a non-private model with 10 shots per class, an attacker could successfully identify training samples with an 82.2% true positive rate (at a 0.1% false positive rate). Applying DP ($\epsilon=2$) successfully crushed this attack vulnerability down to near-random levels.

Limitations and Future Work

The authors acknowledge several constraints in their study:

  1. Scope of Transfer Learning: The work focuses exclusively on standard transfer learning from large pretrained models and does not explore meta-learning approaches or training from scratch.
  2. Adapter Variety: The empirical evaluation of parameter-efficient methods was limited to FiLM adapters; other popular techniques like LoRA, Visual Prompt Tuning (VPT), or AdapterModules were not tested.
  3. TD Metric Dependencies: The proposed Transfer Difficulty metric is not a pure dataset property, as it remains dependent on the choice of network architecture and training hyperparameters.

Summary updated

BibTeX
@article{tobaben2023efficacy,
  author = {Marlon Tobaben and Aliaksandra Shysheya and John Bronskill and Andrew Paverd and Shruti Tople and Santiago Zanella-Beguelin and Richard E Turner and Antti Honkela},
  title = {{On the Efficacy of Differentially Private Few-shot Image Classification}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=hFsr59Imzm},
}
Figure