Manuscript Offprint

arXiv:2610.25008

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

Edith Cohen, Uri Stemmer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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{\Omega}(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]\alpha\in(0,1], our black-box attack uses O(k+α2k2log⁡(2+α2k))O(k+\alpha^2k^2\log(2+\alpha^2k)) queries in O~(1+α2k)\widetilde{O}(1+\alpha^2k) adaptive rounds to force, with constant probability, a round in which a constant fraction of answers have Ω(α)\Omega(\alpha) relative error. Our results clarify the limits of defending a fixed compressive linear representation by adapting the prediction rule.

1 Introduction

A system that is reliable on independently chosen inputs may fail under adaptive interaction, where new queries are formed after observing answers that may reveal internal parameters. In machine learning, a model can have small error on its test distribution while searches guided by its outputs find failures [44, 54]. Defenses against language-model attacks can be bypassed through adaptive interaction [53]. The robustness of a system is studied by quantifying how many interactions are needed to find a failure, and by how much a responder can delay this process by controlling what its answers reveal.

We study this question for the fundamental task of estimating the Euclidean norm of a vector from a linear sketch. A fixed matrix A∈Rk×nA \in \mathbb{R}^{k \times n} compresses each input v∈Rnv \in \mathbb{R}^n to kk linear measurements Av. A responder uses this sketch to estimate ∥v∥2\|v\|_2. The black-box attacker chooses inputs and sees the returned estimates, but never sees AA or the sketches. Note that when k<nk < n, inputs with different norms can have the same sketch, so errors exist. The aim of the attacker is to force failures efficiently.

The quadratic benchmark. At constant relative accuracy, classical randomized constructions, including the Johnson–Lindenstrauss transform and the AMS sketch [4, 47], support exponentially many nonadaptive queries in the sketch dimension kk. Under adaptivity, the immediate guarantee is Ω~(k)\widetilde{\Omega}(k), by using a fresh sketch for each query. Defenses based on differential privacy or subsampling support Ω~(k2)\tilde{\Omega}(k^{2}) queries [14, 41], by using a randomized estimator with JL or AMS sketches. These defenses draw on adaptive data analysis: limiting what each answer reveals allows repeated use of the same randomness [9, 27]. The quadratic guarantee is attainable but its optimality remained open:

Question. Can a different choice of a linear sketch and responder support substantially more adaptive queries at the same sketch dimension?

Prior attacks either required polynomially more queries, targeted particular sketching matrices or estimators, restricted the responder, or established weaker failure guarantees [2, 12, 20, 40].

References (61)