Manuscript Offprint
arXiv:2610.25008No Escape from the Quadratic Barrier: Adaptive Attacks on Linear Sketches
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 . For adaptive black-box queries, known privacy-based defenses guarantee 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 with and target accuracy , our black-box attack uses queries in 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.
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 compresses each input to linear measurements Av. A responder uses this sketch to estimate . The black-box attacker chooses inputs and sees the returned estimates, but never sees or the sketches. Note that when , 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 . Under adaptivity, the immediate guarantee is , by using a fresh sketch for each query. Defenses based on differential privacy or subsampling support 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].
Informed responder model. The responder has unbounded computation, memory, and private randomness. It knows A, the attack algorithm, and the attacker's complete execution history and current state. Before each query, it knows the input distribution. It may change its randomized rule adaptively after every query. Its only information restriction is that it observes each fresh input through the sketch. After it returns a response, the input itself and the rest of that query's execution are revealed. Note that a stronger responder model only strengthens the attack guarantee. Definition 2.1 formalizes this model.
Norm gap task. Our attacks work even when the responder only has to distinguish from , for fixed public thresholds with ; either binary answer is permitted between the thresholds. This task, also considered by [2, 40], is easier than norm estimation with relative error : thresholding a sufficiently accurate norm estimate gives a correct gap answer. Thus errors on the norm-gap task transfer to errors in norm estimation.
Theorem 1.1 (A universal attack). There is an attack algorithm and a positive absolute constant such that, for every with , every , and every informed responder, the attack uses
queries and returns, with probability at least 0.9, a round B of consecutive queries generated independently from one announced distribution. For binary norm gap with , at least answers are incorrect; for norm estimation, at least estimates have relative error .
All queries are supported on a common set of coordinates, which may be prescribed arbitrarily before the interaction. The attack uses adaptive rounds; working memory is words and arithmetic cost is .
The linear support size is optimal up to a constant factor: if A is such that every k columns are linearly independent, every input supported on a known set of at most k coordinates can be recovered exactly from its sketch, allowing exact norm answers that do not reveal anything about A.
Accuracy vs. robustness The attack is more effective when higher accuracy is required. At constant accuracy, our bounds match known defenses of up to logarithmic factors. At high accuracy , the attack uses queries in rounds. At very high accuracy , the initial distribution already forces a constant fraction of errors.

