cs.DSOct 18, 2026

No Escape from the Quadratic Barrier: Adaptive Attacks on Linear ℓ2\ell_2 Sketches

Authors: Edith Cohen, Uri Stemmer

Organizations: Google Research · Tel Aviv University

Abstract

Linear sketches estimate properties of high-dimensional inputs from a fixed low-dimensional projection. At constant accuracy, randomized Euclidean-norm sketches, notably the Johnson-Lindenstrauss transform, support exponentially many nonadaptive queries in sketch dimension kk. For adaptive black-box queries, known privacy-based defenses guarantee Ω~(k2)\widetildeΩ(k^2) and it remained open whether stronger guarantees were possible. Prior attacks used more queries, restricted the responder, or provided weaker failure guarantees. We show that the quadratic guarantee is optimal up to logarithmic factors, even with a computationally unbounded responder that knows the matrix, attack algorithm, history, and query distributions and may change its randomized rule after every query. For every fixed hidden A∈Rk×nA\in\mathbb{R}^{k\times n} with n>40kn>40k and target accuracy α∈(0,1]α\in (0,1], our black-box attack uses O(k+α2k2log⁡(2+α2k))O(k+α^2k^2\log(2+α^2k)) queries in O~(1+α2k)\widetilde{O}(1+α^2k) adaptive rounds to force, with constant probability, a round in which a constant fraction of answers have Ω(α)Ω(α) relative error. Our results clarify the limits of defending a fixed compressive linear representation by adapting the prediction rule.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

Sep 16, 2026

Accurate Trace Estimation with Fewer Random Bits via Recursive TensorSketch

We consider the problem of estimating the trace of an implicit matrix A∈Rdp×dp\mathbf{A} \in \mathbb{R}^{d^p\times d^p} that can only be accessed through matrix-vector products queries. The Hutchinson trace estimator% \cite{Girard1987algorithme, article-hutchinson} is a classical sketching method for this problem. Their estimator, Hm(A)=1m∑i=1mz(i)TAz(i),where  z(i)∈RdpH_{m}(\mathbf{A}) = \frac{1}{m} \sum_{i=1}^{m} {\mathbf{z}^{(i)}}^T \mathbf{A} \mathbf{z}^{(i)}, \quad \text{where } \ {\mathbf{z}^{(i)}}\in \mathbb{R}^{d^p}, and zj(i)∈N(0,1),j∈[dp]z^{(i)}_j \in {N}(0, 1), j\in [d^p], satisfies the following guarantees: (i) E[Hm(A)]=tr⁡(A)\mathbb{E}[H_{m}(\mathbf{A})]=\operatorname{tr}(\mathbf{A}), and (ii) Var[Hm(A)]=2m∣∣A∣∣F2\mathrm{Var}[H_{m}(\mathbf{A})]=\frac{2}{m}||\mathbf{A}||_F^2. Generating one query vector z(i)\mathbf{z}^{(i)} requires O(dp)O(d^p) random bits; thus, mm queries require O(mdp)O(md^p) random bits, which can be prohibitive in large-scale applications. Recent work by Meyer et al.\cite{meyer2025hutchinsonsestimatorbadkroneckertraceestimation} proposes a variant of the Hutchinson trace estimator in which each query vector in Rdp\mathbb{R}^{d^p} is constructed as the Kronecker product of pp random vectors in Rd\mathbb{R}^d, requiring O(mpd)O(mpd) random bits for mm query vectors. The estimator of~\cite{meyer2025hutchinsonsestimatorbadkroneckertraceestimation} is unbiased; however, its variance grows exponentially with pp. In this work, we address this limitation by proposing a sketching-based estimator that requires O ⁣(p(d+m)log⁡m)O\!\big(p (d + m)\log m\big) random bits, yields an unbiased estimate of the trace, and simultaneously achieves a variance bound that grows polynomially with pp.
May 28, 2026

The Fast Mixing Mechanism for Differential Privacy

Randomized sketching is a central tool for compressing large-scale optimization problems while preserving accuracy. In particular, sketches that are based on structured matrices, such as the Hadamard matrix, can be applied efficiently and often yield solutions that approximate those of the original problem at much lower computational cost. In differential privacy (DP), Gaussian sketching has been used to solve DP linear regression, beginning with \citet{sheffet2017differentially, sheffet2019old} and later refined by \citet{lev2025gaussianmix, lev2026near}. However, although these methods achieve strong utility guarantees, they usually do not improve runtime over classical DP approaches. In this work, we introduce a new DP sketching mechanism based on fast transforms, which, in certain cases, matches the runtime of classical fast sketching methods. We prove state-of-the-art privacy guarantees for this mechanism and show that, in favorable regimes, they match those of the Gaussian sketch up to a constant factor. As an application, we combine this mechanism with recent sketch-based methods for DP linear regression to obtain a new algorithm with strong utility and improved runtime. We establish privacy and accuracy guarantees for this algorithm, yielding, to the best of our knowledge, the first fast method for DP ordinary least squares.
Aug 27, 2026

Hadamard Flattening and Gaussian Pooling Sketch for Least Squares with Coordinate-wise Guarantee

Randomized sketch-and-solve algorithms accelerate overconstrained ℓ2\ell_2 regression by replacing the input with a smaller problem. Standard subspace embeddings guarantee that the cost of the regression is nearly preserved, but coordinate-wise accuracy of the solution is more delicate: we want the solution vector itself to be close to the optimal solution in ℓ∞\ell_\infty norm. In particular, we want to find a vector x′∈Rdx'\in \mathbb{R}^d such that ∥x′−x∗∥∞≤εd⋅∥Ax⋆−b∥2⋅∥A†∥op\|x'-x^*\|_\infty\leq \fracε{\sqrt d}\cdot \|Ax^\star-b\|_2\cdot \|A^\dagger\|_{\rm op}. Price, Song and Woodruff initiated the study of this problem and showed that the subsampled randomized Hadamard transform (SRHT) with O(ε−2d1+Θ(log⁡log⁡n/log⁡d))O(ε^{-2} d^{1+Θ(\sqrt{\log\log n/\log d})}) rows achieves this guarantee. A subsequent work of Song, Ye, Yin and Zhang claimed to improve the row count to O(ε−2dlog⁡3n)O(ε^{-2}d\log^3 n). Unfortunately, their proof relies on an independence assumption that does not hold in general, and we exhibit an explicit instance on which it fails. To achieve a truly nearly-linear-in-dd row count, we introduce a new fast, dense randomized transform, which combines a randomized Hadamard flattening, a random permutation, and balanced, disjoint Gaussian pooling. Conditioned on the Hadamard-and-permutation stage, the sketched problem becomes an exact Gaussian regression in which the noise is independent of the entire sketched design; this conditional independence is exactly what the earlier argument was missing. Our sketch yields the ℓ∞\ell_\infty guarantee with m=O(ε−2dlog⁡d)m=O(ε^{-2}d\log d) rows, uses one Hadamard pass with a padded internal dimension N=O~(n+ε−2d3)N=\widetilde{O}(n+ε^{-2}d^3), and is efficient to apply: the sketched pair (SA,Sb)(SA, Sb) can be computed in O(Ndlog⁡N)=O~(nd+ε−2d4)O(Nd\log N)=\widetilde{O}(nd+ε^{-2}d^4) time.