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

Leveraging Public Representations for Private Transfer Learning

Pratiksha Thaker, Amrith Setlur, Zhiwei Steven Wu, Virginia Smith · OpenReview

Abstract

Public pretraining is a promising approach to improve differentially private model training. However, recent work has noted that many positive research results studying this paradigm only consider in-distribution tasks, and may not apply to settings where there is distribution shift between the pretraining and finetuning data—a scenario that is likely when finetuning private tasks due to the sensitive nature of the data. In this work, we show empirically across three tasks that even in settings with large distribution shift, where both zero-shot performance from public data and training from scratch with private data give unusably weak results, public features can in fact improve private training accuracy by up to 67% over private training from scratch. We provide a theoretical explanation for this phenomenon, showing that if the public and private data share a low-dimensional representation, public representations can improve the sample complexity of private training even if it is impossible to learn the private task from the public data alone. Altogether, our results provide evidence that public data can indeed make private training practical in realistic settings of extreme distribution shift.

Introduction: The DP Utility Gap

Differentially private (DP) machine learning is essential for protecting sensitive user data, yet it often suffers from a significant "utility gap," where private models underperform compared to non-private counterparts. A common solution is private transfer learning: pretraining on a large public dataset and finetuning on sensitive private data.

However, critics have argued that this success is often predicated on the public and private data being nearly identical (e.g., ImageNet and CIFAR-10). In real-world applications, private data—such as medical imaging or specialized satellite data—is frequently "out-of-distribution" (OOD) relative to the general internet imagery used for public pretraining. This paper investigates whether public pretraining remains effective under these extreme distribution shifts.

Empirical Evaluation of Distribution Shift

The researchers evaluated a pretrained CLIP (ViT-B/32) model on three datasets representing significant distribution shifts: PatchCamelyon (PCam) for medical tumor detection, and fMoW and RESISC45 for satellite imagery classification. They compared three primary training strategies:

  1. Training from scratch: DP training solely on the private dataset.
  2. Full Finetuning: Privately updating all model weights.
  3. Linear Probing: Freezing the public features and privately training only a linear classification head.
Comparison of accuracy across three datasets (PCam, fMoW, RESISC45) for different DP training strategies.

As shown in the results above, linear probing consistently outperformed both full finetuning and training from scratch. On the RESISC45 dataset, linear probing improved accuracy by 67% over training from scratch. This suggests that even when a model's zero-shot accuracy is low, the underlying features it has learned (edges, textures, shapes) remain highly informative for downstream private tasks.

Theoretical Framework: Shared Subspaces

To explain why OOD public data helps, the authors developed a mathematical framework for linear transfer learning. The core hypothesis is that public and private data often share a low-rank structure or a common "manifold."

In the DP setting, noise is added to every parameter being updated. By using public data to identify a shared, low-dimensional subspace (Phase 1) and then performing private regression specifically within that subspace (Phase 2), the model avoids the noise associated with the high-dimensional raw feature space. The error in this approach scales with the dimension of the subspace ($k$) rather than the dimension of the raw features ($d$).

Eigenvalue distribution of the feature covariance matrix for PCam, demonstrating the low-rank structure of the learned representations.

This low-rank structure is empirically visible in the eigenvalue decay of the feature covariance matrices, as seen in the figure above. This concentration of information allows the model to ignore the "noise" of high-dimensional space, effectively rescuing models that would otherwise be unusable when trained from scratch.

Key Insights and Conclusion

The study provides several critical takeaways for private machine learning:

  • Linear Probing is Often Optimal for DP: Because DP noise scales with the number of parameters, updating fewer parameters (as in linear probing) often yields a better signal-to-noise ratio than full finetuning.
  • Features are Robust to Concept Shift: Even if the labels or high-level concepts differ between public and private data, the low-level representations are transferable.
  • Theoretical Optimality: The authors provided matching lower bounds, proving their two-stage subspace algorithm is essentially optimal for this class of problems.

While the current theory assumes linear relationships, the empirical success across medical and satellite domains demonstrates that public data can indeed make private training practical in realistic, high-stakes settings of extreme distribution shift.

Summary updated

BibTeX
@inproceedings{thaker2024leveraging,
  author = {Pratiksha Thaker and Amrith Setlur and Zhiwei Steven Wu and Virginia Smith},
  title = {{Leveraging Public Representations for Private Transfer Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=E1nBLrEaJo},
}
Figure