Figure 1: The covariance attack in sketch space for queries with signal (blue) and (orange). Sketches are projected on the signal column and an orthogonal direction. Illustration shows ellipses of the sketch noise. The dashed line is the threshold . At the start the input noise is isotropic, and the sketch noise may separate the two signals (if there is overlap we are done). At the end, if the responder does not err earlier on an easy distribution, the sketch noise is stretched along and the two signals overlap.
Attack structure. Each query combines a scalar signal with Gaussian noise. The signal distribution remains fixed, while the attacker changes the noise covariance between rounds. The attack keeps the noise norm concentrated, so accurate norm answers distinguish low from high signal values. Our analysis proceeds through this auxiliary signal-gap task.
The noise covariance determines how accurately the signal can be estimated from the sketch. Higher signal-estimation variance makes the two signal regimes harder to distinguish, even while the input noise norm remains concentrated. Starting from isotropic covariance, the attack seeks a universally hard query distribution by changing the noise covariance (see Fig. 1).
Each round also checks accuracy. If its empirical signal-gap loss exceeds the validation threshold, the attack returns the round and its query distribution. Otherwise, correlations between the answers and the sampled noise guide a covariance update. The analysis bounds the number of rounds that can pass validation, forcing an observed round with many errors. The returned distribution need not be universally hard, since the responder can err on an easier distribution. But if the responder maintains sufficiently small error whenever a smaller constant error is achievable, the returned distribution is universally hard.
Sufficient-statistic responders. For each fixed distribution, a scalar sufficient statistic contains all the information about the signal available in the sketch. A sufficient-statistic responder is restricted so that, conditional on the disclosed history, its mean binary answer depends on the current sketch only through this statistic (formalized in Section 5). The class includes the Bayes-
We call a distribution universally hard for a task if every response rule has expected loss at least a fixed positive constant, even knowing A and the distribution.
| Result | Responder | Guaranteed outcome | Queries | Rounds | Support | Operations |
|---|---|---|---|---|---|---|
| Hardt–Woodruff [40] | Fixed within round | Constant error rate (on queried fixed estimator) | ||||
| ACS [2] | Informed | Constant error rate OR failure of dist-optimal est | ||||
| This work: general | Informed | Constant error rate (in round) | ||||
| sufficient statistic | Informed; scalar statistic | Constant error rate (in round) | ||||
| Robustness benchmark: AMS/JL with robustified estimator | ||||||
| [14, 41] | Fixed | Accurate answers | — | — | — | |
Table 1: Comparison at constant accuracy and success probability. Sketch dimension . Rounds are of attack adaptivity. Support is the size of a common coordinate set. Arithmetic-operation counts assume unit-cost sampling.
optimal signal-gap predictor, as well as predictors computed from the statistic followed by output noise, rounding, or clipping. It provides an idealized model of repeatedly fitting a predictor to the current query distribution while keeping the compressive map fixed. In this interpretation, accurate predictions supply feedback that guides the attacker's search for a hard noise distribution, even as the predictor is adapted to each new distribution. Section A.2 develops the learning interpretation and its implications for output defenses. We obtain a more efficient attack for informed responders with this additional restriction.
Theorem 1.2 (Attack on sufficient-statistic responders; informal). There is an attack algorithm such that, for every with , every , and every sufficient-statistic norm responder, with probability at least 0.9 the attack returns a round of consecutive queries, generated independently from one distribution, for which at least a constant fraction of norm estimates have relative error . The attack uses queries, adaptive rounds, words of working memory, and arithmetic operations. All queries use any prescribed set of coordinates. On the same success event, if the threshold is reached before a round is rejected, the final query distribution is universally hard for norm tasks.
Analyzing attack progress. We establish the existence of a comparator covariance whose signal-estimation variance makes the query distribution universally hard. The key property exploited by both attacks is that accurate answers force a component of the mean signed noise—the expected product of the generated noise vector and the binary answer—along the hidden signal-estimation direction; we extend the correlation bound of Ahmadian et al. [2] to general covariances. For sufficient-statistic responders, the mean signed noise is aligned with the hidden direction, allowing direct multiplicative growth of the signal-estimation variance. For general responders, the challenge is that other components of the mean signed noise can obscure the useful direction. We extract measurements that separate the current covariance from the hard comparator and use them in matrix multiplicative-weights updates, with progress measured by a relative-entropy potential.
1.2 Lower bound for informed responders
Our attacks use queries but known defenses [14, 41] guarantee only adaptive queries, leaving a gap for higher accuracy. The distinction is that the known defenses use responders without knowledge of the query distributions. We show that for a broad family of signal–noise query distributions, a Gaussian JL sketch can withstand adaptive queries when paired with a responder that is provided with the noise mean and covariance.
Theorem 1.3 (Matching lower bound; informal). Fix a target error fraction . For a sufficiently large constant and , consider attacks using the signal-noise query family specified in Section D, with sufficiently concentrated noise energy. For either norm task, any such attack that forces, with probability at least 0.9, a fraction of errors in an observed interval of consecutive queries against every sketching matrix and every informed responder requires queries. The constants may depend on .
Subject to the family’s moment and concentration conditions, the noise law is arbitrary and may depend on the signal; the distribution may change after every answer. The lower bound is witnessed by a Gaussian JL matrix sampled once and kept fixed, together with a responder that beyond the matrix, current sketch, and task parameters, uses only the signal direction and noise mean and covariance.
Taking to be the constant error fraction guaranteed by our attacks, this establishes optimal query complexity for the sufficient-statistic attack within this family and accuracy regime. The general attack is optimal up to its logarithmic factor.
The responder adds noise to a distribution-informed linear estimator. For the analysis, we use KL divergence to bound what its answers reveal about the hidden Gaussian matrix, showing that finding a query law with large signal-estimation variance requires queries. Section D gives the precise statement and proof.
1.3 Comparison with prior work
Table 1 summarizes a comparison of our results with directly related prior work. A broader related work discussion is included in Section A.
The problem was first formalized by Hardt and Woodruff [40]. They gave polynomial-query attacks for arbitrary sketching matrices A, using adaptive rounds and common query support of size at constant relative accuracy. Their responder uses a randomized estimator that may change between rounds, but remains fixed throughout each round. Their attack returns a distribution on which that estimator has a constant error rate. Our attack forces errors from a much stronger informed responder that additionally knows each query distribution and may change its rule after every query.
Ahmadian, Cohen, and Stemmer [2] (ACS) obtained a -query attack against arbitrary (with ) and informed responders. It samples all queries i.i.d. from one distribution in a single nonadaptive round. The attack guarantees that either the responder makes errors on a constant fraction of queries, or the attack constructs an input on which the estimator optimal for the query distribution fails (but the latter need not be an error by the actual responder). They left open the existence of a quadratic-query attack with a constant error rate and with support reduced from to coordinates. As observed by [2], at constant accuracy, adaptive rounds are necessary to force errors against arbitrary sketches and responders using polynomially many queries.
Organization. Section 2 defines the interaction model and attack objective. Section 3 presents the general attack. Section 4 previews the analysis. Section 5 gives the more efficient attack for
Indeed, a dimension-k sketch can contain independent JL or AMS blocks, each with rows. Answering each round using a fresh block preserves the nonadaptive accuracy guarantee for all queries in that round.
sufficient-statistic responders. Section 6 concludes. Section A places our work in a broader context of related works. The full analyses appear in Sections B and C; the lower bound in Section D; subsequent appendices give supporting proofs and details.
2 Interaction model and attack objectives
Fix a matrix and a publicly specified task with response space . The task determines which answers are correct for each input.
The interaction is between an attacker and a responder. In query , the attacker chooses an input , the responder receives the sketch and returns an answer that the attacker observes.
The attacker never observes A or the sketches; it observes only its own execution and the returned answers from the responder. Its objective is to cause the responder to return incorrect answers.
2.1 The informed responder model
Our attacks are analyzed against an informed responder, which has unbounded computation, memory, and randomness. It knows A and the attacker's algorithm and its parameters, and the complete execution history. The only information temporarily withheld from the responder at the beginning of query i is the fresh randomness that the attacker uses to sample its current input . This information is shared with the responder, but only after the answer is determined.
Let denote the complete execution of both parties through the completion of query , including their random choices, inputs, and responses. This transcript is available to the responder. Our attack queries follow a particular structure:
Definition 2.1 (Adaptive interaction query). Query i proceeds as follows.
(i) The attacker announces a Borel distribution on , chosen measurably from its own execution transcript so far and fresh randomness. It discloses and the execution history of this query.
(ii) Using , , and the newly disclosed information, the responder privately selects a measurable map , possibly at random.
(iii) The attacker draws using fresh randomness. The responder receives the sketch and returns an answer , which the attacker observes. After the answer, the attacker discloses the remainder of its execution for this query.
The attacker may stop and return an output based on its information and fresh randomness.
2.2 Attack structure and objective
Our attacks proceed in rounds, each containing queries. At the start of each round, the attacker fixes a query distribution and the number of queries, then draws the queries independently from that distribution. Thus, conditional on these choices and the preceding history, the queries in a round are i.i.d. The responder may still change its rule after every query. We use i for the global query index, t for the round index, and j for the query index within a round.
The attack’s goal is to return a round, together with its query distribution, in which a constant fraction of the answers were incorrect for the task. We seek this guarantee with constant probability using few queries and rounds.
2.3 Norm tasks
Norm estimation. The responder returns an estimate of . For an accuracy parameter and a fixed absolute constant , the loss is
Thus an answer is correct when its relative error is at most .
Binary norm gap. Fix public thresholds . The responder returns an answer in : the correct answer is -1 when and +1 when , with either answer permitted between the thresholds. The loss is
Our thresholds satisfy . When gap responses are derived from norm estimates by thresholding at , every incorrect gap answer therefore certifies relative error in the norm estimate on the same input.
Definition 2.2 (Realized loss and empirical accuracy). For a fixed task, let denote the realized loss on query , a measurable function of its input and response. For , the responder is -accurate on a round with query index set if
For both norm tasks, the loss is binary, so empirical accuracy means that at most a fraction of the answers in the round are incorrect.
3 The covariance attack
This section presents the general attack, given in Algorithm 1. Section 4 previews its analysis; the full proof is in Section B. The interaction follows the disclosure protocol of Definition 2.1. The algorithm uses up to rounds with queries each. In each round, the attacker draws queries from a fixed signal-noise distribution and converts the norm-task responses into signal-gap answers . It accumulates the signed noise and the loss sum , using a fixed validation level . If , it returns the round; otherwise it uses to update the noise covariance, which is initially isotropic. The following subsections specify the query law, response conversion, and covariance update. The updates are parametrized by the cap .
The parameters have the following scales:
Accuracy regimes. Fix absolute constants and sufficiently small . First replace by ; this changes only absolute constants in the guarantees. If the resulting parameter is below , both attacks return their first isotropic round of queries (Corollary F.3). The pseudocode and covariance-update analysis below concern the remaining regime .
3.1 Query distribution
Fix any prescribed set of coordinates, where . Choose the signal coordinate uniformly from and let carry the noise. Both and remain fixed throughout the attack. Query entries are 0 outside , so we may discard the unused columns of and, for the analysis, relabel the coordinates as and . Section B.2 justifies this initialization.
We also fix a noise multiplier (a universal constant) and a signal law supported near 1, specified in Definition 3.1. For any with , define the query law by
where and are independent and embeds a vector on the coordinates . Writing and , the sketch takes the form
After initialization, the attack changes only the covariance of the query distribution. In round t it announces and uses fresh, independent draws of for every query in that round.
3.2 The signal-gap task
The auxiliary task is to distinguish from . A response incurs loss
The answers and correspond to the low and high regimes; intermediate values hedge between them. The gap is unlabeled and incurs no loss. The use of facilitates averaging of randomized and changing discrete response rules.
Definition 3.1 (Signal distribution). Put . The signal law is sampled as
with independent.
Its density is trapezoidal: the two ramps occupy the labeled regimes, and the plateau occupies the unlabeled gap. Section E gives the density and explains its role in extracting correlation from accurate answers. We take to be a small absolute constant and , so the signal support stays at or above 1/2.
3.3 From norm answers to signal-gap answers
The norm and the signal relate as follows:
Since , concentration of the noise norm makes the squared query norm close to . We call a trace-one covariance norm-admissible at budget when .
For fixed c, we use a sufficiently small constant multiple of as the admissibility budget. For binary norm-gap queries, fix the public thresholds
and use the returned bit as the signal-gap response. These thresholds have . For norm estimates , use
In either case, the signal-gap loss is at most the error indicator for the chosen norm task plus the indicator of . Section B.6 proves this pointwise reduction and bounds the concentration-failure probability. Consequently, a round with large signal-gap loss also has many norm-task errors, except for these rare concentration failures. The attacker computes the signal-gap loss from its own and the returned or thresholded answer.
3.4 Covariance constraints
For a cap parameter , the attack keeps the covariance in
The initial covariance belongs to . The eigenvalue floor ensures invertibility and, together with , implies the cap
The same constraints give
This follows since concentrating all eigenvalue mass above the floor in one eigenvalue maximizes the sum of squares, giving one eigenvalue and the remaining eigenvalues equal to . Thus every is norm-admissible with budget . The parameter choices make this budget small enough for the norm reduction (Section B.1).
3.5 Covariance update
Let and . If the round passes validation, the attacker forms
If , choose any unit vector for .
For positive definite trace-one matrices, define the relative entropy
Algorithm 1: Covariance attack
Input : norm task; cap λ; round size r; validation level δ₀ = 1/20; round budget T_max Output: a rejected round and its covariance, or ⊥
1 ;
2 for do
3
4 if then // check round accuracy
5 return round t and
6 (any unit vector if )
7 Form using (11) // rank-one measurement
8 Update by (13)–(14) with
9 return ⊥
10 Procedure Round( ):
11 Announce (§ 3.1) and round size r
12 ; ;
13 for do // queries
14 Draw ,
15 Query // (§ 3.1)
16 Obtain // signal-gap answer from norm task response (§ 3.3)
17 // accumulate signed noise
18 // accumulate signal-gap loss (5)
19 return (S, E)
We use a matrix multiplicative-weights update [5, 59] with step size , followed by a relative-entropy projection:
The exponential step (13) increases weight according to . The projection (14) ensures that the covariance remains in . The projection is computed by rescaling the eigenvalues of and clipping them from below at , with the scale chosen so that they sum to one (Section G.1).
4 Analysis preview
We show that, with high constant probability, some round must fail validation before the round budget is exhausted.
We first express the signal-estimation variance in terms of the query covariance . We then show that successful initialization guarantees the existence of a hard comparator covariance . We measure progress by the relative entropy between this comparator and the current covariance. Accurate rounds produce sufficiently many potential-decreasing updates. Its bounded initial value and nonnegativity, together with a concentration argument, bound the number of rounds that can pass validation.
4.1 The scalar channel
Recall that the sketch has the form , where is independent of . Put
Suppose . Define the normalized signal-estimation variance and the scalar statistic by
(16)
where denotes the Moore–Penrose pseudoinverse. The statistic is sufficient for : conditional on , the remaining sketch contains no additional information about the signal. Moreover,
with independent of . Thus is the actual signal-estimation variance, and a larger value makes the two signal regimes harder to distinguish. In particular, if , every responder incurs a constant expected signal-gap loss (Lemma F.2) and the distribution is universally hard for the signal-gap task.
If , then the sketch is independent of and . If , then the sketch contains a noiseless signal component and .
4.2 Successful initialization
With high constant probability, random-coordinate initialization (Section 3.1) gives either , in which case the sketch carries no signal information and the isotropic query distribution is already hard for the signal-gap task, or and (Corollary B.2).
4.3 Existence of a hard comparator
We measure progress relative to a fixed comparator covariance , constructed in the analysis using the hidden matrix . It has eigenvalue along a suitable hidden direction and eigenvalue in every orthogonal direction. This covariance spike amplifies the isotropic variance by :
Together with the initialization bound, a sufficiently large constant in makes a sufficiently large multiple of , so the comparator is universally hard for the signal-gap task. It is also norm-admissible because it belongs to (Equation (10) and Section B.1).
4.4 Accuracy forces correlation
An accurate response must correlate with the signal-estimation error . The following lemma extends the isotropic gain bound of Ahmadian et al. [2, Lemma 4.9] to general covariances; its proof appears in Section E. Write for the expected signal-gap loss under .
Lemma 4.1 (General-covariance gain lemma). Let , , , and . For the query law with signal law , let satisfy and . Every measurable response rule with satisfies
(18)
Since the estimation error is a linear function of the generated Gaussian noise, the gain bound guarantees a useful component of the mean signed noise along the hidden signal-estimation direction. The attacker accumulates this correlation through .
If the conditional expected losses are small on average over the round, the useful component accumulates linearly with the number of queries, while concentration controls the sampling fluctuations. This remains true when the responder changes its rule after every query: we analyze each contribution conditional on the preceding history. Other components of the mean signed noise may also accumulate, so need not approximate the hidden direction. The next step shows that it nevertheless yields a separating measurement.
4.5 Correlation yields separating measurements
The rank-one measurement computed in (11) always satisfies
where . We show that, conditional on the history before the round, with probability bounded below by an absolute constant, either validation rejects the round or
for a sufficiently large absolute constant . Since , this means that the comparator assigns at least times as much noise variance as the current covariance along the direction .
On a high-probability validation event, passing the test implies small average conditional loss, so the correlation guarantee from the preceding subsection applies. A geometric bound converts the useful component of the accumulated mean signed noise into separation from the comparator, even when other components are large. With queries, martingale bounds ensure that sampling fluctuations preserve this separation with constant probability. Thus the observed sum supplies the measurement needed for the covariance update (Section B.4).
4.6 Entropy bounds the number of rounds
The potential is nonnegative and initially at most . After an accepted round, a separating measurement makes the covariance update decrease this potential by a sufficiently large constant multiple of . Any other update can increase it by at most a smaller constant multiple of .
The preceding separation guarantee, together with a concentration bound, implies that with high constant probability, if all rounds passed validation, a constant fraction of their measurements would be separating. The constants ensure that their decreases outweigh the possible increases from the remaining updates, giving a total decrease of over rounds. Since the potential cannot become negative, this rules out more than
accepted rounds. Thus some round must fail validation within the stated round budget (Section B.5).
Note that this argument requires cumulative progress in relative entropy. The signal-estimation variance may still decrease on individual updates, and the attack need not reach the comparator.
5 Sufficient-statistic attack
We define the sufficient-statistic responder class using from Section 4.1. As in the general analysis, consider a successful initialization with and a positive definite covariance. In the zero-signal case, the isotropic query distribution is already hard for the signal-gap task, without any restriction on the responder.
Let denote the disclosed information before query j of round t, including the current query law but excluding the responder's private execution. The averaged response rule is
where the expectation averages over private responder state and randomization. The conditioning is formalized in Section B.3.2.
Definition 5.1 (Sufficient-statistic responder). The responder is sufficient-statistic if, in every round t and query j,
for an -measurable function , almost surely under the current sketch law. The responder may change its randomized rule after every query; only the dependence of its conditional mean on the current sketch is restricted.
For norm estimation, this condition applies to the thresholded answer in (8). For the binary norm-gap task, it applies to the returned bit.
The class includes the Bayes-optimal signal-gap predictor (Proposition F.1) and any responder that computes its answer from and fresh randomness.
5.1 The attack
The attack, described in Algorithm 2, uses the same query family and signal-gap validation test as Algorithm 1, starting at . For , the attack uses an eigenvalue stopping threshold . It uses at most covariance-update rounds, followed by one final validation round when the top eigenvalue reaches or exceeds this threshold. The parameters have scales
where is a fixed absolute constant. The first round uses queries; the geometrically decreasing term allows smaller later rounds, while every round retains queries. The total query budget is
The precise schedule is given in (65), with its norm-task specialization in Section C.1.
The rounds are as in Algorithm 1, with at round . If , the attack returns the round. Otherwise it normalizes the signed sum to and updates the covariance by
If , any unit vector may be used for . The vector is a direction in whitened coordinates; maps it back to the noise coordinates. The rank-one addition increases noise along before the
Algorithm 2: Sufficient-statistic attack
Input : norm task; threshold ; round lengths ; validation level
Output: a rejected round and its covariance, or
1
2 for do
3 // in Algorithm 1
4 if then
5 return round and
6 (any unit vector if )
7 // see (19)
8 if then // threshold reached
9
10 // in Algorithm 1
11 if then
12 return the final round and
13 return
14 return
denominator renormalizes the covariance to trace one. The update preserves positive definiteness and trace one.
After each update, the algorithm checks whether the largest eigenvalue has reached the fixed threshold . Initially, , so . Each update satisfies : the rank-one addition can at most double the largest eigenvalue, and trace normalization can only reduce it. When an update first reaches the threshold, the attack stops updating and runs one final validation round at the resulting covariance . Since the preceding covariance was below the threshold,
5.2 Guarantee and analysis preview
With probability at least 0.9, the attack returns a round containing a constant fraction of errors for the original norm task, as claimed in Theorem 1.2. On the same success event, if the eigenvalue threshold is reached, the final distribution is hard for every responder for that norm task.
Alignment permits direction estimation. For a sufficient-statistic responder, the conditional mean signed noise is parallel to the signal-estimation direction. Gaussian noise orthogonal to this direction is independent of the statistic, so its correlation with the answer vanishes. Combining this alignment with the gain lemma, validation, and concentration shows that normalizing estimates the direction accurately enough for the covariance update (Section C.2).
Variance growth justifies the stopping test. On the success event, each covariance update increases by a fixed factor greater than one. Controlling the accumulated direction-estimation errors also keeps the variance within a constant factor of the largest possible at the current top eigenvalue:
Before the threshold is reached, the upper bound limits variance amplification to , allowing only accepted updates. At the threshold, the lower bound ensures that the variance is large enough for universal signal-gap hardness. Thus the observable eigenvalue test certifies hardness even though the attacker cannot compute the signal-estimation variance (Section C.3).
Query cost and norm admissibility. As the variance grows, the gain lemma guarantees a stronger correlation, so fewer queries suffice to estimate the direction. The resulting round schedule has total cost , with the direction-estimation cost dominated by the early rounds. Control of the accumulated direction errors also gives
throughout the successful execution, including the covariance that crosses the threshold. This maintains the norm admissibility needed for the norm-task guarantees (Section C.1). Section C gives the full proof and an extension to approximate alignment.
6 Conclusion
At constant accuracy, we establish a near-quadratic limit on adaptive reuse of any fixed linear norm sketch, even with an informed responder that changes its rule after every query. The vulnerability that the attack exploits is that accurate answers expose useful correlations. We also present more efficient attacks for sufficient-statistic responses, which have aligned mean signed noise.
Our lower bound makes the accuracy dependence tight within a broad family of announced query distributions, using a responder that is given the signal direction and noise mean and covariance. The main open question is where the optimal adaptive-query guarantee lies between and , up to logarithmic factors, when query distributions are unrestricted or the responder lacks distributional information. A further question is whether the logarithmic gap between our query bounds for general and sufficient-statistic responders is necessary. Section A gives context and discusses implications for defenses.
Acknowledgments
Edith Cohen: Partially supported by the Israel Science Foundation (grant 1156/23).
Uri Stemmer: Partially supported by the Israel Science Foundation (grant 1419/24), and the Blavatnik Research Foundation.
AI use statement
This paper was developed from an initial proof sketch by the authors, through many iterations with the help of ChatGPT, Claude, and Gemini. The tools were used for formalizing statements, writing proofs and text, improving proofs and bounds, and looking up relevant literature. The authors are responsible for the content.
References
[1] Sara Ahmadian and Edith Cohen. Unmasking vulnerabilities: Cardinality sketches under adaptive inputs. In Proceedings of the 41st International Conference on Machine Learning (ICML), volume 235 of PMLR, pages 550–576, 2024. URL https://proceedings.mlr.press/v235/ahmadian24a.html.
[2] Sara Ahmadian, Edith Cohen, and Uri Stemmer. The cost of compression: Tight quadratic black-box attacks on sketches for norm estimation. In Advances in Neural Information Processing Systems 38 (NeurIPS), pages 25633–25659, 2025. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/249f73e01f0a2bb6c8d971b565f159a7-Abstract-Conference.html. arXiv:2507.16345.
[3] Kook Jin Ahn, Sudipto Guha, and Andrew McGregor. Analyzing graph structure via linear measurements. In Proceedings of the 23rd Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 459–467, 2012. doi: 10.1137/1.9781611973099.40. URL https://doi.org/10.1137/1.9781611973099.40.
[4] Noga Alon, Yossi Matias, and Mario Szegedy. The space complexity of approximating the frequency moments. Journal of Computer and System Sciences, 58(1):137–147, 1999. URL https://doi.org/10.1006/jcss.1997.1545.
[5] Sanjeev Arora and Satyen Kale. A combinatorial, primal-dual approach to semidefinite programs. Journal of the ACM, 63(2):12:1–12:35, 2016. doi: 10.1145/2837020. URL https://doi.org/10.1145/2837020. Preliminary version in STOC 2007, pages 227–236.
[6] Anish Athalye, Logan Engstrom, Andrew Ilyas, and Kevin Kwok. Synthesizing robust adversarial examples. In Proceedings of the 35th International Conference on Machine Learning (ICML), volume 80 of Proceedings of Machine Learning Research, pages 284–293, 2018. URL https://proceedings.mlr.press/v80/athalye18b.html.
[7] Idan Attias, Edith Cohen, Moshe Shechner, and Uri Stemmer. A framework for adversarial streaming via differential privacy and difference estimators. In 14th Innovations in Theoretical Computer Science Conference (ITCS), volume 251 of LIPIcs, pages 8:1–8:19, 2023. URL https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ITCS.2023.8.
[8] Peter L. Bartlett, Sébastien Bubeck, and Yeshwanth Cherapanamjeri. Adversarial examples in multi-layer random ReLU networks. In Advances in Neural Information Processing Systems 34 (NeurIPS), pages 9241–9252, 2021. URL https://arxiv.org/abs/2106.12611.
[9] Raef Bassily, Kobbi Nissim, Adam Smith, Thomas Steinke, Uri Stemmer, and Jonathan Ullman. Algorithmic stability for adaptive data analysis. In Proceedings of the 48th ACM Symposium on Theory of Computing (STOC), pages 1046–1059, 2016. URL https://doi.org/10.1145/2897518.2897566. Full version in SIAM Journal on Computing, 50(3), 2021.
[10] Amos Beimel, Haim Kaplan, Yishay Mansour, Kobbi Nissim, Thatchaphol Saranurak, and Uri Stemmer. Dynamic algorithms against an adaptive adversary: Generic constructions and lower bounds. In Proceedings of the 54th Annual ACM Symposium on Theory of Computing (STOC), pages 1671–1684, 2022. doi: 10.1145/3519935.3520064. URL https://doi.org/10.1145/3519935.3520064.
[11] Shai Ben-David, Allan Borodin, Richard M. Karp, Gábor Tardos, and Avi Wigderson. On the power of randomization in on-line algorithms. Algorithmica, 11(1):2–14, 1994. doi: 10.1007/BF01294260. URL https://doi.org/10.1007/BF01294260.
[12] Omri Ben-Eliezer, Rajesh Jayaram, David P. Woodruff, and Eylon Yogev. A framework for adversarially robust streaming algorithms. In Proceedings of the 39th ACM Symposium on Principles of Database Systems (PODS), pages 63–80, 2020. URL https://arxiv.org/abs/2003.14265. Full version in Journal of the ACM, 69(2):17:1–17:33, 2022.
[13] Omri Ben-Eliezer, Talya Eden, and Krzysztof Onak. Adversarially robust streaming via dense-sparse trade-offs. In Symposium on Simplicity in Algorithms (SOSA), pages 214–227, 2022. URL https://doi.org/10.1137/1.9781611977066.15.
[14] Guy Blanc. Subsampling suffices for adaptive data analysis. In Proceedings of the 55th ACM Symposium on Theory of Computing (STOC), pages 999–1012, 2023. URL https://doi.org/10.1145/3564246.3585226.
[15] Sébastien Bubeck and Mark Sellke. A universal law of robustness via isoperimetry. In Advances in Neural Information Processing Systems 34 (NeurIPS), pages 28811–28822, 2021. URL https://arxiv.org/abs/2105.12806.
[16] Sébastien Bubeck, Yeshwanth Cherapanamjeri, Gauthier Gidel, and Rémi Tachet des Combes. A single gradient step finds adversarial examples on random two-layers neural networks. In Advances in Neural Information Processing Systems 34 (NeurIPS), pages 10081–10091, 2021. URL https://arxiv.org/abs/2104.03863.
[17] Jianbo Chen, Michael I. Jordan, and Martin J. Wainwright. HopSkipJumpAttack: A query-efficient decision-based attack. In IEEE Symposium on Security and Privacy (SP), pages 1277–1294, 2020. URL https://arxiv.org/abs/1904.02144.
[18] Yeshwanth Cherapanamjeri and Jelani Nelson. On adaptive distance estimation. In Advances in Neural Information Processing Systems 33 (NeurIPS), pages 11178–11190, 2020. URL https://arxiv.org/abs/2010.11252.
[19] Edith Cohen, Xin Lyu, Jelani Nelson, Tamás Sarlós, Moshe Shechner, and Uri Stemmer. On the robustness of CountSketch to adaptive inputs. In Proceedings of the 39th International Conference on Machine Learning (ICML), volume 162 of PMLR, pages 4112–4140, 2022. URL https://proceedings.mlr.press/v162/cohen22a.html.
[20] Edith Cohen, Jelani Nelson, Tamás Sarlós, and Uri Stemmer. Tricking the hashing trick: A tight lower bound on the robustness of CountSketch to adaptive inputs. Proceedings of the AAAI Conference on Artificial Intelligence, 37(6):7235–7243, 2023. URL https://doi.org/10.1609/aaai.v37i6.25882.
[21] Edith Cohen, Mihir Singhal, and Uri Stemmer. Breaking the quadratic barrier: Robust cardinality sketches for adaptive queries. In Proceedings of the 42nd International Conference on Machine Learning (ICML), volume 267 of PMLR, pages 11185–11199, 2025. URL https://proceedings.mlr.press/v267/cohen25c.html.
[22] Edith Cohen, Elena Gribelyuk, Pasin Manurangsi, and Uri Stemmer. Tight bounds on the cost of adaptivity for the Meyerson sketch. arXiv:2609.06669, 2026. URL https://arxiv.org/abs/2609.06669.
[23] Edith Cohen, Elena Gribelyuk, Jelani Nelson, and Uri Stemmer. Adaptively robust resettable streaming. In Proceedings of the 43rd International Conference on Machine Learning (ICML), volume 306 of Proceedings of Machine Learning Research, pages 21046–21087. PMLR, 2026. URL https://proceedings.mlr.press/v306/cohen26a.html.
[24] Edith Cohen, Jelani Nelson, Tamás Sarlós, Mihir Singhal, and Uri Stemmer. One attack to rule them all: Tight quadratic bounds for adaptive queries on cardinality sketches. In Proceedings of the ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 3162–3200, 2026. URL https://arxiv.org/abs/2411.06370.
[25] Jeremy M. Cohen, Elan Rosenfeld, and J. Zico Kolter. Certified adversarial robustness via randomized smoothing. In Proceedings of the 36th International Conference on Machine Learning (ICML), volume 97 of PMLR, pages 1310–1320, 2019. URL https://proceedings.mlr.press/v97/cohen19c.html.
[26] Amit Daniely and Hadas Shacham. Most ReLU networks suffer from adversarial perturbations. In Advances in Neural Information Processing Systems 33 (NeurIPS), pages 6629–6636, 2020. URL https://papers.nips.cc/paper/2020/hash/497476fe61816251905e8baafdf54c23-Abstruct.html.
[27] Cynthia Dwork, Vitaly Feldman, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Aaron Roth. Preserving statistical validity in adaptive data analysis. In Proceedings of the 47th ACM Symposium on Theory of Computing (STOC), pages 117–126, 2015. URL https://doi.org/10.1145/2746539.2746580.
[28] Shimon Even and Yossi Shiloach. An on-line edge-deletion problem. Journal of the ACM, 28(1):1–4, 1981. doi: 10.1145/322234.322235. URL https://doi.org/10.1145/322234.322235.
[29] Alhussein Fawzi, Seyed-Mohsen Moosavi-Dezfooli, and Pascal Frossard. Robustness of classifiers: from adversarial to random noise. In Advances in Neural Information Processing Systems 29 (NIPS), pages 1632–1640, 2016. URL https://arxiv.org/abs/1608.08967.
[30] David A. Freedman. A note on screening regression equations. The American Statistician, 37(2):152–155, 1983. doi: 10.1080/00031305.1983.10482729. URL https://doi.org/10.1080/00031305.1983.10482729.
[31] Paweł Gawrychowski, Shay Mozes, and Oren Weimann. Minimum cut in time. In 47th International Colloquium on Automata, Languages, and Programming (ICALP), volume 168 of LIPIcs, pages 57:1–57:15, 2020. URL https://doi.org/10.4230/LIPIcs.ICALP.2020.57.
[32] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations (ICLR), 2015. URL https://arxiv.org/abs/1412.6572.
[33] Elena Gribelyuk, Honghao Lin, David P. Woodruff, Huacheng Yu, and Samson Zhou. A strong separation for adversarially robust estimation for linear sketches. In Proceedings of the 65th IEEE Symposium on Foundations of Computer Science (FOCS), pages 2318–2343, 2024. URL https://arxiv.org/abs/2409.16153.
[34] Elena Gribelyuk, Honghao Lin, David P. Woodruff, Huacheng Yu, and Samson Zhou. Lifting linear sketches: Optimal bounds and adversarial robustness. In Proceedings of the 57th ACM Symposium on Theory of Computing (STOC), pages 395–406, 2025. URL https://doi.org/10.1145/3717823.3718227.
[35] Elena Gribelyuk, Honghao Lin, David P. Woodruff, Huacheng Yu, and Samson Zhou. Adversarial robustness on insertion-deletion streams. In Proceedings of the 58th ACM Symposium on Theory of Computing (STOC), pages 2278–2289. ACM, 2026. URL https://arxiv.org/abs/2602.20854.
[36] Elena Gribelyuk, Honghao Lin, David P. Woodruff, Huacheng Yu, and Samson Zhou. Adversarial robustness for small frequency moments and a weak equivalence theorem for turnstile streams. In Proceedings of the IEEE Symposium on Foundations of Computer Science (FOCS), 2026. URL https://arxiv.org/abs/2607.06312.
[37] Maximilian Probst Gutenberg and Christian Wulff-Nilsen. Decremental SSSP in weighted digraphs: Faster and against an adaptive adversary. In Proceedings of the 31st Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2542–2561, 2020. URL https://arxiv.org/abs/2001.10821.
[38] William W. Hager. Updating the inverse of a matrix. SIAM Review, 31(2):221–239, 1989. doi:10.1137/1031049. URL https://doi.org/10.1137/1031049.
[39] Moritz Hardt and Jonathan Ullman. Preventing false discovery in interactive data analysis is hard. In Proceedings of the 55th IEEE Symposium on Foundations of Computer Science (FOCS), pages 454–463, 2014. URL https://doi.org/10.1109/FOCS.2014.55.
[40] Moritz Hardt and David P. Woodruff. How robust are linear sketches to adaptive inputs? In Proceedings of the 45th ACM Symposium on Theory of Computing (STOC), pages 121–130, 2013. URL https://doi.org/10.1145/2488608.2488624.
[41] Avinatan Hassidim, Haim Kaplan, Yishay Mansour, Yossi Matias, and Uri Stemmer. Adversarially robust streaming algorithms via differential privacy. In Advances in Neural Information Processing Systems 33 (NeurIPS), pages 147–158, 2020. URL https://arxiv.org/abs/2004.05975. Full version in Journal of the ACM, 69(6):42:1–42:14, 2022.
[42] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016. URL https://openaccess.thecvf.com/content_cvpr_2016/html/He_Deep_Residual_Learning_CVPR_2016_paper.html.
[43] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In
International Conference on Learning Representations (ICLR), 2022. URL https://openreview.net/forum?id=nZeVKeeFYf9.
[44] Andrew Ilyas, Logan Engstrom, Anish Athalye, and Jessy Lin. Black-box adversarial attacks with limited queries and information. In Proceedings of the 35th International Conference on Machine Learning (ICML), volume 80 of PMLR, pages 2137–2146, 2018. URL https://proceedings.mlr.press/v80/ilyas18a.html.
[45] Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. In Advances in Neural Information Processing Systems 32 (NeurIPS), 2019. URL https://arxiv.org/abs/1905.02175.
[46] John P. A. Ioannidis. Why most published research findings are false. PLoS Medicine, 2(8): e124, 2005. doi: 10.1371/journal.pmed.0020124. URL https://doi.org/10.1371/journal.pmed.0020124.
[47] William B. Johnson and Joram Lindenstrauss. Extensions of Lipschitz mappings into a Hilbert space. In Conference in Modern Analysis and Probability, volume 26 of Contemporary Mathematics, pages 189–206. American Mathematical Society, 1984. URL https://doi.org/10.1090/conm/026/737400.
[48] Mathias Lecuyer, Vaggelis Atlidakis, Roxana Geambasu, Daniel Hsu, and Suman Jana. Certified robustness to adversarial examples with differential privacy. In IEEE Symposium on Security and Privacy (SP), pages 656–672, 2019. URL https://arxiv.org/abs/1802.03471.
[49] Erich L. Lehmann and George Casella. Theory of Point Estimation. Springer, 2nd edition, 1998. ISBN 978-0-387-98502-2.
[50] Paul M. Lukacs, Kenneth P. Burnham, and David R. Anderson. Model selection bias and Freedman's paradox. Annals of the Institute of Statistical Mathematics, 62(1):117–125, 2010. doi: 10.1007/s10463-009-0234-4. URL https://doi.org/10.1007/s10463-009-0234-4.
[51] Ilya Mironov, Moni Naor, and Gil Segev. Sketching in adversarial environments. In Proceedings of the 40th ACM Symposium on Theory of Computing (STOC), pages 651–660, 2008. URL https://doi.org/10.1145/1374376.1374471.
[52] Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, Omar Fawzi, and Pascal Frossard. Universal adversarial perturbations. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 86–94, 2017. URL https://arxiv.org/abs/1610.08401.
[53] Milad Nasr, Nicholas Carlini, Chawin Sitawarin, Sander V. Schulhoff, Jamie Hayes, Michael Ilie, Juliette Pluto, Shuang Song, Harsh Chaudhari, Ilia Shumailov, Abhradeep Thakurta, Kai Yuanqing Xiao, Andreas Terzis, and Florian Tramèr. The attacker moves second: Stronger adaptive attacks bypass defenses against LLM jailbreaks and prompt injections. arXiv:2510.09023, 2025. URL https://arxiv.org/abs/2510.09023.
[54] Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z. Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM Asia Conference on Computer and Communications Security (ASIA CCS), pages 506–519, 2017. URL https://arxiv.org/abs/1602.02697.
[55] Thomas Steinke and Jonathan Ullman. Interactive fingerprinting codes and the hardness of preventing false discovery. In Proceedings of the 28th Conference on Learning Theory (COLT), volume 40 of PMLR, pages 1588–1628, 2015. URL https://proceedings.mlr.press/v40/Steinke15.html.
[56] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations (ICLR), 2014. URL https://arxiv.org/abs/1312.6199.
[57] Florian Tramèr, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick McDaniel. The space of transferable adversarial examples. arXiv:1704.03453, 2017. URL https://arxiv.org/abs/1704.03453.
[58] Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry. Robustness may be at odds with accuracy. In International Conference on Learning Representations (ICLR), 2019. URL https://arxiv.org/abs/1805.12152.
[59] Koji Tsuda, Gunnar Rätsch, and Manfred K. Warmuth. Matrix exponentiated gradient updates for on-line learning and Bregman projection. Journal of Machine Learning Research, 6:995–1018, 2005. URL https://jmlr.org/papers/v6/tsuda05a.html.
[60] David Wajc. Rounding dynamic matchings against an adaptive adversary. In Proceedings of the 52nd Annual ACM Symposium on Theory of Computing (STOC), pages 194–207, 2020. doi:10.1145/3357713.3384258. URL https://doi.org/10.1145/3357713.3384258.
[61] Manfred K. Warmuth and Dima Kuzmin. Randomized online PCA algorithms with regret bounds that are logarithmic in the dimension. Journal of Machine Learning Research, 9:2287–2320, 2008. URL https://jmlr.org/papers/v9/warmuth08a.html.
[62] David P. Woodruff and Samson Zhou. Tight bounds for adversarially robust streams and sliding windows via difference estimators. In Proceedings of the 62nd IEEE Symposium on Foundations of Computer Science (FOCS), pages 1183–1196, 2021. URL https://arxiv.org/abs/2011.07471.
A Related work and discussion
A.1 Related work
Adaptive inputs and robustness. Classical guarantees for randomized algorithms and structures often assume that inputs are independent of the algorithm's random choices. This assumption can fail when outputs influence subsequent inputs, whether through an adversarial attack or ordinary use within a larger computation. Repeated interaction may reveal enough about the hidden randomness to identify inputs on which the algorithm fails.
This issue has been studied across statistics and adaptive data analysis [9, 27, 30, 39, 46, 50, 55], randomized online and dynamic algorithms [3, 10, 11, 22, 28, 31, 37, 60], sketching and streaming [7, 12, 13, 40, 41, 51, 62], and machine learning [6, 32, 53, 54, 56]. Sketching provides a clean setting for quantifying how much interaction is needed to compromise a fixed randomized representation.
Defenses and the quadratic guarantee. A simple defense uses independent copies of a randomized structure, answering each query with a fresh copy. This supports a number of adaptive queries roughly linear in the number of copies. Methods developed in adaptive data analysis improve this guarantee to quadratic by limiting what the answers reveal about the reused randomness [9, 14, 27, 41].
For JL or AMS sketches of total dimension , these methods support adaptive queries. Each independent copy uses measurements, leaving copies for quadratic reuse. The methods use a fixed randomized response rule with fresh randomness suffices.
Quadratic vulnerabilities of sketches. Attacks on sketches differ in the structures they cover, the responders they allow, and the failures they produce [12, 18, 19, 33, 34, 40]. An attack on a standard estimator may be much cheaper than on one designed to obscure internal parameters.
A line of work establishes quadratic-query vulnerabilities for AMS and CountSketch, MinHash cardinality sketches, monotone composable and linear cardinality sketches, and general linear sketches for norm estimation [1, 2, 20, 24]. These results show that the quadratic guarantee is often a barrier, even when the responder can choose how to use the sketch. Our work establishes this vulnerability for Euclidean-norm estimation, for any linear sketch and with unrestricted responders. Section 1.3 and Table 1 give the detailed comparison with the closest prior attacks.
Beyond the quadratic barrier. Stronger guarantees are possible when the representation or the allowed interactions change. Recent algorithms for insertion–deletion and resettable streams obtain stronger robustness by maintaining and refreshing representations as the stream evolves [23, 35, 36]. They process individual stream updates and maintain state tied to the execution of a single stream. These guarantees do not provide a common fixed, composable representation for independently maintained inputs. A different approach retains a fixed cardinality sketch but limits how often each element participates in the queries: the quadratic restriction then applies to each element's participation rather than to the total number of queries [21]. These results highlight the importance of both the representation and the way it is reused.
A.2 Implications for prediction and defenses
Connections to adversarial prediction. A predictor can be accurate on independently drawn inputs while interaction with its outputs helps locate failures. This gap has motivated extensive empirical and theoretical work on adversarial examples [8, 15, 16, 26, 29, 45, 52, 57, 58]. Our attacks share a simple mechanism with black-box attacks on learned models: responses are used to weight sampled perturbations, and their average identifies directions useful to the attack [17, 44, 54]. The sketching setting lets us quantify this mechanism and the extent to which a responder can delay it.
Accuracy and disclosure. More accurate answers enable cheaper attacks, reaching queries at . Our lower bound also shows a benefit of deliberately limiting response precision. The added noise masks the matrix-dependent estimation error while preserving the required accuracy. Randomization also provides provable protection against bounded input perturbations in learned predictors [25, 48], making its role in controlling adaptive disclosure a useful direction for further study.
Learning after a fixed compression. Consider a predictor built on a compressive linear layer, as used in neural architectures [42]. Suppose the compression remains fixed while the downstream predictor is repeatedly fitted to the current input distribution. This is an idealized setting for adaptation through limited trainable components, including LoRA when applied downstream of the fixed compression [43].
For our Gaussian query family, the Bayes-optimal signal-gap predictor depends only on the scalar statistic (Proposition F.1). This motivates sufficient-statistic responders as a model of prediction fitted to each distribution. Postprocessing that uses only this prediction and fresh randomness, including noise, rounding, or clipping, preserves the restriction. The more efficient attack therefore applies to these output defenses.
The interaction can be viewed as a search for a distribution on which the fixed representation loses essential information. Accurate predictions guide this search, even as the predictor is adapted to each new distribution. If the responder remains sufficiently accurate whenever a stricter constant tolerance is feasible, the returned distribution is universally hard (Remark B.18). For the sufficient-statistic attack, reaching the eigenvalue threshold also certifies this hardness.
Responses and representations. Our results suggest two complementary approaches to robustness when a fixed compressive component forms an information bottleneck in a larger model. One is to limit what the responses reveal about that component. Fresh output noise can mask information useful to the attacker; dependence on additional sketch information may introduce “decoy” correlations that obscure the useful direction. Our results quantify a benefit of the former and leave open how much additional protection the latter can provide.
Another approach is to periodically replace the compressive component while preserving predictive accuracy on the intended input distribution. Changing which information the representation retains could make directions learned from earlier responses less useful to the attacker. This suggests studying defenses that refresh the representation itself, alongside defenses that modify the responses produced from a fixed representation.
A.3 Open problems
Accuracy and distributional information. Our attacks use queries. For signal-noise attacks with sufficiently concentrated noise energy, we show that a responder given the noise mean and covariance can withstand queries. Known defenses without distributional information guarantee queries. How much of this gap can be closed for unrestricted query distributions, or without distributional information?
More efficient general attacks. Our sufficient-statistic attack saves a logarithmic factor in queries and uses less memory and computation than our general attack. Can general attacks match its query bound and achieve comparable or better memory and computational costs? General responders can use sketch information irrelevant to signal prediction to create correlations that obscure the useful direction. Do these correlations inherently increase the cost of attack?
The gap in adaptive rounds is necessary: at constant accuracy, general responders can require rounds for attacks using polynomially many queries (Section 1.3).
Attacks on learned responders. When does fitting a signal-gap predictor to each query distribution, while keeping the compression fixed, leave it vulnerable to the more efficient attack? In particular, how does excess prediction risk control response correlations orthogonal to the signal-estimation direction, and when does this imply the approximate alignment required in Remark C.7?
Other tasks. Can attacks with similarly sharp query bounds be obtained for other tasks, such as estimating other norms? More broadly, can response correlations guide attacks that expose information lost by nonlinear representations?
B Analysis of the general attack
We prove Theorem 1.1, then establish the supporting results used in the proof.
B.1 Parameters and proof of Theorem 1.1
Parameter choice. The following parameter choices suffice for the covariance-update regime; we make no attempt to optimize the constants. Fix a small absolute constant and set . Use and in the norm reduction of Lemma B.15. Choose small enough for that lemma. Choose any prescribed set of coordinates, choose uniformly from , and put .
Set
The constant is the separation margin established in Section B.4. Choose absolute constants and so that implies
Specifically, take
The lower endpoint controls the isotropic contribution to the noise norm fluctuations; the upper endpoint controls the covariance spike.
Use the following step size, round budget, and common round length:
The same formulas are used with general in Section B.5. By (10) and (21), every covariance in the search space satisfies
Proof of Theorem 1.1. First consider . Convert the norm-task answers as in Section 3.3. The resulting answers form an informed signal-gap responder.
With probability at least 0.95 over the choice of signal coordinate, either or (Corollary B.2). In the latter case, the spike comparator of (33) satisfies
This is the margin needed for the entropy argument: Proposition B.12 shows that a round must fail validation within rounds with probability at least , conditional on this initialization. If , the sketch carries no information about the signal, so every response rule has signal-gap loss ; the validation bound (Lemma B.7(b)) gives the same rejection probability in the first round. Thus the attack returns a rejected round with probability at least .
Each round draws independent queries from its announced distribution, and the stopping rule returns a round with empirical signal-gap loss . Every covariance used by the attack is norm-admissible by (23). For the round length in (22), Corollary B.17 with and gives, with probability at least 0.99, the simultaneous bounds
for all executed rounds, where is the loss for the original norm task. Consequently, with probability at least , the returned round contains more than a fraction of norm-task errors.
Since , . Also , so . Consequently,
where the second bound uses and fixed . The total query count is
All queries are supported on S, and Section G.1 gives the stated working-memory and arithmetic bounds.
For and , Corollary F.3 with gives the guarantee for either norm task in one round of queries, using working memory and arithmetic operations. Its norm-estimation error threshold is at least . Take
to cover both regimes. Finally, for arbitrary , run at . Since , the forced relative error remains and the norm gap remains , while the resource bounds at are at most those stated at .
B.2 Gaussian geometry and initialization
B.2.1 Gaussian identities and degenerate cases
We collect the scalar-channel definitions and Gaussian identities used below, including the degenerate cases. With as in (15), define the normalized Fisher information for the scalar signal,
and the normalized signal-estimation variance
with the conventions and . The actual Fisher information in the observation is , and the actual signal-estimation variance is .
For , the statistic in (16) is the minimum-variance unbiased estimator in this Gaussian location family [49]. It satisfies
In particular, the estimation error in (17) is a linear function of u, independent of w.
To verify sufficiency directly, put , , and . Since ,
Moreover,
Gaussianity makes independent of . Since is independent of the Gaussian noise, is independent of . The identity therefore proves that is sufficient for .
B.2.2 Variational geometry
The scalar-channel variance has a useful geometric description. If , the sketch has a noiseless signal component and for every covariance. The successful initialization event in Corollary B.2 ensures , which is why we may assume this condition in the subsequent optimization. When it holds, let be the minimum-norm solution of : a noise vector that the sketch maps exactly onto the signal column.
Lemma B.1 (Variational formula). For every positive semidefinite ,
where the minimum is +∞ if the constraint set is empty. Consequently, if , then
for every , with equality in the second relation when is an eigenvector of for its largest eigenvalue.
Proof. We first prove the variational formula, then derive the two variance bounds. Put , so and . If is outside this image, then by definition and the constraint set in (29) is empty.
Otherwise, the minimum-norm solution of a feasible system has squared norm . Apply this identity first to , then to , and group the feasible vectors according to . This gives
Now assume . For the isotropic covariance, the formula immediately gives . For any nonzero covariance, every feasible satisfies
Minimizing and taking reciprocals proves the upper bound on ; it also holds when the constraint set is empty, since then . If is a top eigenvector, it is feasible and attains both inequalities, proving equality. Finally, for , both and the stated upper bound are zero.
B.2.3 Isotropic initialization on any fixed support
The random-coordinate initialization is the same as that of Ahmadian et al. [2, Lemma 4.5]. Their bound uses noise coordinates and guarantees variance with high constant probability. The leverage-score argument below removes the logarithmic factors: coordinates suffice for variance .
Corollary B.2 (Random-signal-coordinate baseline). Fix any set of coordinates, with for some . Choose uniformly from and put . Then with probability at least over , either or
In particular, for this holds with probability at least 0.95 and lower bound .
If , the sketch is independent of the signal, for every , and every query law is already universally hard for the signal-gap task. In the covariance-update regime, admissibility transfers this signal-gap hardness to the norm tasks (Lemma B.15). In the nonzero case, the successful event also ensures . This is a guarantee over the random choice of ; the attacker need not test it.
The proof uses the following identity, a standard consequence of the Sherman–Morrison formula [38, Eq. (2)] applied on . We include a direct projector proof that also covers rank-deficient .
Lemma B.3 (Leverage-score representation identity). Let have columns , and let
Let denote the matrix obtained from C by deleting its jth column. If , then
Consequently, if , all but an fraction of the columns satisfy and
Proof. Let be the orthogonal projector onto the row space of , so . For , the vector lies in and satisfies . Thus
Deleting the zero coordinate gives a feasible representation of . To see that it has minimum norm, take any other with and . Then lies in and has . Since is the projection of onto this kernel,
It follows that , proving the identity.
Finally, . Hence all but an fraction of the columns have , and for these columns .
Proof of Corollary B.2. Apply Lemma B.3 to the restricted matrix with . With probability at least , and
where the last inequality uses . If , the first alternative holds. Otherwise Lemma B.1 gives
B.2.4 The hard comparator
On the nonzero successful initialization event, . Since every covariance in the search space is positive definite, throughout. Recall that is the minimum-norm solution of , and set and , where
By Lemma B.1, this spike maximizes the signal-estimation variance over , with
The comparator is used only in the analysis; the attacker need not compute it. The initialization bound gives when . The case will be handled separately.
The eigenvalue-cap benchmark. The same benchmark holds without an eigenvalue floor, as needed for the sufficient-statistic attack. For ,
Indeed, Lemma B.1 gives the upper bound, attained by \lambda v_*}v_*\top + (1 - \lambda)(I_m - v_*}v_*\top)/(m - 1). The general attack uses this unknown spike as a comparator in its entropy analysis. The sufficient-statistic attack instead preserves a constant fraction of this optimum at its attained top eigenvalue. Norm admissibility additionally requires a bound on , which each attack establishes for the covariances it uses. Neither attack needs to compute .
Remark B.4 (Offline optimum under norm admissibility). For the same fixed and ,
Indeed, for ; equality and the variance bound in Lemma B.1 are attained by a spike along with equal eigenvalues on its orthogonal complement.
B.3 Correlation and validation in an adaptive round
B.3.1 Correlation and hardness from the gain lemma
We record the two consequences of Lemma 4.1 used in the attack analyses: a response-noise correlation and a quantitative hardness threshold. The signal density and the proof of the gain lemma are given in Section E.
To express Lemma 4.1 in the noise coordinates, define the response-weighted mean
For , define the gain
The identity follows from (28). Since the estimation error has mean zero, the gain is its covariance with the response.
Dividing the scalar gain bound of Lemma 4.1 by gives its vector formulation:
The bound holds throughout the positive finite variance range.
The gain lemma also gives a quantitative hardness threshold at the loss level used in the attack analysis.
Corollary B.5 (Accuracy bounds the variance). Under the hypotheses of Lemma 4.1, any response rule with signal-gap loss at most satisfies
Consequently, if , every signal-gap response rule has loss greater than .
Proof. Since , Cauchy–Schwarz and (17) bound the left side of (18) by . Combining the bounds gives .
B.3.2 Conditional losses and information sets
The transcript in Definition 2.1 records the complete execution of both parties through completed query . It is available to the responder, but its private part is not available to the attacker. We distinguish two information sets just before the fresh draw of query :
-
is generated by the attacker's disclosed execution and the returned answers, including the current announcement of and all computation and randomness disclosed in step (i).
-
additionally contains the full transcript and the responder's private randomness selecting its current map in step (ii).
Thus , the map is -measurable, and freshness of the query randomness gives
After the answer and disclosure, both histories contain the generated input, the answer, and the attacker's sampling variables. The current distribution announcement is additional to ; the latter always ends at completed query .
The realized loss is observed by the attacker. Its conditional expectation
is the predictable loss used in the analysis. Validation relates the average realized loss in a round to the average predictable loss.
Conditioning on instead averages over the responder's private history as well as its current randomization. The sufficient-statistic definition uses precisely this conditional mean; enlarging its conditioning information to the full transcript would be a stronger restriction on the responder. Within a round, we use j in place of i with the same conventions.
In the interaction, the realized loss is . Conditionally on , both the rule and the covariance are fixed, so for query in round .
B.3.3 Drift and validation
Fix one round with a positive definite trace-one covariance , and drop the index . For the drift bound assume ; the validation lemma does not require this assumption. Neither lemma requires an eigenvalue floor or cap. Both lemmas hold for either information set from Section B.3.2. We first write the proofs with and explain the use of below. For use the enlarged information set of Section B.3.2, including the responder's private randomness that selects the current response rule. Thus is -measurable. Put
so that is the predictable loss. The signed noise sum of the round splits into a predictable drift and a martingale,
The attacker observes and the loss sum , but neither nor the . The signal-estimation direction in whitened coordinates is
a unit vector, since . Because , the first moment (36) is , so for every response rule
Lemma B.6 (Drift of an accurate round). Each lies in and has , and
If , then
These conclusions hold for every realization of the predictable rules; the drift bound is asserted on the event that their average loss is at most .
Proof. The query depends on only through , and Gaussian conditioning gives ; hence so is . For every unit vector , Cauchy–Schwarz gives , proving the norm bound. Also,
For the drift, fix a realization of the rules and let . Evaluate these functions on a fresh generic query from . Loss and first moment commute with averaging, so and . The vector form (38) of Lemma 4.1 gives , and (42) turns this into (44).
Lemma B.7 (Empirical validation). Call the round accepted if and rejected otherwise. If , then with probability at least all three of the following hold:
(a) if the round is accepted, then
(b) if every response rule has signal-gap loss at least at , then the round is rejected;
(c) if the round is rejected, then .
Proof. The differences form a martingale difference sequence bounded by one, so the Azuma–Hoeffding inequality gives with probability at least . On this event an accepted round has , which is (a); under the hypothesis of (b) every , so ; and a rejected round has , which is (c).
The same statements hold with in place of . To compute the conditional means, replace the privately selected rule by . Fresh query randomness is independent of this private rule, and both loss and first moment commute with averaging over it. The drift proof therefore applies to . The conditional covariance bound still uses the actual bounded answer, and the validation proof uses the actual realized loss. This is the version used by the sufficient-statistic attack.
B.4 Separating measurements
We now specialize to the general attack, with and . Thus . Use the drift decomposition of Section B.3, with conditioning on .
The gain lemma controls the component along , while the responder can influence the other components. The next inequality shows that these other components cannot eliminate separation from the comparator. Let be the comparator and set .
Lemma B.8 (Comparator separation). For every ,
Proof. Write for some . Since ,
Cauchy–Schwarz gives
so .
It remains to transfer separation from the conditional means to the observed sum . The covariance floor controls the sampling error in the comparator's quadratic form:
This bound lets us handle dependence between and using only martingale second moments.
Lemma B.9 (A measurement from the observed sum). Run one round of queries at . Let contain the full execution history and the announced covariance before the round's first query, and let be determined by this information with . Set
choosing any unit vector if . For every responder there is an event such that, for every ,
where one may take and .
The probability is conditional on the information before the round. We do not condition on accuracy or acceptance, which may be correlated with . The implication on the intersection in (49) is what the entropy argument uses.
Proof. All expectations and probabilities are conditional on . By (43), the martingale differences have conditional covariance at most , so
Define
Markov's inequality and give . Write . On , both and are at most . Since by Lemma B.6, we have . Whenever with , the triangle inequality gives
In particular, on this intersection, and
No independence between and is required.
To obtain separation from the comparator, we require the comparator margin
where is defined in Lemma 4.1, and and are the constants from Lemma B.9. By Corollary B.5, this margin also makes the comparator universally hard for the signal-gap task at loss level . The attacker need not reach or identify this comparator.
We now express separation in terms of the rank-one measurement used by the algorithm. For , write and, for a unit vector , set
as in (11).
Lemma B.10 (Normalized rank-one separator). For every unit q and every ,
Proof. Since and , . Hence and . Finally, .
Combining the drift, comparator separation, and sampling-error bounds gives the separating measurement needed for the entropy argument.
Lemma B.11 (Separation from an accurate round). Let the comparator satisfy the margin (50), and let be the event of Lemma B.9 for the round, with and ; (47) verifies its trace assumption. On the event , we have
On the intersection of this event with G, the measurement direction satisfies
Proof. By Lemma B.6, and , so Lemma B.8 at gives , and the margin gives the second inequality in (52). This is the hypothesis of (49) with .
Restoring the round index t, every measurement satisfies
On the validation event of Lemma B.7, an accepted round also satisfies
whenever its sampling event occurs. Conditional on the information before the round, has probability at least 1/2. These are the properties used in the entropy argument below.
B.5 Entropy progress and termination
We prove the rejection guarantee used in Section B.1. For any failure probability , use the round parameters (22).
Proposition B.12 (Rejection within the round budget). Suppose , , and the spike comparator of (33) satisfies . Then Algorithm 1, with the parameters (22), rejects a round within rounds with probability at least against every informed signal-gap responder.
We now show how these measurements control the nonnegative potential .
Lemma B.13 (One multiplicative-weights step). Let and lie in , let be a unit vector, and let be the update along with step , with unprojected iterate . Then
For the potential therefore increases by less than after any measurement, and decreases by more than after a measurement with .
Proof. Since , the Pythagorean inequality for the relative-entropy projection [61, Section 5] gives
The first inequality follows directly from the first-order optimality condition for (14). Writing and using ,
Golden-Thompson and , which gives , imply
Hence , and Lemma B.10 gives . For , and .
The starting point of the potential is small. For the spike comparator ,
since when .
Proof of Proposition B.12. Write and . Let be the event that Lemma B.7 holds in every executed round. Using and taking a union bound gives .
For each round , let be the event supplied by Lemma B.9, with and comparator , whose trace is at most 2m by (47). The event is defined from the round's sampling error, whether or not validation accepts the round. After the attack stops, set all later to the whole sample space. Each indicator then has conditional mean at least given the information before its round. The multiplicative Chernoff bound for adapted indicators gives
where the last inequality uses . Denote the complementary event by . This bound is unconditional on validation; we intersect the two good events only after bounding their probabilities.
Suppose all rounds are accepted on . Their average predictable losses are below . By Lemma B.11, whenever occurs. There are at least such rounds. Summing (54), and using nonnegativity of the Rayleigh quotient in the other rounds, gives
Here (55) bounds the initial potential, , and . This contradiction proves that a round is rejected with probability at least .
B.6 From signal-gap loss to norm errors
We transfer signal-gap guarantees to norm estimation and binary norm-gap queries by controlling the fluctuations of the noise norm. By (6), the squared query norm differs from by . Since ,
The admissibility bound of Definition B.14 controls these fluctuations relative to the signal gap.
Definition B.14 (Norm-admissible covariance). For , a positive semidefinite trace-one covariance is -admissible if .
The following reduction controls both expected losses and the errors observed in an interaction. For fixed c and concentration-failure probability , it requires an admissibility bound that is a sufficiently small multiple of .
Lemma B.15 (Norm-to-gap reduction). There is a constant and, for every , a constant such that the following holds. Suppose and is -admissible with
For a query and a norm estimate , use the thresholded response b from (8) and the events
Then the per-query signal-gap loss (5) satisfies, pointwise,
Consequently, for and any norm estimator , let denote its thresholded response rule. Then
and if every signal-gap response rule has loss at least at , then every norm estimator has relative error larger than with probability at least .
Corollary B.16 (Binary norm-gap responses). Under the hypotheses of Lemma B.15, use the fixed thresholds (7). These thresholds are independent of and satisfy for fixed c. For every binary answer , the signal-gap loss satisfies
where is the noise-concentration event in Lemma B.15 and is defined using these thresholds. Consequently, signal-gap loss at least for every response rule implies norm-gap error probability at least for every binary responder.
Corollary B.17 (Empirical transfer to norm errors). Fix , either norm task, and . Use the losses and response conversion of Lemma B.15 and Corollary B.16. Consider at most N adaptive rounds, with queries drawn from as in Round. Each covariance and round length are fixed before that round's queries are drawn. Suppose
in every round. Set in Lemma B.15. With probability at least , simultaneously in every executed round whose covariance satisfies (56),
where is the loss for the chosen norm task and is the realized signal-gap loss sum. In particular, a rejected admissible round contains more than a fraction of norm-task errors.
Proof. Let indicate failure of the noise-concentration event in Lemma B.15, and let indicate that the round's covariance satisfies (56). The covariance is fixed before the round, so is known before each query. Even when admissibility holds only on a later success event, the variables always have conditional mean at most . Conditional Hoeffding gives
A union bound over the executed rounds bounds the failure probability by . In each admissible round , so summing (57) or (59) proves (60). Rejection means , giving the final claim.
The pointwise reductions also transfer universal hardness by taking expectations. The empirical corollary applies to both attacks: the general attack keeps every covariance admissible, whereas the sufficient-statistic attack establishes admissibility on its success event. No conditioning on that event is needed in the corollary.
Proofs
Proof of Lemma B.15. Since , Chebyshev's inequality gives
We may therefore take
The admissibility bound (56) then ensures . Since , Definition 3.1 gives . The nominal squared norms of the two labeled regimes are separated by , so on we have whenever and whenever .
Choose so that and . On , the first condition gives . On , we have , using . The second condition therefore bounds the squared-norm error by on . Hence when and when , so the thresholded response is correct on both labeled regimes and its per-query loss (5) vanishes. Since the loss never exceeds one, this proves (57). Taking expectations gives (58), and rearranging yields the final claim.
Proof of Corollary B.16. On , implies , whereas implies . Thus a correct norm-gap answer is also a correct signal-gap answer on . The signal-gap loss is zero between the signal thresholds and at most one elsewhere, proving (59). Taking expectations proves the hardness claim. Finally, , since and are bounded above and away from zero for fixed and .
Remark B.18 (Accuracy when feasible yields a hard distribution). Consider either covariance-update attack with , and fix either norm task. Let be the infimum expected loss on over measurable response rules using the sketch, even knowing and . Let be the responder's average conditional error probability in round :
where conditions on for the general attack and for the sufficient-statistic attack.
Suppose the responder maintains error at most whenever error below is achievable:
Then, on the success event of the corresponding attack analysis, the returned distribution satisfies and is therefore universally hard for the chosen norm task.
Indeed, on this event a rejected round has average conditional signal-gap loss greater than . Norm admissibility and Lemma B.15 and Corollary B.16 bound this loss by . Thus , and (62) implies the claimed hardness.
For , the isotropic construction of Corollary F.3 already yields a universally hard distribution on its success event, without any additional accuracy condition on the responder.
C Analysis of the sufficient-statistic attack
We begin with the parameter choices and proof of Theorem 1.2. The remaining subsections establish alignment and direction estimation, the covariance invariants, and termination with the stated query bound. We reuse the geometry, round lemmas, and norm reduction from Section B; the new ingredient is alignment of the mean signed noise with the signal-estimation direction. The last subsection treats approximate alignment.
C.1 Parameters and proof of Theorem 1.2
Parameter choice. Use the constants and from Section B.1. Choose any prescribed set of coordinates, choose uniformly from , and put and . For , set
The threshold is fixed throughout the attack. The constants chosen for the general attack also suffice here: since , the corresponding gives
Also , while . Thus no further change to or is needed. With and failure probability , use the following round schedule:
(65)
All round lengths are fixed in advance. The angular-error targets sum to at most 1/4 over the executed rounds, while the variance lower bounds grow geometrically. The variance lower bound grows faster than the angular-error target decreases, so their product increases geometrically. Thus the direction-estimation term in decreases geometrically; the validation term is fixed.
The rejection guarantee in Proposition C.6 requires the hardness margin
The choices in (63) make the left side exactly 2.
Proof of Theorem 1.2. First consider .
Initialization and rejection. By Corollary B.2, with probability at least 0.95 over , either or . If , every signal-gap rule has loss , and validation rejects the first round with probability at least . Otherwise, apply Proposition C.6 to the sufficient-statistic answers (after thresholding for norm estimation). The margin (66) holds, so the attack returns a round with empirical signal-gap loss greater than with probability at least , conditional on successful initialization. On the same event every covariance satisfies and is therefore admissible by (64). In the zero-signal case the isotropic covariance satisfies the same bound. The joint rejection and admissibility event has probability at least .
Observed errors and final-distribution hardness. The round schedule meets Corollary B.17 with and . This corollary applies even though admissibility was established only on the attack's success event. Their intersection has probability at least , and the returned round contains more than a fraction of norm-task errors. If the eigenvalue threshold is reached, Proposition C.6 also gives signal-gap loss greater than for every rule on the final distribution. The expected-loss reductions in Lemma B.15 and Corollary B.16 then give norm-task error probability at least for every responder.
Resources and remaining accuracy regimes. We have , so . In (77), the direction-estimation term is and the validation term is , with fixed constants understood. Together with (78), this gives
Every round has queries. Indeed, for , , so and the direction term in is . Also . All queries are supported on .
For and , Corollary F.3 gives the guarantee against every responder in one round of queries; its distribution is already universally hard on the success event. Taking the smaller error-fraction constant from the two regimes gives the stated guarantee. For , run at , as in the proof of Theorem 1.1; this preserves all guarantees after adjusting absolute constants.
C.2 Alignment and direction estimation
For the supporting analysis, fix with , so every positive definite covariance has positive finite signal-estimation variance. Fix one round, omit its index , and write . Use the shared-information version of Section B.3:
where and . Also write for the predictable loss; these per-query losses are distinct from the angular targets indexed by round.
Define the unit vector
which is from Section B.3 for this whitening.
Proposition C.1 (Exact alignment). For a sufficient-statistic responder, each conditional first moment is collinear with :
for an -measurable scalar . On the event ,
Proof. Decompose the standard Gaussian as , where and the centered vector is independent of . The scalar channel is
Thus for every bounded measurable ,
Apply this identity to the averaged rule, conditionally on . The lower bound on is the drift bound of Lemma B.6.
Lemma C.2 (Direction estimation in an adaptive round). For every responder, every integer , and every , with probability at least ,
On this event, if for a unit vector with and
then and . Both probability and implication are valid conditional on the information before the round.
Proof. Fix a unit vector . Given , let and let be an independent copy of its conditional law. Since , we have , with . For every real , symmetrization and convexity of cosh give
All expectations in this display are conditional. Iterating the bound over the round gives for every . Take a 1/2-net of the unit sphere of size at most and use over the net. With , the union bound gives a failure probability at most , proving (71) without a lower bound on .
Under (72), . The component of along is at least , and its perpendicular component has norm at most . Hence
☐
C.3 Variance growth and covariance invariants
We first bound the effect of one update using the variational formula from Lemma B.1, then combine the bounds along the covariance sequence.
Lemma C.3 (One covariance update). Let have trace one, let be a unit vector, and put ,
Then
Proof. Write and let be the minimizer in (29). Indeed, and . The update and its inverse are
Since , evaluating the new variational problem at the old minimizer gives
Taking reciprocals proves the variance bound. Finally, , proving the eigenvalue bound.
Lemma C.4 (Progress with angular error). Suppose , with . For ,
(74)
If and , then .
Proof. Since and , Lemma C.3 gives the variance bound. Dividing its variance bound by its eigenvalue bound gives
Finally, .
Lemma C.5 (Covariance invariants). Consider a sequence of updates starting from , with squared angular errors at most , where
Suppose before each update. Every iterate, including the one produced by the last update, satisfies
Consequently, .
Proof. By Lemma C.4 and ,
Define and . The update gives with , and
If there are no updates, the conclusion is immediate. Otherwise let be their number. Every update multiplies the variance by at least , and Lemma B.1 bounds . For each , the variance growth and the lower bound on therefore give
Summing this geometric bound, for every we obtain
Finally, put , so . Every update starts below , so Lemma C.3 gives , including at the final iterate. Hence
☐
C.4 Termination and query complexity
We combine direction estimation with the covariance invariants to prove the signal-gap guarantee used in Section C.1. The following statement also records the generic dependence on m, the initial variance lower bound , and the failure probability .
Proposition C.6 (Rejection and threshold hardness). Fix with and , and let and . Suppose and . For , use the round schedule (65). Under the margin (66), Algorithm 2 returns a rejected round with probability at least against every sufficient-statistic responder. The round has empirical signal-gap loss greater than .
On the same event, every covariance produced satisfies
If the final round is reached, its covariance satisfies
(76)
Consequently, that final distribution is universally hard: every signal-gap rule has loss greater than on it.
Positive definiteness, trace one, and the eigenvalue bound hold on every run. The sharper admissibility bound (75) requires successful direction estimation and is asserted on the theorem's high-probability event. By Lemma B.1, (76) attains at least three quarters of the largest variance possible with top eigenvalue at most .
There are at most rounds and one final round. The total query count is
The implementation uses
words of working memory,
arithmetic operations.
(78)
Proof of Proposition C.6. For each executed round, use the validation event of Lemma B.7 and the concentration event of Lemma C.2 with . Their conditional failure probabilities are at most
and , respectively. Include the final validation event if that round is reached. A union bound gives an event of probability at least
on which all these conclusions hold. No conditioning on acceptance is used to establish this probability bound.
Accepted rounds. Work on . If round is accepted, its average predictable loss is below . By induction over accepted rounds and Proposition C.1 and Lemma C.2,
Indeed, the variance lower bound holds initially and is preserved by Lemma C.4. Given that bound, exact alignment and the round length yield the angular estimate. The gain lemma is valid throughout, so no separate variance regime is needed.
Termination and hardness. If all rounds were accepted without reaching the threshold, the variance growth would give . This contradicts the stopping condition and Lemma B.1:
Thus a round is rejected or an update reaches the threshold. In the latter case, Lemma C.5 gives (76), and the margin (66) implies . By Corollary B.5, every response rule has loss greater than there, so the final validation round is rejected. The same covariance-invariants lemma proves (75) in either case, since only accepted rounds produce updates and every update starts below the threshold.
Queries. The direction-estimation terms sum geometrically, because
Also and . Summing the direction terms, validation terms, and ceilings, and including the final round, proves (77). The implementation bounds are proved in Section G.2.
C.5 Approximate alignment
Remark C.7 (Allowing correlation with orthogonal noise). Exact dependence on the sufficient statistic is not necessary: the attack also tolerates a small component of the mean signed noise orthogonal to the signal-estimation direction. For round t, write
Thus measures the useful correlation and the perpendicular correlation. For sufficient-statistic responders, .
More generally, suppose that every round with average predictable signal-gap loss at most satisfies
The gain lemma gives . Here is the target squared angular error of the estimated direction, not a tolerance for response errors.
Replace 256 by 1024 in the direction-estimation term of (65). Then, on the concentration event, the sampling error also has norm at most . Consequently,
The same normalization argument as in Lemma C.2 gives squared angular error at most . The remaining analysis is unchanged.
A uniform allowance for perpendicular correlation. The geometric choice of is convenient but not essential. The covariance analysis only requires and . This permits a schedule that accommodates the same relative perpendicular correlation in every accurate round. Specifically, suppose
Choose
Then the required drift bound holds, each , and
Moreover, , while the variance lower bound grows as . Hence the direction-estimation costs still have a bounded geometric-weighted sum, preserving the same asymptotic query bound.
The extension therefore covers responders that use other sketch components, provided their perpendicular correlations satisfy the stated bound. Applying it to a learned predictor requires establishing this correlation bound; small prediction loss alone does not supply it.
D Optimality of the covariance attacks
We use a Gaussian Johnson–Lindenstrauss matrix, sampled once and kept fixed throughout the interaction, together with a constructed responder that uses no interaction history and less distributional information than our informed model allows. We show that they withstand adaptive queries from a broad class of attacks. Specifically, for any fixed target error fraction and constant , with high constant probability, no consecutive interval of at least queries has error fraction at least .
The attacks use signal–noise distributions whose noise energy is sufficiently concentrated. The signal direction and joint distribution may change after every answer, and the noise may depend on the signal. The responder knows the matrix and task parameters and receives each input through its sketch. Its only additional per-query information is the signal direction and the first two moments of the noise. The constants in the query guarantee and the noise-concentration requirement may depend on and .
The proof uses two facts. First, for any fixed query law, the estimation-error variance of the linear statistic used by our responder is except with probability exponentially small in k over the
Gaussian matrix. Second, while this variance remains , the responder can answer accurately while masking the matrix-dependent estimation error with output noise of scale . Each such query contributes only to a KL divergence bound relative to an ideal interaction that reveals nothing about A. Comparing the interactions up to the first selection of a large-variance law shows that reaching such a law with constant probability requires queries. Concentration then converts the responder's conditional accuracy into the observed-error guarantee. We first state the model and guarantees, then give the proof.
D.1 Attack and responder models
Definition D.1 (Announced signal-noise attacks). Before query , the attacker announces a unit vector and a joint law of satisfying
It then takes a fresh draw from this law and queries . The announcement may depend on its complete previous execution and private randomness. Conditional on that execution and the announcement, the fresh draw is independent of the hidden matrix . The attacker may retain all sampling randomness. It observes the answers, but does not see or the sketches .
The attacker may change the law after every query and there is no restriction on the number of adaptive rounds. For norm tasks, we additionally require
for a sufficiently small constant . This is a promise on each announced law, not additional information required by the responder. For centered Gaussian noise, , so a sufficiently small bound on implies (82). For noncentered Gaussian noise, the variance is . For general noise, this variance also depends on fourth moments and need not be controlled by the mean and covariance alone.
This model allows non-Gaussian noise with nonzero mean and signal dependence. Our attacks use the special case and , where is independent of the signal. Thus and : the noise multiplier is absorbed into in this section.
The defending responder. Draw with independent entries and keep it fixed. For the current announcement, suppress the query index and put
Here denotes the Moore–Penrose inverse. When , it is the variance of the estimation error below; for our Gaussian query family it equals .
Given the sketch , form . If , the responder computes
If , let be the orthogonal projector onto and use . This recovers exactly: almost surely, since a centered random vector lies in the image of its covariance almost surely. When x = 0, set T = 0. For adaptive signal directions, we include this exceptional case in the bad event controlled by the proof.
Conditional on A, the past, and any announcement with ,
Indeed, when , and its second moment is ; when , . No independence between and is needed.
The responder adds fresh independent output noise,
and answers norm queries using
For norm estimation it returns ; for the binary norm gap it returns +1 exactly when . The responder uses only and the task parameters. It needs neither the signal law nor the full noise law. For the lower bound, we give the attacker the more informative observation itself; the task answer is determined by and the announcement.
For Gaussian noise independent of the signal, T is the scalar sufficient statistic used in our attacks. In particular, this responder belongs to the sufficient-statistic class on that query family. We do not require statistical sufficiency for other noise laws.
D.2 Lower-bound guarantees
Fix an error fraction and a minimum interval length , where is constant. We consider either relative norm estimation with tolerance , for a fixed , or a binary norm gap with fixed thresholds satisfying . Taking recovers our norm-estimation loss; the stated norm-gap width includes our thresholds. Write for the corresponding task-error indicator. An observed-error success means returning a consecutive interval of already queried inputs with and . In particular, this includes returning a round with a constant fraction of errors.
Theorem D.2 (Lower bound for announced signal-noise attacks). Fix the norm task, , and as above. There are positive constants and such that the following holds for every , , and
Let A have independent entries. Use the responder (85)–(86) with
Against every attack satisfying Definition D.1 and (82), with probability at least 0.9 we have for all . With probability at least 0.8, every consecutive interval with satisfies
The probabilities include the matrix, attacker, and responder randomness.
The empirical guarantee controls the fraction of errors in every long enough interval. It does not assert that all answers are correct. It holds even when the attacker chooses the returned interval after seeing all the answers, and does not require the queries within that interval to share a distribution.
Corollary D.3 (Query complexity). In the setting of Theorem D.2, an attack achieving observed-error success with probability at least 0.9 for every fixed matrix and every informed responder requires queries in the worst case. The same lower bound holds for its worst-case expected query count.
Proof. Average the attack’s success guarantee over Gaussian A. The theorem bounds the probability of success using at most queries by 0.2. Thus, if is the total query count, and . Also , since a successful execution returns at least queries. The average over lower bounds the worst case over fixed matrices. An attack that terminates early may be padded with arbitrary admissible queries for the purpose of applying the theorem.
Comparison with our attacks. For our centered Gaussian query laws, . The general attack has , and the sufficient-statistic attack has on its success event. Since and , both meet (82) after decreasing the fixed upper accuracy cutoff and increasing the fixed lower bound on , if necessary. The sufficient-statistic attack can enforce its covariance bound on every execution by aborting before a query that would violate it, without changing its success guarantee. These constant adjustments do not change either query bound. Consequently, the sufficient-statistic attack is optimal within this family, and the general attack is optimal up to its logarithmic factor. The lower bound is witnessed by a distribution over matrices; it does not claim hardness for every fixed matrix.
D.3 Proof ingredients
Lemma D.4 (A fixed law rarely has large variance). For any fixed unit vector s and covariance with and , and every ,
In particular, .
Proof. Gaussian rotational invariance and imply that is independent of . If is singular, then almost surely, so . For and , the Gaussian quadratic-form identity gives
Moreover, . To see this, the rows of are independent Gaussian vectors with covariance . Gram–Schmidt expresses their Gram determinant as the product of their squared distances from the preceding row spans. Each distance has conditional expectation at most , so successive conditioning gives the bound. Thus . Averaging the preceding display and taking proves (88).
The next lemma converts this small prior probability into a bound for adaptively selected laws. It conditions on the attacker's complete fresh draw, not just its query. All logarithms below are natural.
Lemma D.5 (Information needed to reach a rare query law). For each announcement D, let be an event with probability at most q under the matrix prior, for every fixed D. At query i, let denote the complete fresh draw and suppose the observation is
with independent fresh . The functions below may depend on the announcement. Suppose an ideal response does not otherwise depend on A, and that whenever the current announcement is not bad,
Let be the first query whose announcement is bad. For every horizon N with ,
Proof. Let be the joint law of and the attacker's execution when the responses are real before and ideal, , from query onward. Let use ideal responses throughout. These modified interactions are used only in the proof. The real interaction and agree through the announcement at the first bad query, and hence have the same crossing probability. Under , the attacker's execution is independent of . A union bound therefore gives .
The two interactions use the same matrix prior, the same adaptive announcement rule, and the same fresh-draw kernels. Conditional on A, the past, and , their observation kernels are Gaussians with common variance . The KL chain rule gives
The event is determined before the current fresh draw, so (89) applies. For , data processing for the indicator of this event gives
Combining the bounds proves the claim. If the event has zero Q-probability, it also has zero P-probability by absolute continuity.
D.4 Proof of the lower bound
Proof of Theorem D.2. Finding a law with large variance takes many queries. Call an announcement bad when , including . By Lemma D.4, its probability is at most for every fixed announcement. Apply Lemma D.5 with
The mean-square bound is (84). If , then
With , , and sufficiently small relative to , this is at most 0.1 for all sufficiently large . The logarithmic restriction holds because .
Below this variance, the responder is accurate. Put . Conditional on , the past, and any announcement with ,
Choose constants depending only on the norm task, with . Taking sufficiently large ensures
by (92) and . On the complementary event, and give . Also, (82) gives
after choosing sufficiently small. The probabilities in these displays have the same conditioning as (92). Since , outside the two exceptional events,
For the norm gap take and . The squared-norm error is at most , less than the margin between the decision threshold and either endpoint. For relative norm estimation, take and . Then . Since ,
Thus the conditional task-error probability is at most whenever .
No long interval has many errors. Define . Its conditional mean given and the past is at most , averaging also over the next announcement if it is randomized. For every ,
Iterating this bound and optimizing over gives, for every fixed consecutive interval ,
where . A union bound over at most intervals of length at least bounds their total failure probability by
for sufficiently large . On , throughout these queries. Combining this estimate with (91) proves (87).
E Proof of the gain lemma
We restate the lemma for reference. The proof uses the scalar Gaussian channel and integration by parts against the signal density.
Lemma 4.1 (General-covariance gain lemma). Let , , , and . For the query law with signal law , let satisfy and . Every measurable response rule with satisfies
(18)
Signal density. Recall from Definition 3.1, and put
Convolving the two uniform densities in Definition 3.1 gives

