When Answers Reveal the Sketch
A linear sketch stores $y=Ax$ for a hidden random matrix $A\in\mathbb R^{m\times n}$ with $m\ll n$. Classical analysis often says: fix $x$ first, draw $A$, and the estimate is accurate with high probability. An interactive service reverses part of that order: a user sees answers, chooses the next query from the transcript, and may gradually learn which inputs are unusually bad for the reused sketch.
Think of repeatedly asking a scale about carefully chosen objects. One noisy answer reveals little; many correlated answers can reveal calibration quirks. Similarly, sketch outputs may leak information about row space, collisions, signs, thresholds, or failure directions. The threat is not that linearity is wrong, but that an oblivious guarantee is applied to an adaptively selected sequence.
For a simple matrix $A=[1\ \ 1]$, vector $z=(1,-1)$ is nonzero but $Az=0$. If an estimator infers size only from $Az$, it cannot distinguish $z$ from zero. A randomly chosen fixed vector is unlikely to align with a hidden null space under a suitable theorem, but a vector selected after learning $A$ can align exactly.
An adaptive query depends on earlier answers. Transcript leakage is information about hidden sketch randomness exposed through answers or metadata. Reconstruction estimates that hidden structure. A null-space attack chooses a nonzero vector nearly annihilated by the learned map. Fresh randomness limits reuse of one vulnerable state. Robustification changes the algorithm or interface—through sketch switching, private monitoring, noise, query limits, or robust aggregation—so transcript-conditioned inputs remain controlled.
“High probability for every fixed input” is not the same as “with high probability, all adaptively chosen inputs are safe.” Reusing one hidden linear map behind a feedback loop changes the quantifiers and demands a separate robustness theorem.
| Concept | Intuition | Exact example | Non-example | Assumption | Question |
|---|---|---|---|---|---|
| Adaptive query | Next input uses prior answers | $q_t=f_t(a_1,\ldots,a_{t-1})$ | Fixed test set chosen beforehand | Feedback is observable | Who chooses after seeing what? |
| Reconstruction | Infer hidden sketch structure | Estimate row-space directions | Guess one random seed blindly | Sufficient transcript leakage | What has the transcript revealed? |
| Null space | Inputs erased by the map | $Az=0$ with $z\ne0$ | A merely small coordinate | Target dimension smaller than source | Where can estimation fail? |
| Transcript leakage | Answers reveal reusable randomness | Repeated collision outcomes | Public parameters unrelated to state | Correlated sketch reuse | What information accumulates? |
| Fresh randomness | Stop long-term reuse | Rotate to an independent sketch | Rename the same seed | Independent protected state | How is learning reset? |
| Robustification | Prove safety under interaction | Private monitor plus sketch switching | “Seeds are secret” without analysis | Explicit query/threat budget | What defense has a theorem? |
When Answers Reveal the Sketch
Use $A=[1\ \ 1]$. Evaluate $Ae_1=1$, $Ae_2=1$, and $A(e_1-e_2)=0$. The first two probes reveal that their sketch images coincide; their difference is a nonzero null vector. Expected result: a norm estimator based only on $\lVert Ax\rVert$ reports zero for a vector of norm $\sqrt2$. Reflection: why does this not contradict a theorem whose input must be fixed before random $A$ is drawn?
Adaptive Queries and Hidden Subspaces
For a dimension-reducing matrix with rank at most $m$, the null space has dimension at least $n-m$. If a transcript exposes enough independent information about the row space, an analyst can construct $z$ orthogonal to every row and hence $Az=0$. Approximate reconstruction gives a near-null vector with $\lVert Az\rVert$ much smaller than $\lVert z\rVert$.
The key quantifiers are: \[ \text{oblivious: }\forall x\text{ fixed independently},\quad \Pr_A[\mathcal A_A(x)\text{ succeeds}]\ge1-\delta, \] versus the much stronger adaptive statement in which $x_t$ is a function of previous outputs under the same $A$. A union bound works for a fixed finite query set independent of $A$; it does not automatically apply to transcript-conditioned queries.
A generic attack argument has three obligations: show answers contain a measurable signal about hidden sketch geometry; show the adaptive strategy accumulates enough signal despite estimator noise; and show the constructed final input lies in the promised domain while causing a certified error. Boundary cases include output rounding that blocks reconstruction, a tiny query budget, refreshed independent sketches, or an estimator whose robustness theorem already covers adaptive inputs.
flowchart TD
A[Reuse hidden linear map A] --> B[Issue permitted probe]
B --> C[Observe answer transcript]
C --> D[Update hypothesis about row space]
D --> E{Enough leakage?}
E -->|no| B
E -->|yes| F[Construct near-null vector z]
F --> G[Check z satisfies input promise]
G --> H[Compare true quantity with sketch estimate]
H --> I[Witness adaptive failure]
A --> J{Fresh state or robust theorem?}
J -->|yes| K[Attack argument may not apply]
J -->|no| B
classDef navy fill:#17365D,color:#fff,stroke:#17365D;
classDef teal fill:#147D84,color:#fff,stroke:#0D565B;
classDef purple fill:#6C3BAA,color:#fff,stroke:#472675;
classDef crimson fill:#C6284D,color:#fff,stroke:#861B35;
class A,B,C,D navy;
class E,F,G purple;
class H,I crimson;
class J,K teal;
When the target dimension is smaller than the source dimension, every fixed linear map has a nontrivial null space; the adaptive danger is learning enough about that hidden subspace through reused answers to select a bad input afterward. An attack theorem must quantify leakage, query count, noise, valid inputs, and error—not merely point to the existence of a null space.
Steering Estimates Toward Failure
The cleanest laboratory exposes $A$ directly and computes its smallest right-singular vector. This is not a black-box reconstruction attack; it isolates the final geometric step safely and makes the quantifier failure measurable. For an underdetermined full-row-rank map, SVD returns a unit vector $z$ in the null space. Then $\lVert z\rVert_2=1$ but $\lVert Az\rVert_2$ is numerical zero.
Steering Estimates Toward Failure
Let $A=\begin{bmatrix}1&0&1\\0&1&1\end{bmatrix}$. Solve $Az=0$: equations give $z_1=-z_3$ and $z_2=-z_3$, so choose $z=(-1,-1,1)/\sqrt3$. Verify $\lVert z\rVert_2=1$ and $Az=0$. A fixed basis query such as $e_1$ is not erased. Perturb $z$ by a small vector $\eta$; then $A(z+\eta)=A\eta$, exposing how reconstruction error becomes residual sketch energy.
| Setting or defense | Assumption | Cost | Role | Strength | Limitation | Prefer when |
|---|---|---|---|---|---|---|
| Oblivious fixed sketch | Queries independent of hidden map | One compact state | Standard concentration | Efficient | Fails under unsupported feedback | Offline workloads |
| Query cap | Leakage grows with interactions | Product/policy cost | Bound transcript length | Simple | Cap alone may be insufficient | Small known budgets |
| Fresh sketch rotation | Independent protected randomness available | Multiple states/rebuilds | Reset accumulated learning | Direct | Expensive and timing-sensitive | Epoch-based systems |
| Robust aggregation | Several independent estimates | More memory/update work | Tolerate corrupted estimators | Modular | Adaptive analysis still required | Replicated sketches |
| Private monitoring | Stable private statistic or DP mechanism | Privacy/noise budget | Detect when to switch | Formal adaptive control | Utility and composition costs | High-stakes interaction |
| Exact fallback | Exact state feasible for alerts | Potentially large memory | Eliminate sketch error on escalation | Strong audit | Not sublinear | Narrow critical cases |
Attacks, Monitoring and Defensive Limits
In a teaching case, reveal a small matrix and contrast a fixed vector with a computed null vector. In a professional telemetry API, users may repeatedly filter, query, and publish sketch-derived estimates; the transcript, dashboards, error messages, and timing all belong in the threat model. In an adversarial public service, assuming secret seeds forever is not a proof: leakage, compromise, multi-tenant correlation, and chosen inputs must be considered.
Defenses include limiting adaptive queries, delaying or coarsening outputs, rotating independent sketches, maintaining multiple sketches and using robust aggregation, privately monitoring transcript-dependent risk, and falling back to exact computation. These are not interchangeable. Fresh randomness must really be independent; switching rules can themselves leak; differential privacy has a composition budget; noise may destroy utility; and aggregation requires enough independent replicas.
Invalidating evidence includes error increasing with interaction count, repeated failures concentrated on transcript-conditioned inputs, seed/state reuse across tenants, unusually small sketch-to-true norm ratios, monitor alerts near switching thresholds, correlated replica failures, or an attacker model stronger than the theorem.
flowchart TD
A[Classify query adaptivity and exposure] --> B[Inventory reused randomness and outputs]
B --> C[Set query leakage and failure budgets]
C --> D[Choose rotation aggregation monitor or exact fallback]
D --> E[Red-team transcript-conditioned inputs]
E --> F{Adaptive accuracy passes?}
F -->|yes| G[Deploy versioned protected states]
F -->|no| H[Reduce exposure strengthen or reject]
G --> I[Monitor drift replica correlation and alerts]
I --> J{Threat model unchanged?}
J -->|yes| I
J -->|no| H
classDef navy fill:#17365D,color:#fff,stroke:#17365D;
classDef teal fill:#147D84,color:#fff,stroke:#0D565B;
classDef purple fill:#6C3BAA,color:#fff,stroke:#472675;
classDef crimson fill:#C6284D,color:#fff,stroke:#861B35;
class A,B,C navy;
class D,E,G purple;
class F,I teal;
class H,J crimson;
Attacks, Monitoring and Defensive Limits: Adaptive Attacks against Linear Sketches
For a multi-tenant telemetry API answering $10^5$ queries per epoch: classify which queries use previous outputs; inventory values, rounding, errors, timing, and metadata exposed; benchmark fixed holdout queries against transcript-conditioned probes; compare a single reused sketch with independent rotation and replicated robust aggregation; define monitor thresholds and exact-audit samples; test state compromise, correlated seeds, switch-timing leakage, and exhausted privacy budgets. Deploy only if a theorem covers the measured query budget and red-team error remains within the declared bound.
Threat-Model an Interactive Sketch
Robustness begins with quantifier order and an information-flow diagram, not a larger nonadaptive confidence parameter.
Practice: Threat-Model an Interactive Sketch
Start with an $m$-by-$n$ linear map whose target dimension is smaller than its source, a norm-estimation endpoint, and 100 adaptive queries. State the oblivious guarantee with quantifiers; list every transcript field; compute null-space dimension; reproduce the disclosed-matrix SVD witness; explain what additional argument a black-box reconstruction would need; test fixed, adaptive, near-null, rounded-output, rotated-seed, and correlated-replica cases; allocate query, privacy, and failure budgets; choose a defense and state evidence that would invalidate it. Rubric: 20% quantifiers, 20% geometry, 20% leakage analysis, 15% reproducible tests, 15% defense limitations, 10% operational monitoring.
Checklist: identify who chooses each input and when; distinguish fixed-set from adaptive guarantees; inventory transcript leakage; protect and rotate truly independent randomness; cap and authenticate queries; analyze switching and aggregation; budget privacy and failure under composition; retain exact audits; and fail closed on model drift. Do not treat secrecy, extra repetitions, or a union bound as automatic adaptive robustness. The next bridge is to differential privacy, reusable holdouts, adversarially robust streaming, and adaptive data analysis.