Abstract
Training deep learning models under Differential Privacy (DP) typically incurs a significant accuracy penalty. This paper demonstrates that privately fine-tuning only the final linear layer of a large-scale pre-trained model can achieve near-state-of-the-art (SOTA) performance. We introduce DP-FC (Differentially Private SGD with Feature Covariance), a novel second-order optimization method that utilizes a sanitized feature covariance matrix as a preconditioner. DP-FC reaches 88% top-1 accuracy on ImageNet-1K under strong privacy guarantees ($\epsilon=8$) and establishes new SOTA benchmarks for CIFAR-10 and CIFAR-100.
Introduction
The challenge of Differential Privacy (DP) in deep learning lies in the noise added to gradients during training (e.g., via DP-SGD), which often degrades model utility. Recent research has identified a promising alternative: leveraging massive models pre-trained on non-sensitive datasets and privately fine-tuning only the final linear layer. While simpler, this "last-layer" approach still faces a significant privacy-utility trade-off when using standard first-order optimizers. This study investigates whether second-order optimization schemes—which incorporate information about the loss function's curvature—can further narrow the gap between private and non-private performance.
Methods: Privatizing Second-Order Optimization
The authors evaluate three distinct optimization strategies for private last-layer learning:
- DP-LS (Least Squares): This method employs a quadratic loss function. A key advantage is that the Hessian for linear regression depends solely on the features, not the labels. This allows the second-order information to be shared across all classes, minimizing the noise required for privacy. It is particularly effective at strict privacy levels (low $\epsilon$).
- DP-Newton: A privatized version of Newton’s method for logistic regression. Although powerful in non-private settings, it requires re-sanitizing the Hessian for every class and iteration, leading to significant noise accumulation.
- DP-FC (Feature Covariance): The core contribution of this work. DP-FC utilizes logistic regression but employs the sanitized feature covariance matrix as a preconditioner for SGD. Because feature covariance is independent of model weights and labels, it can be computed and sanitized once. This one-time "privacy payment" provides a stable preconditioner that drastically improves the signal-to-noise ratio throughout training.
Experimental Results
The methods were evaluated on ImageNet-1K, CIFAR-10, and CIFAR-100, using models pre-trained on JFT-3B and ImageNet-21k.
Performance on ImageNet-1K
DP-FC achieved a remarkable 88% top-1 accuracy at $\epsilon=8$. Even under the very strict privacy constraint of $\epsilon=0.1$, the method maintained 84.3% accuracy. Compared to a non-private baseline of approximately 91% for the same architecture, the "privacy tax" is reduced to a mere 3%.
Benchmarking CIFAR-10 and CIFAR-100
The proposed methods set new SOTA records across nearly all privacy levels for the CIFAR datasets. For instance, on CIFAR-10, the authors achieved 98.8% accuracy at $\epsilon=1$.
Key Insights
- Privacy Reversal of Loss Functions: While logistic regression typically outperforms linear regression in standard ML, the authors observed a reversal under strict privacy ($\epsilon < 1$). In these regimes, DP-LS (linear regression) is superior because its mathematical structure allows for more efficient noise sharing.
- The "Free Lunch" of Second-Order Info: Computing second-order information like Hessians is often too expensive for full deep networks but is computationally feasible when restricted to the final linear layer.
- Global vs. Local Statistics: The success of DP-FC stems from treating feature covariance as a "global" dataset statistic. By paying the privacy cost once, the optimizer gains long-term stability without iterative noise accumulation.
Discussion and Limitations
While DP-FC represents a significant leap forward, it is currently limited to last-layer fine-tuning. Extending these benefits to full-model fine-tuning remains a major open challenge. Additionally, the most impressive results were obtained using the proprietary JFT-3B dataset, highlighting the advantage of large-scale pre-training. Future work should explore the robustness of these methods under significant distribution shifts between the pre-training and private datasets.
Summary updated