Abstract
Differentially private (DP) machine learning pipelines typically involve a two-phase process: non-private pre-training on a public dataset, followed by fine-tuning on private data using DP optimization techniques. In the DP setting, it has been observed that full fine-tuning may not always yield the best test accuracy, even for in-distribution data. This paper (1) analyzes the training dynamics of DP linear probing (LP) and full fine-tuning (FT), and (2) explores the phenomenon of sequential fine-tuning, starting with linear probing and transitioning to full fine-tuning (LP-FT), and its impact on test loss. We provide theoretical insights into the convergence of DP fine-tuning within an overparameterized neural network and establish a utility curve that determines the allocation of privacy budget between linear probing and full fine-tuning. The theoretical results are supported by empirical evaluations on various benchmarks and models. The findings reveal the complex nature of DP fine-tuning methods. These results contribute to a deeper understanding of DP machine learning and highlight the importance of considering the allocation of privacy budget in the fine-tuning process.
Introduction
Fine-tuning large, pre-trained models on private data is the standard for building high-performing, privacy-preserving AI. However, doing this under the constraints of Differential Privacy (DP)—usually via DP-SGD—introduces significant noise. Researchers have noticed an empirical "dip" in performance during the early stages of private fine-tuning. This paper seeks to explain the mechanism behind this phenomenon, identifying a process called feature distortion. When full fine-tuning (FFT) begins with a randomly initialized linear head, the gradients from that "clueless" head warp the high-quality features in the pre-trained backbone. In the private regime, where gradients are clipped and noisy, this distortion is harder to recover from, leading to suboptimal models.
Methodology
The authors bridge the gap between discrete optimization and theoretical analysis using several sophisticated tools:
- Langevin Diffusion: The discrete DP-SGD process is modeled as a continuous-time Stochastic Differential Equation (SDE), allowing for the use of calculus to track parameter evolution.
- Zeroth-order Approximation: To make the complex SDEs solvable, a novel approximation linearizes the Langevin diffusion around the noise term. This converts stochastic equations into manageable Ordinary Differential Equations (ODEs) while preserving the essential "noisy" behavior of DP-SGD.
- Non-linear Network Analysis: The authors derive upper and lower bounds on training loss for 2-layer ReLU and linear networks, providing a convergence analysis of DP-SGD on non-linear architectures.
- DP-LP-FFT Strategy: A two-phase approach is analyzed: first, freezing the backbone to train only the head (Linear Probing); then, unfreezing the entire network for full fine-tuning.
Experimental Setup
The theory was validated across several standard computer vision benchmarks. Models were pre-trained on ImageNet-1K using self-supervised methods like BYOL and MoCo v2/v3. Private fine-tuning was conducted on CIFAR-10, STL-10, and MNIST. Additionally, synthetic data generated by StyleGAN was used to explore "distant" pre-training distributions.
Key Insights and Results
The core finding is that a randomly initialized head is misaligned with the backbone. During FFT, the backbone adapts to the head's random noise, distorting the features. Linear Probing (LP) acts as an alignment phase, training the head to match existing features without damaging the backbone.
Mitigating Feature Distortion
Experiments on ResNet-50 demonstrate that DP-FFT causes feature quality (measured by kNN accuracy) to drop significantly in the first few epochs. The sequential DP-LP-FFT strategy completely avoids this initial dip.
Privacy Budget and Accuracy
The optimal fine-tuning strategy depends heavily on the privacy budget ($\epsilon$). In high-noise settings (small $\epsilon$), Linear Probing is often safer as updates to the backbone are too noisy. In moderate noise settings, the hybrid DP-LP-FFT approach yields superior results. For instance, on ResNet-18 with $\epsilon = 1.29$, LP-FFT achieved ~68.6% accuracy compared to FFT's ~59.8%.
The research suggests that allocating roughly 20% of the total privacy budget to the initial LP phase is often optimal for maximizing final test accuracy.
Conclusion and Future Work
This work provides the first theoretical convergence rates for DP-SGD on non-linear architectures, highlighting how noise and initialization interact. While validated on deep models like ResNet and ViT, formal proofs are currently centered on 2-layer networks. Future research may generalize the "zeroth-order ODE" approach to N-layer networks and explore similar dynamics in Large Language Models (LLMs) during private instruction tuning. Additionally, a deeper theoretical characterization of how DP interacts with Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA remains a promising direction.
Summary updated