arXiv:2609.31614cs.DSSep 2026Cited by 1 paper on PaperVantage
Manuscript Offprint
arXiv:2609.31614
Gap-free Differentially Private PCA for Gaussian Data
Alina Ene, Huy L. Nguyen
1 Setup and main result
Dimension reduction using principal component analysis is a classical problem in data analysis with many applications. In certain applications involving sensitive data, it is important to protect the privacy of the users. Differential privacy has emerged as the gold standard for privacy protection and it is widely adopted in both private enterprises and government entities. In this work, we study the problem of finding the approximately best fit one dimension subspace, arguably the most basic form of PCA, with differential privacy. This problem has been studied in many prior works including [5, 6, 9, 3] and many others. We consider the formulation where the data is generated i.i.d. from an unknown Gaussian distribution and the goal is to recover an approximately best fit one dimension subspace of the distribution while satisfying differential privacy for general data.
Formally, let
y1,…,yn∼iidN(0,Σ),Σ=S2⪰0,
and define
λ1:=∥Σ∥2=s12,s1:=∥S∥2.
Our goal is to develop an (ε,δ)-differentially private algorithm such that, for any approximation factor α∈(0,1) given as input, with constant probability, it outputs a unit vector x satisfying
x⊤Σx≥(1−α)λ1,
We use replacement adjacency. Throughout, 0<ε≤1. The notation O(⋅) hides logarithmic factors in
d,α1,ε1,δ1.
For the clipping radius and stepsize we assume that a public constant-factor approximation of λ1 is available:
λ1≤Λ≤2λ1.(1)
This assumption is for ease of exposition. If there is a known finite range for Λ, one can guess this value from powers of two and use the exponential mechanism to select the best solution from all the guesses. Alternatively without any known finite range, one can use O(log(1/δ)/ε) groups of O(d) samples each to populate a private histogram of the top eigenvalues of each group. Then we use the private histogram algorithm by [7] to select the power of two closest to the most number of top eigenvalues. We omit the details for these approaches to obtain Λ privately.
*Department of Computer Science, Boston University, aene@bu.edu.
†Khoury College of Computer and Information Science, Northeastern University, hu.nguyen@northeastern.edu.
Theorem 1. There are universal constants c, C > 0 such that the following holds under (1). For
0<α<c,0<ε≤1,0<δ<1/10,
there is an (ε,δ)-differentially private algorithm which, with constant probability, outputs a unit vector x satisfying
x⊤Σx≥(1−α)λ1,
using
n=O(α2d+αεd).
Acknowledgements. The proofs were developed with GPT 5.6 Sol and GPT 6 Astra on September 14, 2026 based on our prior ideas with adaptive thresholding for non-random data and martingale analysis for stochastic gradient descent and they are edited and rearranged by the authors. We verified and rewritten all the proofs. We thank Gavin Brown for letting us know about the problem at the Workshop on the Intersections of Differential Privacy and Sublinear Algorithms. We also acknowledge a concurrent work by [4], which also settled this problem posed by Gavin Brown and appeared on Arxiv a few days before us. Their work also uses privacy to justify adaptive clipping but appears to use a more global technique rather than our single step analysis, which is more reminiscent of the proof for stochastic gradient descent.
2 Preliminary
We first note a few useful facts regarding Gaussian concentration. The following lemma gives the concentration of the length of a k dimensional standard Gaussian vector.
Lemma 2. [8, Section 4.1] If Z∼χk2, then for u≥0,
P[Z−k≥2ku+2u]≤e−u,
and
P[k−Z≥2ku]≤e−u.
The next Lemma bounds the correlation between a fixed unit vector x∈Rd and a random Gaussian vector with covariance Σ in terms of λ1=∥Σ∥2 and the dimensions d.
Lemma 3. Let y∼N(0,Σ). For every fixed unit vector x∈Rd and every u≥1,
2: Let γ=1/256, u=ClogγnT, clipping radius R=Λ(d+2u)2u, time T=αClog(ed) where C is a sufficiently large constant, stricter privacy parameter δˉ=min{δ,10nTγ}.
3: Sample x0 uniformly from the unit sphere in Rd
4: for t=0…T−1
5: qt=n1∑i=1nclipR(yiyi⊤xt)
6: Sample gt∼N(0,τ2Id) where τ=nε4RTlog(1/δˉ)
7: Let zt=qt+gt and xt+1=∥zt∥zt
8: end for
9: Sample J∼Unif{0,…,T−1} and return xJ
Lemma 2 implies
P[∥y∥>s1(d+2u)]≤e−u.
Moreover,
y⊤x∼N(0,x⊤Σx),
and
x⊤Σx≤λ1=s12.
Thus
P[∥y⊤x∥>s12u]≤2e−u.
The result then follows by a union bound.
The next Lemma shows that the empirical covariance is close to the distributional covariance when n≫d. It follows from standard results for random matrices [2, Theorem II.13].
Lemma 4. Let y1,…,yn∼N(0,Σ) in d dimensions with n≥d. Let Σ=n1∑i=1nyiyi⊤. With probability 1−γ for arbitrary constant γ, ∥Σ−Σ∥2=O(λ1((d+log(1/γ))/n+(d+log(1/γ))/n)).
Proof. Let Σ=S2. Note that yi=Sgi where gi∼N(0,I). We have Σ−Σ=S(n1∑i=1gigi⊤−I)S so ∥Σ−Σ∥2≤λ1∥n1∑i=1gigi⊤−I∥2. By [2, Theorem II.13], with probability 1−exp(−nt2/2), we have ∥n1∑i=1gigi⊤−I∥2≤a(2+a) where a=d/n+t. The Lemma follows from choosing t=Θ(log(1/γ)/n).
3 The clipped private power iteration
For R>0, define
clipR(z):=zmin{1,∥z∥R}.
The algorithm is described in Algorithm 1 It is the standard power method with a few changes. First, in each iteration, the contribution of each data point is clipped to radius R=O(Λd) and the Gaussian mechanism is applied to the sum to protect privacy. Second, we return a random iterate as opposed to the last one. The privacy analysis is done in Section 4. Section 5 shows that because the algorithm is differentially private, the correlation between the iterates xt and the data rows yi is similar to the correlation between xt and a fresh sample y∼N(0,Σ), which is small with high probability. Thus, clipping does not happen with high probability. Conditioned on clipping not happening, the utility analysis is completed using any analysis of the noisy power method without clipping. There are many such analysis in the literature such as [1, 10]. For completeness and with a relatively simple argument, we include an analysis for noisy power method in Section 6.
4 Privacy
Conditioned on all preceding private outputs, xt is fixed. Every summand in qt=n1∑i=1nclipR(yiyi⊤xt) has Euclidean norm at most R. Therefore replacement of one sample changes qt by at most
Δ2(qt)≤n2R.
Proposition 5. Privacy of the clipped iteration Let
δˉ≤min{δ,10nTγ}.
It is sufficient to choose
τ=cnε2RTlog(1/δˉ).(3)
Then the algorithm is (ε,δˉ)-DP.
Proof. One iteration has sensitivity at most n2R. Thus, each iteration is (α,2Tlog(1/δ)αc2ε2)-Renyi DP for some constant c. By composition, the algorithm is (α,2log(1/δ)αc2ε2)-RDP. By the conversion to approximate DP, this algorithm is (2log(1/δ)αc2ε2+α−1log(1/δˉ),δˉ)-DP. With α=1+2log(1/δˉ)/ε, the algorithm is (c2ε+2log(1/δ)c2ε2+ε/2,δˉ)-DP. The lemma follows from the appropriate choice of c≤1/2.
Note that while our privacy parameter is stricter δˉ≤min{δ,10nTγ} than provided, this is generally not a big issue in practice because for meaningful privacy guarantee, we need δ≪1/n. □
5 DP decoupling and the no-clipping event
The preceding lemma applies to a fixed vector x. The iterate xt, however, depends on the same samples yi. The next lemma decouples this dependence.
Lemma 6. Let
D=(y1,…,yn)
be i.i.d. from P, and let M(D) be the output of an (ε0,δ0)-DP algorithm with input D. Suppose an event E(y,z) satisfies
zsupPy∼P[E(y,z)]≤p.
Then
P[E(yi,M(D))]≤eε0p+δ0
for every i.
Proof. Let yi′ be an independent copy of yi, and let D−i denote the remaining observations. For fixed y, write
Ey={z:E(y,z)}.
For any values of D−i,yi,yi′, differential privacy gives
The random variable M(D−i,yi′) is independent of yi. Thus, conditioning on its value z,
Pyi[E(yi,z)]≤p.
The result follows from combining the last two inequalities.
Given the decoupling lemma and the fact that a fresh sample is unlikely to correlate with the iterate, we next show that with high probability, the algorithm does not clip.
Proposition 7. Let
u=ClogγnT,
and set
R=Λ(d+2u)2u.(4)
Suppose the algorithm is (ε,δˉ)-DP, where ε≤1 and δˉ≤2nTγ. Then
P[∃i,t:∥yiyi⊤xt∥>R]≤γ.
Consequently
R=O(λ1d).
Proof. Every prefix iterate xt is post-processing of a prefix of the private transcript and is therefore itself (ε,δˉ)-DP.
For a fixed x, Lemma 3 and λ1≤Λ imply
Py[∥yy⊤x∥>R]≤3e−u.
Lemma 6 therefore gives
P[∥yiyi⊤xt∥>R]≤3eε−u+δˉ.
Union bounding over i∈[n] and t<T,
P[∃i,t:∥yiyi⊤xt∥>R]≤3nTeε−u+≤γ/2nTδˉ.
For a sufficiently large constant C in u=ClogγnT, the right-hand side is at most γ.
6 Noisy power method
A similar result is shown by [10] with 1/d success probability. For completeness, we include a proof with a constant success probability.
Let W⪰0 be fixed, let λ=∥W∥2>0, and fix a unit vector v with Wv=λv. Consider
xt+1=∥Wxt+gt∥Wxt+gt,gt∼iidN(0,τ2Id)(5)
The initialization is uniform on the sphere.
Theorem 8. There are universal constants c0=2−14, C>0 such that, for every integer T≥1, if
For an independent uniform J∈{0,…,T−1}, the same bound, after increasing C, holds for λ−xJ⊤WxJ with probability at least 1/32.
The intuition of the proof is as follows. Consider the potential function Φt=log(v⊤xt)2. With a random initialization, Φ0 is finite and because v,xt are unit vectors, we always have Φt≤0. We can relate the change in the potential in each step with the suboptimality Δt=λ−xt⊤Wxt of the solution xt:
Φt+1−Φt≥λΔt+meanzeronoise−quadraticnoise
Telescoping this inequality gives
Eλ1t∑Δt≤Φ0+t∑noise
The noise can be bounded using a martingale argument. This structure is reminiscent of the proof for the convergence of stochastic gradient descent.
First, we prove the key inequality mentioned above relating the change in the potential to the suboptimality plus noise terms.
Lemma 9. Let rt=λv⊤xtv⊤gt, mt=2rt−λ22⟨Wxt,gt⟩=2⟨λv⊤xtv−λ2Wxt,gt⟩, bt=2rt2+λ2∥gt∥2. If ∣rt∣≤1/2, then we claim that
Substituting the bounds into Equation 9 proves the Lemma.
Next we show that the initial potential Φ0 is bounded with constant probability.
Lemma 10. For the random initialization on the sphere, we have,
P[(v⊤x0)2≥2d1]≥1/12(10)
Proof. By the rotational symmetry of the initialization, it suffices to consider the case v=e1, the first standard basis vector. A d dimensional gaussian vector g is identically distributed as Rx0 where R2∼χd2 and R,x0 are independent. Note that Var(R2)=2d and E[R2]=d so E[R4]=2d+d2. Considering the first coordinate of g, we have
3=E[g14]=E[(Rx0,1)4]=E[R4]E[x0,14]
so E[x0,14]=2d+d23. We also have E[x0,12]=d1 by symmetry of the coordinates. By Paley-Zygmund's inequality,
P[x0,12≥2d1]≥413/(2d+d2)1/d2≥121
Next, we are ready to prove Theorem 8.
Proof of Theorem 8. Fix any initialization with Φ0≥log(1/2d). Set
p⋆=8d1,σ=inf{t∈{0,…,T}:(v⊤xt)2<p⋆},
with inf∅=∞. Let Ft=σ(x0,g0,…,gt−1). Define stopped variables Mt=mt and Bt=bt for t<σ, and Mt=Bt=0 otherwise.
On t<σ, conditional on Ft,
E[rt2∣Ft]=λ2(v⊤xt)2τ2≤λ28dτ2.
Hence, E[bt∣Ft]=E[2rt2+λ2∥gt∥2∣Ft]≤λ217dτ2. On t<σ, we also have
Let s=dτ2T/λ2. Let Sk=∑t<kMt. Note that E[Sk+12]=E[Sk2]+E[Mk2∣Fk]≥E[Sk2] and E[Sk2]=∑t<kE[E[Mt2∣Ft]]≤72s. By Doob's inequality applied to the submartingale Sk2 and Markov's inequality,
If s = 0, both sums vanish and no tail bound is needed. Thus the event
k≤Tmaxt<k∑Mt≤32sandt<T∑Bt≤128s(11)
has conditional probability at least 1−102472−12817≥3/4.
Recall the assumption 6 that s=λ2dτ2T≤c0. Take c0=2−14. On the event (11), 32s≤1/4 and 128s≤1/4. Every active step with t<σ also has 2rt2≤Bt≤1/4, so ∣rt∣<1/2. Consequently (8) applies up to and including the step that would cross the stopping threshold. If σ≤T, telescoping it for t<σ gives
Φσ≥Φ0−21,(v⊤xσ)2≥e−1/2(v⊤x0)2>8d1,
contradicting the definition of σ. Thus σ>T throughout the good event (11).
On the intersection of the events (10) and (11), no stopping occurs. Summing (8) and using ΦT≤0 yields
The initialization event has probability at least 1/12, and the noise event has conditional probability at least 3/4 for every such initialization. Their intersection therefore has probability at least 1/16. For any execution in this intersection, nonnegativity of the Δt's implies that a uniformly chosen iterate has error at most twice their average with probability at least 1/2. This gives the claimed 1/32 success probability.
Corollary 11. There is a universal sufficiently large constant C such that the following holds. For 0<α<1, set T=⌈Cαlog(2d)⌉. If the noise satisfies λ2dτ2T≤c0=2−14 then a uniform output iterate satisfies xJ⊤WxJ≥(1−α)λ with probability at least 1/32.
Proof. The noise condition makes dτ2/T≤c0λ/T and dτ2/λ≤c0λ/T. Apply Theorem 8, we obtain
T1t<T∑Δt≤λ⋅(α/C+41α/(Clog(2d))+α/(Clog(2d))
The corollary follows from setting sufficiently large C.
7 Proof of the main theorem
Proof. Privacy follows from Proposition 5 on arbitrary datasets. Next, we analyze the utility. Define
Σ=n1i=1∑nyiyi⊤,λ=∥Σ∥2.
Take T=⌈Clog(2d)/α⌉, and choose R and τ as in Propositions 7 and 5. Set γ=1/256. Thus
with probability at least 1−γ if n≥C(d+log(1/γ))/α2. On this event, Λ≤4λ, so
λ2dτ2T=Θ(n2ε2(d+u)udT2log(1/δˉ)).
Consequently a sample bound of n=Ω(Tdu(d+u)log(1/δˉ)/ε)=Ω(log(2d)du(d+u)log(1/δˉ)/(αε)), with sufficiently large constants, ensures the noise condition λ2dτ2T≤c0=2−14 in Theorem 8. Its three error terms are
The same sample bound makes the latter two terms O(αλ1).
The total error is
λ1−x⊤Σx≤(λ−x⊤Σx)+2Σ−Σ2
where the first term is bounded by Theorem 8 and the second term is bounded by Lemma 4.
Thus, for n=Θ(αεlog(2d)du(d+u)log(1/δˉ)+α2d+1) samples, Theorem 8 bounds the empirical error of the ideal non-clipping algorithm's output by O(αλ1) with probability at least 1/32. Clipping happens with probability at most γ. When clipping does not happen, the actual algorithm and the ideal coincide.
Lemma 4 shows that the empirical covariance is close to the distributional one with probability 1−γ. Thus, the probability of accurate empirical covariance, non-clipping and the algorithm succeeds is at least 321−γ−γ≥1/64.
References
[1] Zeyuan Allen-Zhu and Yuanzhi Li. First efficient convergence for streaming k-PCA: A global, gap-free, and near-optimal rate. In 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS), pages 487–492. IEEE, 2017.
[2] Kenneth R. Davidson and Stanisław J. Szarek. Local operator theory, random matrices and banach spaces. In Handbook of the Geometry of Banach Spaces, volume 1, pages 317–366. Elsevier, 2001.
[3] Cynthia Dwork, Kunal Talwar, Abhradeep Thakurta, and Li Zhang. Analyze Gauss: optimal bounds for privacy-preserving principal component analysis. In STOC, pages 11–20. ACM, 2014.
[4] Anming Gu, Syamantak Kumar, Kevin Tian, and Chutong Yang. Gap-free streaming PCA beyond rank-one updates: Near-optimal rates and applications to differential privacy, 2026. arXiv:2609.26508.
[5] Moritz Hardt and Eric Price. The noisy power method: A meta algorithm with applications. In NIPS, pages 2861–2869, 2014.
[6] Moritz Hardt and Aaron Roth. Beating randomized response on incoherent matrices. In STOC, pages 1255–1268. ACM, 2012.
[7] Vishesh Karwa and Salil Vadhan. Finite sample differentially private confidence intervals. In 9th Innovations in Theoretical Computer Science Conference (ITCS 2018), volume 94 of Leibniz International Proceedings in Informatics (LIPIcs), pages 44:1–44:9. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018.
[8] Béatrice Laurent and Pascal Massart. Adaptive estimation of a quadratic functional by model selection. The Annals of Statistics, 28(5):1302–1338, 2000.
[9] Xiyang Liu, Weihao Kong, Prateek Jain, and Sewoong Oh. DP-PCA: statistically optimal and differentially private PCA. In NeurIPS, 2022.
[10] Ohad Shamir. Convergence of stochastic gradient descent for PCA. In Proceedings of the 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pages 257–265. PMLR, 2016.