TL;DR
Zeroth-order (ZO) optimization is a memory-efficient way to fine-tune large language models, leading researchers to wonder if its inherent sampling randomness provides "free" differential privacy. This paper definitively answers no: without adding explicit additive noise (like Gaussian noise), zeroth-order gradient descent fails to guarantee privacy, even under random initialization and when hiding all intermediate steps.
What Problem Does This Paper Address?
Fine-tuning Large Language Models (LLMs) presents two major bottlenecks: massive memory consumption from gradient-based optimizers and strict data privacy requirements. Zeroth-order (ZO) optimization algorithms offer a clever workaround for the memory issue by estimating gradients using only forward passes (function evaluations).
Because these ZO gradient estimators rely on randomly sampled perturbation directions, recent machine learning literature hypothesized that this inherent randomness might naturally provide Differential Privacy (DP). If true, practitioners wouldn't need to inject explicit additive noise, which typically degrades model utility. This paper addresses this crucial open question: Is explicit additive noise strictly necessary to ensure privacy in zeroth-order stochastic gradient descent?
Methods
The authors tackle this question theoretically by defining two novel mathematical classes of randomized zeroth-order oracles:
- Zero-preserving noisy oracles: Oracles that return an exact zero vector when the true gradient is zero, but yield a continuous probability distribution otherwise. The authors prove that popular estimators like SPSA (Simultaneous Perturbation Stochastic Approximation), Finite Difference (FD), and Single Point (SP) fall into this class.
- Anti-concentrated (AC) oracles: A stricter class of oracles where updates systematically push optimization iterates away from their starting point with high probability.
Using these frameworks, the authors construct worst-case convex objective functions and neighboring datasets to rigorously analyze the privacy leakage of Projected Zeroth-Order Gradient Descent (ZO-GD) under both fixed and random initializations.
Datasets
Not discussed in the paper. This is a purely theoretical paper focused on mathematical proofs and lower bounds; no empirical datasets or benchmarks were used.
Key Insights and Ideas
- The Illusion of Random Privacy: Just because an algorithm's search direction is random doesn't mean it's private. If a single data point change shifts the algorithm from a deterministic state (e.g., exactly zero gradient) to a continuous random state, an adversary can instantly distinguish between the two datasets.
- Hiding Iterates Isn't a Safe Haven: A common defense is to treat optimization as a black box and only release the final model weights. The paper proves that even if you hide all intermediate steps, privacy still completely breaks down.
- Superlinear Privacy Decay: When using random initialization, the privacy loss ($\epsilon$) doesn't stabilize over time. Instead, it grows superlinearly with the number of iterations ($T^{4/3}$). This means longer training runs rapidly and predictably destroy any residual privacy.
Key Results
- Fixed Initialization Failure (Theorems 3.3 & 4.1): The authors prove that for any zero-preserving noisy oracle, there exist strongly convex functions where ZO-GD is completely non-private ($\epsilon = \infty$), even if only the final iterate is revealed.
- Random Initialization Failure (Theorem 4.5): Even with a standard normal random initialization, the privacy loss grows at a superlinear rate of $T^{4/3}$ for convex functions.
- Classification of Standard Estimators: The paper explicitly proves that standard multi-point estimators like SPSA and Finite Difference are $3$-anti-concentrated, confirming they are fundamentally vulnerable to this privacy degradation.
Limitations and Future Work
- Function Classes: The lower-bound analysis for random initialization is currently limited to linear/convex loss functions. Extending this to prove similar superlinear decay for strongly convex or non-convex functions remains an open problem.
- Algorithmic Scope: The analysis is restricted to the framework of Projected SGD/GD. Future work is needed to see if these findings generalize to other variants like Zeroth-Order Conditional Gradient Descent or Mirror Descent.
- Privacy Amplification: While the inherent randomness of ZO methods cannot guarantee privacy on its own, the authors suggest exploring whether it can be used to amplify the privacy guarantees of methods that do use explicit additive noise.
Summary updated