Figure 2: The signal density and the two labeled regimes. Each ramp has width ; the plateau is the unlabeled gap of width . The gap is widened schematically for legibility; horizontal widths are not to scale.
Proof. Fix and as in the statement, and write .
Reduction to a scalar channel. By (17),
with X independent of w. Sufficiency of gives a measurable function
such that . Consequently, replacing the response by preserves both its signal-gap loss and its gain:
This replacement is only for the proof; the responder may use the full sketch.
An exact formula for the gain. Let be the density, and define the mean response at signal value by
Gaussian convolution makes continuously differentiable, even when is only measurable. Differentiating the density gives
Thus . The trapezoidal density is continuous, vanishes at , and has derivative on , on , and zero elsewhere, apart from its breakpoints. Integration by parts therefore yields the exact identity
This is the role of the ramps: the gain depends on the difference between the average responses in the two labeled regimes. Continuity of eliminates boundary terms at the internal breakpoints.
Using the loss bound. Put and , both in . The loss condition is
On and , the density is at least . The two omitted intervals have total length . Using (99) on the former intervals and on the latter gives
Since each ramp has length , it follows that
The last inequality uses , which gives , and . Substituting into (98) and using , we obtain
where and .
F Universal hardness and the isotropic endpoint
We first identify the Bayes-optimal signal-gap response, justifying the sufficient-statistic responder class. Its risk gives a direct hardness bound whenever the scalar-channel standard deviation is a fixed positive multiple of the signal gap. For the high-accuracy isotropic round, a direct norm-hardness argument complements this signal bound, avoiding any change of signal width or norm thresholds. The covariance-update analyses use the separate hardness threshold at loss level from Corollary B.5.
F.1 Optimal signal-gap prediction
Proposition F.1 (The Bayes signal-gap response). Let and . For the signal law , the signal-gap risk has a unique minimizing response rule, up to null sets:
The response at equality is immaterial. In particular, every exactly loss-optimal signal-gap responder satisfies Definition 5.1 whenever the scalar channel has positive finite variance.
Proof. Write and . By sufficiency, the posterior law of depends on the sketch only through . Write for the signal density (94), with support endpoints and . Let be the density and put
These are the unnormalized posterior masses of the two labeled regimes. The density is symmetric about . Pairing with shows that when : each paired high signal is closer to than its low counterpart. The inequality reverses when . The conditional loss is affine in the response, with coefficient proportional to , so its unique minimizer is the stated endpoint of . Finally, has a continuous density, so is a null event.
F.2 A direct hardness bound
Lemma F.2 (Large signal-estimation variance implies signal-gap hardness). Fix constants and , and put
where is the standard normal distribution function. If
then every measurable response rule satisfies ; hence is universally hard for the signal gap.
Proof. Let , , and be as in (94). The two labeled regimes each have probability . If , the sketch is independent of the signal, so every rule has loss . Otherwise put . By Proposition F.1, thresholding at minimizes the loss. Symmetry of the signal density about this threshold gives the minimum risk
Restrict the integral to . Here , so . Also gives
Consequently every response rule has loss at least
52
☐
F.3 The very high accuracy regime
For , the initial isotropic query distribution is already universally hard for both the signal-gap and norm tasks, with high constant probability over random-coordinate initialization. Thus the attack can return its first round, without any covariance updates.
Corollary F.3 (An isotropic round at very high accuracy). Fix constants and . For every with and , use random-coordinate initialization on any prescribed coordinates and run the first round with , , and . Keep the thresholds and response conversion of Section 3.3. For a sufficiently large round length , returning this round gives the following guarantee against every informed responder.
There is such that, with probability at least 0.9, both the empirical signal-gap loss and the fraction of norm-task errors are at least . For norm estimation, an error means relative error greater than . On the same event, the distribution is universally hard for the signal-gap task and the chosen norm task, with expected loss at least .
Proof. With probability at least 0.95 over , Corollary B.2 gives , including infinite variance. Thus for . By Lemma F.2, every response rule has signal-gap loss at least .
For the norm task, fix any . Let project onto the row space of , put , and set . Even revealing and , which together determine the sketch, leaves an independent Gaussian component in . Hence
with independent of the revealed observation. On , the event implies , whereas implies , for a constant . Indeed, use , , , and the thresholds (7). The probabilities of , , and have positive constant lower bounds uniformly in , : the central limit theorem gives positive limits, and each of the finitely many remaining probabilities is positive (take when ). Since independently of , also has constant probability. Conditional on each observation in , both norm labels therefore have positive constant probability. Every norm-gap responder consequently has expected loss at least some . Thresholding as in (8) maps every norm estimate with relative error at most to a correct gap answer, so the same bound holds for norm-estimation errors.
Set . On successful initialization, both expected-loss bounds hold conditional on every preceding history. Martingale Hoeffding and a union bound show that both empirical losses are at least , except with probability at most for a sufficiently large absolute factor in . The overall success probability is at least . No test against is needed.
G Implementation and resource bounds
We give the eigenvalue formulas and compact covariance representations used to implement the attacks. The bounds count arithmetic operations and words of working memory; they do not include a finite-precision analysis.
G.1 The general attack
The iterates have a compact representation: each update adds at most one direction to the subspace on which the covariance differs from an isotropic matrix.
Entropy projection. Diagonalize the unprojected iterate as . The search space is orthogonally invariant. For fixed eigenvalues of , the trace inequality maximizes by aligning its eigenvectors with those of in the same order. The remaining scalar minimization of gives
No upper clipping is needed: the floor and trace constraint imply . The scale can be found by sorting the breakpoints and solving the linear equation on the appropriate interval. Equal eigenvalues may be grouped with their multiplicities.
Proposition G.1 (Structure of the iterates). For every , for some , an matrix with orthonormal columns, , and a diagonal matrix .
Proof. Initially and . For the inductive step, let , of dimension at most . Both and preserve ; on they act as and zero. Hence the exponential update also preserves and is isotropic on . The projection keeps eigenvectors and maps equal eigenvalues to equal eigenvalues, by (102). The projected iterate therefore has the asserted form with .
Arithmetic and working memory. Store as . Its square root is
and its inverse square root has the analogous form. Applying either matrix to a vector costs operations. An update expands the basis by at most one vector, diagonalizes a matrix of order at most , and applies (102) to its eigenvalues and the repeated eigenvalue on . Using standard dense linear-algebra costs, this takes operations. Since , the round cost is .
Writing , the resulting bounds are
The working memory includes the current query, the running sums, and the coordinate support. A returned round is identified by its query indices in the attacker's record of generated inputs and returned answers, which can be written as the interaction proceeds. This record does not include the responder's private part of Tr. If an explicit copy of all round vectors is required, its output storage is additional to the working-memory bound. No list of past covariances is stored.
For the norm-estimation parameters, these bounds become operations and working memory. At , the cost per query is , comparable to writing its nonzero coordinates. At constant , the rank bound permits a full-dimensional representation.
G.2 The sufficient-statistic attack
Proposition G.2 (Compact iterates). Every iterate has the form , with , an matrix with orthonormal columns, , and diagonal . The update and the top eigenvalue needed for the stopping test can be computed in a subspace of dimension at most .
Proof. The representation holds initially. For the inductive step, put and . The square root is isotropic on , so lies in . The rank-one update preserves and remains isotropic on , with floor and a positive semidefinite remainder. Diagonalizing the restriction to therefore gives the next compact representation and its top eigenvalue; eigenvalues outside equal the floor.
Applying the square root to a query costs operations. Updating the basis and diagonalizing the restricted covariance costs . Summing over at most updates gives operations and working memory, using . As in Section G.1, the returned round is identified by its query indices in the attacker's record; storing an additional copy of all its vectors is output storage.