Introduction
Modern information retrieval and machine learning systems routinely store massive collections of high-dimensional vectors and compare them against incoming queries. Vector databases index embeddings of documents and images, near-duplicate detectors maintain fingerprints of web pages, and large language models cache the attention keys of past tokens. Because memory bandwidth and capacity are scarce in all of these applications, stored vectors must be heavily compressed. The central question is how accurately inner products with new queries can be recovered from the compressed representations.
One-bit sketches are among the simplest and most effective compression schemes. By multiplying a vector by a random Gaussian matrix with ℓ \ell ℓ rows and retaining only the signs of the resulting entries, a vector is reduced to an ℓ \ell ℓ -bit signature alongside its Euclidean norm. These sign codes are used in two main ways. Symmetric schemes such as SimHash compare two bit strings by the fraction of positions at which they disagree, which directly estimates the angle between the underlying vectors [8 ] . Asymmetric schemes quantize only the stored vector to one bit and correlate its sign code against a query kept at higher precision. For instance, QJL compresses attention keys in this manner [36 ] —a primitive subsequently reused by TurboQuant [37 ] —while RaBitQ scores the sign codes of randomly rotated database vectors against quantized queries [15 ] .
Throughout this paper, we label each estimator by the precision kept on either side—one bit (B) or a full-precision Gaussian projection (G)—listing the stored vector first. Thus BB denotes SimHash, BG denotes the asymmetric estimator, and GG denotes the standard linear sketch with full precision on both sides, which serves as our baseline. Because vector norms are stored separately, inner product estimation reduces to estimating the cosine of the angle between two vectors, and we state all results for unit vectors. When constructed from a dense Gaussian matrix, all three estimators require only a small constant multiple of ε − 2 log ( N / δ ) \varepsilon^{-2}\log(N/\delta) ε − 2 log ( N / δ ) rows to estimate the cosines of N N N vector pairs to within additive error ε \varepsilon ε with probability at least 1 − δ 1-\delta 1 − δ , regardless of the geometry of the data.
The computational bottleneck of dense sketching lies in the projection step itself. Multiplying a vector in R n \mathbb{R}^{n} R n by a dense ℓ × n \ell\times n ℓ × n matrix requires n ℓ n\ell n ℓ multiply–add operations, whereas scoring two compressed codes takes only O ( ℓ ) O(\ell) O ( ℓ ) operations. Encoding a single vector is therefore as expensive as performing n n n pairwise comparisons, and because ℓ \ell ℓ scales as ε − 2 \varepsilon^{-2} ε − 2 , this encoding cost grows rapidly when high accuracy is required. For linear sketches, Ailon and Chazelle [ [3 ] overcame this bottleneck by introducing the fast Johnson–Lindenstrauss transform (FJLT). The FJLT first flips the signs of the vector’s coordinates at random and then applies the normalized Walsh–Hadamard transform, an orthogonal map computable in n log 2 n n\log_{2}n n log 2 n additions. Together, these two operations spread the energy ∥ x ∥ 2 \lVert x\rVert^{2} ∥ x ∥ 2 of any fixed vector x x x almost uniformly across all n n n coordinates. Once no single coordinate dominates, sampling a small number of coordinates at random captures a representative share of the vector’s energy, allowing a sparse Gaussian matrix with roughly r ≪ n r \ll n r ≪ n nonzeros per row to stand in for a dense one. The resulting transform Φ = P H D \Phi= PHD Φ = P H D —where D D D is a diagonal matrix of random signs, H H H is the normalized Hadamard matrix, and P P P is a sparse Gaussian matrix—reduces the encoding cost from n ℓ n\ell n ℓ to n log 2 n + r ℓ n\log_{2}n+r\ell n log 2 n + r ℓ operations, saving roughly a factor of n / r n/r n / r for long sketches. We refer to ℓ \ell ℓ as the sketch length and r r r as the row sparsity .
Taking the signs of an FJLT projection is the natural way to accelerate one-bit sketching. Although Oymak and Recht [ [30 ] , Sec. 7 observed empirically that signing a moderately sparse Gaussian projection performs nearly as well as signing a dense one, no nonsasymptotic theoretical guarantees have been established. There is a fundamental reason for this gap: the Euclidean guarantees of the FJLT rely crucially on linearity, which the sign function destroys. Once linearity is lost, sparse rows become much less forgiving. Indeed, the ℓ 1 \ell_{1} ℓ 1 variant of the FJLT analyzed by Ailon and Chazelle [ [3 ] already incurs an extra factor of ε − 1 \varepsilon^{-1} ε − 1 in row density, for reasons closely related to the phenomenon we examine in § 1.1 .
In this work, we provide the missing theoretical guarantees for fast one-bit sketches. We establish nonsasymptotic error bounds with explicit constants for both the asymmetric (BG) and symmetric (BB) estimators, covering both the original FJLT and a balanced variant in which every row has exactly r r r nonzeros. Crucially, our bounds hold conditionally on the realized preconditioner D D D and depend on the dataset only through a few easily measurable summary statistics, allowing practitioners to certify the accuracy of a deployed sketch directly on their data. In the worst case, our results reveal a clean trade-off: quantization to one bit costs row sparsity rather than sketch length. Up to a small constant factor, the required sketch length ℓ \ell ℓ matches that of a dense Gaussian sketch, whereas the required number of nonzeros per row r r r scales as 1 / ε 1/\varepsilon 1/ ε . Complementary lower bounds confirm that for small ε \varepsilon ε , the asymmetric estimator cannot achieve accuracy ε \varepsilon ε with o ( 1 / ε ) o(1/\varepsilon) o ( 1/ ε ) sparse rows.
Why signs are harder
Both the core difficulty of signing sparse projections and the mechanism that resolves it can be understood by examining a single row. Fix the random coordinate signs D D D , and let x ~ = H D x \tilde{x}=HDx x ~ = H D x denote the preconditioned image of a vector x x x ; because H D HD H D is orthogonal, two unit vectors u u u and v v v with ⟨ u , v ⟩ = ρ = cos θ \langle u,v\rangle=\rho=\cos\theta ⟨ u , v ⟩ = ρ = cos θ map to unit vectors u ~ \tilde{u} u ~ and v ~ \tilde{v} v ~ with the same inner product ρ \rho ρ and angle θ \theta θ . A row of the sparse matrix P P P is nonzero only on a random subset of coordinates, its support S S S , where its entries are independent N ( 0 , 1 / q ) \mathcal{N}(0,1/q) N ( 0 , 1/ q ) random variables and q = r / n q=r/n q = r / n is the sampling density.
Now condition on the support S S S as well. Absorbing the q − 1 / 2 q^{-1/2} q − 1/2 variance scaling into the vector by defining the subsampled vector x ~ S ∈ R n \tilde{x}_{S}\in\mathbb{R}^{n} x ~ S ∈ R n with coordinates ( x ~ S ) j : = q − 1 / 2 x ~ j 1 { j ∈ S } (\tilde{x}_{S})_{j}:=q^{-1/2}\tilde{x}_{j}\mathbf{1}\{j\in S\} ( x ~ S ) j := q − 1/2 x ~ j 1 { j ∈ S } , a sparse row acts on ( u , v ) (u,v) ( u , v ) identically in distribution to a standard isotropic Gaussian vector g ∼ N ( 0 , I n ) g\sim\mathcal{N}(0,I_{n}) g ∼ N ( 0 , I n ) acting on ( u ~ S , v ~ S ) (\tilde{u}_{S},\tilde{v}_{S}) ( u ~ S , v ~ S ) . Consequently, the scalar row projections X X X and Y Y Y remain jointly centered Gaussian given S S S , just as they would be for a dense row, and only their covariance matrix changes: whereas a dense row has covariance ( 1 ρ ρ 1 ) \begin{pmatrix}1 & \rho\\ \rho& 1\end{pmatrix} ( 1 ρ ρ 1 ) , a sparse row with support S S S has conditional covariance
Σ S : = ( σ u 2 σ u v σ u v σ v 2 ) = ( ∥ u ~ S ∥ 2 ⟨ u ~ S , v ~ S ⟩ ⟨ u ~ S , v ~ S ⟩ ∥ v ~ S ∥ 2 ) . \Sigma_S := \begin{pmatrix}\sigma_u^2 & \sigma_{uv} \\ \sigma_{uv} & \sigma_v^2\end{pmatrix}
= \begin{pmatrix}\lVert\widetilde{u}_S\rVert^2 & \langle\widetilde{u}_S,\widetilde{v}_S\rangle\\ \langle\widetilde{u}_S,\widetilde{v}_S\rangle& \lVert\widetilde{v}_S\rVert^2\end{pmatrix}. Σ S := ( σ u 2 σ uv σ uv σ v 2 ) = ( ∥ u S ∥ 2 ⟨ u S , v S ⟩ ⟨ u S , v S ⟩ ∥ v S ∥ 2 ) .
Here σ u 2 \sigma_u^2 σ u 2 and σ v 2 \sigma_v^2 σ v 2 are the rescaled energies that the row captures from u u u and v v v , and σ u v \sigma_{uv} σ uv is their captured inner product. Over the random draw of S S S , all three entries match their dense counterparts in expectation (E σ u 2 = E σ v 2 = 1 \mathbb{E}\sigma_u^2=\mathbb{E}\sigma_v^2=1 E σ u 2 = E σ v 2 = 1 and E σ u v = ρ \mathbb{E}\sigma_{uv}=\rho E σ uv = ρ ), yet each fluctuates from row to row.
Figure 1 illustrates this effect in the two-dimensional plane spanned by u u u and v v v . Coordinate subsampling maps the unit circle of the plane onto an ellipse that varies from row to row, sending ( u ~ , v ~ ) (\widetilde{u},\widetilde{v}) ( u , v ) to ( u ~ S , v ~ S ) (\widetilde{u}_S,\widetilde{v}_S) ( u S , v S ) with squared norms σ u 2 , σ v 2 \sigma_u^2,\sigma_v^2 σ u 2 , σ v 2 and inner product σ u v \sigma_{uv} σ uv . Equivalently, each sparse row measures lengths and angles in span { u , v } \operatorname{span}\{u,v\} span { u , v } using a random positive semidefinite 2 × 2 2\times2 2 × 2 matrix M S M_S M S in place of the Euclidean identity I 2 I_2 I 2 ; we call M S M_S M S the random metric induced by the row, and its expectation over S S S is I 2 I_2 I 2 (§ 3.2 ).
Figure 1. Conditioned on its support S S S , a sparse row views the pair ( u , v ) (u,v) ( u , v ) through the subsampled pair ( u ~ S , v ~ S ) (\widetilde{u}_S,\widetilde{v}_S) ( u S , v S ) ; among the three geometric features read by the estimators, only the inner product is unbiased across supports. Left: a dense row sees ( u ~ , v ~ ) (\widetilde{u},\widetilde{v}) ( u , v ) on the Euclidean unit circle. Right: given S S S , coordinate subsampling deforms the unit circle of span { u , v } \operatorname{span}\{u,v\} span { u , v } (dashed) into an ellipse. The linear estimator GG reads σ u v = ⟨ u ~ S , v ~ S ⟩ \sigma_{uv}=\langle\widetilde{u}_S,\widetilde{v}_S\rangle σ uv = ⟨ u S , v S ⟩ , the asymmetric estimator BG reads the scalar projection ζ S = σ u v / σ u \zeta_S=\sigma_{uv}/\sigma_u ζ S = σ uv / σ u of v ~ S \widetilde{v}_S v S onto the direction of u ~ S \widetilde{u}_S u S , and SimHash (BB) reads the angle θ S \theta_S θ S .
The three estimators extract three different geometric features from ( u ~ S , v ~ S ) (\widetilde{u}_S,\widetilde{v}_S) ( u S , v S ) . Each estimator averages a per-row score across the ℓ \ell ℓ rows: GG averages the product X Y XY X Y , BG averages Z : = π / 2 sign ( X ) Y Z:=\sqrt{\pi/2}\,\operatorname{sign}(X)Y Z := π /2 sign ( X ) Y , and BB averages the indicator 1 { sign X ≠ sign Y } \mathbf{1}\{\operatorname{sign}X\ne\operatorname{sign}Y\} 1 { sign X = sign Y } . Conditioned on S S S , applying the classical dense Gaussian identities (§ 2.1 ) directly to ( u ~ S , v ~ S ) (\widetilde{u}_S,\widetilde{v}_S) ( u S , v S ) yields the conditional expectation of each score:
E [ X Y ∣ S ] = σ u v , E [ Z ∣ S ] = σ u v σ u = : ζ S , Pr [ sign X ≠ sign Y ∣ S ] = θ S π , \mathbb{E}[XY\mid S]=\sigma_{uv},\qquad\mathbb{E}[Z\mid S]=\frac{\sigma_{uv}}{\sigma_u}=:\zeta_S,\qquad\Pr[\operatorname{sign}X\ne\operatorname{sign}Y\mid S]=\frac{\theta_S}{\pi}, E [ X Y ∣ S ] = σ uv , E [ Z ∣ S ] = σ u σ uv =: ζ S , Pr [ sign X = sign Y ∣ S ] = π θ S ,
where θ S = ∠ ( u ~ S , v ~ S ) \theta_S=\angle(\widetilde{u}_S,\widetilde{v}_S) θ S = ∠ ( u S , v S ) satisfies cos θ S = ρ S : = σ u v / ( σ u σ v ) \cos\theta_S=\rho_S:=\sigma_{uv}/(\sigma_u\sigma_v) cos θ S = ρ S := σ uv / ( σ u σ v ) . Notice the sharp divide between the linear and one-bit estimators: GG reads the inner product σ u v \sigma_{uv} σ uv , which is a linear functional of M S M_S M S . Because E M S = I 2 \mathbb{E}M_S=I_2 E M S = I 2 , GG is completely unbiased at every sparsity level; sparse rows merely inflate its variance. By contrast, BG reads an inner product normalized by a length ( σ u v / σ u ) (\sigma_{uv}/\sigma_u) ( σ uv / σ u ) , and BB reads an angle ( θ S ) (\theta_S) ( θ S ) . Because neither functional is linear in M S M_S M S , Jensen’s inequality and higher-order curvature convert random metric fluctuations into a systematic second-order shift in expectation, which we call the support bias . Because every row is drawn from the same support distribution, averaging over more rows reduces the sampling variance but leaves the support bias intact; only increasing the row sparsity r r r , which dampens the metric distortion itself, can make this bias small.
A back-of-the-envelope calculation on a self-pair reveals the magnitude of the effect. Suppose we score a stored unit vector u u u against itself using BG, so that v = u v=u v = u and ρ = 1 \rho=1 ρ = 1 . Then σ u v = σ u 2 \sigma_{uv}=\sigma_u^2 σ uv = σ u 2 , the conditional mean score simplifies to ζ S = σ u \zeta_S=\sigma_u ζ S = σ u , and Jensen’s inequality gives E σ u ≤ E σ u 2 = 1 \mathbb{E}\sigma_u\le\sqrt{\mathbb{E}\sigma_u^2}=1 E σ u ≤ E σ u 2 = 1 . Expanding σ u = σ u 2 \sigma_u=\sqrt{\sigma_u^2} σ u = σ u 2 to second order around σ u 2 = 1 \sigma_u^2=1 σ u 2 = 1 shows that the expected BG estimate falls short of 1 1 1 by approximately Var ( σ u 2 ) / 8 \operatorname{Var}(\sigma_u^2)/8 Var ( σ u 2 ) /8 , where Var ( σ u 2 ) \operatorname{Var}(\sigma_u^2) Var ( σ u 2 ) scales as 1 / r 1/r 1/ r . Keeping this downward bias below ε \varepsilon ε therefore requires r r r to grow at least as 1 / ε 1/\varepsilon 1/ ε . This phenomenon is already familiar from the ℓ 1 \ell_1 ℓ 1 embedding literature: when v = u v=u v = u , the BG estimate equals Require: shared randomness, drawn once or regenerated from a seed: random signs D D D ; supports S 1 , … , S ℓ S_1,\ldots,S_\ell S 1 , … , S ℓ , each a uniformly random subset of { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } of size r r r ; weights g i j ∼ N ( 0 , n / r ) g_{ij}\sim\mathcal{N}(0,n/r) g ij ∼ N ( 0 , n / r )
1: function ENCODE( x ) (x) ( x ) ▷ x ∈ R n ∖ { 0 } x\in\mathbb{R}^n\setminus\{0\} x ∈ R n ∖ { 0 } , n n n a power of two 2: x ~ ← H ( D x / ∥ x ∥ ) \tilde{x}\leftarrow H(Dx/\lVert x\rVert) x ~ ← H ( D x / ∥ x ∥) ▷ fast Walsh–Hadamard transform, n log 2 n n\log_2 n n log 2 n additions 3: optionally record w x = n ∥ x ~ ∥ ∞ 2 w_x=n\lVert\tilde{x}\rVert_\infty^2 w x = n ∥ x ~ ∥ ∞ 2 and k x = n ∥ x ~ ∥ 4 4 k_x=n\lVert\tilde{x}\rVert_4^4 k x = n ∥ x ~ ∥ 4 4 ▷ for certificates (§ 1.4 ); O ( n ) O(n) O ( n ) 4: X i ← ∑ j ∈ S i g i j x ~ j X_i\leftarrow\sum_{j\in S_i}g_{ij}\tilde{x}_j X i ← ∑ j ∈ S i g ij x ~ j for i = 1 , … , ℓ i=1,\ldots,\ell i = 1 , … , ℓ ▷ r ℓ r\ell r ℓ multiply–adds 5: return ( ∥ x ∥ , sign X ) (\lVert x\rVert,\operatorname{sign}X) (∥ x ∥ , sign X ) for a one-bit code, ( ∥ x ∥ , X ) (\lVert x\rVert,X) (∥ x ∥ , X ) otherwise 6: function SCORE( u , v ) (u,v) ( u , v ) ▷ X X X encodes u u u , Y Y Y encodes v v v ; in BG, u u u is stored 7: GG: ρ ^ G G = 1 ℓ ∑ i X i Y i \hat{\rho}_{\mathrm{GG}}=\frac{1}{\ell}\sum_iX_iY_i ρ ^ GG = ℓ 1 ∑ i X i Y i ; BG: ρ ^ B G = π / 2 1 ℓ ∑ i sign ( X i ) Y i \hat{\rho}_{\mathrm{BG}}=\sqrt{\pi/2}\frac{1}{\ell}\sum_i\operatorname{sign}(X_i)Y_i ρ ^ BG = π /2 ℓ 1 ∑ i sign ( X i ) Y i ▷ or a robust mean 8: BB: θ ^ = π popcount ( sign X ⊕ sign Y ) / ℓ \hat{\theta}=\pi\,\operatorname{popcount}(\operatorname{sign}X\oplus\operatorname{sign}Y)/\ell θ ^ = π popcount ( sign X ⊕ sign Y ) / ℓ , ρ ^ B B = cos θ ^ \hat{\rho}_{\mathrm{BB}}=\cos\hat{\theta} ρ ^ BB = cos θ ^ 9: return ρ ^ \hat{\rho} ρ ^ , or ∥ u ∥ ∥ v ∥ ρ ^ \lVert u\rVert\lVert v\rVert\hat{\rho} ∥ u ∥ ∥ v ∥ ρ ^ to estimate ⟨ u , v ⟩ \langle u,v\rangle ⟨ u , v ⟩
Algorithm 1: Sketching and scoring with the balanced FJLT
π / 2 ∥ Φ u ∥ 1 / ℓ \sqrt{\pi/2}\,\lVert\Phi u\rVert_1/\ell π /2 ∥ Φ u ∥ 1 / ℓ , which is precisely Ailon and Chazelle’s ℓ 1 \ell_1 ℓ 1 FJLT embedding, and the expansion of E σ u \mathbb{E}\sigma_u E σ u is the calculation underlying Ailon and Chazelle [ [3 ] that forces their row density to scale with ε − 1 \varepsilon^{-1} ε − 1 .
Extending this analysis beyond self-pairs requires controlling two additional effects: for a general pair ( u , v ) (u,v) ( u , v ) , a sparse row distorts not only the length σ u \sigma_u σ u of u ~ S \tilde{u}_S u ~ S but also its correlation with the orthogonal direction in the plane, and in SimHash both vectors are quantized to signs. We derive explicit, nonasymptotic bounds on the resulting biases in terms of measurable properties of the preconditioned vectors.
Specifically, the severity of the metric distortion depends on how evenly the preconditioned vectors distribute their energy across coordinates. For any unit vector x x x , we quantify this uniformity using two summary statistics, the cap w x w_x w x and the fourth moment k x k_x k x :
w x : = n ∥ x ~ ∥ ∞ 2 and k x : = n ∥ x ~ ∥ 4 4 . w_x := n\lVert\tilde{x}\rVert_\infty^2
\qquad\text{and}\qquad
k_x := n\lVert\tilde{x}\rVert_4^4. w x := n ∥ x ~ ∥ ∞ 2 and k x := n ∥ x ~ ∥ 4 4 .
Measured relative to the uniform coordinate energy 1 / n 1/n 1/ n , the cap w x w_x w x records the largest squared coordinate of x ~ \tilde{x} x ~ , while the fourth moment k x k_x k x records the average of the squared coordinate energies. These quantities satisfy 1 ≤ k x ≤ w x ≤ n 1\le k_x\le w_x\le n 1 ≤ k x ≤ w x ≤ n , with k x = w x = 1 k_x=w_x=1 k x = w x = 1 if and only if x ~ \tilde{x} x ~ is perfectly flat, meaning that every coordinate has magnitude n − 1 / 2 n^{-1/2} n − 1/2 . The fourth moment governs the typical size of the metric distortion, since Var ( σ x 2 ) ≤ k x / r \operatorname{Var}(\sigma_x^2)\le k_x/r Var ( σ x 2 ) ≤ k x / r , whereas the cap governs extreme deviations, since no single sampled coordinate can contribute more than w x / r w_x/r w x / r to σ x 2 \sigma_x^2 σ x 2 .
Balanced rows
Alongside our analysis of the standard FJLT, we introduce a simple structural modification to the sparse projection matrix, which helps both computationally and statistically. In the classical FJLT of Ailon and Chazelle [ [3 ] , each coordinate is included in a row’s support independently with probability q = r / n q=r/n q = r / n . Under these Bernoulli supports , rows have variable numbers of nonzeros—and may occasionally be entirely empty. Storing such a matrix requires CSR-style row-offset indices, vectorized implementations must pad or branch across ragged row lengths, and computational load balances unevenly across threads. To eliminate these drawbacks, we instead assign every row a balanced support consisting of exactly r r r nonzero positions chosen uniformly at random without replacement (Algorithm 1). We refer to the choice between Bernoulli and balanced sampling as the support law . With balanced supports, the sparse matrix P P P is represented simply as two rectangular ℓ × r \ell\times r ℓ × r arrays (one of column indices and one of Gaussian weights, or generated on the fly from a PRNG seed), and the inner encoding loop has a fixed trip count r r r .
In Algorithm 1, we assume that n n n is a power of two (padding shorter vectors with zeros as needed). For GG and BG, the sample average over the ℓ \ell ℓ rows may optionally be replaced by a robust mean estimator (§ 2.1 ).
Beyond its systems benefits, balancing the rows directly improves statistical accuracy. Fixing the support size removes fluctuations in row length as a source of variance, so the captured energy σ x 2 \sigma_x^2 σ x 2 concentrates more tightly around 1 1 1 (§ 3.1 ). For Gaussian inputs, switching from Bernoulli to balanced supports reduces the support bias of BG by roughly one third (Section 4.4). Even more strikingly, whenever the preconditioned stored vector u ~ \tilde{u} u ~ is flat, a balanced row captures its energy without error (σ u 2 = 1 \sigma_u^2=1 σ u 2 = 1 ), eliminating the support bias of BG altogether (Proposition 13(iii)). For SimHash (BB), by contrast, the bias is nearly identical under both support laws because rescaling the metric of a row does not alter the angle between two vectors.
Fixed-cardinality row supports have previously been studied for linear projections by Wolff [ [33 ] , who combined them with Rademacher (± 1 \pm1 ± 1 ) weights to reduce randomness complexity in the FJLT (§ 1.5 ).
Throughout this paper, we analyze Bernoulli and balanced supports in a unified manner, expressing every upper bound as a single formula parameterized by the support law.
Main results
We now summarize our main contributions. Throughout, we consider N N N pairs ( u , v ) (u,v) ( u , v ) of unit vectors with inner product ρ = ⟨ u , v ⟩ = cos θ \rho= \langle u,v\rangle= \cos\theta ρ = ⟨ u , v ⟩ = cos θ , where u u u denotes the stored vector in BG. The sparse matrix P P P is drawn with either Bernoulli or balanced supports, and we write L : = log ( 2 N / δ ) L := \log(2N/\delta) L := log ( 2 N / δ ) .
Error bounds for a realized preconditioner: Fix the sign matrix D D D arbitrarily, and let the N N N vector pairs be chosen independently of the sparse matrix P P P . For each pair, let U = [ u 1 u 2 ] U = [u_1\ u_2] U = [ u 1 u 2 ] be an orthonormal basis of span { u , v } \operatorname{span}\{u,v\} span { u , v } and define the plane cap w U w_U w U as the maximum cap w x w_x w x among all unit vectors x ∈ span { u 1 , u 2 } x \in\operatorname{span}\{u_1,u_2\} x ∈ span { u 1 , u 2 } . Then each of the following error bounds holds simultaneously across all N N N pairs with probability at least 1 − δ 1-\delta 1 − δ over the draw of P P P , provided every pair satisfies the accompanying sparsity condition:
∣ ρ ^ B G − ρ ∣ ≤ 1.15 w u ∨ v r + 1.86 L ℓ if r ≥ 64 w u ∨ v and ℓ ≥ 14 L , \left|\widehat{\rho}_{\mathrm{BG}}-\rho\right| \le1.15\frac{w_{u\vee v}}{r} + 1.86\sqrt{\frac{L}{\ell}}
\qquad\text{if } r \ge64w_{u\vee v}\text{ and }\ell\ge14L, ∣ ρ BG − ρ ∣ ≤ 1.15 r w u ∨ v + 1.86 ℓ L if r ≥ 64 w u ∨ v and ℓ ≥ 14 L ,
∣ θ ^ − θ ∣ ≤ 1.8 w U r + 2.23 L ℓ if r ≥ 64 w U . \left|\widehat{\theta}-\theta\right| \le1.8\frac{w_U}{r} + 2.23\sqrt{\frac{L}{\ell}}
\qquad\text{if } r \ge64w_U. θ − θ ≤ 1.8 r w U + 2.23 ℓ L if r ≥ 64 w U .
(Theorems 14 and 18 , where w u ∨ v : = max { w u , w v } w_{u\vee v} := \max\{w_u,w_v\} w u ∨ v := max { w u , w v } ). In each inequality, the second term matches the sampling noise of a dense sketch up to a constant factor near 1, while the first term bounds the support bias, which is independent of ℓ \ell ℓ . We also establish sharper fourth-moment versions of both bounds that replace the cap in the leading bias term with a fourth moment, at the expense of an exponentially small tail term in r r r . Because fourth moments are typically much smaller than caps—for any vector or plane fixed prior to drawing D D D , the expected vector fourth moment is at most 3 and the expected plane fourth moment k U k_U k U is at most 8, whereas the cap of a typical vector grows as log n \log n log n —these refined bounds yield substantially tighter guarantees in practice.
Worst-case guarantees in classical ( n , N , ε , δ ) (n,N,\varepsilon,\delta) ( n , N , ε , δ ) form. When K K K unit vectors are fixed before drawing the random signs D D D , the Hadamard preconditioner ensures that every cap among them is bounded by the flatness level μ ( K ) : = 2 log ( 4 n K / δ ) = O ( log ( n K / δ ) ) \mu(K) := 2\log(4nK/\delta) = O(\log(nK/\delta)) μ ( K ) := 2 log ( 4 n K / δ ) = O ( log ( n K / δ )) with probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 (Lemma 6 ). Substituting this bound shows that ℓ = O ( ε − 2 log ( N / δ ) ) \ell= O(\varepsilon^{-2}\log(N/\delta)) ℓ = O ( ε − 2 log ( N / δ )) rows with r = O ( ε − 1 log ( n N / δ ) ) r = O(\varepsilon^{-1}\log(nN/\delta)) r = O ( ε − 1 log ( n N / δ )) nonzeros per row suffice to estimate all N N N cosine similarities to within ε \varepsilon ε with probability at least 1 − δ 1-\delta 1 − δ (Corollaries 15 and 19). Encoding a vector thus requires O ( n log n + ε − 1 log ( n N / δ ) log ( N / δ ) ) O(n\log n+\varepsilon^{-1}\log(nN/\delta)\log(N/\delta)) O ( n log n + ε − 1 log ( n N / δ ) log ( N / δ )) operations, compared to O ( n ε − 2 log ( N / δ ) ) O(n\varepsilon^{-2}\log(N/\delta)) O ( n ε − 2 log ( N / δ )) for a dense projection. Moreover, SimHash retains its classical relative-error advantage for near-duplicate detection: achieving relative error ε θ \varepsilon\theta εθ across all angles θ ≥ θ 0 \theta\ge\theta_0 θ ≥ θ 0 requires O ( ε − 2 θ 0 − 2 log ( N / δ ) ) O(\varepsilon^{-2}\theta_0^{-2}\log(N/\delta)) O ( ε − 2 θ 0 − 2 log ( N / δ )) rows, just as in the dense case, while θ 0 \theta_0 θ 0 enters the row sparsity only logarithmically.
Matching lower bounds. Set Λ : = log ( min { N , n / 2 } / δ ) \Lambda:= \log(\min\{N,n/2\}/\delta) Λ := log ( min { N , n /2 } / δ ) . When ε \varepsilon ε is small and each row samples at most half of the coordinates ( 2 ≤ r ≤ n / 2 ) (2 \le r \le n/2) ( 2 ≤ r ≤ n /2 ) , the asymmetric estimator BG requires r = Ω ( ε − 1 Λ ) r = \Omega(\varepsilon^{-1}\Lambda) r = Ω ( ε − 1 Λ ) nonzeros per row on a worst-case family of at most N N N pairs; the same sparsity lower bound holds for SimHash (BB) with balanced supports when estimating a small angle to relative accuracy ε \varepsilon ε (Theorem 21 ). Whenever N / δ N/\delta N / δ lies between two fixed powers of n n n , this lower bound matches the worst-case sparsity of item (ii) for BG up to constant factors. While these lower bounds apply to the specific estimators studied here rather than to arbitrary boolean decoding rules, our BG lower bound extends to any row-aggregation rule that concentrates around the expected single-row score, including Catoni’s robust mean estimator once ℓ \ell ℓ is sufficiently large. Whether SimHash requires the ε − 1 \varepsilon^{-1} ε − 1 sparsity factor under additive error remains an open question.
Linear sketches at full precision. Because GG suffers no support bias, row sparsity affects only its variance and tail behavior. Using the standard sample average, our framework recovers the optimal FJLT sparsity of Fandina et al. [ [13 ] with fully explicit constants (the original paper had inaccurate values), arbitrary failure probability δ \delta δ , and either Bernoulli or balanced supports (Corollary 11 (ii)). Furthermore, replacing the sample average with Catoni’s robust mean estimator reduces the required sparsity to r = 3 μ ( m ) = O ( log ( n m / δ ) ) r = 3\mu(m) = O(\log(nm/\delta)) r = 3 μ ( m ) = O ( log ( nm / δ )) nonzeros per row for estimating inner products against m m m stored vectors, completely independent of the target accuracy $\varepsilon \in (0,1] ({xref}Corollary 11(ii)). An analogous scale-free robust estimator preserves pairwise squared distances at $\varepsilon$-independent sparsity for all $\varepsilon \le \frac{1}{2}$ ({xref}Appendix A.4`).
Table 1 summarizes our worst-case bounds and their explicit constants alongside existing guarantees. Because worst-case bounds must protect against pathological alignments of the preconditioner, their constants are necessarily conservative: where both our corollaries and lower bounds apply, their required row sparsities differ by a factor of more than 5,000 (Remark 22). In § 1.4 , we show how evaluating our fixed-D D D bounds directly on measured data parameters recovers most of this factor on typical inputs.
Table 1. Quantizing to one bit introduces a factor of 1 / ϵ 1/\epsilon 1/ ϵ in row sparsity while increasing sketch length by only a small constant factor. Entries report the parameters required to achieve accuracy ϵ \epsilon ϵ simultaneously across all pairs with probability at least 1 − δ 1-\delta 1 − δ ; our results are shown in bold. Annotations: † success probability 2 / 3 2/3 2/3 and ‡ success probability 1 − 1 / m 1-1/m 1 − 1/ m , both assuming n ≤ m n\le m n ≤ m ; ∗ only the m m m stored vectors need to be fixed prior to drawing D D D , allowing queries to depend on D D D .
How to read Table 1 . Table 1 places our classical worst-case corollaries directly alongside the corresponding bounds for dense Gaussian projections and the linear FJLT. Comparing the sketch length column (ℓ \ell ℓ ) vertically within each block shows that our sparse one-bit sketches require the same number of rows as dense sketches up to a modest constant factor: roughly 1.3× for BG, 4× for additive BB, and 5× for relative-error BB. Comparing the row sparsity column (r r r ) shows the fundamental difference between linear and signed projections: full-precision linear sketches require only a multiple of μ ( K ) \mu(K) μ ( K ) that stays bounded as ε → 0 \varepsilon\to0 ε → 0 , whereas one-bit sketches require r r r to scale as μ ( K ) / ε \mu(K)/\varepsilon μ ( K ) / ε , a dependence matched in order by the lower bounds in the bottom two rows. Writing the flatness level explicitly as μ ( K ) = 2 log ( 4 n K / δ ) \mu(K) = 2\log(4nK/\delta) μ ( K ) = 2 log ( 4 n K / δ ) also highlights how the Catoni rows (∗) depend only on the database size m m m rather than the pair count N N N . The decoder column specifies how the ℓ \ell ℓ row scores of a pair are combined into a final estimate—either via the sample average (a dot product for BG and a population count of bit disagreements for BB) or via Catoni’s robust mean estimator (§ 2.1 ). Finally, the parameters column lists the empirical caps and fourth moments that replace μ ( K ) \mu(K) μ ( K ) when our theorems are evaluated conditionally on the realized preconditioner D D D , as defined in § 3.1 and § 3.2 .
What to expect in practice
What do these theoretical guarantees translate to at a realistic application scale? Table 2 illustrates the required sketch budgets for a database of m = 10 9 m = 10^9 m = 1 0 9 vectors in dimension n = 65,536 n = 65{,}536 n = 65 , 536 , where a single query is scored against all 10 9 10^9 1 0 9 stored vectors (N = 10 9 N = 10^9 N = 1 0 9 ) and we require every score to be accurate to within ε = 0.1 \varepsilon= 0.1 ε = 0.1 simultaneously with probability at least 1 − δ = 0.9 1 - \delta= 0.9 1 − δ = 0.9 .
Table 2. Evaluating our bounds on measured data reduces the required one-bit row sparsity from 15–17% of the ambient dimension n n n in the worst case to roughly 1% for a typical pair. Setting: n = 65,536 n = 65{,}536 n = 65 , 536 , m = N = 10 9 m = N = 10^9 m = N = 1 0 9 , ε = δ = 0.1 \varepsilon= \delta= 0.1 ε = δ = 0.1 . Entries written a / b a / b a / b denote Bernoulli / balanced supports; single entries apply to both. Note the slight improvement for balanced supports.
Each row of Table 2 corresponds to one of the corollaries in Table 1 . The worst case sparsity column reports the a priori guarantee obtained by plugging in the union-bound flatness level μ ( K ) > 70 \mu(K) > 70 μ ( K ) > 70 , which forces the one-bit sketches to sample 15–17% of the coordinates in each row. In practice, however, preconditioned vectors are far flatter than the worst-case union bound assumes, and the fixed-D D D bounds of item (i) allow us to take advantage of this fact. Because those theorems hold conditionally on the realized sign matrix D D D , we can plug in the actual caps and fourth moments measured on the preconditioned vectors rather than μ ( K ) \mu(K) μ ( K ) . We call the resulting guarantee a certificate , as it certifies the accuracy of the deployed preconditioner on the dataset at hand. For BG, the certificate depends only on single-vector statistics that Algorithm 1 records in O ( n ) O(n) O ( n ) time during encoding; for BB, it uses the two-dimensional plane parameters of each pair (§ 3.7 ).
The last two columns of Table 2 report the minimum row sparsity r r r needed to certify accuracy ε = 0.1 \varepsilon= 0.1 ε = 0.1 at the corollary’s sketch length ℓ \ell ℓ when the preconditioned vectors are Gaussian-like (meaning that x ~ = H D x \widetilde{x} = HDx x = H D x is distributed like a normalized Gaussian vector, which holds exactly when the raw inputs x x x are Gaussian). In the typical pair column, evaluated at the median parameters of simulated pairs (caps around 20 and vector fourth moments near 3), the certified sparsity of a one-bit sketch drops to roughly 1% of the coordinates—a 12- to 29-fold reduction relative to the worst-case bound. Even in the database max. column, which plugs in the extreme parameter values expected across a collection of 10 9 10^9 1 0 9 vectors, the certified sparsity remains below 4% of the ambient dimension. (GG omits the typical-pair entry because its hypotheses are formulated over an entire vector family at once; see Appendix § 7 .§ 1 for a term-by-term derivation of every entry in the table.)
Even a data-dependent certificate is an upper bound, and empirical errors on typical inputs are smaller still (§ 4 ). Figure 2 tracks the mean squared error of all three estimators on a pair of Gaussian vectors in dimension n = 4096 n = 4096 n = 4096 as the row sparsity r r r decreases from r = n r = n r = n (dense) down to r = 8 r = 8 r = 8 , at two sketch lengths (ℓ = 2 9 \ell= 2^9 ℓ = 2 9 and ℓ = 2 15 \ell= 2^{15} ℓ = 2 15 ). SimHash (BB) suffers virtually no loss in accuracy down to r = 8 r = 8 r = 8 , and the unbiased linear sketch (GG) degrades by at most 7% once r ≥ 32 r \ge32 r ≥ 32 . By contrast, BG clearly exhibits the bias–variance trade-off of item (i): increasing the sketch length from 2 9 2^9 2 9 to 2 15 2^{15} 2 15 reduces the dense sampling noise by a factor of eight, so BG requires eight times as many nonzeros per row to keep its support bias within 10% of the noise floor—just as the lower bound of item (iii) dictates in the worst case. Nevertheless, sampling just one coordinate in sixteen (r = 256 r = 256 r = 256 ) suffices to bring every estimator within 10% of the dense baseline across both support laws and both sketch lengths.
Figure 2. Transition from dense to sparse rows at fixed sketch lengths: only the asymmetric estimator BG requires denser rows as the sketch length increases. Root mean squared error (RMSE) is plotted against the row sparsity r r r for a pair of Gaussian vectors (n = 4096 n = 4096 n = 4096 , ρ = 0.9 \rho= 0.9 ρ = 0.9 ) at sketch lengths ℓ = 2 9 \ell= 2^9 ℓ = 2 9 and ℓ = 2 15 \ell= 2^{15} ℓ = 2 15 , with error bars indicating ± 2 \pm2 ± 2 standard errors. Horizontal gray lines mark the theoretical RMSE of a dense Gaussian sketch, and diamonds mark end-to-end simulations at r = n r = n r = n .
Because sparse projections save computation only when r ≪ n r \ll n r ≪ n , the practical speedup of the FJLT grows with the ambient dimension. For a typical vector pair, our one-bit certificates require a few hundred nonzeros per row, a number that depends only weakly on n n n (since fourth moments are dimension-free and caps grow
Here m m m is the number of points or stored vectors, U \mathcal{U} U is the set of unit vectors whose norms or pairs are covered, and μ ( K ) : = 2 log ( 4 n K / δ ) \mu(K):=2\log(4nK/\delta) μ ( K ) := 2 log ( 4 n K / δ ) is the flatness level for K K K pre-specified vectors (Lemma 6 ); notice that the Catoni corollaries (∗ ) pay μ ( m ) \mu(m) μ ( m ) rather than μ ( ∣ U ∣ ) \mu(|\mathcal{U}|) μ ( ∣ U ∣ ) or μ ( 2 N ) \mu(2N) μ ( 2 N ) . The lower bounds apply when 2 ≤ r ≤ n / 2 2\le r\le n/2 2 ≤ r ≤ n /2 , with ϵ ≤ 1 / 256 \epsilon\le1/256 ϵ ≤ 1/256 for BG and ϵ ≤ 1 / 272 \epsilon\le1/272 ϵ ≤ 1/272 at an angle θ ≤ arctan ( 1 / 10 ) \theta\le\arctan(1/10) θ ≤ arctan ( 1/10 ) under balanced supports for BB; they state that once ℓ \ell ℓ is of the indicated order, any sketch achieving error at most ϵ \epsilon ϵ across all pairs of a worst-case family with probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 must have row sparsity r r r exceeding the bound shown. Every sparsity entry is capped at n n n , and we omit the small-n n n branches r ≥ ϵ n / ( 1 + ϵ ) r\ge\epsilon n/(1+\epsilon) r ≥ ϵ n / ( 1 + ϵ ) of Corollary 11 (i) and r = Θ ( ϵ n ) r=\Theta(\epsilon n) r = Θ ( ϵ n ) of Fandina et al. [ [13 ] .
only as log n \log n log n ). Consequently, the computational savings are substantial when n n n is in the thousands or tens of thousands. Conversely, at the dimension of a single transformer attention head (n ≈ 128 n \approx128 n ≈ 128 ), the certified row sparsity exceeds the ambient dimension, and our theory appropriately recommends using dense Gaussian projections, which are already inexpensive at that scale.
Related work
The linear FJLT. In their foundational paper, Ailon and Chazelle [ [3 ] proved that r = Θ ( log 2 m ) r = \Theta(\log^2 m) r = Θ ( log 2 m ) nonzeros per row suffice to preserve the Euclidean norms of m m m points (Theorem 5), a bound recently sharpened by Fandina et al. [ [13 ] to the optimal sparsity of Theorem 7. Both analyses consider Bernoulli supports and estimate norms via the sample average of squared projections. For embeddings into ℓ 1 \ell_1 ℓ 1 , the row density of Ailon and Chazelle [ [3 ] —as well as its exposition by Matoušek [ [26 ] —carries an extra factor of ε − 1 \varepsilon^{-1} ε − 1 . Because our lower bound for BG is constructed using self-pairs, it simultaneously proves that this ε − 1 \varepsilon^{-1} ε − 1 density factor is necessary for the standard ℓ 1 \ell_1 ℓ 1 FJLT estimator, settling a question that was, to our knowledge, previously open (§ 3.6 ).
Balanced rows. Wolff [ [33 ] , Thm. 3.1 previously studied sparse projection rows whose supports are drawn uniformly among subsets of fixed size r r r , populated with random ± 1 \pm1 ± 1 signs, obtaining an O ( log 2 m ) O(\log^2 m) O ( log 2 m ) sparsity guarantee analogous to Theorem 5 . To our knowledge, Corollary 11 (i) provides the first guarantee for balanced supports that achieves the optimal sparsity of Fandina et al. [ [13 ] , while our fourth-moment bounds (Theorem 10 (a)) and robust Catoni bounds (Theorem 10 (b), together with a scale-free counterpart for squared distances in Appendix § 6 .§ 4 ) are new under both Bernoulli and balanced supports. We note that the sparse Johnson–Lindenstrauss transforms of Kane and Nelson [ [21 ] and Nelson and Nguyễn [ [29 ] instead fix the number of nonzeros per column of the projection matrix, which introduces dependencies across rows and requires a different analytical toolkit.
Signs of sparse projections. Prior analyses of signed sparse projections have been purely asymptotic, characterizing behavior in the limit as the ambient dimension tends to infinity [25 , 23 , 12 ] . When the nonzero weights are ± 1 \pm1 ± 1 Rademacher variables, the standard analytical tool is a Berry–Esseen normal approximation, which incurs an O ( r − 1 / 2 ) O(r^{-1/2}) O ( r − 1/2 ) approximation error even on perfectly flat vectors [25 ] ; a similar obstacle arises in one-bit compressed sensing with non-Gaussian measurements when signals contain spiky coordinates [2 ] . Using Gaussian weights avoids the Berry–Esseen barrier entirely: conditioned on its support, each sparse row is exactly Gaussian, isolating the O ( 1 / r ) O(1/r) O ( 1/ r ) metric-distortion bias that we bound. Related architectures include Zhang and Saab [ [38 ] , who apply the same preconditioned sparse transform P H D PHD P H D but quantize via Sigma–Delta noise shaping rather than memoryless signs, and Fast-TurboQuant [31 ] , which signs H D x HDx H D x directly without a sparse Gaussian layer or formal error bounds for the signed estimator.
Fast binary embeddings with dependent rows. Most existing fast binary embedding schemes achieve speed by replacing the dense Gaussian matrix with a structured circulant or Toeplitz Gaussian matrix [35 , 34 , 11 ] . While each individual row of a Gaussian Toeplitz matrix has the exact marginal distribution of a dense Gaussian row, all ℓ \ell ℓ rows are generated by shifting a single underlying Gaussian vector, creating strong inter-row dependencies. Even for linear Toeplitz sketches with ± 1 \pm1 ± 1 entries, this dependence inflates the required sketch length by an extra factor of log ( 1 / δ ) \log(1/\delta) log ( 1/ δ ) [14 ] , and for signed Toeplitz embeddings, a gap in the variance analysis of Yi et al. [ [34 ] required substantial technical repair by Dirksen and Stollenwerk [ [11 ] . Choromanska et al. [ [9 ] analyzed a broader class of structured Gaussian matrices preceded by a randomized Hadamard preconditioner H D HD H D , showing that preconditioning makes pairs of rows nearly independent on fixed inputs; however, their guarantees hold only for sufficiently large n n n and yield a slower ℓ − 1 / 3 \ell^{-1/3} ℓ − 1/3 convergence rate for angles in the Toeplitz case due to residual row dependencies. The signed FJLT makes the opposite design trade-off: conditioned on D D D , its rows are strictly independent, and the price of speed is paid instead through the per-row metric distortion that generates support bias.
Two-stage dimension reduction followed by signing. One can eliminate support bias entirely by composing two separate transforms: first projecting the vectors to an intermediate dimension n ′ n' n ′ via a linear FJLT, and then applying a dense signed Gaussian projection in R n ′ \mathbb{R}^{n'} R n ′ . Originally proposed as a baseline by Yi et al. [ [34 ] , Alg. 3] and analyzed by Dirksen and Stollenwerk [ [11 ] as the accelerated Gaussian binary embedding, this two-stage pipeline incurs an extra factor of 1 / ε 1/\varepsilon 1/ ε in encoding complexity compared to signing sparse FJLT rows directly (§ 3.7 ).
Outline and notation
The remainder of the paper is organized as follows. § 2.1 reviews the classical guarantees for dense Gaussian projections in a form that directly parallels our sparse theorems, and § 2.2 reviews the linear FJLT and illustrates how sign quantization breaks its standard analysis. § 3 presents our main theoretical results, § 4 validates the theory against numerical simulations, and § 5 concludes with a discussion and open problems. All mathematical proofs are deferred to Appendix § 6 , and experimental details are documented in Appendix § 7 .
Throughout the paper, ∥ x ∥ \lVert x\rVert ∥ x ∥ denotes the Euclidean norm of a vector x x x , ∥ x ∥ p \lVert x\rVert_p ∥ x ∥ p denotes its ℓ p \ell_p ℓ p norm (so that ∥ x ∥ 4 4 = ∑ j x j 4 \lVert x\rVert_4^4 = \sum_j x_j^4 ∥ x ∥ 4 4 = ∑ j x j 4 ), and ∥ x ∥ ∞ = max j ∣ x j ∣ \lVert x\rVert_\infty= \max_j \lvert x_j\rvert ∥ x ∥ ∞ = max j ∣ x j ∣ denotes its maximum coordinate magnitude. All logarithms are natural unless a base is explicitly specified. To ensure that every sign requires exactly one bit of storage, we adopt the convention sign ( 0 ) = + 1 \operatorname{sign}(0) = +1 sign ( 0 ) = + 1 . We let u , v ∈ R n u,v \in\mathbb{R}^n u , v ∈ R n denote unit vectors with inner product ρ = ⟨ u , v ⟩ = cos θ \rho= \langle u,v\rangle= \cos\theta ρ = ⟨ u , v ⟩ = cos θ and angle θ ∈ [ 0 , π ] \theta\in[0,\pi] θ ∈ [ 0 , π ] , while ε \varepsilon ε and δ \delta δ denote the target accuracy and failure probability, respectively. A comprehensive summary of notation is provided in Table 4 in Appendix § 6 .§ 1 .
Table 4. Table 4: Summary of notation used across multiple sections. Local variables used only within a single statement or proof (such as t t t , λ \lambda λ , τ \tau τ , R R R , and V V V ) are defined where they appear.
Background
To establish a clear baseline, we begin by reviewing both dense Gaussian projections for GG (Johnson–Lindenstrauss) and one-bit quantization for BG (asymmetric) and BB (SimHash). We state each dense guarantee in a form that directly mirrors our sparse theorems in § 3 , making the exact statistical price of sparsity easy to see by comparison.
Dense projections
For dense projections the behavior of all three estimators (GG, BG and BB) is well understood. Let Φ ∈ R ℓ × n \Phi\in\mathbb{R}^{\ell\times n} Φ ∈ R ℓ × n be a random projection matrix with rows φ 1 , … , φ ℓ \varphi_1,\ldots,\varphi_\ell φ 1 , … , φ ℓ , mapping a pair of unit vectors u , v ∈ R n u,v \in\mathbb{R}^n u , v ∈ R n with inner product ⟨ u , v ⟩ = ρ = cos θ \langle u,v\rangle=\rho=\cos\theta ⟨ u , v ⟩ = ρ = cos θ to the scalar row projections X i = ⟨ φ i , u ⟩ X_i=\langle\varphi_i,u\rangle X i = ⟨ φ i , u ⟩ and Y i = ⟨ φ i , v ⟩ Y_i=\langle\varphi_i,v\rangle Y i = ⟨ φ i , v ⟩ . Each row i i i produces a single row score , and the three estimators aggregate these scores across the ℓ \ell ℓ rows:
GG: score X i Y i X_iY_i X i Y i , ρ ^ G G = 1 ℓ ∑ i X i Y i \widehat{\rho}_{\mathrm{GG}}=\frac{1}{\ell}\sum_i X_iY_i ρ GG = ℓ 1 ∑ i X i Y i ;
BG: score Z i : = π / 2 sign ( X i ) Y i Z_i:=\sqrt{\pi/2}\,\operatorname{sign}(X_i)Y_i Z i := π /2 sign ( X i ) Y i , ρ ^ B G = 1 ℓ ∑ i Z i \widehat{\rho}_{\mathrm{BG}}=\frac{1}{\ell}\sum_i Z_i ρ BG = ℓ 1 ∑ i Z i ;
BB: score 1 { sign X i ≠ sign Y i } \mathbf{1}\{\operatorname{sign}X_i\ne\operatorname{sign}Y_i\} 1 { sign X i = sign Y i } , θ ^ = π ℓ # { i : sign X i ≠ sign Y i } \widehat{\theta}=\frac{\pi}{\ell}\#\{i:\operatorname{sign}X_i\ne\operatorname{sign}Y_i\} θ = ℓ π # { i : sign X i = sign Y i } , ρ ^ B B = cos θ ^ \widehat{\rho}_{\mathrm{BB}}=\cos\widehat{\theta} ρ BB = cos θ .
In the asymmetric estimator BG, only the stored vector u u u is quantized to one bit. Up to the scaling factor π / 2 / ℓ \sqrt{\pi/2}/\ell π /2 / ℓ , the BG sample average is simply the inner product between the sign code sign ( X ) \operatorname{sign}(X) sign ( X ) and the uncompressed query projection Y Y Y ; we therefore refer to it as the dot-product estimate . More generally, we use the term decoder for any aggregation rule that maps the ℓ \ell ℓ row scores of a pair to an inner product estimate, including both the sample average and Catoni’s robust mean estimator introduced at the end of this subsection.
When Φ = G \Phi=G Φ = G has independent standard normal entries N ( 0 , 1 ) \mathcal{N}(0,1) N ( 0 , 1 ) , three classical Gaussian identities ensure that all three estimators are unbiased or consistent. We state these identities for arbitrary nonzero vectors in any dimension d d d , as § 3.2 will apply them directly to the subsampled vectors ( u ~ S , v ~ S ) (\widetilde{u}_S,\widetilde{v}_S) ( u S , v S ) . For any nonzero x , y ∈ R d x,y\in\mathbb{R}^d x , y ∈ R d with angle ∠ ( x , y ) ∈ [ 0 , π ] \angle(x,y)\in[0,\pi] ∠ ( x , y ) ∈ [ 0 , π ] and g ∼ N ( 0 , I d ) g\sim\mathcal{N}(0,I_d) g ∼ N ( 0 , I d ) ,
E [ ⟨ g , x ⟩ ⟨ g , y ⟩ ] = ⟨ x , y ⟩ , E [ sign ⟨ g , x ⟩ ⟨ g , y ⟩ ] = 2 π ⟨ x , y ⟩ ∥ x ∥ , (1) \mathbb{E}\left[\langle g,x\rangle\langle g,y\rangle\right]=\langle x,y\rangle,\qquad
\mathbb{E}\left[\operatorname{sign}\langle g,x\rangle\langle g,y\rangle\right]=\sqrt{\frac{2}{\pi}}\frac{\langle x,y\rangle}{\lVert x\rVert}, \tag*{(1)} E [ ⟨ g , x ⟩ ⟨ g , y ⟩ ] = ⟨ x , y ⟩ , E [ sign ⟨ g , x ⟩ ⟨ g , y ⟩ ] = π 2 ∥ x ∥ ⟨ x , y ⟩ , (1)
Pr [ sign ⟨ g , x ⟩ ≠ sign ⟨ g , y ⟩ ] = ∠ ( x , y ) π . \Pr\left[\operatorname{sign}\langle g,x\rangle\ne\operatorname{sign}\langle g,y\rangle\right]=\frac{\angle(x,y)}{\pi}. Pr [ sign ⟨ g , x ⟩ = sign ⟨ g , y ⟩ ] = π ∠ ( x , y ) .
The first two identities follow from a direct Gaussian integration, while the third reflects the geometric fact that a random hyperplane through the origin separates x x x and y y y with probability proportional to the angle between them [16 Lemma 3.2] . Specializing to unit vectors u u u and v v v yields expectations ρ \rho ρ , 2 / π ρ \sqrt{2/\pi}\,\rho 2/ π ρ , and θ / π \theta/\pi θ / π , which explains the normalization constants π / 2 \sqrt{\pi/2} π /2 and π \pi π in (1).
The analysis of dense Gaussian projections is simplified enormously by rotational invariance: regardless of the specific unit vectors u u u and v v v , the projection pairs ( X i , Y i ) (X_i,Y_i) ( X i , Y i ) are independent standard bivariate normal vectors with correlation ρ \rho ρ , so the error distribution depends on the data solely through ρ \rho ρ . For the linear sketch GG, the classical guarantee is stated in terms of pairwise Euclidean distances.
Theorem 1 (Dense GG, Johnson–Lindenstrauss). Let X ⊆ R n \mathcal{X}\subseteq\mathbb{R}^n X ⊆ R n be a set of m m m points fixed in advance, and let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and ℓ ≥ 12 log ( m 2 / δ ) \ell\ge12\log(m^2/\delta) ℓ ≥ 12 log ( m 2 / δ ) [20 , 10 ] . With probability at least 1 − δ 1-\delta 1 − δ , all pairs x , y ∈ X x,y\in\mathcal{X} x , y ∈ X satisfy
∣ 1 ℓ ∥ G ( x − y ) ∥ 2 − ∥ x − y ∥ 2 ∣ ≤ 12 log ( m 2 / δ ) ℓ ∥ x − y ∥ 2 . \left|\frac{1}{\ell}\lVert G(x-y)\rVert^2-\lVert x-y\rVert^2\right|
\le\sqrt{\frac{12\log(m^2/\delta)}{\ell}}\lVert x-y\rVert^2. ℓ 1 ∥ G ( x − y ) ∥ 2 − ∥ x − y ∥ 2 ≤ ℓ 12 log ( m 2 / δ ) ∥ x − y ∥ 2 . Equivalently, ℓ ≥ 12 ε − 2 log ( m 2 / δ ) \ell\ge12\varepsilon^{-2}\log(m^2/\delta) ℓ ≥ 12 ε − 2 log ( m 2 / δ ) rows suffice to guarantee relative squared-norm distortion at most ε \varepsilon ε for any ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] . The sharper bound ℓ ≥ 4 ( ε 2 − 2 3 ε 3 ) − 1 log ( m 2 / δ ) \ell\ge4(\varepsilon^2-\frac{2}{3}\varepsilon^3)^{-1}\log(m^2/\delta) ℓ ≥ 4 ( ε 2 − 3 2 ε 3 ) − 1 log ( m 2 / δ ) also suffices.
Theorem 1 follows immediately by applying standard χ ℓ 2 \chi^2_\ell χ ℓ 2 tail bounds [1 Lemma 4.1] to ∥ G z ∥ 2 \lVert Gz\rVert^2 ∥ G z ∥ 2 for each normalized difference vector z = ( x − y ) / ∥ x − y ∥ z=(x-y)/\lVert x-y\rVert z = ( x − y ) / ∥ x − y ∥ and taking a union bound over all ( m 2 ) \binom{m}{2} ( 2 m ) pairs. Guarantees for inner products follow by polarization: since 4 ⟨ u , v ⟩ = ∥ u + v ∥ 2 − ∥ u − v ∥ 2 4\langle u,v\rangle=\lVert u+v\rVert^2-\lVert u-v\rVert^2 4 ⟨ u , v ⟩ = ∥ u + v ∥ 2 − ∥ u − v ∥ 2 and ∥ u + v ∥ 2 + ∥ u − v ∥ 2 = 4 \lVert u+v\rVert^2+\lVert u-v\rVert^2=4 ∥ u + v ∥ 2 + ∥ u − v ∥ 2 = 4 for unit vectors, preserving the squared norms of u + v u+v u + v and u − v u-v u − v to relative accuracy ε \varepsilon ε ensures ∣ ρ ^ G G − ρ ∣ ≤ ε |\widehat{\rho}_{\mathrm{GG}}-\rho|\le\varepsilon ∣ ρ GG − ρ ∣ ≤ ε . Across N N N pre-specified pairs of unit vectors, this holds simultaneously with probability at least 1 − δ 1-\delta 1 − δ under the same sketch-length condition, with log ( 4 N / δ ) \log(4N/\delta) log ( 4 N / δ ) replacing log ( m 2 / δ ) \log(m^2/\delta) log ( m 2 / δ ) . Theorem 10 provides the sparse FJLT counterpart.
Next, consider quantizing the stored vector to one bit (BG). Because the query projection Y i Y_i Y i remains Gaussian, the per-row score Z i Z_i Z i retains sub-Gaussian tails.
Theorem 2 (Dense BG, after Li [ [24 ] ). For any unit vectors u u u and v v v , the BG row score satisfies E Z i = ρ \mathbb{E}Z_i=\rho E Z i = ρ , Var Z i = π / 2 − ρ 2 \operatorname{Var}Z_i=\pi/2-\rho^2 Var Z i = π /2 − ρ 2 , and E e λ ( Z i − ρ ) ≤ e π λ 2 / 4 \mathbb{E}e^{\lambda(Z_i-\rho)}\le e^{\pi\lambda^2/4} E e λ ( Z i − ρ ) ≤ e π λ 2 /4 for all λ ∈ R \lambda\in\mathbb{R} λ ∈ R . Consequently, for any δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and any N N N pairs of unit vectors fixed in advance, with probability at least 1 − δ 1-\delta 1 − δ simultaneously across all pairs,
∣ ρ ^ B G − ρ ∣ ≤ π log ( 2 N / δ ) ℓ . \left|\widehat{\rho}_{\mathrm{BG}}-\rho\right|\le\sqrt{\frac{\pi\log(2N/\delta)}{\ell}}. ∣ ρ BG − ρ ∣ ≤ ℓ π log ( 2 N / δ ) . Equivalently, ℓ ≥ π ε − 2 log ( 2 N / δ ) \ell\ge\pi\varepsilon^{-2}\log(2N/\delta) ℓ ≥ π ε − 2 log ( 2 N / δ ) rows guarantee additive error at most ε \varepsilon ε .
While the mean and variance formulas are due to Li [ [24 ] , the sharp moment generating function bound E e λ ( Z i − ρ ) ≤ e π λ 2 / 4 \mathbb{E}e^{\lambda(Z_i-\rho)}\le e^{\pi\lambda^2/4} E e λ ( Z i − ρ ) ≤ e π λ 2 /4 is new; we derive it in Appendix § 6 .§ 5 and combine it with a Chernoff and union bound. To our knowledge, no valid concentration inequality with the optimal leading constant π \pi π has previously appeared in the literature. Theorem 14 (a) establishes the sparse counterpart.
Notably, the constant π \pi π in Theorem 2 cannot be improved. When u u u and v v v are orthogonal (ρ = 0 \rho=0 ρ = 0 ), the projections X i X_i X i and Y i Y_i Y i are independent, so sign ( X i ) Y i \operatorname{sign}(X_i)Y_i sign ( X i ) Y i is distributed as a standard normal variable, making Z i ∼ N ( 0 , π / 2 ) Z_i\sim\mathcal{N}(0,\pi/2) Z i ∼ N ( 0 , π /2 ) and ρ ^ B G ∼ N ( 0 , π / ( 2 ℓ ) ) \widehat{\rho}_{\mathrm{BG}}\sim\mathcal{N}(0,\pi/(2\ell)) ρ BG ∼ N ( 0 , π / ( 2 ℓ )) exact. The tail probability Pr [ ρ ^ B G > t ] \Pr[\widehat{\rho}_{\mathrm{BG}}>t] Pr [ ρ BG > t ] therefore decays as e − ℓ t 2 / π e^{-\ell t^2/\pi} e − ℓ t 2 / π up to a polynomial prefactor in t ℓ t\sqrt{\ell} t ℓ . In particular, the smaller constant claimed for this estimator in the QJL analysis of Zandieh et al. [ [36 ] is incorrect.1
From a variance perspective, quantizing the stored vector to one bit is remarkably inexpensive. Whereas a linear GG row score has variance 1 + ρ 2 1+\rho^2 1 + ρ 2 , a BG row score has variance π / 2 − ρ 2 \pi/2-\rho^2 π /2 − ρ 2 , which is at most π / 2 ≈ 1.57 \pi/2\approx1.57 π /2 ≈ 1.57 times larger at ρ = 0 \rho=0 ρ = 0 and actually becomes smaller than the GG variance whenever ρ 2 > ( π − 2 ) / 4 \rho^2>(\pi-2)/4 ρ 2 > ( π − 2 ) /4 (i.e., ∣ ρ ∣ ≳ 0.53 |\rho|\gtrsim0.53 ∣ ρ ∣ ≳ 0.53 ). As we show in § 4 , row sparsity shifts this variance crossover even further in favor of one-bit quantization.
Finally, when both vectors are quantized to one bit (BB), the estimator counts the fraction of disagreeing signs.
Theorem 3 (Dense BB, SimHash). Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , and fix N N N pairs of unit vectors in advance [16 , 8 ] . For each pair, Pr [ sign X i ≠ sign Y i ] = θ / π \Pr[\operatorname{sign}X_i\ne\operatorname{sign}Y_i]=\theta/\pi Pr [ sign X i = sign Y i ] = θ / π .
(a) With probability at least 1 − δ 1-\delta 1 − δ , all pairs comply with ∣ θ ^ − θ ∣ ≤ π log ( 2 N / δ ) / ( 2 ℓ ) |\widehat{\theta}-\theta|\le\pi\sqrt{\log(2N/\delta)/(2\ell)} ∣ θ − θ ∣ ≤ π log ( 2 N / δ ) / ( 2 ℓ ) , and the same bound holds for ∣ ρ ^ B B − ρ ∣ |\widehat{\rho}_{\mathrm{BB}}-\rho| ∣ ρ BB − ρ ∣ . Equivalently, ℓ ≥ π 2 2 ε − 2 log ( 2 N / δ ) \ell\ge\frac{\pi^2}{2}\varepsilon^{-2}\log(2N/\delta) ℓ ≥ 2 π 2 ε − 2 log ( 2 N / δ ) rows guarantee error at most ε \varepsilon ε .
(b) Let ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] and θ 0 ∈ ( 0 , π ] \theta_0\in(0,\pi] θ 0 ∈ ( 0 , π ] . If ℓ ≥ 8.4 ε − 2 θ 0 − 1 log ( 2 N / δ ) \ell\ge8.4\varepsilon^{-2}\theta_0^{-1}\log(2N/\delta) ℓ ≥ 8.4 ε − 2 θ 0 − 1 log ( 2 N / δ ) , then with probability at least 1 − δ 1-\delta 1 − δ , every pair with θ ≥ θ 0 \theta\ge\theta_0 θ ≥ θ 0 satisfies ∣ θ ^ − θ ∣ ≤ ε θ |\widehat{\theta}-\theta|\le\varepsilon\theta ∣ θ − θ ∣ ≤ εθ , and every pair with θ = 0 \theta=0 θ = 0 satisfies θ ^ = 0 \widehat{\theta}=0 θ = 0 .
Because the empirical disagreement fraction θ ^ / π \widehat{\theta}/\pi θ / π is the average of ℓ \ell ℓ independent Bernoulli( θ / π ) (\theta/\pi) ( θ / π ) indicators, each with variance at most θ / π \theta/\pi θ / π , part (a) follows immediately from Hoeffding’s inequality and a union bound [19 Lemma 2] , transferring to ρ ^ B B = cos θ ^ \widehat{\rho}_{\mathrm{BB}}=\cos\widehat{\theta} ρ BB = cos θ because cosine is 1-Lipschitz. Part (b) follows from Bernstein’s inequality: identical vectors (θ = 0 \theta=0 θ = 0 ) produce identical signs in every row, while for any pair with θ ≥ θ 0 \theta\ge\theta_0 θ ≥ θ 0 ,
Pr [ ∣ θ ^ − θ ∣ > ε θ ] ≤ 2 exp { − ℓ ε 2 θ 2 π ( 1 + ε / 3 ) } ≤ 2 exp { − ℓ ε 2 θ 0 8.4 } ≤ δ N , \Pr\left[|\widehat{\theta}-\theta|>\varepsilon\theta\right]\le2\exp\left\{-\frac{\ell\varepsilon^2\theta}{2\pi(1+\varepsilon/3)}\right\}\le2\exp\left\{-\frac{\ell\varepsilon^2\theta_0}{8.4}\right\}\le\frac{\delta}{N}, Pr [ ∣ θ − θ ∣ > εθ ] ≤ 2 exp { − 2 π ( 1 + ε /3 ) ℓ ε 2 θ } ≤ 2 exp { − 8.4 ℓ ε 2 θ 0 } ≤ N δ ,
since 2 π ( 1 + ε / 3 ) ≤ 8 π / 3 ≤ 8.4 2\pi(1+\varepsilon/3)\le8\pi/3\le8.4 2 π ( 1 + ε /3 ) ≤ 8 π /3 ≤ 8.4 for all ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] .
Part (b) explains why SimHash excels at near-duplicate detection: achieving relative error ε \varepsilon ε down to a minimum angle θ 0 \theta_0 θ 0 requires only O ( θ 0 − 1 ) O(\theta_0^{-1}) O ( θ 0 − 1 ) rows, whereas applying the additive bound of part (a) at accuracy ε θ 0 \varepsilon\theta_0 ε θ 0 would require O ( θ 0 − 2 ) O(\theta_0^{-2}) O ( θ 0 − 2 ) rows. Theorem 18 establishes sparse counterparts for both regimes.
We also note that the bit complexity of part (a) is information-theoretically optimal up to constant factors: preserving pairwise cosines among m m m points uses O ( ε − 2 log ( m / δ ) ) O(\varepsilon^{-2}\log(m/\delta)) O ( ε − 2 log ( m / δ )) bits per point, matching the Ω ( ε − 2 log ( m / δ ) ) \Omega(\varepsilon^{-2}\log(m/\delta)) Ω ( ε − 2 log ( m / δ )) lower bound of Yi et al. [ [34 ] for any data-oblivious binary embedding when n n n is at least of this order. Fast sparse one-bit sketches therefore reduce encoding time rather than code length.
Robust aggregation via Catoni’s estimator. A standard sample average is vulnerable to rare outlier scores, which occur in sparse sketching whenever a row’s support happens to land on several large coordinates of a vector at once. We can avoid paying for these heavy tails by aggregating row scores with Catoni’s robust mean estimator [6 ] , whose high-probability concentration requires only a bound on the variance of each row score. Given scalar row scores W 1 , … , W ℓ W_1,\ldots,W_\ell W 1 , … , W ℓ (representing X i Y i X_iY_i X i Y i in GG or Z i Z_i Z i in BG) and a scale parameter α > 0 \alpha>0 α > 0 , Catoni’s estimator Cat α ( W 1 , … , W ℓ ) \operatorname{Cat}_\alpha(W_1,\ldots,W_\ell) Cat α ( W 1 , … , W ℓ ) is defined as the unique root c ∈ R c\in\mathbb{R} c ∈ R of the estimating equation
∑ i = 1 ℓ ψ ( α ( W i − c ) ) = 0 , where ψ ( x ) : = sign ( x ) log ( 1 + ∣ x ∣ + x 2 2 ) . (2) \sum_{i=1}^{\ell}\psi\bigl(\alpha(W_i-c)\bigr)=0,\qquad\text{where }\psi(x):=\operatorname{sign}(x)\log\left(1+|x|+\frac{x^2}{2}\right). \tag*{(2)} i = 1 ∑ ℓ ψ ( α ( W i − c ) ) = 0 , where ψ ( x ) := sign ( x ) log ( 1 + ∣ x ∣ + 2 x 2 ) . (2)
Because the influence function ψ \psi ψ grows only logarithmically for large arguments, a handful of extreme row scores cannot pull the root c c c far from the mean.
Specifically, if the ℓ \ell ℓ scores of each of N N N pairs are independent with common mean and variance at most σ 2 \sigma^2 σ 2 , and if ℓ > 2 L \ell>2L ℓ > 2 L with L : = log ( 2 N / δ ) L:=\log(2N/\delta) L := log ( 2 N / δ ) , then for an appropriate choice of α \alpha α , all N N N Catoni estimates simultaneously lie within 2 σ 2 L / ( ℓ − 2 L ) \sqrt{2\sigma^2L/(\ell-2L)} 2 σ 2 L / ( ℓ − 2 L ) of their expectations with probability at least 1 − δ 1-\delta 1 − δ (Appendix § 6 .§ 1 ). Up to the minor degrees-of-freedom adjustment 2 L 2L 2 L , this matches the sub-Gaussian tail of a sample average of ℓ \ell ℓ truly Gaussian variables with variance σ 2 \sigma^2 σ 2 . We use this robust decoder in part (b) of Theorems 10 and 14 , and show in Remark 17 that a one-step variant can be evaluated as cheaply as a standard dot product.
The Fast Johnson–Lindenstrauss Transform
The fast Johnson–Lindenstrauss transform (FJLT) accelerates dense Gaussian sketching by factoring the projection into random coordinate sign flips, a Walsh–Hadamard transform, and a sparse Gaussian matrix. It provides the second component of our work. We now review its formal definition, its classical norm-preservation guarantees, and the two-stage architecture of its proof. Our analysis of one-bit sketches preserves the first stage (preconditioning) verbatim, but requires a new approach for the second stage (sparse sampling), for reasons we illustrate at the end of the section.
Definition 4 (FJLT [3 ] ). Let n ≥ 2 \mathcal{n}\ge2 n ≥ 2 be a power of two, and let ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 and q ∈ ( 0 , 1 ] q\in(0,1] q ∈ ( 0 , 1 ] . The FJLT is the random matrix Φ = P H D ∈ R ℓ × n \Phi=PHD\in\mathbb{R}^{\ell\times n} Φ = P H D ∈ R ℓ × n , where D D D is a diagonal matrix of independent Rademacher signs (± 1 \pm1 ± 1 with probability 1 2 \frac{1}{2} 2 1 each), H H H is the normalized Walsh–Hadamard matrix, and P P P is a sparse Gaussian matrix with entries P i j = 1 { j ∈ S i } g i j P_{ij}=\mathbf{1}\{j\in S_i\}g_{ij} P ij = 1 { j ∈ S i } g ij . Here S i ⊆ { 1 , … , n } S_i\subseteq\{1,\ldots,n\} S i ⊆ { 1 , … , n } denotes the support of row i i i , and the weights g i j ∼ N ( 0 , 1 / q ) g_{ij}\sim\mathcal{N}(0,1/q) g ij ∼ N ( 0 , 1/ q ) are independent across supports S 1 , … , S ℓ S_1,\ldots,S_\ell S 1 , … , S ℓ and identically distributed, and D D D , { S i } \{S_i\} { S i } , and { g i j } \{g_{ij}\} { g ij } are mutually independent. Under Bernoulli supports—the original specification of Ailon and Chazelle [ [3 ] —each coordinate j j j is included in S i S_i S i independently with probability q q q , so that r : = q n r:=qn r := q n is the expected number of nonzeros per row (the row sparsity).
Applying Φ \Phi Φ to a vector in R n \mathbb{R}^n R n requires O ( n log n ) O(n\log n) O ( n log n ) additions for the fast Walsh–Hadamard transform H D HD H D , followed by roughly ℓ r \ell r ℓ r multiply–adds for the sparse matrix P P P . The central theoretical question is how small the row sparsity r r r can be made without sacrificing accuracy. Ailon and Chazelle [ [3 ] proved that r = Θ ( log 2 m ) r=\Theta(\log^2m) r = Θ ( log 2 m ) nonzeros per row suffice to preserve the Euclidean norms of m m m points.2
Theorem 5 (FJLT [3 Lemma 1] ). Let X ⊂ R n \mathcal{X}\subset\mathbb{R}^n X ⊂ R n be a set of m m m vectors with n ≤ m n\le m n ≤ m , and let ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) . Let Φ = P H D \Phi=PHD Φ = P H D have Bernoulli supports of density q = r / n q=r/n q = r / n with row sparsity r = min { c 1 log 2 m , n } r=\min\{c_1\log^2m,n\} r = min { c 1 log 2 m , n } for a sufficiently large universal constant c 1 c_1 c 1 , and sketch length ℓ = Θ ( ϵ − 2 log m ) \ell=\Theta(\epsilon^{-2}\log m) ℓ = Θ ( ϵ − 2 log m ) . With probability at least 2 / 3 2/3 2/3 ,
( 1 − ϵ ) ∥ x ∥ ≤ ℓ − 1 / 2 ∥ Φ x ∥ ≤ ( 1 + ϵ ) ∥ x ∥ for all x ∈ X , (1-\epsilon)\lVert x\rVert\le\ell^{-1/2}\lVert\Phi x\rVert\le(1+\epsilon)\lVert x\rVert\qquad\text{for all }x\in\mathcal{X}, ( 1 − ϵ ) ∥ x ∥ ≤ ℓ − 1/2 ∥ Φ x ∥ ≤ ( 1 + ϵ ) ∥ x ∥ for all x ∈ X , and evaluating Φ x \Phi x Φ x requires O ( n log n + min { n ϵ − 2 log m , ϵ − 2 log 3 m } ) O\bigl(n\log n+\min\{n\epsilon^{-2}\log m,\epsilon^{-2}\log^3m\}\bigr) O ( n log n + min { n ϵ − 2 log m , ϵ − 2 log 3 m } ) operations.
The proof of Theorem 5 proceeds in two stages. The first stage is flattening: multiplying a unit vector x x x by random signs D D D and applying the Hadamard transform H H H spreads its energy across all n n n coordinates, ensuring with high probability that no single coordinate of x ~ = H D x \widetilde{x}=HDx x = H D x carries more than a logarithmic multiple of the average energy 1 / n 1/n 1/ n . As introduced in § 1.1 , we measure this peak coordinate energy by the cap w x : = n ∥ x ~ ∥ ∞ 2 w_x:=n\lVert\widetilde{x}\rVert_\infty^2 w x := n ∥ x ∥ ∞ 2 , which ranges from 1 1 1 when x ~ \widetilde{x} x is perfectly flat to n n n when x ~ \widetilde{x} x is aligned with a standard basis vector.
Lemma 6 (Flatness, after Ailon and Chazelle [ [3 ] ). Let U ⊂ R n \mathcal{U}\subset\mathbb{R}^n U ⊂ R n be a finite family of unit vectors fixed independently of D D D , and let δ 0 ∈ ( 0 , 1 ) \delta_0\in(0,1) δ 0 ∈ ( 0 , 1 ) . With probability at least 1 − δ 0 1-\delta_0 1 − δ 0 over the draw of D D D , every vector x ∈ U x\in\mathcal{U} x ∈ U satisfies w x ≤ 2 log ( 2 n ∣ U ∣ / δ 0 ) w_x\le2\log(2n|\mathcal{U}|/\delta_0) w x ≤ 2 log ( 2 n ∣ U ∣/ δ 0 ) .
Lemma 6 is simply the flattening step of Ailon and Chazelle [ [3 ] with an explicit constant: each coordinate x ~ j \tilde{x}_j x ~ j is a linear combination of independent Rademacher signs whose squared coefficients sum to ∥ x ∥ 2 / n = 1 / n \lVert x\rVert^2/n = 1/n ∥ x ∥ 2 / n = 1/ n , so Hoeffding’s inequality yields Pr [ n x ~ j 2 ≥ t ] ≤ 2 e − t / 2 \Pr[n\tilde{x}_j^2 \ge t] \le2e^{-t/2} Pr [ n x ~ j 2 ≥ t ] ≤ 2 e − t /2 , and setting t = 2 log ( 2 n ∣ U ∣ / δ 0 ) t = 2\log(2n\lvert\mathcal{U}\rvert/\delta_0) t = 2 log ( 2 n ∣ U ∣ / δ 0 ) with a union bound over all n ∣ U ∣ n\lvert\mathcal{U}\rvert n ∣ U ∣ coordinates completes the proof.
To make comparisons across our corollaries uniform, for a target overall failure probability δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and an effective count K > 0 K > 0 K > 0 of vectors to be flattened, we define the flatness level
μ ( K ) : = 2 log 4 n K δ , (3) \mu(K) := 2\log\frac{4nK}{\delta}, \tag*{(3)} μ ( K ) := 2 log δ 4 n K , (3)
which equals the bound of Lemma 6 on K K K vectors at δ 0 = δ / 2 \delta_0 = \delta/2 δ 0 = δ /2 (and on K / 2 K/2 K /2 vectors at δ 0 = δ / 4 \delta_0 = \delta/4 δ 0 = δ /4 ). Because H D HD H D is an orthogonal transformation, it preserves all inner products and angles exactly; its sole purpose is to regularize the coordinate distribution of the inputs before sparse sampling, and we therefore call H D HD H D the preconditioner .
The second stage of the classical proof is energy capture . Condition on a realized sign matrix D D D . Row i i i of P P P inspects only the coordinates in its support S i S_i S i , capturing from x x x the rescaled energy σ x , i 2 : = ∥ x ~ S i ∥ 2 \sigma_{x,i}^2 := \lVert\tilde{x}_{S_i}\rVert^2 σ x , i 2 := ∥ x ~ S i ∥ 2 , whose expectation over S i S_i S i is 1 1 1 . Conditioned on S i S_i S i , the scalar projection ( Φ x ) i (\Phi x)_i ( Φ x ) i is distributed as N ( 0 , σ x , i 2 ) \mathcal{N}(0,\sigma_{x,i}^2) N ( 0 , σ x , i 2 ) , so the squared norm estimate ℓ − 1 ∥ Φ x ∥ 2 \ell^{-1}\lVert\Phi x\rVert^2 ℓ − 1 ∥ Φ x ∥ 2 is a weighted average of independent χ 1 2 \chi_1^2 χ 1 2 variables with weights σ x , i 2 / ℓ \sigma_{x,i}^2/\ell σ x , i 2 / ℓ . When x ~ \tilde{x} x ~ has a small cap w x w_x w x , no single coordinate can dominate σ x , i 2 \sigma_{x,i}^2 σ x , i 2 , causing σ x , i 2 \sigma_{x,i}^2 σ x , i 2 to concentrate around 1 1 1 .
Specifically, Ailon and Chazelle [ [3 ] showed that when w x ≤ μ w_x \le\mu w x ≤ μ , choosing r = Θ ( μ log m ) r = \Theta(\mu\log m) r = Θ ( μ log m ) keeps every row’s captured energy σ x , i 2 \sigma_{x,i}^2 σ x , i 2 within [ 1 / 2 , 2 ] [1/2,2] [ 1/2 , 2 ] and their average within ϵ \epsilon ϵ of 1 1 1 with high probability across all x ∈ X x \in\mathcal{X} x ∈ X . Applying a standard Chernoff bound to the weighted χ 2 \chi^2 χ 2 sum then yields Theorem 5 . Under their assumption n ≤ m n \le m n ≤ m and constant failure probability δ 0 \delta_0 δ 0 , the flatness bound is μ = Θ ( log m ) \mu= \Theta(\log m) μ = Θ ( log m ) , resulting in a row sparsity of r = Θ ( log 2 m ) r = \Theta(\log^2 m) r = Θ ( log 2 m ) . Recently, Fandina et al. [ [13 ] —hereafter FHL—sharpened this second stage to obtain the optimal sparsity achievable via a per-vector union bound.
Theorem 7 [13 Thm. 1] . Let X ⊂ R n \mathcal{X} \subset\mathbb{R}^n X ⊂ R n be a set of m ≥ 2 m \ge2 m ≥ 2 points with n ≤ m n \le m n ≤ m , let 0 < ϵ ≤ c 0 < \epsilon\le c 0 < ϵ ≤ c for a universal constant c c c , and let ℓ = Θ ( ϵ − 2 log m ) \ell= \Theta(\epsilon^{-2}\log m) ℓ = Θ ( ϵ − 2 log m ) with ℓ ≤ n \ell\le n ℓ ≤ n . Under Bernoulli supports of density q = r / n q = r/n q = r / n with row sparsity
r = C min { ϵ n , log m ⋅ max ( 1 , ϵ log m log ( 1 / ϵ ) ) } r = C\min\left\{\epsilon n,\log m\cdot\max\left(1,\frac{\epsilon\log m}{\log(1/\epsilon)}\right)\right\} r = C min { ϵ n , log m ⋅ max ( 1 , log ( 1/ ϵ ) ϵ log m ) } for a suitable universal constant C C C , the map ℓ − 1 / 2 P H D \ell^{-1/2}PHD ℓ − 1/2 P H D preserves all pairwise Euclidean distances in X \mathcal{X} X to within 1 ± ϵ 1 \pm\epsilon 1 ± ϵ with probability at least 1 − 1 / m 1 - 1/m 1 − 1/ m .
The key refinement of FHL lies in how they control the captured energies { σ x , i 2 } \{\sigma_{x,i}^2\} { σ x , i 2 } . Standard Bernstein-type tail bounds for weighted sums of χ 1 2 \chi_1^2 χ 1 2 variables depend on the weights only through the sum of squares ∑ i σ x , i 4 \sum_i \sigma_{x,i}^4 ∑ i σ x , i 4 and the maximum max i σ x , i 2 \max_i \sigma_{x,i}^2 max i σ x , i 2 . Whereas Ailon and Chazelle bounded ∑ i σ x , i 4 \sum_i \sigma_{x,i}^4 ∑ i σ x , i 4 crudely by ℓ max i σ x , i 4 \ell\max_i \sigma_{x,i}^4 ℓ max i σ x , i 4 , forcing them to keep max i σ x , i 2 = O ( 1 ) \max_i \sigma_{x,i}^2 = O(1) max i σ x , i 2 = O ( 1 ) —FHL bounded the two quantities separately, allowing rare rows to capture up to 1 + 1 / ϵ 1 + 1/\epsilon 1 + 1/ ϵ units of energy. Whenever ϵ n \epsilon n ϵ n is not the active branch of the minimum, their required sparsity is Θ ( log m ) \Theta(\log m) Θ ( log m ) multiplied by a factor that remains O ( 1 ) O(1) O ( 1 ) for all ϵ = O ( log log m / log m ) \epsilon= O(\log\log m/\log m) ϵ = O ( log log m / log m ) . In that regime, O ( log m ) O(\log m) O ( log m ) nonzeros per row suffice, matching the flatness level itself and shaving a factor of log m \log m log m off Theorem 5. Corollary 11(i) recovers this sharp bound with explicit constants under both Bernoulli and balanced supports.
Moreover, Fandina et al. [ [13 ] proved a matching lower bound showing that for a single preconditioned vector and failure probability m − Θ ( 1 ) m^{-\Theta(1)} m − Θ ( 1 ) , the standard estimator ℓ − 1 ∥ Φ x ∥ 2 \ell^{-1}\lVert\Phi x\rVert^2 ℓ − 1 ∥ Φ x ∥ 2 genuinely requires the row density of Theorem 7 ; consequently, no analysis of the sample average that relies on a union bound over individual vectors can improve upon it.
Why sign quantization changes the picture. Crucially, both linear FJLT analyses rely on the fact that the estimator is unbiased conditionally on the supports: given S i S_i S i , the squared projection ( Φ x ) i 2 (\Phi x)_i^2 ( Φ x ) i 2 has conditional mean σ x , i 2 \sigma_{x,i}^2 σ x , i 2 , and E σ x , i 2 = 1 \mathbb{E}\sigma_{x,i}^2 = 1 E σ x , i 2 = 1 for every fixed D D D . Random fluctuations in σ x , i 2 \sigma_{x,i}^2 σ x , i 2 therefore thicken the tails of the estimate, requiring more rows or slightly denser supports to control the variance, but they never shift its expectation.
Taking signs breaks this linearity. Consider again the self-pair example from § 1.1 , where a stored unit vector u u u is scored against itself using BG. Conditioned on the support S i S_i S i , the row score Z i = π / 2 ∣ X i ∣ Z_i = \sqrt{\pi/2}\lvert X_i\rvert Z i = π /2 ∣ X i ∣ has conditional mean σ u , i \sigma_{u,i} σ u , i , where σ u , i 2 \sigma_{u,i}^{2} σ u , i 2 is the energy captured from u u u . Taking expectations over the support for a fixed D D D yields
E ρ ^ B G = E σ u , i ≤ E σ u , i 2 = 1 , with a downward bias 1 − E σ u , i ≈ 1 8 Var ( σ u , i 2 ) . \mathbb{E}\hat{\rho}_{\mathrm{BG}}=\mathbb{E}\sigma_{u,i}\leq\sqrt{\mathbb{E}\sigma_{u,i}^{2}}=1,\qquad\text{with a downward bias}\qquad1-\mathbb{E}\sigma_{u,i}\approx\frac{1}{8}\operatorname{Var}(\sigma_{u,i}^{2}). E ρ ^ BG = E σ u , i ≤ E σ u , i 2 = 1 , with a downward bias 1 − E σ u , i ≈ 8 1 Var ( σ u , i 2 ) .
By Jensen’s inequality and the strict concavity of the square root, the fluctuations of σ u , i 2 \sigma_{u,i}^{2} σ u , i 2 around 1 1 1 induce a systematic negative bias of order Var ( σ u , i 2 ) \operatorname{Var}(\sigma_{u,i}^{2}) Var ( σ u , i 2 ) , which is the exact calculation underlying Ailon and Chazelle [ [3 ] for their ℓ 1 \ell_{1} ℓ 1 FJLT.
The magnitude of this support bias is governed by the flatness of u ~ \tilde{u} u ~ . Under Bernoulli supports, Var ( σ u , i 2 ) = ( 1 − q ) k u / r ≤ w u / r \operatorname{Var}(\sigma_{u,i}^{2})=(1-q)k_{u}/r\leq w_{u}/r Var ( σ u , i 2 ) = ( 1 − q ) k u / r ≤ w u / r , and Lemma 6 bounds the cap w u w_{u} w u by μ ( K ) \mu(K) μ ( K ) . Thus, while a linear sketch only needs flatness to control the tail probabilities of the captured energy, a one-bit sketch must keep a systematic bias of order μ ( K ) / r \mu(K)/r μ ( K ) / r below the target accuracy ε \varepsilon ε . This forces the row sparsity r r r to scale as μ ( K ) / ε \mu(K)/\varepsilon μ ( K ) / ε , explaining the ε − 1 \varepsilon^{-1} ε − 1 sparsity factor that appears throughout our one-bit bounds—as well as in the ℓ 1 \ell_{1} ℓ 1 FJLT, where Matoušek [ [26 ] similarly requires r = 2 w u / ε r=2w_{u}/\varepsilon r = 2 w u / ε in our notation.
Main results
We analyze each of the three estimators by following the two-stage structure introduced in § 2.2 . First, we condition on a fixed sign matrix D D D and bound the estimation error over the random draw of the sparse matrix P P P alone, expressing the bound in terms of the empirical flatness parameters of the preconditioned inputs. Evaluated on a specific dataset, this conditional guarantee serves directly as an accuracy certificate in the sense of § 1.4 . Second, we take expectations over the random draw of D D D , invoke Lemma 6 to bound the flatness parameters of pre-specified inputs by the flatness level μ ( K ) \mu(K) μ ( K ) of (4) with high probability, and state the resulting worst-case requirements on the sketch length ℓ \ell ℓ and row sparsity r r r in classical form.
Setting
Whereas Bernoulli supports (Definition 4) allow the number of nonzeros in each row to fluctuate randomly, Algorithm 1 fixes the support size of every row to r r r .
Definition 8 (Balanced supports). In the setting of Definition 4, let r ∈ { 1 , … , n } r\in\{1,\ldots,n\} r ∈ { 1 , … , n } and q : = r / n q:=r/n q := r / n . Under balanced supports, each row support S i S_i S i is drawn uniformly at random from the ( n r ) \binom{n}{r} ( r n ) subsets of { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } of size r r r . To treat both support laws simultaneously, define f q : = ( n − r ) / ( n − 1 ) f_q:=(n-r)/(n-1) f q := ( n − r ) / ( n − 1 ) and 1 b a l : = 1 \mathbf{1}_{\mathrm{bal}}:=1 1 bal := 1 for balanced supports, and f q : = 1 − q f_q:=1-q f q := 1 − q and 1 b a l : = 0 \mathbf{1}_{\mathrm{bal}}:=0 1 bal := 0 for Bernoulli supports (for any q ∈ ( 0 , 1 ] q\in(0,1] q ∈ ( 0 , 1 ] ). In both cases f q ∈ [ 0 , 1 ] f_q\in[0,1] f q ∈ [ 0 , 1 ] , with f q = 0 f_q=0 f q = 0 if and only if r = n r=n r = n .
All of our upper bounds depend on the support law exclusively through the two constants f q f_q f q and 1 b a l \mathbf{1}_{\mathrm{bal}} 1 bal . When r ≪ n r\ll n r ≪ n , the factor f q f_q f q is close to 1 1 1 ; under balanced supports, f q f_q f q is the standard finite-population correction for sampling without replacement.
Data-dependent flatness parameters. Apart from the true inner product ρ \rho ρ , our conditional bounds depend on the input vectors solely through summary statistics that measure how uniformly the preconditioned vectors x ~ = H D x \tilde{x}=HDx x ~ = H D x spread their energy across coordinates. All parameters are defined for unit vectors (general nonzero vectors are normalized prior to evaluation). Alongside the cap w x w_x w x and fourth moment k x k_x k x introduced in § 1.1 , we define the cross fourth moment k u v k_{uv} k uv of a pair ( u , v ) (u,v) ( u , v ) , which measures the coordinatewise overlap of their squared entries, as well as the pairwise maxima w u ∨ v w_{u\vee v} w u ∨ v and k u ∨ v k_{u\vee v} k u ∨ v . Writing x ∘ y x\circ y x ∘ y for the Hadamard (entrywise) product with coordinates ( x ∘ y ) j = x j y j (x\circ y)_j=x_jy_j ( x ∘ y ) j = x j y j , we set
w x : = n ∥ x ~ ∥ ∞ 2 , k x : = n ∥ x ~ ∥ 4 4 , 1 ≤ k x ≤ w x ≤ n ; k u v : = n ∥ u ~ ∘ v ~ ∥ 2 2 ≤ min { w u , k u k v } , w u ∨ v : = max { w u , w v } , k u ∨ v : = max { k u , k v } ; w U : = max x ∈ U w x , k U : = max x ∈ U k x for a finite family U of unit vectors. (4) \begin{aligned}
w_x&:=n\lVert\tilde{x}\rVert_{\infty}^{2},&\qquad k_x&:=n\lVert\tilde{x}\rVert_{4}^{4},&\qquad1&\leq k_x\leq w_x\leq n;\\
k_{uv}&:=n\lVert\tilde{u}\circ\tilde{v}\rVert_{2}^{2}\leq\min\{w_u,\sqrt{k_uk_v}\},& w_{u\vee v}&:=\max\{w_u,w_v\},& k_{u\vee v}&:=\max\{k_u,k_v\};\\
w_{\mathcal{U}}&:=\max_{x\in\mathcal{U}}w_x,& k_{\mathcal{U}}&:=\max_{x\in\mathcal{U}}k_x&&\text{for a finite family }\mathcal{U}\text{ of unit vectors.} \tag*{(4)}
\end{aligned} w x k uv w U := n ∥ x ~ ∥ ∞ 2 , := n ∥ u ~ ∘ v ~ ∥ 2 2 ≤ min { w u , k u k v } , := x ∈ U max w x , k x w u ∨ v k U := n ∥ x ~ ∥ 4 4 , := max { w u , w v } , := x ∈ U max k x 1 k u ∨ v ≤ k x ≤ w x ≤ n ; := max { k u , k v } ; for a finite family U of unit vectors. (4)
Notice that k u u = k u k_{uu}=k_u k uu = k u , and that w x = k x = 1 w_x=k_x=1 w x = k x = 1 if and only if x ~ \tilde{x} x ~ is perfectly flat. The inequalities in (4) are proved in Appendix § 6 .§ 3 .
Moments of the captured energy. Recall from § 1.1 that for a row support S S S , the rescaled subsampled vector x ~ S ∈ R n \tilde{x}_S\in\mathbb{R}^{n} x ~ S ∈ R n has coordinates ( x ~ S ) j : = q − 1 / 2 x ~ j 1 { j ∈ S } (\tilde{x}_S)_j:=q^{-1/2}\tilde{x}_j\mathbf{1}\{j\in S\} ( x ~ S ) j := q − 1/2 x ~ j 1 { j ∈ S } . Caps and fourth moments govern the behavior of the energy σ x 2 : = ∥ x ~ S ∥ 2 \sigma_x^2 := \lVert\tilde{x}_S\rVert^2 σ x 2 := ∥ x ~ S ∥ 2 captured from a unit vector x x x . Conditioned on D D D , the random variable σ x 2 \sigma_x^2 σ x 2 satisfies three key properties over the draw of S S S (proved in Appendix § 6 .§ 3 ):
E σ x 2 = 1 and Var ( σ x 2 ) = f q ( k x − 1 b a l ) r , (5) \mathbb{E}\sigma_x^2 = 1
\qquad\text{and}\qquad
\operatorname{Var}(\sigma_x^2) = \frac{f_q(k_x-\mathbf{1}_{\mathrm{bal}})}{r}, \tag*{(5)} E σ x 2 = 1 and Var ( σ x 2 ) = r f q ( k x − 1 bal ) , (5)
while no individual coordinate contributes more than w x / r w_x/r w x / r to σ x 2 \sigma_x^2 σ x 2 .
Crucially, the fourth moment and the cap live on very different scales. For any unit vector x x x fixed prior to drawing D D D , the expected fourth moment over the random signs is E D k x = 3 − 2 ∥ x ∥ 4 4 ≤ 3 \mathbb{E}_D k_x = 3 - 2\lVert x\rVert_4^4 \le3 E D k x = 3 − 2 ∥ x ∥ 4 4 ≤ 3 , regardless of the ambient dimension n n n . By contrast, the cap w x w_x w x is the maximum of n n n squared coordinates; it typically grows as log n \log n log n , and Lemma 6 bounds it in the worst case by the flatness level μ ( K ) \mu(K) μ ( K ) of (3) . Because k x k_x k x is so much smaller than w x w_x w x on typical inputs, we state several of our main bounds in two forms: a simple cap-based bound and a sharper fourth-moment bound.
The statistical benefit of balanced rows. Under Bernoulli supports, the variance of the captured energy decomposes into two distinct contributions, Var ( σ x 2 ) = 1 − q r + ( 1 − q ) ( k x − 1 ) r \operatorname{Var}(\sigma_x^2) = \frac{1-q}{r} + \frac{(1-q)(k_x-1)}{r} Var ( σ x 2 ) = r 1 − q + r ( 1 − q ) ( k x − 1 ) : the first term arises from random fluctuations in the support size ∣ S ∣ |S| ∣ S ∣ , while the second reflects the heterogeneity of the squared coordinates x ~ j 2 \tilde{x}_j^2 x ~ j 2 . Switching to balanced supports eliminates the support-size variance entirely and scales the coordinate-heterogeneity term by n / ( n − 1 ) n/(n-1) n / ( n − 1 ) . Whenever k x ≈ 3 k_x \approx3 k x ≈ 3 (as holds for typical preconditioned vectors), balancing removes roughly one third of Var ( σ x 2 ) \operatorname{Var}(\sigma_x^2) Var ( σ x 2 ) ; when x ~ \tilde{x} x ~ is completely flat (k x = 1 k_x=1 k x = 1 ), it reduces the variance to zero, making BG completely unbiased (Proposition 13 (iii)). For SimHash (BB), however, balancing has virtually no effect on the bias because fluctuating row lengths merely rescale the row metric without changing angles (§ 3.5 ).
Computational cost. Encoding a vector requires n log 2 n n\log_2 n n log 2 n additions and n n n sign flips to apply H D HD H D , followed by r ℓ r\ell r ℓ multiply–adds to apply P P P (in expectation under Bernoulli supports, and deterministically under balanced supports). Scoring a pair of codes takes O ( ℓ ) O(\ell) O ( ℓ ) operations (a single bitwise XOR and population count for BB), so scoring one query against m m m stored vectors takes O ( m ℓ ) O(m\ell) O ( m ℓ ) operations for any n n n and r r r .
Admissible inputs and query adaptivity. Our conditional theorems fix the preconditioner D D D and take probabilities solely over the sparse matrix P P P . Consequently, they apply to any vectors or pairs chosen without knowledge of P P P , even if that choice depends on D D D . Formally, we call a collection of vectors or pairs admissible if it is conditionally independent of P P P given D D D . This covers standard retrieval pipelines in which a database is encoded once and queried later, though it excludes adaptive queries chosen in response to previously returned sketch scores. When we pass to our classical corollaries by drawing D D D at random, invoking Lemma 6 requires the vectors to be fixed independently of D D D as well. Notably, in Corollaries 11 (ii) and 15(ii), only the m m m stored database vectors need to be fixed prior to drawing D D D : because the underlying conditional bounds depend solely on the cap w u w_u w u of the stored vector, the queries v v v may depend arbitrarily on D D D , and the flatness level is μ ( m ) \mu(m) μ ( m ) rather than μ ( 2 N ) \mu(2N) μ ( 2 N ) .
Alternative preconditioners. Because our conditional theorems depend on the preconditioner H D HD H D only through the transformed vectors x ~ \tilde{x} x ~ , they hold verbatim when H D HD H D is replaced by any other orthogonal transformation—or omitted altogether. In particular, if P P P is applied directly to raw inputs without preconditioning, then x ~ = x \tilde{x}=x x ~ = x and our bounds hold with the caps and fourth moments of the original vectors.
What a sparse row sees
We now formalize the geometric picture of § 1.1 : conditioned on its support, a single sparse row acts on any pair of vectors through a random 2 × 2 2\times2 2 × 2 metric matrix, and our three estimators correspond to three distinct functionals of this matrix.
Fix D D D and a pair of unit vectors u , v ∈ R n u,v\in\mathbb{R}^n u , v ∈ R n with inner product ρ = cos θ \rho=\cos\theta ρ = cos θ (θ ∈ [ 0 , π ] \theta\in[0,\pi] θ ∈ [ 0 , π ] ). Only the two-dimensional subspace spanned by u u u and v v v plays a role. Set u 1 : = u u_1:=u u 1 := u and u 2 : = ( v − ρ u ) / 1 − ρ 2 u_2:=(v-\rho u)/\sqrt{1-\rho^2} u 2 := ( v − ρ u ) / 1 − ρ 2 (or any fixed unit vector orthogonal to u u u when ∣ ρ ∣ = 1 |\rho|=1 ∣ ρ ∣ = 1 ), so that the columns of U : = [ u 1 u 2 ] ∈ R n × 2 U:=[u_1\ u_2]\in\mathbb{R}^{n\times2} U := [ u 1 u 2 ] ∈ R n × 2 form an orthonormal basis for the plane and v = cos θ u 1 + sin θ u 2 v=\cos\theta\,u_1+\sin\theta\,u_2 v = cos θ u 1 + sin θ u 2 . In this basis, u u u and v v v have local coordinate vectors e 1 : = ( 1 , 0 ) T e_1:=(1,0)^\mathsf{T} e 1 := ( 1 , 0 ) T and t θ : = ( cos θ , sin θ ) T t_\theta:=(\cos\theta,\sin\theta)^\mathsf{T} t θ := ( cos θ , sin θ ) T , meaning u = U e 1 u=Ue_1 u = U e 1 and v = U t θ v=Ut_\theta v = U t θ . Applying the preconditioner maps U U U to U ~ : = H D U = [ u ~ 1 u ~ 2 ] ∈ R n × 2 \tilde{U}:=HDU=[\tilde{u}_1\ \tilde{u}_2]\in\mathbb{R}^{n\times2} U ~ := H D U = [ u ~ 1 u ~ 2 ] ∈ R n × 2 with rows c j T = ( u ~ 1 , j , u ~ 2 , j ) c_j^\mathsf{T}=(\tilde{u}_{1,j},\tilde{u}_{2,j}) c j T = ( u ~ 1 , j , u ~ 2 , j ) . Because H D HD H D is orthogonal, U ~ T U ~ = ∑ j c j c j T = I 2 \tilde{U}^\mathsf{T}\tilde{U}=\sum_j c_jc_j^\mathsf{T}=I_2 U ~ T U ~ = ∑ j c j c j T = I 2 .
Now examine a single row of Φ \Phi Φ with support S S S and Gaussian weights g j ∼ N ( 0 , 1 / q ) g_j \sim\mathcal{N}(0,1/q) g j ∼ N ( 0 , 1/ q ) for j ∈ S j \in S j ∈ S , and let U ~ S ∈ R n × 2 \widetilde{U}_S \in\mathbb{R}^{n \times2} U S ∈ R n × 2 denote the subsampled frame with rows q − 1 / 2 1 { j ∈ S } c j ⊤ q^{-1/2}\mathbf{1}_{\{j \in S\}}c_j^\top q − 1/2 1 { j ∈ S } c j ⊤ . Any vector x = U s x = Us x = U s in the plane (s ∈ R 2 s \in\mathbb{R}^2 s ∈ R 2 ) has preconditioned image x ~ = U ~ s \widetilde{x} = \widetilde{U}s x = U s , subsampled image x ~ S = U ~ S s \widetilde{x}_S = \widetilde{U}_Ss x S = U S s , and scalar row projection ∑ j ∈ S g j c j ⊤ s \sum_{j \in S}g_jc_j^\top s ∑ j ∈ S g j c j ⊤ s . Conditioned on S S S , the projections of any two plane vectors with local coordinates s s s and s ′ s' s ′ are therefore jointly centered Gaussian with covariance s ⊤ M S s ′ s^\top M_Ss' s ⊤ M S s ′ , where
M S : = U ~ S ⊤ U ~ S = 1 q ∑ j ∈ S c j c j ⊤ = ( σ 1 2 σ 12 σ 12 σ 2 2 ) , σ u v = e 1 ⊤ M S t θ , σ v 2 = t θ ⊤ M S t θ . (6) M_S := \widetilde{U}_S^\top\widetilde{U}_S = \frac{1}{q}\sum_{j \in S}c_jc_j^\top= \begin{pmatrix}\sigma_1^2 & \sigma_{12}\\ \sigma_{12} & \sigma_2^2\end{pmatrix}, \qquad\sigma_{uv}=e_1^\top M_St_\theta, \qquad\sigma_v^2=t_\theta^\top M_St_\theta. \tag*{(6)} M S := U S ⊤ U S = q 1 j ∈ S ∑ c j c j ⊤ = ( σ 1 2 σ 12 σ 12 σ 2 2 ) , σ uv = e 1 ⊤ M S t θ , σ v 2 = t θ ⊤ M S t θ . (6)
Whereas a dense Gaussian row induces the Euclidean covariance s ⊤ s ′ s^\top s' s ⊤ s ′ , a sparse row measures inner products in the plane with respect to M S M_S M S , which we call the random metric of the row. Its diagonal entries σ 1 2 = σ u 2 = ∥ u ~ S ∥ 2 \sigma_1^2=\sigma_u^2=\|\widetilde{u}_S\|^2 σ 1 2 = σ u 2 = ∥ u S ∥ 2 and σ 2 2 = ∥ u ~ 2 , S ∥ 2 \sigma_2^2=\|\widetilde{u}_{2,S}\|^2 σ 2 2 = ∥ u 2 , S ∥ 2 are the energies captured from u 1 u_1 u 1 and u 2 u_2 u 2 , and its off-diagonal entry σ 12 = ⟨ u ~ 1 , S , u ~ 2 , S ⟩ \sigma_{12}=\langle\widetilde{u}_{1,S},\widetilde{u}_{2,S}\rangle σ 12 = ⟨ u 1 , S , u 2 , S ⟩ is their captured inner product. For the pair ( u , v ) (u,v) ( u , v ) , the conditional covariance matrix of ( X , Y ) (X,Y) ( X , Y ) is Σ S = ( e 1 , t θ ) ⊤ M S ( e 1 , t θ ) = ( σ u 2 σ u v σ u v σ v 2 ) \Sigma_S=(e_1,t_\theta)^\top M_S(e_1,t_\theta)=\begin{pmatrix}\sigma_u^2 & \sigma_{uv}\\ \sigma_{uv} & \sigma_v^2\end{pmatrix} Σ S = ( e 1 , t θ ) ⊤ M S ( e 1 , t θ ) = ( σ u 2 σ uv σ uv σ v 2 ) , where σ u v = ρ σ 1 2 + 1 − ρ 2 σ 12 \sigma_{uv}=\rho\sigma_1^2+\sqrt{1-\rho^2}\,\sigma_{12} σ uv = ρ σ 1 2 + 1 − ρ 2 σ 12 and σ v 2 = ∥ v ~ S ∥ 2 \sigma_v^2=\|\widetilde{v}_S\|^2 σ v 2 = ∥ v S ∥ 2 .
Finally, for any positive definite matrix M ≻ 0 M\succ0 M ≻ 0 , let ϑ θ ( M ) ∈ [ 0 , π ] \vartheta_\theta(M)\in[0,\pi] ϑ θ ( M ) ∈ [ 0 , π ] denote the angle between e 1 e_1 e 1 and t θ t_\theta t θ under the inner product ( s , s ′ ) ↦ s ⊤ M s ′ (s,s')\mapsto s^\top Ms' ( s , s ′ ) ↦ s ⊤ M s ′ :
cos ϑ θ ( M ) = e 1 ⊤ M t θ { ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) } 1 / 2 , so that ϑ θ ( I 2 ) = θ . \cos\vartheta_\theta(M)=\frac{e_1^\top Mt_\theta}{\{(e_1^\top Me_1)(t_\theta^\top Mt_\theta)\}^{1/2}}, \qquad\text{so that }\vartheta_\theta(I_2)=\theta. cos ϑ θ ( M ) = {( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) } 1/2 e 1 ⊤ M t θ , so that ϑ θ ( I 2 ) = θ .
In the lemma below, X X X and Y Y Y denote the projections of u u u and v v v produced by a single row, and Z = π / 2 sign ( X ) Y Z=\sqrt{\pi/2}\operatorname{sign}(X)Y Z = π /2 sign ( X ) Y denotes the corresponding BG score.
Lemma 9 (Random-metric reduction). Fix D D D and a pair ( u , v ) (u,v) ( u , v ) , condition on the support S S S of a single row, and adopt the convention sign ( 0 ) = + 1 \operatorname{sign}(0)=+1 sign ( 0 ) = + 1 . Under either support law:
(i) ( X , Y ) (X,Y) ( X , Y ) is centered bivariate normal with covariance Σ S = ( σ u 2 σ u v σ u v σ v 2 ) \Sigma_S=\begin{pmatrix}\sigma_u^2 & \sigma_{uv}\\ \sigma_{uv} & \sigma_v^2\end{pmatrix} Σ S = ( σ u 2 σ uv σ uv σ v 2 ) . Equivalently, ( X , Y ) (X,Y) ( X , Y ) has the same conditional distribution as ( ⟨ g , u ~ S ⟩ , ⟨ g , v ~ S ⟩ ) (\langle g,\widetilde{u}_S\rangle,\langle g,\widetilde{v}_S\rangle) (⟨ g , u S ⟩ , ⟨ g , v S ⟩) for g ∼ N ( 0 , I n ) g\sim\mathcal{N}(0,I_n) g ∼ N ( 0 , I n ) ; that is, the sparse row acts on ( u , v ) (u,v) ( u , v ) exactly as a dense Gaussian row acts on ( u ~ S , v ~ S ) (\widetilde{u}_S,\widetilde{v}_S) ( u S , v S ) ;
(ii) taking expectations over S S S yields E σ u 2 = E σ v 2 = E σ 2 2 = 1 \mathbb{E}\sigma_u^2=\mathbb{E}\sigma_v^2=\mathbb{E}\sigma_2^2=1 E σ u 2 = E σ v 2 = E σ 2 2 = 1 , E σ u v = ρ \mathbb{E}\sigma_{uv}=\rho E σ uv = ρ , and E σ 12 = 0 \mathbb{E}\sigma_{12}=0 E σ 12 = 0 , or in matrix form, E M S = I 2 \mathbb{E}M_S=I_2 E M S = I 2 ;
(iii) E [ X Y ∣ S ] = σ u v \mathbb{E}[XY\mid S]=\sigma_{uv} E [ X Y ∣ S ] = σ uv ; E [ Z ∣ S ] = ζ S : = σ u v / σ u \mathbb{E}[Z\mid S]=\zeta_S:=\sigma_{uv}/\sigma_u E [ Z ∣ S ] = ζ S := σ uv / σ u (with ζ S : = 0 \zeta_S:=0 ζ S := 0 if σ u = 0 \sigma_u=0 σ u = 0 ); and Pr [ sign X ≠ sign Y ∣ S ] = θ S / π \Pr[\operatorname{sign}X\ne\operatorname{sign}Y\mid S]=\theta_S/\pi Pr [ sign X = sign Y ∣ S ] = θ S / π , where θ S : = arccos ρ S \theta_S:=\arccos\rho_S θ S := arccos ρ S with ρ S : = σ u v / ( σ u σ v ) \rho_S:=\sigma_{uv}/(\sigma_u\sigma_v) ρ S := σ uv / ( σ u σ v ) when σ u σ v > 0 \sigma_u\sigma_v>0 σ u σ v > 0 , θ S : = π / 2 \theta_S:=\pi/2 θ S := π /2 when exactly one of σ u , σ v \sigma_u,\sigma_v σ u , σ v vanishes, and θ S : = 0 \theta_S:=0 θ S := 0 when both vanish; in particular, θ S = ϑ θ ( M S ) \theta_S=\vartheta_\theta(M_S) θ S = ϑ θ ( M S ) whenever M S ≻ 0 M_S\succ0 M S ≻ 0 ;
(iv) (Gram identity ) σ u 2 σ v 2 − σ u v 2 = ( 1 − ρ 2 ) det M S \sigma_u^2\sigma_v^2-\sigma_{uv}^2=(1-\rho^2)\det M_S σ u 2 σ v 2 − σ uv 2 = ( 1 − ρ 2 ) det M S ; consequently ∣ σ u v ∣ ≤ σ u σ v |\sigma_{uv}|\le\sigma_u\sigma_v ∣ σ uv ∣ ≤ σ u σ v , and for every M ≻ 0 M\succ0 M ≻ 0 ,
sin ϑ θ ( M ) = sin θ det M ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) ≤ sin θ λ max ( M ) λ min ( M ) . \sin\vartheta_\theta(M)=\sin\theta\sqrt{\frac{\det M}{(e_1^\top Me_1)(t_\theta^\top Mt_\theta)}}\le\sin\theta\sqrt{\frac{\lambda_{\max}(M)}{\lambda_{\min}(M)}}. sin ϑ θ ( M ) = sin θ ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) det M ≤ sin θ λ m i n ( M ) λ m a x ( M ) .
Lemma 9, proved in Appendix § 6 .§ 3 , reduces the conditional analysis of a sparse row directly to the dense Gaussian identities (2) applied to the subsampled vectors ( u ~ S , v ~ S ) (\widetilde{u}_S,\widetilde{v}_S) ( u S , v S ) of Figure 1 . When u = v = x u=v=x u = v = x , part (i) specializes to the familiar fact ( Φ x ) i ∼ N ( 0 , σ x , i 2 ) (\Phi x)_i\sim\mathcal{N}(0,\sigma_{x,i}^2) ( Φ x ) i ∼ N ( 0 , σ x , i 2 ) that underpins the classical FLLT analysis. Because GG reads σ u v \sigma_{uv} σ uv , which is linear in M S M_S M S , part (ii) ensures that GG is unbiased for all inputs and all sparsities. By contrast, BG reads ζ S \zeta_S ζ S and BB reads θ S \theta_S θ S . Both quantities are nonlinear functions of M S M_S M S that evaluate to the target values ρ \rho ρ and θ \theta θ at M S = I 2 M_S=I_2 M S = I 2 ; their first-order Taylor terms around I 2 I_2 I 2 therefore average to zero by part (ii), leaving a second-order support bias governed by the variance of M S − I 2 M_S-I_2 M S − I 2 . Moreover, part (iv) explains why SimHash preserves small angles to high relative accuracy: the sine of the distorted angle θ S \theta_S θ S is proportional to sin θ \sin\theta sin θ times a metric distortion factor that stays close to 1 whenever M S ≈ I 2 M_S\approx I_2 M S ≈ I 2 , causing the angular error to vanish proportionally as θ → 0 \theta\to0 θ → 0 .
Flatness parameters of a plane. Because SimHash (BB) depends on the entire metric M S M_S M S rather than the energy of a single vector, its error bounds are governed by flatness parameters of the two-dimensional plane span { u 1 , u 2 } \operatorname{span}\{u_1,u_2\} span { u 1 , u 2 } . The squared row norm ∥ c j ∥ 2 = u ~ 1 , j 2 + u ~ 2 , j 2 \|c_j\|^2=\widetilde{u}_{1,j}^2+\widetilde{u}_{2,j}^2 ∥ c j ∥ 2 = u 1 , j 2 + u 2 , j 2 represents the share of the plane’s total energy carried by coordinate j j j (the leverage score of row j j j ), with ∑ j = 1 n ∥ c j ∥ 2 = 2 \sum_{j=1}^n\|c_j\|^2=2 ∑ j = 1 n ∥ c j ∥ 2 = 2 . In direct analogy with w x w_x w x and k x k_x k x for a single vector, we define the plane cap w U w_U w U and plane fourth moment k U k_U k U as
w U : = n max j ∥ c j ∥ 2 = max { w x : x ∈ span { u 1 , u 2 } , ∥ x ∥ = 1 } , k U : = n ∑ j ∥ c j ∥ 4 . (7) w_U:=n\max_j\|c_j\|^2=\max\{w_x:x\in\operatorname{span}\{u_1,u_2\},\ \|x\|=1\}, \qquad k_U:=n\sum_j\|c_j\|^4. \tag*{(7)} w U := n j max ∥ c j ∥ 2 = max { w x : x ∈ span { u 1 , u 2 } , ∥ x ∥ = 1 } , k U := n j ∑ ∥ c j ∥ 4 . (7)
In the terminology of matrix completion, w U / 2 w_U/2 w U /2 is the coherence of the preconditioned subspace, while 3 8 k U \frac{3}{8}k_U 8 3 k U equals the average of k x k_x k x over the unit circle in the plane. Both quantities depend only on the subspace span { u 1 , u 2 } \operatorname{span}\{u_1,u_2\} span { u 1 , u 2 } (which coincides with span { u , v } \operatorname{span}\{u,v\} span { u , v } whenever ∣ ρ ∣ < 1 |\rho|<1 ∣ ρ ∣ < 1 ) rather than on the choice of orthonormal basis U U U , and they satisfy w U ≥ 2 w_U \ge2 w U ≥ 2 , 4 ≤ k U ≤ 2 w U 4 \le k_U \le2w_U 4 ≤ k U ≤ 2 w U , w U ≤ w u 1 + w u 2 w_U \le w_{u_1}+w_{u_2} w U ≤ w u 1 + w u 2 , and k U ≤ 2 ( k u 1 + k u 2 ) k_U \le2(k_{u_1}+k_{u_2}) k U ≤ 2 ( k u 1 + k u 2 ) (Appendix § 6 .§ 3 ). For any plane fixed independently of D D D , averaging k x k_x k x around the unit circle yields E D k U ≤ 8 \mathbb{E}_D k_U \le8 E D k U ≤ 8 , whereas the plane cap w U w_U w U —like a vector cap—can grow as log n \log n log n and is bounded in the worst case by 2 μ ( 2 N ) 2\mu(2N) 2 μ ( 2 N ) . Importantly, two vectors that are individually nearly flat can still span a spiky plane: Theorem 21 (a) constructs pairs with k u , k v ≤ 1.01 k_u,k_v \le1.01 k u , k v ≤ 1.01 whose plane has a large fourth moment k U k_U k U and incurs a relative BB bias of order k U / r k_U/r k U / r .
Full precision on both sides (GG)
We begin with the full-precision linear estimator GG, which isolates the effect of row sparsity in the absence of sign quantization. Conditioned on D D D , each row product X i Y i X_iY_i X i Y i is unbiased at every sparsity and has variance
E [ X i Y i ∣ D ] = ρ , Var ( X i Y i ∣ D ) = 1 + ρ 2 + f q r ( 3 k u v − 1 b a l ( 1 + 2 ρ 2 ) ) ≤ 1 + ρ 2 + 3 f q k u v r , (8) \mathbb{E}[X_iY_i \mid D] = \rho,\qquad\operatorname{Var}(X_iY_i \mid D) = 1+\rho^2+\frac{f_q}{r}\left(3k_{uv}-\mathbf{1}_{\mathrm{bal}}(1+2\rho^2)\right) \le1+\rho^2+\frac{3f_q k_{uv}}{r}, \tag*{(8)} E [ X i Y i ∣ D ] = ρ , Var ( X i Y i ∣ D ) = 1 + ρ 2 + r f q ( 3 k uv − 1 bal ( 1 + 2 ρ 2 ) ) ≤ 1 + ρ 2 + r 3 f q k uv , (8)
which specializes at v = u v=u v = u to Var ( X i 2 ∣ D ) = 2 + 3 Var ( σ α 2 ) \operatorname{Var}(X_i^2 \mid D)=2+3\operatorname{Var}(\sigma_\alpha^2) Var ( X i 2 ∣ D ) = 2 + 3 Var ( σ α 2 ) (derived in Appendix § 6 .§ 4 ). Because sparse sampling inflates the variance and tails without shifting the expectation, Theorem 10 bounds the resulting error both for the standard sample average of squared projections (the classical FJLT norm estimator) and for inner products decoded via Catoni’s robust mean.
Theorem 10 (GG for a realized preconditioner). Fix any D D D and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , and draw P P P with balanced supports (the statement holds verbatim for Bernoulli supports). Let h ( t ) : = ( 1 + t ) log ( 1 + t ) − t h(t):=(1+t)\log(1+t)-t h ( t ) := ( 1 + t ) log ( 1 + t ) − t .
(a) Norms. Let U \mathcal{U} U be an admissible finite set of unit vectors and ϵ ∈ ( 0 , 1 ] \epsilon\in(0,1] ϵ ∈ ( 0 , 1 ] . If
ℓ ≥ 12 ϵ 2 log 3 ∣ U ∣ δ and r ≥ max { 8 f q k U , min { ϵ n 1 + ϵ , w U log ( 3 ℓ ∣ U ∣ / δ ) h ( 1 / ϵ ) } } , \ell\ge\frac{12}{\epsilon^2}\log\frac{3|\mathcal{U}|}{\delta}
\qquad\text{and}\qquad
r \ge\max\left\{8f_q k_U,\ \min\left\{\frac{\epsilon n}{1+\epsilon},\frac{w_U\log(3\ell|\mathcal{U}|/\delta)}{h(1/\epsilon)}\right\}\right\}, ℓ ≥ ϵ 2 12 log δ 3∣ U ∣ and r ≥ max { 8 f q k U , min { 1 + ϵ ϵ n , h ( 1/ ϵ ) w U log ( 3 ℓ ∣ U ∣/ δ ) } } , then with probability at least 1 − δ 1-\delta 1 − δ over P P P , we have ∣ ℓ − 1 ∥ Φ x ∥ 2 − 1 ∣ ≤ ϵ | \ell^{-1}\|\Phi x\|^2-1| \le\epsilon ∣ ℓ − 1 ∥Φ x ∥ 2 − 1∣ ≤ ϵ for all x ∈ U x\in\mathcal{U} x ∈ U .
(b) Robust inner products. Let N N N admissible pairs of unit vectors be given, and let L : = log ( 2 N / δ ) < ℓ / 2 L:=\log(2N/\delta)<\ell/2 L := log ( 2 N / δ ) < ℓ /2 and σ ∗ 2 ≥ max p a i r s { 1 + ρ 2 + 3 f q k u v / r } \sigma_*^2\ge\max_{\mathrm{pairs}}\{1+\rho^2+3f_qk_{uv}/r\} σ ∗ 2 ≥ max pairs { 1 + ρ 2 + 3 f q k uv / r } . With probability at least 1 − δ 1-\delta 1 − δ over P P P , Catoni’s estimate Cat α \operatorname{Cat}_\alpha Cat α of (2) satisfies, for all pairs,
∣ Cat α ( X 1 Y 1 , … , X ℓ Y ℓ ) − ρ ∣ ≤ s : = 2 σ ∗ 2 L ℓ − 2 L , α = s σ ∗ 2 + s 2 . |\operatorname{Cat}_\alpha(X_1Y_1,\ldots,X_\ell Y_\ell)-\rho|\le s:=\sqrt{\frac{2\sigma_*^2L}{\ell-2L}},\qquad\alpha=\frac{s}{\sigma_*^2+s^2}. ∣ Cat α ( X 1 Y 1 , … , X ℓ Y ℓ ) − ρ ∣ ≤ s := ℓ − 2 L 2 σ ∗ 2 L , α = σ ∗ 2 + s 2 s . Since k u v ≤ w u k_{uv}\le w_u k uv ≤ w u , one may take σ ∗ 2 = 2 + 3 max w u / r \sigma_*^2=2+3\max w_u/r σ ∗ 2 = 2 + 3 max w u / r , which involves only the first vector u u u of each pair ( u , v ) (u,v) ( u , v ) and is at most 3 3 3 once w u ≤ r / 3 w_u\le r/3 w u ≤ r /3 .
In part (a), the sketch-length requirement on ℓ \ell ℓ matches that of a dense Gaussian projection (Theorem 1) up to the constant inside the logarithm. The sparsity requirement on r r r takes the maximum of two conditions that play distinct roles in the proof. The first branch, r ≥ 8 f q k U r\ge8f_q k_U r ≥ 8 f q k U , is a variance condition: by (5) , it ensures that Var ( σ x 2 ) ≤ 1 8 \operatorname{Var}(\sigma_x^2)\le\frac18 Var ( σ x 2 ) ≤ 8 1 for every x ∈ U x\in\mathcal{U} x ∈ U , which is needed to control both tails of ∥ Φ x ∥ 2 \|\Phi x\|^2 ∥Φ x ∥ 2 . The second branch is a capture condition needed only for the upper tail: it guarantees with high probability that no row captures more than 1 + 1 / ϵ 1+1/\epsilon 1 + 1/ ϵ times its expected share of energy from any vector in U \mathcal{U} U . This bound holds deterministically whenever r ≥ ϵ n / ( 1 + ϵ ) r\ge\epsilon n/(1+\epsilon) r ≥ ϵ n / ( 1 + ϵ ) (since σ x 2 ≤ n / r \sigma_x^2\le n/r σ x 2 ≤ n / r always), and otherwise follows from Bennett’s inequality. Notice that ℓ \ell ℓ enters the capture condition only logarithmically via a union bound over the ℓ \ell ℓ rows.
Using the elementary inequality h ( t ) ≥ t 2 log ( 1 + t ) h(t)\ge\frac{t}{2}\log(1+t) h ( t ) ≥ 2 t log ( 1 + t ) and k U ≤ w U k_U\le w_U k U ≤ w U , both sparsity conditions are satisfied whenever
r ≥ w U max { δ , 2 ϵ log ( 3 ℓ ∣ U ∣ / δ ) log ( 1 + 1 / ϵ ) } . r\ge w_U\max\left\{\delta,\frac{2\epsilon\log(3\ell|\mathcal{U}|/\delta)}{\log(1+1/\epsilon)}\right\}. r ≥ w U max { δ , log ( 1 + 1/ ϵ ) 2 ϵ log ( 3 ℓ ∣ U ∣/ δ ) } .
As ϵ → 0 \epsilon\to0 ϵ → 0 , the second branch inside the maximum vanishes, leaving the ϵ \epsilon ϵ -independent requirement r ≥ 8 w U r\ge8w_U r ≥ 8 w U . Thus, when no signs are taken, higher accuracy requires more rows rather than denser rows.
Part (b) requires even less sparsity because Catoni’s estimator depends only on the variance of a single row product X i Y i X_iY_i X i Y i , which equals 1 + ρ 2 1+\rho^2 1 + ρ 2 for a dense row and increases by at most 3 f q k u v / r 3f_q k_{uv}/r 3 f q k uv / r under sparse sampling. Once r ≥ 3 max w u r\ge3\max w_u r ≥ 3 max w u , a sketch of length ℓ = ( 6 ϵ − 2 + 2 ) L \ell=(6\epsilon^{-2}+2)L ℓ = ( 6 ϵ − 2 + 2 ) L achieves error at most ϵ \epsilon ϵ : the required sparsity is completely independent of ϵ \epsilon ϵ across the entire range ϵ ∈ ( 0 , 1 ] \epsilon\in(0,1] ϵ ∈ ( 0 , 1 ] , and depends only on the flatness of the stored vector u u u in each pair.
When D D D is drawn at random, Lemma 6 bounds every cap (and hence every fourth moment) by the flatness level μ ( K ) = 2 log ( 4 n K / δ ) \mu(K)=2\log(4nK/\delta) μ ( K ) = 2 log ( 4 n K / δ ) of (3) with high probability, converting Theorem 10 into its classical worst-case form.
Corollary 11 (GG, classical form). Use either support law, let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , and recall μ ( K ) = 2 log ( 4 n K / δ ) \mu(K)=2\log(4nK/\delta) μ ( K ) = 2 log ( 4 n K / δ ) from (3) .
(i) Norms, embeddings and inner products. Let U U U be a finite set of unit vectors fixed independently of ( D , P ) (D,P) ( D , P ) and let ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] . If
ℓ ≥ 12 ε 2 log 4 ∣ U ∣ δ , \ell\ge\frac{12}{\varepsilon^2}\log\frac{4|U|}{\delta}, ℓ ≥ ε 2 12 log δ 4∣ U ∣ , r ≥ max { min { n , 8 μ ( 2 ∣ U ∣ ) } , min { ε n 1 + ε , 2 ε μ ( 2 ∣ U ∣ ) log ( 4 ℓ ∣ U ∣ / δ ) log ( 1 + 1 / ε ) } } , r \ge\max\left\{\min\{n,8\mu(2|U|)\},\min\left\{\frac{\varepsilon n}{1+\varepsilon},\frac{2\varepsilon\mu(2|U|)\log(4\ell|U|/\delta)}{\log(1+1/\varepsilon)}\right\}\right\}, r ≥ max { min { n , 8 μ ( 2∣ U ∣ )} , min { 1 + ε ε n , log ( 1 + 1/ ε ) 2 ε μ ( 2∣ U ∣ ) log ( 4 ℓ ∣ U ∣/ δ ) } } , then with probability at least 1 − δ 1-\delta 1 − δ , we have ∣ ℓ − 1 ∥ Φ x ∥ 2 − 1 ∣ ≤ ε |\ell^{-1}\|\Phi x\|^2-1|\le\varepsilon ∣ ℓ − 1 ∥Φ x ∥ 2 − 1∣ ≤ ε for all x ∈ U x\in U x ∈ U . Taking U U U to be the normalized differences of m m m points (∣ U ∣ < m 2 / 2 |U|<m^2/2 ∣ U ∣ < m 2 /2 ) gives a ( 1 ± ε ) (1\pm\varepsilon) ( 1 ± ε ) embedding of their squared distances; taking U U U to be the normalized u ± v u\pm v u ± v of N N N pairs of unit vectors (∣ U ∣ ≤ 2 N |U|\le2N ∣ U ∣ ≤ 2 N ) gives ∣ ρ ^ G G − ρ ∣ ≤ ε |\widehat{\rho}_{\mathrm{GG}}-\rho|\le\varepsilon ∣ ρ GG − ρ ∣ ≤ ε for all pairs.
(ii) Robust inner products, D D D -adaptive queries. Let ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] , let m m m unit vectors be fixed independently of ( D , P ) (D,P) ( D , P ) , and let N N N admissible pairs ( u , v ) (u,v) ( u , v ) of unit vectors have u u u among the fixed vectors. If
r ≥ min { n , 3 μ ( m ) } and ℓ ≥ 8 ε − 2 log ( 4 N / δ ) , r\ge\min\{n,3\mu(m)\}\quad\text{and}\quad\ell\ge8\varepsilon^{-2}\log(4N/\delta), r ≥ min { n , 3 μ ( m )} and ℓ ≥ 8 ε − 2 log ( 4 N / δ ) , then with probability at least 1 − δ 1-\delta 1 − δ , we have ∣ Cat α ( X 1 Y 1 , … , X ℓ Y ℓ ) − ρ ∣ ≤ ε |\operatorname{Cat}_{\alpha}(X_1Y_1,\ldots,X_\ell Y_\ell)-\rho|\le\varepsilon ∣ Cat α ( X 1 Y 1 , … , X ℓ Y ℓ ) − ρ ∣ ≤ ε for all pairs, with α = ε / ( 3 + ε 2 ) \alpha=\varepsilon/(3+\varepsilon^2) α = ε / ( 3 + ε 2 ) .
At the smallest ( ℓ , r ) (\ell,r) ( ℓ , r ) allowed, encoding costs O ( n log n + ε − 2 log 4 ∣ U ∣ δ ⋅ μ ( 2 ∣ U ∣ ) max { 1 , ε μ ( 2 ∣ U ∣ ) log ( 2 / ε ) } ) O\left(n\log n+\varepsilon^{-2}\log\frac{4|U|}{\delta}\cdot\mu(2|U|)\max\left\{1,\frac{\varepsilon\mu(2|U|)}{\log(2/\varepsilon)}\right\}\right) O ( n log n + ε − 2 log δ 4∣ U ∣ ⋅ μ ( 2∣ U ∣ ) max { 1 , l o g ( 2/ ε ) ε μ ( 2∣ U ∣ ) } ) in (i) and O ( n log n + ε − 2 log 4 N δ ⋅ μ ( m ) ) O\left(n\log n+\varepsilon^{-2}\log\frac{4N}{\delta}\cdot\mu(m)\right) O ( n log n + ε − 2 log δ 4 N ⋅ μ ( m ) ) in (ii).
In part (i), the two branches of the maximum correspond directly to the variance and capture conditions of Theorem 10 (a) with μ ( 2 ∣ U ∣ ) \mu(2|U|) μ ( 2∣ U ∣ ) replacing the empirical parameters; both hold whenever r ≥ min { n , μ ( 2 ∣ U ∣ ) max { 8 , 2 ε log ( 4 ℓ ∣ U ∣ / δ ) log ( 1 + 1 / ε ) } } r\ge\min\left\{n,\mu(2|U|)\max\left\{8,\frac{2\varepsilon\log(4\ell|U|/\delta)}{\log(1+1/\varepsilon)}\right\}\right\} r ≥ min { n , μ ( 2∣ U ∣ ) max { 8 , l o g ( 1 + 1/ ε ) 2 ε l o g ( 4 ℓ ∣ U ∣/ δ ) } } , which is the expression reported in Table 1 .
Remark 12 (Comparison with Theorems 5 and 7). Theorem 7 of Fandina et al. [ [13 ] takes the minimum of two sparsity regimes: Θ ( ε n ) \Theta(\varepsilon n) Θ ( ε n ) and Θ ( log m ⋅ max { 1 , ε log m / log ( 1 / ε ) } ) \Theta(\log m\cdot\max\{1,\varepsilon\log m/\log(1/\varepsilon)\}) Θ ( log m ⋅ max { 1 , ε log m / log ( 1/ ε )}) . Corollary 11(i) provides the exact same two-branch structure with explicit constants, arbitrary failure probability δ \delta δ , and either support law. Specifically, writing μ 1 : = μ ( 2 ∣ U ∣ ) \mu_1:=\mu(2|U|) μ 1 := μ ( 2∣ U ∣ ) , at the minimum allowed sketch length ℓ \ell ℓ our capture condition is satisfied either by r ≥ ε n / ( 1 + ε ) r\ge\varepsilon n/(1+\varepsilon) r ≥ ε n / ( 1 + ε ) or by r ≥ 4 ε μ 1 + 8 ε μ 1 2 / log ( 2 / ε ) r\ge4\varepsilon\mu_1+8\varepsilon\mu_1^2/\log(2/\varepsilon) r ≥ 4 ε μ 1 + 8 ε μ 1 2 / log ( 2/ ε ) . Under the standing assumptions of FHL (n ≤ m n\le m n ≤ m , δ = 1 / m \delta=1/m δ = 1/ m , and ℓ ≤ n \ell\le n ℓ ≤ n ), we have μ 1 = Θ ( log m ) \mu_1=\Theta(\log m) μ 1 = Θ ( log m ) and log ( 2 / ε ) ≤ μ 1 \log(2/\varepsilon)\le\mu_1 log ( 2/ ε ) ≤ μ 1 (since ε − 2 ≤ ℓ ≤ n \varepsilon^{-2}\le\ell\le n ε − 2 ≤ ℓ ≤ n ), so our second capture branch scales as ε μ 1 2 / log ( 2 / ε ) = O ( ε log 2 m / log ( 1 / ε ) ) \varepsilon\mu_1^2/\log(2/\varepsilon)=O(\varepsilon\log^2m/\log(1/\varepsilon)) ε μ 1 2 / log ( 2/ ε ) = O ( ε log 2 m / log ( 1/ ε )) , matching the second branch of FHL up to a constant factor. Meanwhile, our variance condition r ≥ 8 μ 1 = Θ ( log m ) r\ge8\mu_1=\Theta(\log m) r ≥ 8 μ 1 = Θ ( log m ) is dominated both by the second FHL branch and—since ε n ≥ ε ℓ = Ω ( ε − 1 log m ) \varepsilon n\ge\varepsilon\ell=\Omega(\varepsilon^{-1}\log m) ε n ≥ ε ℓ = Ω ( ε − 1 log m ) —by a constant multiple of the first. Part (i) therefore recovers the sharp sparsity of FHL up to constant factors, improving upon the Θ ( log 2 m ) \Theta(\log^2m) Θ ( log 2 m ) bound of Theorem 5 by a factor of min { log m , log ( 2 / ε ) } \min\{\log m,\log(2/\varepsilon)\} min { log m , log ( 2/ ε )} . In the general regime where n n n or 1 / δ 1/\delta 1/ δ may exceed poly ( m ) \operatorname{poly}(m) poly ( m ) , the flatness level naturally scales as log ( n m / δ ) \log(nm/\delta) log ( nm / δ ) rather than log m \log m log m .
While balanced row supports with Rademacher entries were previously analyzed by Wolff [ [33 ] at sparsity O ( log ( ℓ / δ ) log ( n / δ ) ) O(\log(\ell/\delta)\log(n/\delta)) O ( log ( ℓ / δ ) log ( n / δ )) —which reduces to O ( log 2 m ) O(\log^2m) O ( log 2 m ) for m m m points—Corollary 11(i) is, to our knowledge, the first result for balanced supports to achieve the optimal sparsity of Theorem 7 (see § 1.5 ).
Furthermore, switching from the sample average to Catoni’s robust decoder bypasses the FHL capture condition altogether. Corollary 11(ii) requires only r ≥ min { n , 3 μ ( m ) } r\ge\min\{n,3\mu(m)\} r ≥ min { n , 3 μ ( m )} for inner products regardless of ε \varepsilon ε , and an analogous scale-free Catoni estimator in Appendix § 6 .§ 4 achieves the ε \varepsilon ε -independent sparsity r ≥ min { n , 3 μ ( m 2 / 2 ) } r\ge\min\{n,3\mu(m^2/2)\} r ≥ min { n , 3 μ ( m 2 /2 )} for preserving all pairwise squared distances among m m m points whenever ε ≤ 1 2 \varepsilon\le\frac12 ε ≤ 2 1 . In the moderate-ε \varepsilon ε regime where ε log m ≫ log ( 1 / ε ) \varepsilon\log m\gg\log(1/\varepsilon) ε log m ≫ log ( 1/ ε ) , this sparsity is strictly smaller than the bound of Theorem 7 —without contradicting the single-vector lower bound of Fandina et al. [ [13 ] , which applies specifically to the non-robust sample average ℓ − 1 ∥ Φ x ∥ 2 \ell^{-1}\|\Phi x\|^2 ℓ − 1 ∥Φ x ∥ 2 .
One bit against full precision
We now turn to the asymmetric estimator BG, in which the stored vector u u u is quantized to one bit while the query v v v is kept at full precision. Conditioned on the support S S S , a single row score Z Z Z has expectation ζ S = σ u v / σ u \zeta_S=\sigma_{uv}/\sigma_u ζ S = σ uv / σ u (Lemma 9(iii)), whose expectation over S S S deviates systematically from ρ \rho ρ . Expanding ζ S − ρ = ρ ( σ u − 1 ) + ( σ u v − ρ σ u 2 ) / σ u \zeta_S-\rho=\rho(\sigma_u-1)+(\sigma_{uv}-\rho\sigma_u^2)/\sigma_u ζ S − ρ = ρ ( σ u − 1 ) + ( σ uv − ρ σ u 2 ) / σ u to second order around σ u 2 = 1 \sigma_u^2=1 σ u 2 = 1 yields the leading-order approximation
b u v ≈ − ρ 8 Var ( σ u 2 ) − 1 2 Cov ( σ u v − ρ σ u 2 , σ u 2 ) , Cov ( σ u v − ρ σ u 2 , σ u 2 ) = f q q ∑ j = 1 q u ~ j 3 ( v ~ j − ρ u ~ j ) . (9) b_{uv}\approx-\frac{\rho}{8}\operatorname{Var}(\sigma_u^2)-\frac{1}{2}\operatorname{Cov}(\sigma_{uv}-\rho\sigma_u^2,\sigma_u^2),\qquad\operatorname{Cov}(\sigma_{uv}-\rho\sigma_u^2,\sigma_u^2)=\frac{f_q}{q}\sum_{j=1}^{q}\tilde{u}_j^3(\tilde{v}_j-\rho\tilde{u}_j). \tag*{(9)} b uv ≈ − 8 ρ Var ( σ u 2 ) − 2 1 Cov ( σ uv − ρ σ u 2 , σ u 2 ) , Cov ( σ uv − ρ σ u 2 , σ u 2 ) = q f q j = 1 ∑ q u ~ j 3 ( v ~ j − ρ u ~ j ) . (9)
which separates the self-pair energy deficit − ρ 8 Var ( σ u 2 ) -\frac{\rho}{8}\operatorname{Var}(\sigma_u^2) − 8 ρ Var ( σ u 2 ) from the cross-correlation between energy fluctuations and angular distortion (Appendix § 6 .§ 5 ). To obtain rigorous finite-sample guarantees, we first bound b u v b_{uv} b uv non-asymptotically—depending on D D D and ( u , v ) (u,v) ( u , v ) but not on ℓ \ell ℓ —and then combine it with concentration bounds for the sampling noise across the ℓ \ell ℓ rows.
Proposition 13 (BG support bias). Fix D D D and unit vectors u u u (stored) and v v v (query), under either support law. Let b u v : = E [ ρ ^ B G ∣ D ] − ρ b_{uv}:=\mathbb{E}[\hat{\rho}_{\mathrm{BG}}\mid D]-\rho b uv := E [ ρ ^ BG ∣ D ] − ρ . Then
(i) ∣ b u v ∣ ≤ 1.15 w u / r |b_{uv}|\le1.15\,w_u/r ∣ b uv ∣ ≤ 1.15 w u / r if w u ≤ r / 64 w_u\le r/64 w u ≤ r /64 (and ∣ b u v ∣ ≤ 4.3 w u / r |b_{uv}|\le4.3\,w_u/r ∣ b uv ∣ ≤ 4.3 w u / r unconditionally);
(ii) ∣ b u v ∣ ≤ 1.83 f q ( k u − 1 b a l ) k u ∨ v / r + 1.12 e − r / ( 16 k u ) |b_{uv}|\le1.83\,f_q\sqrt{(k_u-1_{\mathrm{bal}})k_{u\vee v}/r}+1.12e^{-r/(16k_u)} ∣ b uv ∣ ≤ 1.83 f q ( k u − 1 bal ) k u ∨ v / r + 1.12 e − r / ( 16 k u ) , which is at most 2.83 k u ∨ v / r 2.83\,k_{u\vee v}/r 2.83 k u ∨ v / r if k u ∨ v ≤ r / 70 k_{u\vee v}\le r/70 k u ∨ v ≤ r /70 ;
(iii) under balanced supports, b u v = 0 b_{uv}=0 b uv = 0 whenever k u = 1 k_u=1 k u = 1 .
Each part of Proposition 13 serves a distinct purpose. Part (i) depends solely on the cap w u w_u w u of the stored vector, making it valid uniformly across all unit queries v v v , including queries chosen adaptively after seeing D D D . Part (ii) replaces caps with fourth moments at the expense of an exponentially small tail term 1.12 e − r / ( 16 k u ) 1.12e^{-r/(16k_u)} 1.12 e − r / ( 16 k u ) that accounts for rare supports capturing very little energy from u u u . Part (iii) highlights the exact unbiasedness of balanced supports on flat stored vectors, since k u = 1 k_u=1 k u = 1 forces σ u 2 ≡ 1 \sigma_u^2\equiv1 σ u 2 ≡ 1 on every balanced support. We refer to bounds such as parts (i) and (ii), which depend on the data only through summary caps and fourth moments, as parameter forms , and to their single-term specializations 1.15 w u / r 1.15\,w_u/r 1.15 w u / r and 2.83 k u ∨ v / r 2.83\,k_{u\vee v}/r 2.83 k u ∨ v / r as closed forms . Both are derived in Appendix § 6 .§ 5 from a sharper coordinatewise bound—the pair certificate —which retains the exact support variances V u = Var ( σ u 2 ) V_u=\operatorname{Var}(\sigma_u^2) V u = Var ( σ u 2 ) and V u v = Var ( σ u v − ρ σ u 2 ) = f q q ∥ u ~ ∘ ( v ~ − ρ u ~ ) ∥ 2 V_{uv}=\operatorname{Var}(\sigma_{uv}-\rho\sigma_u^2)=\frac{f_q}{q}\lVert\tilde{u}\circ(\tilde{v}-\rho\tilde{u})\rVert^2 V uv = Var ( σ uv − ρ σ u 2 ) = q f q ∥ u ~ ∘ ( v ~ − ρ u ~ ) ∥ 2 before relaxing them to caps or fourth moments.
Controlling the row-to-row sampling noise is straightforward: conditioned on its support, a BG row score Z Z Z is sub-Gaussian around its conditional mean ζ S \zeta_S ζ S , and because sign ( X ) 2 = 1 \operatorname{sign}(X)^2=1 sign ( X ) 2 = 1 gives Z 2 = π 2 Y 2 Z^2=\frac{\pi}{2}Y^2 Z 2 = 2 π Y 2 identically, its unconditional second moment is E [ Z 2 ∣ D ] = π 2 σ v 2 = π / 2 \mathbb{E}[Z^2\mid D]=\frac{\pi}{2}\sigma_v^2=\pi/2 E [ Z 2 ∣ D ] = 2 π σ v 2 = π /2 , matching that of a dense Gaussian row (Appendix § 6 .§ 5 ). Combining Proposition 13 with tail bounds for the row average and for Catoni’s estimator yields our main conditional guarantee for BG.
Theorem 14 (BG for a realized preconditioner). Fix any D D D and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , and draw P P P with balanced supports (the statement holds verbatim for Bernoulli supports). Let N N N admissible pairs ( u , v ) (u,v) ( u , v ) of unit vectors be given (u u u stored, v v v the query) and L : = log ( 2 N / δ ) L:=\log(2N/\delta) L := log ( 2 N / δ ) .
(a) Dot product. If w u w v ≤ r / 64 w_uw_v\le r/64 w u w v ≤ r /64 and ℓ ≥ 4 ( π + 18.5 w u w v / r ) L \ell\ge4(\pi+18.5\,w_uw_v/r)L ℓ ≥ 4 ( π + 18.5 w u w v / r ) L for every pair, then with probability at least 1 − δ 1-\delta 1 − δ over P P P , for all pairs,
∣ ρ ^ B G − ρ ∣ ≤ 1.15 w u r + ( π + 18.5 w u w v r ) L ℓ . |\hat{\rho}_{\mathrm{BG}}-\rho|\le1.15\frac{w_u}{r}+\sqrt{\left(\pi+18.5\frac{w_uw_v}{r}\right)\frac{L}{\ell}}. ∣ ρ ^ BG − ρ ∣ ≤ 1.15 r w u + ( π + 18.5 r w u w v ) ℓ L . (b) Catoni decoder. If w u ≤ r / 64 w_u\le r/64 w u ≤ r /64 for every pair and ℓ > 2 L \ell>2L ℓ > 2 L , then with probability at least 1 − δ 1-\delta 1 − δ over P P P , for all pairs,
∣ Cat α ( Z 1 , … , Z ℓ ) − ρ ∣ ≤ 1.15 w u r + π L ℓ − 2 L , α = s π / 2 + s 2 , s = π L ℓ − 2 L . |\operatorname{Cat}_{\alpha}(Z_1,\ldots,Z_\ell)-\rho|\le1.15\frac{w_u}{r}+\sqrt{\frac{\pi L}{\ell-2L}},\qquad\alpha=\frac{s}{\pi/2+s^2},\quad s=\sqrt{\frac{\pi L}{\ell-2L}}. ∣ Cat α ( Z 1 , … , Z ℓ ) − ρ ∣ ≤ 1.15 r w u + ℓ − 2 L π L , α = π /2 + s 2 s , s = ℓ − 2 L π L .
The central feature of Theorem 14 is the decomposition of the error into two parts. The first term in both bounds is the support bias from Proposition 13 (i); because it does not decay with ℓ \ell ℓ , driving the total error below ε \varepsilon ε requires the row sparsity r r r to grow as 1 / ε 1/\varepsilon 1/ ε , a dependence that Theorem 21 (b) proves is unavoidable. Whenever fourth moments are available, one may substitute the sharper bias bound of Proposition 13 (ii) (such as 2.83 k u ∨ v / r 2.83\,k_{u\vee v}/r 2.83 k u ∨ v / r for k u ∨ v ≤ r / 70 k_{u\vee v}\le r/70 k u ∨ v ≤ r /70 ) directly into the first term. With that substitution, part (b) requires no cap condition at all, while part (a) requires only the milder condition w u w v ≤ r / 16 w_uw_v\le r/16 w u w v ≤ r /16 , which increases the sub-Gaussian variance constant π \pi π in the second term by at most 1.16 (Appendix § 6 .§ 5 ).
The second term in each bound captures the sampling noise across the ℓ \ell ℓ rows, which remains very close to that of a dense sketch. In part (a), the dense variance constant π \pi π of Theorem 2 is inflated by 18.5 w u ∨ v / r 18.5w_{u\vee v}/r 18.5 w u ∨ v / r (at most 0.29 0.29 0.29 when w u ∨ v ≤ r / 64 w_{u\vee v}\le r/64 w u ∨ v ≤ r /64 ), which is the only place where the query cap w v w_v w v enters; the mild length condition ℓ ≥ 4 ( π + 18.5 w u ∨ v / r ) L \ell\ge4(\pi+18.5w_{u\vee v}/r)L ℓ ≥ 4 ( π + 18.5 w u ∨ v / r ) L (satisfied once ℓ ≥ 14 L \ell\ge14L ℓ ≥ 14 L ) simply ensures that the deviation stays within the sub-Gaussian regime (≤ 1 / 2 \le1/2 ≤ 1/2 ) of the moment generating function bound. In part (b), the noise term is identical to that of Catoni’s estimator on a dense sketch (§ 2.1 ) and is completely independent of the query v v v .
Bounding the caps via Lemma 6 when D D D is drawn at random and setting r = Θ ( μ ( K ) / ε ) r=\Theta(\mu(K)/\varepsilon) r = Θ ( μ ( K ) / ε ) —so that the support bias consumes at most one fourteenth of the error budget ε \varepsilon ε —yields our worst-case corollary for BG.
Corollary 15 (BG, classical form). Let ε ∈ ( 0 , 1 2 ] \varepsilon\in(0,\frac{1}{2}] ε ∈ ( 0 , 2 1 ] and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , use either support law, and recall μ ( K ) = 2 log ( 4 n K / δ ) \mu(K)=2\log(4nK/\delta) μ ( K ) = 2 log ( 4 n K / δ ) from (3) .
(i) Dot product. Let U U U be a finite set of unit vectors and fix N N N pairs in U × U U\times U U × U , all independently of ( D , P ) (D,P) ( D , P ) . If r ≥ min { n , 16 max { ε − 1 , 4 } μ ( ∣ U ∣ ) } r\ge\min\{n,16\max\{\varepsilon^{-1},4\}\mu(|U|)\} r ≥ min { n , 16 max { ε − 1 , 4 } μ ( ∣ U ∣ )} and ℓ ≥ 4 ε − 2 log ( 4 N / δ ) \ell\ge4\varepsilon^{-2}\log(4N/\delta) ℓ ≥ 4 ε − 2 log ( 4 N / δ ) , then with probability at least 1 − δ 1-\delta 1 − δ , we have ∣ ρ ^ B G − ρ ∣ ≤ ε |\widehat{\rho}_{\mathrm{BG}}-\rho|\le\varepsilon ∣ ρ BG − ρ ∣ ≤ ε for all pairs.
(ii) Catoni decoder, D D D -adaptive queries. Let m m m stored unit vectors be fixed independently of ( D , P ) (D,P) ( D , P ) , and let N N N admissible pairs ( u , v ) (u,v) ( u , v ) have u u u stored and v v v any unit vector. If r ≥ min { n , 16 max { ε − 1 , 4 } μ ( m ) } r\ge\min\{n,16\max\{\varepsilon^{-1},4\}\mu(m)\} r ≥ min { n , 16 max { ε − 1 , 4 } μ ( m )} and ℓ ≥ ( 3.9 ε − 2 + 2 ) log ( 4 N / δ ) \ell\ge(3.9\varepsilon^{-2}+2)\log(4N/\delta) ℓ ≥ ( 3.9 ε − 2 + 2 ) log ( 4 N / δ ) , then with probability at least 1 − δ 1-\delta 1 − δ , we have ∣ Cat α ( Z 1 , … , Z ℓ ) − ρ ∣ ≤ ε |\operatorname{Cat}_{\alpha}(Z_1,\ldots,Z_\ell)-\rho|\le\varepsilon ∣ Cat α ( Z 1 , … , Z ℓ ) − ρ ∣ ≤ ε for all pairs, where α = 0.9 ε / ( π / 2 + 0.81 ε 2 ) \alpha=0.9\varepsilon/(\pi/2+0.81\varepsilon^2) α = 0.9 ε / ( π /2 + 0.81 ε 2 ) .
With K = ∣ U ∣ K=|U| K = ∣ U ∣ in (i) and K = m K=m K = m in (ii), the smallest sparsity allowed is at most ⌈ 32 μ ( K ) / ε ⌉ \lceil32\mu(K)/\varepsilon\rceil ⌈ 32 μ ( K ) / ε ⌉ , so encoding at the smallest ( ℓ , r ) (\ell,r) ( ℓ , r ) allowed costs O ( n log n + ε − 3 μ ( K ) log ( 4 N / δ ) ) O(n\log n+\varepsilon^{-3}\mu(K)\log(4N/\delta)) O ( n log n + ε − 3 μ ( K ) log ( 4 N / δ )) .
Remark 16 (The price of one bit). Quantizing the stored vector to one bit demands denser rows, but scarcely increases the sketch length: part (i) uses roughly 1.3 1.3 1.3 times the π ε − 2 log ( 2 N / δ ) \pi\varepsilon^{-2}\log(2N/\delta) π ε − 2 log ( 2 N / δ ) rows of dense BG (Theorem 2), and part (ii) uses slightly fewer still. Unlike GG products X i Y i X_iY_i X i Y i , which are products of two Gaussians and can exhibit heavier tails when supports fluctuate, BG scores remain conditionally Gaussian because only one side is signed; consequently, robust aggregation saves very few rows in the worst case.
The true advantage of Catoni’s decoder in BG is its complete insensitivity to the query vector. Because its noise bound relies solely on the unconditional second moment E [ Z i 2 ∣ D ] = π / 2 \mathbb{E}[Z_i^2\mid D]=\pi/2 E [ Z i 2 ∣ D ] = π /2 , which holds for every unit query v v v regardless of w v w_v w v , part (ii) imposes no flatness requirement on the query, pays μ ( m ) \mu(m) μ ( m ) rather than μ ( ∣ U ∣ ) \mu(|U|) μ ( ∣ U ∣ ) , and seamlessly accommodates queries chosen adaptively after seeing D D D . Moreover, when we compute data-dependent certificates in Table 2 , the certified sparsity for Catoni’s decoder on a typical pair is roughly half that of the dot-product decoder. We emphasize that this gap is an artifact of our moment generating function bound rather than an intrinsic difference between the two decoders: both decoders experience the exact same per-row variance π / 2 − ( E [ Z ∣ D ] ) 2 \pi/2-(\mathbb{E}[Z\mid D])^2 π /2 − ( E [ Z ∣ D ] ) 2 , and the extra term 18.5 w u ∨ v / r 18.5w_{u\vee v}/r 18.5 w u ∨ v / r in Theorem 14 (a) arises solely from the cap-based moment generating function bound in Appendix § 6 .§ 5 , which we did not attempt to optimize in terms of fourth moments (Appendix § 7 .§ 1 ).
Finally, one can freely trade sketch length against row sparsity by partitioning the error budget as ε = ε s + ε b \varepsilon=\varepsilon_s+\varepsilon_b ε = ε s + ε b between sampling noise and support bias. Because Proposition 13 (i) guarantees ∣ b v ∣ ≤ 4.3 w u / r |b_v|\le4.3w_u/r ∣ b v ∣ ≤ 4.3 w u / r unconditionally (without requiring w u ≤ r / 64 w_u\le r/64 w u ≤ r /64 ), part (ii) generalizes to any split with r ≥ min { n , 4.3 μ ( m ) / ε b } r\ge\min\{n,4.3\mu(m)/\varepsilon_b\} r ≥ min { n , 4.3 μ ( m ) / ε b } , ℓ ≥ ( π ε s − 2 + 2 ) log ( 4 N / δ ) \ell\ge(\pi\varepsilon_s^{-2}+2)\log(4N/\delta) ℓ ≥ ( π ε s − 2 + 2 ) log ( 4 N / δ ) , and α = ε s / ( π / 2 + ε s ) \alpha=\varepsilon_s/(\pi/2+\varepsilon_s) α = ε s / ( π /2 + ε s ) . Choosing ε b ≪ ε \varepsilon_b\ll\varepsilon ε b ≪ ε pushes the sketch length arbitrarily close to the dense BG bound at the expense of a proportionally larger row sparsity r r r .
Remark 17 (Fast evaluation of the Catoni decoder). Solving the root-finding equation (2) exactly requires a few iterative passes over the ℓ \ell ℓ row scores of each pair. However, a much simpler non-iterative variant suggested by Minsker [ [28 ] evaluates the influence function just once at the origin, yielding the closed-form estimator ( α ℓ ) − 1 ∑ i ψ ( α Z i ) (\alpha\ell)^{-1}\sum_i\psi(\alpha Z_i) ( α ℓ ) − 1 ∑ i ψ ( α Z i ) (or, if desired, uses a single Newton step from the origin to approximate the exact root). Because this one-step estimator concentrates at a rate governed by the raw second moment E [ Z i 2 ∣ D ] = π / 2 \mathbb{E}[Z_i^2\mid D]=\pi/2 E [ Z i 2 ∣ D ] = π /2 in place of the variance, setting α = 4 L / ( π ℓ ) \alpha=\sqrt{4L/(\pi\ell)} α = 4 L / ( π ℓ ) achieves an error radius of π L / ℓ \sqrt{\pi L/\ell} π L / ℓ rather than π L / ( ℓ − 2 L ) \sqrt{\pi L/(\ell-2L)} π L / ( ℓ − 2 L ) , eliminating the additive + 2 +2 + 2 term in Corollary 15(ii) (where L = log ( 4 N / δ ) L=\log(4N/\delta) L = log ( 4 N / δ ) ). Better still, because ψ \psi ψ is an odd function, the one-step estimate simplifies to ℓ − 1 ∑ i sign ( X i ) ϕ ( Y i ) \ell^{-1}\sum_i\operatorname{sign}(X_i)\phi(Y_i) ℓ − 1 ∑ i sign ( X i ) ϕ ( Y i ) with ϕ ( y ) : = α − 1 ψ ( α π / 2 y ) \phi(y):=\alpha^{-1}\psi(\alpha\sqrt{\pi/2}\,y) ϕ ( y ) := α − 1 ψ ( α π /2 y ) . In other words, it is simply the standard BG dot product computed against query projections Y i Y_i Y i that have been softly clipped once upon arrival! Full details are given in Appendix § 6 .§ 1 .
One bit on both sides (BB)
In SimHash (BB), both u u u and v v v are quantized to one bit. Conditioned on its support S S S , a sparse row produces a sign disagreement with probability θ S / π \theta_S/\pi θ S / π (Lemma 9(iii)), so the support bias of the angle estimate θ ^ \hat{\theta} θ ^ is simply E θ S − θ \mathbb{E}\theta_S-\theta E θ S − θ . Theorem 18 bounds the total estimation error in terms of the plane parameters ( k U , w U ) (k_U,w_U) ( k U , w U ) of (7) , both for additive error in part (a) and for relative error in part (b).
Theorem 18 (BB for a realized preconditioner). Fix any D D D and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , and draw P P P with balanced supports (the statement holds verbatim for Bernoulli supports). Let N N N admissible pairs of unit vectors be given, with plane parameters k U , w U k_U,w_U k U , w U as in (7) .
(a) Additive error. With probability at least 1 − δ 1-\delta 1 − δ over P P P , for all pairs,
∣ θ ^ − θ ∣ ≤ 7 8 sin θ f q ( k U − 21 b a l ) r + 4 π exp ( − ( 1 − log 2 ) r 2 w U ) + π log ( 2 N / δ ) 2 ℓ , |\hat{\theta}-\theta| \le\frac{7}{8}\sin\theta\frac{f_q(k_U-2\mathbf{1}_{\mathrm{bal}})}{r}+4\pi\exp\left(-\frac{(1-\log2)r}{2w_U}\right)+\pi\sqrt{\frac{\log(2N/\delta)}{2\ell}}, ∣ θ ^ − θ ∣ ≤ 8 7 sin θ r f q ( k U − 2 1 bal ) + 4 π exp ( − 2 w U ( 1 − log 2 ) r ) + π 2 ℓ log ( 2 N / δ ) , and the same bound holds for ∣ ρ ^ B B − ρ ∣ |\hat{\rho}_{\mathrm{BB}}-\rho| ∣ ρ ^ BB − ρ ∣ . If w U ≤ r / 64 w_U\le r/64 w U ≤ r /64 , the first two terms together are at most 1.8 w U / r 1.8\,w_U/r 1.8 w U / r .
(b) Relative error. Let ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] and θ 0 ∈ ( 0 , π ] \theta_0\in(0,\pi] θ 0 ∈ ( 0 , π ] . If ℓ ≥ 42 ε − 2 log ( 2 N / δ ) \ell\ge42\varepsilon^{-2}\log(2N/\delta) ℓ ≥ 42 ε − 2 log ( 2 N / δ ) and r ≥ max { 3.5 k U / ε , 6.52 w U log ( 16 π / ( ε θ 0 ) ) } r\ge\max\{3.5\,k_U/\varepsilon,6.52\,w_U\log(16\pi/(\varepsilon\theta_0))\} r ≥ max { 3.5 k U / ε , 6.52 w U log ( 16 π / ( ε θ 0 ))} for every pair, then with probability at least 1 − δ 1-\delta 1 − δ over P P P , every pair with θ ≥ θ 0 \theta\ge\theta_0 θ ≥ θ 0 has ∣ θ ^ − θ ∣ ≤ ε θ |\hat{\theta}-\theta|\le\varepsilon\theta ∣ θ ^ − θ ∣ ≤ εθ , and every pair with θ = 0 \theta=0 θ = 0 has θ ^ = 0 \hat{\theta}=0 θ ^ = 0 .
The additive error bound in part (a) consists of three terms: the third is the exact Hoeffding sampling noise of dense SimHash (Theorem 3(a)), since conditioned on D D D the ℓ \ell ℓ rows still produce independent Bernoulli disagreements, while the first two terms bound the support bias.
Specifically, the first term bounds the bias contributed by typical supports —those for which the random metric M S M_S M S has eigenvalues between 1 2 \frac{1}{2} 2 1 and 2 2 2 , so that every unit vector in the plane captures between half and twice its expected energy. As predicted by the Gram identity (Lemma 9(iv)), this leading bias term carries the factor sin θ \sin\theta sin θ and therefore vanishes proportionally for nearly collinear vectors. Moreover, it depends on the plane solely through its fourth moment k U k_U k U , scaling as O ( 1 / r ) O(1/r) O ( 1/ r ) rather than O ( μ ( 2 N ) / r ) O(\mu(2N)/r) O ( μ ( 2 N ) / r ) for a typical draw of D D D . The factor f q ( k U − 21 b a l ) / r f_q(k_U-2\mathbf{1}_{\mathrm{bal}})/r f q ( k U − 2 1 bal ) / r is precisely the expected squared Frobenius distance E ∥ M S − I 2 ∥ F 2 \mathbb{E}\lVert M_S-I_2\rVert_F^2 E ∥ M S − I 2 ∥ F 2 : to second order, the exact angular bias is a signed sum over the n n n coordinates weighted by ∥ c j ∥ 4 \lVert c_j\rVert^4 ∥ c j ∥ 4 whose summands oscillate with the orientation of c j ∈ R 2 c_j\in\mathbb{R}^2 c j ∈ R 2 (causing near-complete cancellation on isotropic planes; Appendix § 6 .6), whereas bounding each directional derivative in Frobenius norm sums their magnitudes. Under Bernoulli supports, fluctuations in the row length ∣ S ∣ |S| ∣ S ∣ add 2 f q / r 2f_q/r 2 f q / r to E ∥ M S − I 2 ∥ F 2 \mathbb{E}\lVert M_S-I_2\rVert_F^2 E ∥ M S − I 2 ∥ F 2 ; although a scalar multiple of M S M_S M S does not change the angle θ S \theta_S θ S , our second-order bound changes for the full Frobenius norm, giving balanced supports a slightly smaller constant in the theorem.
The second term, which we call the cap tail , accounts for atypical supports whose metric eigenvalues stray outside [ 1 2 , 2 ] [\frac{1}{2},2] [ 2 1 , 2 ] . It equals π \pi π times a matrix Chernoff bound on the probability of such an event (Appendix § 6 .6, where we also derive a sharper coordinatewise pair certificate via matrix Bernstein) and is the only place where the plane cap w U w_U w U enters. Because it decays exponentially in r / w U r/w_U r / w U , the cap tail acts as a sharp threshold: once r r r exceeds a modest logarithmic multiple of w U w_U w U , its contribution becomes negligible, whereas for smaller r r r it dominates the bound. When only w U w_U w U is known, the final sentence of part (a) combines both bias terms into the simple closed form 1.8 w U / r 1.8\,w_U/r 1.8 w U / r , paralleling the bound 1.15 w U / r 1.15\,w_U/r 1.15 w U / r for BG.
To achieve a target additive accuracy ε \varepsilon ε in part (a), we allocate a quarter of the error budget ε \varepsilon ε to each of the two bias terms and the remaining half to the sampling noise. This yields ∣ θ ^ − θ ∣ ≤ ε |\hat{\theta}-\theta|\le\varepsilon ∣ θ ^ − θ ∣ ≤ ε across all pairs whenever r ≥ max { 3.5 k U / ε , 6.52 w U log ( 16 π / ε ) } r\ge\max\{3.5\,k_U/\varepsilon,\ 6.52\,w_U\log(16\pi/\varepsilon)\} r ≥ max { 3.5 k U / ε , 6.52 w U log ( 16 π / ε )} and ℓ ≥ 2 π 2 ε − 2 log ( 2 N / δ ) \ell\ge2\pi^2\varepsilon^{-2}\log(2N/\delta) ℓ ≥ 2 π 2 ε − 2 log ( 2 N / δ ) . As ε → 0 \varepsilon\to0 ε → 0 , the first branch dominates and the required sparsity scales as k U / ε k_U/\varepsilon k U / ε . At moderate accuracies, however, the logarithmic threshold of the cap tail is often the active constraint: in the practical regime of Table 2 (ε = 0.1 \varepsilon=0.1 ε = 0.1 ), the cap tail dictates the certified typical-pair sparsity r = 842 r=842 r = 842 under balanced supports, whereas the fourth-moment term alone would be satisfied at r = 104 r=104 r = 104 (Appendix § 7 .§ 1 ). In the relative-error setting of part (b), because the leading bias term already scales with sin θ ≤ θ \sin\theta\le\theta sin θ ≤ θ , the minimum angle θ 0 \theta_0 θ 0 enters the sparsity requirement only inside the logarithm of the cap-tail threshold.
Passing to the unconditional setting by drawing D D D at random, Lemma 6 bounds the caps of all 2 N 2N 2 N basis vectors ( u 1 , u 2 ) (u_1,u_2) ( u 1 , u 2 ) by μ ( 2 N ) = 2 log ( 8 n N / δ ) \mu(2N)=2\log(8nN/\delta) μ ( 2 N ) = 2 log ( 8 n N / δ ) with probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 , which implies w U ≤ w u 1 + w u 2 ≤ 2 μ ( 2 N ) w_U\le w_{u_1}+w_{u_2}\le2\mu(2N) w U ≤ w u 1 + w u 2 ≤ 2 μ ( 2 N ) and k U ≤ 2 w U ≤ 4 μ ( 2 N ) k_U\le2w_U\le4\mu(2N) k U ≤ 2 w U ≤ 4 μ ( 2 N ) . (Bounding k U k_U k U by 4 μ ( 2 N ) 4\mu(2N) 4 μ ( 2 N ) is conservative since E D k U ≤ 8 \mathbb{E}Dk_U\le8 E D k U ≤ 8 ; establishing sharp high-probability tail bounds for fourth moments directly is an open problem discussed in § 5.1 .)
Corollary 19 (BB, classical form). Fix N N N pairs of unit vectors independently of ( D , P ) (D,P) ( D , P ) , let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , use either support law, and recall μ ( 2 N ) = 2 log ( 8 n N / δ ) \mu(2N)=2\log(8nN/\delta) μ ( 2 N ) = 2 log ( 8 n N / δ ) from (3) .
(i) Let ϵ ∈ ( 0 , π ] \epsilon\in(0,\pi] ϵ ∈ ( 0 , π ] . If r ≥ min { n , μ ( 2 N ) max { 14 / ϵ , 13.5 log ( 16 π / ϵ ) } } r \ge\min\{n,\mu(2N)\max\{14/\epsilon,13.5\log(16\pi/\epsilon)\}\} r ≥ min { n , μ ( 2 N ) max { 14/ ϵ , 13.5 log ( 16 π / ϵ )}} and ℓ ≥ 2 π 2 ϵ − 2 log ( 4 N / δ ) \ell\ge2\pi^{2}\epsilon^{-2}\log(4N/\delta) ℓ ≥ 2 π 2 ϵ − 2 log ( 4 N / δ ) , then with probability at least 1 − δ 1-\delta 1 − δ , we have ∣ θ ^ − θ ∣ ≤ ϵ |\widehat{\theta}-\theta|\le\epsilon ∣ θ − θ ∣ ≤ ϵ and ∣ ρ ^ B B − ρ ∣ ≤ ϵ |\widehat{\rho}_{\mathrm{BB}}-\rho|\le\epsilon ∣ ρ BB − ρ ∣ ≤ ϵ for all pairs.
(ii) Let ϵ ∈ ( 0 , 1 ] \epsilon\in(0,1] ϵ ∈ ( 0 , 1 ] and θ 0 ∈ ( 0 , π ] \theta_{0}\in(0,\pi] θ 0 ∈ ( 0 , π ] . If r ≥ min { n , μ ( 2 N ) max { 14 / ϵ , 13.5 log ( 16 π / ( ϵ θ 0 ) ) } } r \ge\min\{n,\mu(2N)\max\{14/\epsilon,13.5\log(16\pi/(\epsilon\theta_{0}))\}\} r ≥ min { n , μ ( 2 N ) max { 14/ ϵ , 13.5 log ( 16 π / ( ϵ θ 0 ))}} and ℓ ≥ 42 ϵ − 2 θ 0 − 1 log ( 4 N / δ ) \ell\ge42\epsilon^{-2}\theta_{0}^{-1}\log(4N/\delta) ℓ ≥ 42 ϵ − 2 θ 0 − 1 log ( 4 N / δ ) , then with probability at least 1 − δ 1-\delta 1 − δ , every pair with θ ≥ θ 0 \theta\ge\theta_{0} θ ≥ θ 0 has ∣ θ ^ − θ ∣ ≤ ϵ θ |\widehat{\theta}-\theta|\le\epsilon\theta ∣ θ − θ ∣ ≤ ϵ θ , and every pair with θ = 0 \theta=0 θ = 0 has θ ^ = 0 \widehat{\theta}=0 θ = 0 .
At the smallest ( ℓ , r ) (\ell,r) ( ℓ , r ) allowed in (i), encoding costs O ( n log n + ϵ − 3 μ ( 2 N ) log 4 N δ ) O\bigl(n\log n+\epsilon^{-3}\mu(2N)\log\frac{4N}{\delta}\bigr) O ( n log n + ϵ − 3 μ ( 2 N ) log δ 4 N ) .
Here the two branches inside the maximum come directly from substituting k U ≤ 4 μ ( 2 N ) k_{U}\le4\mu(2N) k U ≤ 4 μ ( 2 N ) and w U ≤ 2 μ ( 2 N ) w_{U}\le2\mu(2N) w U ≤ 2 μ ( 2 N ) into the two bias terms of Theorem 18 (with 4 / ( 1 − log 2 ) ≈ 13.04 4/(1-\log2)\approx13.04 4/ ( 1 − log 2 ) ≈ 13.04 rounded up to 13.5 13.5 13.5 ); in part (i), the 14 / ϵ 14/\epsilon 14/ ϵ branch dominates whenever ϵ ≤ 0.185 \epsilon\le0.185 ϵ ≤ 0.185 .
Remark 20 (Balancing sketch length, sparsity, and near-duplicate sensitivity). Because Corollary 19(i) assigns half of the error budget ϵ \epsilon ϵ to the support bias and half to the sampling noise, its sketch length is four times that of dense SimHash (Theorem 3(a)). Just as in Remark 16, we can trade row sparsity for a shorter sketch by allocating an arbitrary fraction η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) of the error budget ϵ \epsilon ϵ to the two bias terms (η ϵ / 2 \eta\epsilon/2 η ϵ /2 each) and ( 1 − η ) ϵ (1-\eta)\epsilon ( 1 − η ) ϵ to the noise, which generalizes part (i) to
r ≥ min { n , μ ( 2 N ) max { 7 η ϵ , 13.5 log 8 π η ϵ } } and ℓ ≥ π 2 2 ( 1 − η ) 2 ϵ 2 log 4 N δ . r \ge\min\left\{n,\mu(2N)\max\left\{\frac{7}{\eta\epsilon},13.5\log\frac{8\pi}{\eta\epsilon}\right\}\right\}
\qquad\text{and}\qquad
\ell\ge\frac{\pi^{2}}{2(1-\eta)^{2}\epsilon^{2}}\log\frac{4N}{\delta}. r ≥ min { n , μ ( 2 N ) max { η ϵ 7 , 13.5 log η ϵ 8 π } } and ℓ ≥ 2 ( 1 − η ) 2 ϵ 2 π 2 log δ 4 N .
Setting η = 1 2 \eta=\frac{1}{2} η = 2 1 recovers Corollary 19(i), while letting η → 0 \eta\to0 η → 0 brings the sketch length arbitrarily close to the dense SimHash bound.
In part (ii), the sketch length retains the favorable θ 0 − 1 \theta_{0}^{-1} θ 0 − 1 scaling of Theorem 3(b) with a constant factor five times larger. Detecting near-duplicates at small angles therefore requires longer sketches just as in the dense case, while demanding almost no additional row sparsity.
Lower bounds
Whereas our linear Catoni guarantee (Corollary 11 (ii)) requires only r = 3 μ ( m ) r=3\mu(m) r = 3 μ ( m ) nonzeros per row, both one-bit corollaries require r r r to scale as μ ( K ) / ϵ \mu(K)/\epsilon μ ( K ) / ϵ . Theorem 21 proves that this 1 / ϵ 1/\epsilon 1/ ϵ sparsity factor is a genuine property of the estimators rather than an artifact of our analysis whenever each row samples at most half of the coordinates (2 ≤ r ≤ n / 2 2\le r\le n/2 2 ≤ r ≤ n /2 ). In addition, part (d) confirms that neither vector caps nor fourth moments can be guaranteed to remain below Ω ( Λ ) \Omega(\Lambda) Ω ( Λ ) across a family of N N N vectors, showing that the logarithmic flatness level μ ( K ) \mu(K) μ ( K ) of Lemma 6 is tight up to constant factors whenever N / δ N/\delta N / δ lies between two fixed powers of n n n .
Our lower-bound constructions are based on normalized Walsh blocks x B : = s − 1 / 2 1 B x_{B}:=s^{-1/2}\mathbf{1}_{B} x B := s − 1/2 1 B , where the block size s s s is a power of two and B ⊂ { 0 , … , n − 1 } B\subset\{0,\ldots,n-1\} B ⊂ { 0 , … , n − 1 } is one of the n / s n/s n / s dyadic blocks of s s s consecutive coordinates (Figure 3 ). With probability 2 s 2 − s 2s\,2^{-s} 2 s 2 − s over the random draw of D D D , the coordinate signs on B B B align with a Walsh function, causing the Hadamard preconditioner H D H D H D to fail to spread x B x_{B} x B : instead, x ~ B = H D x B \widetilde{x}_{B}=H D x_{B} x B = H D x B is supported on a regular “comb” C C C of just n / s n/s n / s coordinates of equal magnitude s / n \sqrt{s/n} s / n and vanishes everywhere else, yielding w x B = k x B = s w_{x_{B}}=k_{x_{B}}=s w x B = k x B = s . Pairing x B x_{B} x B with a standard basis vector e j e_{j} e j outside B B B —whose preconditioned image e ~ j = H D e j \widetilde{e}_{j}=H D e_{j} e j = H D e j has entries ± n − 1 / 2 \pm n^{-1/2} ± n − 1/2 everywhere—partitions the comb into equal sign halves C + C^{+} C + and C − C^{-} C − according to the entrywise product e ~ j ∘ x ~ B \widetilde{e}_{j}\circ\widetilde{x}_{B} e j ∘ x B . On this event, a row support S S S meeting C + C^{+} C + and C − C^{-} C − in J + J^{+} J + and J − J^{-} J − coordinates captures energy σ x B 2 ( J + − J − ) / r \sigma_{x_{B}}^{2}(J^{+}-J^{-})/r σ x B 2 ( J + − J − ) / r of variance Θ ( s / r ) \Theta(s/r) Θ ( s / r ) , while the cross term σ 12 ∘ J + − J − \sigma_{12}\circ J^{+}-J^{-} σ 12 ∘ J + − J − cancels by symmetry under swapping C + C^{+} C + and C − C^{-} C − , isolating a downward support bias of order s / r s/r s / r that we bound from below explicitly.
Figure 3. Geometry of a “hit” Walsh block (n = 16 n = 16 n = 16 , block size s = 4 s = 4 s = 4 ; thick vertical lines delineate the n / s = 4 n/s = 4 n / s = 4 dyadic blocks, indexed 0 , … , 15 0,\ldots,15 0 , … , 15 ). When the signs of D D D on block B 1 B_1 B 1 align with a Walsh function, H D HD H D maps the contiguous block vector x 1 x_1 x 1 into a sparse comb C 1 C_1 C 1 of n / s n/s n / s coordinates of magnitude s / n \sqrt{s/n} s / n , giving w x 1 = k x 1 = s w_{x_1}=k_{x_1}=s w x 1 = k x 1 = s . Pairing x 1 x_1 x 1 with a basis vector e 0 e_0 e 0 outside B 1 B_1 B 1 splits C 1 C_1 C 1 into equal sign halves C 1 + C_1^+ C 1 + and C 1 − C_1^- C 1 − according to e ~ 0 ∘ x ~ 1 \tilde e_0\circ\tilde x_1 e ~ 0 ∘ x ~ 1 . A row support S S S of size r = 6 r=6 r = 6 meeting C 1 + C_1^+ C 1 + in J 1 + = 2 J_1^+=2 J 1 + = 2 and C 1 − C_1^- C 1 − in J 1 − = 1 J_1^-=1 J 1 − = 1 coordinates captures energy σ x 1 2 = s ( J 1 + + J 1 − ) / r \sigma_{x_1}^2=s(J_1^+ + J_1^-)/r σ x 1 2 = s ( J 1 + + J 1 − ) / r , while its cross term σ 12 ∝ J 1 + − J 1 − \sigma_{12}\propto J_1^+-J_1^- σ 12 ∝ J 1 + − J 1 − changes sign under swapping C 1 + C_1^+ C 1 + and C 1 − C_1^- C 1 − .
Theorem 21 (Lower bounds). Let n ≥ 4 n\ge4 n ≥ 4 , 2 ≤ r ≤ n / 2 2\le r\le n/2 2 ≤ r ≤ n /2 (so q ≤ 1 2 q\le\frac12 q ≤ 2 1 ), N ≥ 1 N\ge1 N ≥ 1 , δ ∈ ( 0 , 1 2 ] \delta\in(0,\frac12] δ ∈ ( 0 , 2 1 ] , and Λ : = log ( min { N , n / 2 } / δ ) \Lambda:=\log(\min\{N,n/2\}/\delta) Λ := log ( min { N , n /2 } / δ ) . The vectors below are built from normalized Walsh blocks and coordinate vectors; all families are fixed independently of ( D , P ) (D,P) ( D , P ) and have at most N N N members.
(a) The leading bias terms are attained. For every power of two s s s with 2 ≤ s ≤ r 2\le s\le r 2 ≤ s ≤ r there are a unit vector x x x and an event E E E over D D D of probability 2 s 2 − s 2s\,2^{-s} 2 s 2 − s on which w x = k x = s w_x=k_x=s w x = k x = s and, for every ρ ∈ [ − 1 , 1 ] \rho\in[-1,1] ρ ∈ [ − 1 , 1 ] and v = ρ x + 1 − ρ 2 e j v=\rho x+\sqrt{1-\rho^{2}}e_j v = ρ x + 1 − ρ 2 e j with j j j outside the block of x x x ,
E [ ρ ^ B G ( x , v ) ∣ D ] − ρ = − ρ Δ , Δ : = 1 − E [ σ x ∣ D ] ≥ f q ( s − 1 b a l ) 16 r \mathbb{E}[\widehat{\rho}_{\mathrm{BG}}(x,v)\mid D]-\rho=-\rho\Delta,\qquad\Delta:=1-\mathbb{E}[\sigma_x\mid D]\ge\frac{f_q(s-\mathbf{1}_{\mathrm{bal}})}{16r} E [ ρ BG ( x , v ) ∣ D ] − ρ = − ρ Δ , Δ := 1 − E [ σ x ∣ D ] ≥ 16 r f q ( s − 1 bal )
under either law, where σ x 2 = ∥ x ~ S ∥ 2 \sigma_x^2=\|\tilde x_S\|^2 σ x 2 = ∥ x ~ S ∥ 2 is the energy that a row captures from x x x . Under balanced supports and with tan θ = 1 / ( 33 s ) \tan\theta=1/(33\sqrt{s}) tan θ = 1/ ( 33 s ) , the pair u = e j u=e_j u = e j , v = cos θ e j + sin θ x v=\cos\theta\,e_j+\sin\theta\,x v = cos θ e j + sin θ x , again with j j j outside the block of x x x , satisfies on E \mathcal{E} E
E [ θ ^ ∣ D ] − θ ≤ − θ f q ( s − 1 ) 17 r , although k u , k v ≤ 1.01 ; here w U = s + 1 , k U = s + 3. \mathbb{E}[\hat{\theta}\mid D]-\theta\le-\theta\frac{f_q(s-1)}{17r},
\qquad\text{although } k_u,k_v\le1.01;\quad\text{here } w_U=s+1,\ k_U=s+3. E [ θ ^ ∣ D ] − θ ≤ − θ 17 r f q ( s − 1 ) , although k u , k v ≤ 1.01 ; here w U = s + 1 , k U = s + 3.
(b) BG. Let ϵ ≤ 1 / 256 \epsilon\le1/256 ϵ ≤ 1/256 . There is a family of at most N N N pairs with the following property, under either law. Let the estimate be ρ ^ B G \hat{\rho}_{\mathrm{BG}} ρ ^ BG with ℓ ≥ π / ( 2 ϵ 2 ) \ell\ge\pi/(2\epsilon^2) ℓ ≥ π / ( 2 ϵ 2 ) , or any decoder ρ ~ \tilde{\rho} ρ ~ that concentrates around the mean row score, in the sense that Pr [ ∣ ρ ~ − E [ Z 1 ∣ D ] ∣ ≤ ϵ ∣ D ] ≥ 1 2 \Pr[|\tilde{\rho}-\mathbb{E}[Z_1\mid D]|\le\epsilon\mid D]\ge\frac{1}{2} Pr [ ∣ ρ ~ − E [ Z 1 ∣ D ] ∣ ≤ ϵ ∣ D ] ≥ 2 1 for every pair of the family and every D D D , where Z 1 Z_1 Z 1 is the first row score of the pair. If, with probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 , the estimate has error at most ϵ \epsilon ϵ on every pair of the family, then r > Λ / ( 178 ϵ ) r>\Lambda/(178\epsilon) r > Λ/ ( 178 ϵ ) .
(c) BB, relative error. Use balanced supports, let ϵ ≤ 1 / 272 \epsilon\le1/272 ϵ ≤ 1/272 , and fix θ ∈ ( 0 , arctan ( 1 / 10 ) ] \theta\in(0,\arctan(1/10)] θ ∈ ( 0 , arctan ( 1/10 )] . There is a family of at most N N N pairs at angle θ \theta θ such that, if ℓ ≥ π / ( ϵ 2 θ ) \ell\ge\pi/(\epsilon^2\theta) ℓ ≥ π / ( ϵ 2 θ ) and with probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 every pair has ∣ θ ^ − θ ∣ ≤ ϵ θ |\hat{\theta}-\theta|\le\epsilon\theta ∣ θ ^ − θ ∣ ≤ ϵ θ , then r > Λ / ( 189 ϵ ) r>\Lambda/(189\epsilon) r > Λ/ ( 189 ϵ ) .
(d) Flatness and fourth moments are tight. Some family of at most N N N unit vectors, fixed independently of D D D , contains with probability larger than δ \delta δ a member x x x with w x = k x > 1 2 min { Λ , n / 2 } w_x=k_x>\frac{1}{2}\min\{\Lambda,n/2\} w x = k x > 2 1 min { Λ , n /2 } .
Part (a) demonstrates that our conditional bias upper bounds are tight up to constant factors in their dependence on the data parameters. For BG, the relative downward bias Δ \Delta Δ on the family of pairs ( x , v ) (x,v) ( x , v ) equals the self-pair deficit of § 2.2 , which is at least Var ( σ x 2 ) / 16 \operatorname{Var}(\sigma_x^2)/16 Var ( σ x 2 ) /16 (and asymptotically Var ( σ x 2 ) / 8 \operatorname{Var}(\sigma_x^2)/8 Var ( σ x 2 ) /8 ). For BB, the first bias term of Theorem 18(a) evaluates to 7 8 sin θ f q ( s + 1 ) / r \frac{7}{8}\sin\theta\,f_q(s+1)/r 8 7 sin θ f q ( s + 1 ) / r on the constructed pair, confirming that a relative angular bias of order k U / r k_U/r k U / r is genuinely attained—and proving that the plane parameters ( k U , w U ) (k_U,w_U) ( k U , w U ) cannot be replaced by the individual vector moments ( k u , k v ) (k_u,k_v) ( k u , k v ) , which are both at most 1.01 despite their span containing the spiky Walsh block x x x .
Parts (b) and (c) follow from part (a) by packing min { N , n / s − 1 } \min\{N,n/s-1\} min { N , n / s − 1 } disjoint Walsh blocks of size s s s into { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } : whenever s ≲ Λ s\lesssim\Lambda s ≲ Λ , the random signs D D D fail to flatten at least one block in the family with probability exceeding δ \delta δ (cf. Appendix § 6 .7). On that event, the hit block suffers a bias of order Λ / r \Lambda/r Λ/ r , which exceeds 2 ϵ 2\epsilon 2 ϵ (or 2 ϵ θ 2\epsilon\theta 2 ϵ θ ) unless r = Ω ( Λ / ϵ ) r=\Omega(\Lambda/\epsilon) r = Ω ( Λ/ ϵ ) ; once the sketch length ℓ \ell ℓ is large enough for the estimate to concentrate within ϵ \epsilon ϵ of its conditional mean with probability at least 1 2 \frac{1}{2} 2 1 , this bias forces the estimator to fail with overall probability greater than δ / 2 \delta/2 δ /2 .
Notice also that robust aggregation cannot rescue BG from this lower bound, because the failure is driven by a shift in the conditional expectation E [ Z 1 ∣ D ] \mathbb{E}[Z_1\mid D] E [ Z 1 ∣ D ] rather than by heavy tails. Accordingly, part (b) applies to every decoder that concentrates around E [ Z 1 ∣ D ] \mathbb{E}[Z_1\mid D] E [ Z 1 ∣ D ] , including Catoni’s estimator once ℓ = Ω ( ϵ − 2 ) \ell=\Omega(\epsilon^{-2}) ℓ = Ω ( ϵ − 2 ) . By contrast, the linear estimator GG has zero support bias, so no analogous sparsity lower bound applies to it (though the per-row variance bound of Theorem 10 (b) is attained up to 3 f q 1 b a l / r 3f_{q_1\mathrm{bal}}/r 3 f q 1 bal / r on a hit Walsh block; see Appendix § 6 .§ 4 ).
Finally, because the proof of Theorem 21 (b) uses only self-pairs ( x b , x b ) (x_b,x_b) ( x b , x b ) —for which ρ ^ B G ( u , u ) = π / 2 ∥ Φ u ∥ 1 / ℓ \widehat{\rho}_{\mathrm{BG}}(u,u)=\sqrt{\pi/2}\,\lVert\Phi_u\rVert_1/\ell ρ BG ( u , u ) = π /2 ∥ Φ u ∥ 1 / ℓ coincides with the ℓ 1 \ell_1 ℓ 1 FJLT of Ailon and Chazelle [ [3 ] (§ 1.1 )—it simultaneously establishes a lower bound for ℓ 1 \ell_1 ℓ 1 dimension reduction. While Ailon and Chazelle [ [3 ] chose a row density proportional to ε − 1 \varepsilon^{-1} ε − 1 to ensure 1 − ε ≤ E σ u ≤ 1 1-\varepsilon\leq\mathbb{E}\sigma_u\leq1 1 − ε ≤ E σ u ≤ 1 , part (b) proves that this ε − 1 \varepsilon^{-1} ε − 1 factor is in fact necessary for the standard ℓ 1 \ell_1 ℓ 1 FJLT estimator whenever ε ≤ 1 / 256 \varepsilon\leq1/256 ε ≤ 1/256 and r ≤ n / 2 r\leq n/2 r ≤ n /2 .
Remark 22 (Scope and constants of the lower bounds). We emphasize that Theorem 21 bounds the performance of the specific estimators studied here rather than providing an information-theoretic lower bound over arbitrary decoding algorithms. For the standard BG dot-product decoder and any concentration-based decoder (such as Catoni’s estimator), part (b) proves that the worst-case sparsity r = O ( ε − 1 log ( n N / δ ) ) r=O(\varepsilon^{-1}\log(nN/\delta)) r = O ( ε − 1 log ( n N / δ )) of Corollary 15 is optimal up to constant factors whenever n c ≤ N / δ ≤ ( n / δ ) C n^c\leq N/\delta\leq(n/\delta)^C n c ≤ N / δ ≤ ( n / δ ) C for fixed constants 0 < c ≤ C 0<c\leq C 0 < c ≤ C . For SimHash (BB), part (c) establishes the same optimality for relative error at a small angle θ \theta θ under balanced supports, matching Corollary 19(ii) with θ 0 = θ \theta_0=\theta θ 0 = θ in the regime where log ( 16 π / ( ε θ ) ) = O ( 1 / ε ) \log(16\pi/(\varepsilon\theta))=O(1/\varepsilon) log ( 16 π / ( εθ )) = O ( 1/ ε ) .
At the same time, the numerical constants in our worst-case corollaries and lower bounds are separated by more than three orders of magnitude: in the regime ε ≤ 1 / 256 \varepsilon\leq1/256 ε ≤ 1/256 (BG) and ε ≤ 1 / 272 \varepsilon\leq1/272 ε ≤ 1/272 (BB) where Theorem 21 applies, the corollaries ask for a sparsity more than 5,000 times the lower bound (whenever r < n r<n r < n ). Very little of this gap comes from our analysis of the conditional support bias for a fixed D D D : on the hard Walsh-block pairs of part (a), our conditional upper and lower bounds sandwich the true bias to within a factor of 3 for BG and 6 for BB at large r r r (§ 4 , Figure 5 ). Instead, the gap accumulates when passing to the worst-case corollaries and proving the unconditional lower bounds: the corollaries use simplified closed-form bias bounds, replace fourth moments with worst-case union-bound caps μ ( K ) \mu(K) μ ( K ) , and allocate only a small fraction of the error budget ε \varepsilon ε to the bias (≈ ε / 14 \approx\varepsilon/14 ≈ ε /14 for BG and ε / 4 \varepsilon/4 ε /4 per bias term for BB), while the lower-bound proofs sacrifice constant factors in the block-hitting and Cantelli arguments.
Figure 5. On the worst-case pairs of Theorem 21 (a) (panels (c) and (d)), our upper and lower bounds sandwich the true support bias to within a factor of roughly 3 for BG and 6 for BB once r r r is sufficiently large; on a typical Gaussian pair (panels (a) and (b)), only the coordinatewise BG pair certificate achieves comparable tightness. Markers show empirical bias with ± 2 \pm2 ± 2 standard errors (n = 2 14 n = 2^{14} n = 2 14 ), normalized by θ \theta θ for BB. Curves plot the theoretical bounds across the regime where their hypotheses hold and their value is below 1; brackets annotate the ratios at r = 8192 r = 8192 r = 8192 under balanced supports.
Certificates and cost
Whereas the classical guarantees in Table 1 must bound every vector parameter by the worst-case flatness level μ ( K ) \mu(K) μ ( K ) , our conditional theorems for a fixed D D D adapt directly to the empirical geometry of the dataset.
Data-dependent certificates. As introduced in § 1.4 , a certificate is obtained by evaluating one of our fixed-D D D bounds (Theorems 10 , 14 , and 18 , together with Proposition 13 ) at the empirical flatness parameters measured after applying the preconditioner H D HD H D . Because these theorems hold for every realization of D D D , a practitioner can draw D D D once, compute the preconditioned vectors x ~ = H D x \tilde{x}=HDx x ~ = H D x and their summary statistics ( w x , k x ) (w_x,k_x) ( w x , k x ) in O ( n ) O(n) O ( n ) time per vector during encoding (Algorithm 1), select the required sparsity r r r and sketch length ℓ \ell ℓ , and only then draw the sparse matrix P P P —without ever needing to reject or redraw D D D . In particular, the caps w u w_u w u of the stored database vectors suffice to bound the BG bias uniformly over all queries (Proposition 13 (i)) as well as the GG row variance for Catoni’s decoder (Theorem 10 (b)), allowing r r r to be certified offline before any query arrives. At query time, computing v ~ = H D v \tilde{v}=HDv v ~ = H D v immediately yields the query’s parameters ( w v , k v ) (w_v,k_v) ( w v , k v ) , which provide a refined per-pair error bar: k v k_v k v and the stored k u k_u k u enter the tighter fourth-moment bias bound of Proposition 13 (ii), while w v w_v w v enters the dot-product noise term of Theorem 14 (a). Certifying BB requires the two-dimensional plane parameters ( w u , k u ) (w_u,k_u) ( w u , k u ) , which can be computed offline for known pairs or at query time if the preconditioned vectors u ~ \tilde{u} u ~ are retained.
Two practical caveats are worth noting. First, selecting the encoding sparsity r r r offline based on typical pair parameters—as done in the last two columns of Table 2 for BG and BB—implicitly assumes that incoming queries will exhibit flatness parameters comparable to those of the stored database; while this can be verified for each query upon arrival, only the stored caps w u w_u w u provide an unconditional guarantee over arbitrary queries. Second, the certificates reported in Table 2 use the summary parameter forms ( w x , k x , w U , k U ) (w_x,k_x,w_U,k_U) ( w x , k x , w U , k U ) ; evaluating the full coordinatewise pair certificates derived in Appendices § 6 .§ 5 and § 6 .6—which retain the exact coordinate variance of u ~ \tilde{u} u ~ , v ~ \tilde{v} v ~ , and the plane vectors c j c_j c j —yields even tighter bounds (as shown in Figure 5 ), at the cost of inspecting both u ~ \tilde{u} u ~ and v ~ \tilde{v} v ~ .
Comparison with two-stage dimension reduction. As noted in § 1.5 , one can bypass the support bias of sparse signed rows by composing two transformations: first reducing the dimension from n n n to an intermediate dimension n ′ n' n ′ via a linear FJLT, and then applying a dense signed Gaussian projection from R n ′ \mathbb{R}^{n'} R n ′ to { ± 1 } ℓ \{\pm1\}^{\ell} { ± 1 } ℓ . Proposed as a baseline by Yi et al. [ [34 ] and analyzed by Dirksen and Stollenwerk [ [11 ] (with the cross-polytope hash of Kennedy and Ward [ [22 ] serving as a related variant), this two-stage architecture incurs Θ ( ε − 4 log 2 ( N / δ ) ) \Theta(\varepsilon^{-4}\log^{2}(N/\delta)) Θ ( ε − 4 log 2 ( N / δ )) operations per vector beyond the initial Hadamard transform. The reason for the ε − 4 \varepsilon^{-4} ε − 4 scaling is that any distortion introduced by the first-stage projection into R n ′ \mathbb{R}^{n'} R n ′ is frozen into the reduced vectors and shared across all ℓ \ell ℓ rows of the second stage; because the second stage cannot average this distortion away, both stages must independently achieve accuracy of order ε / 2 \varepsilon/2 ε /2 . Consequently, the intermediate dimension must scale as n ′ = Θ ( ε − 2 log ( N / δ ) ) n'=\Theta(\varepsilon^{-2}\log(N/\delta)) n ′ = Θ ( ε − 2 log ( N / δ )) , the second stage requires ℓ = Θ ( ε − 2 log ( N / δ ) ) \ell=\Theta(\varepsilon^{-2}\log(N/\delta)) ℓ = Θ ( ε − 2 log ( N / δ )) rows, and multiplying each reduced vector by the dense ℓ × n ′ \ell\times n' ℓ × n ′ second-stage matrix costs n ′ ℓ = Θ ( ε − 4 log 2 ( N / δ ) ) n'\ell=\Theta(\varepsilon^{-4}\log^{2}(N/\delta)) n ′ ℓ = Θ ( ε − 4 log 2 ( N / δ )) operations.
Signing sparse FJLT rows directly in a single stage saves a full factor of 1 / ε 1/\varepsilon 1/ ε . Under Corollaries 15 and 19, the sparse projection step costs r ℓ = O ( ε − 3 μ ( K ) log ( N / δ ) ) r\ell=O(\varepsilon^{-3}\mu(K)\log(N/\delta)) r ℓ = O ( ε − 3 μ ( K ) log ( N / δ )) operations per vector, improving upon the two-stage baseline by a factor of Θ ( log ( N / δ ) / ( ε μ ( K ) ) ) \Theta(\log(N/\delta)/(\varepsilon\mu(K))) Θ ( log ( N / δ ) / ( ε μ ( K ))) —which is Θ ( 1 / ε ) \Theta(1/\varepsilon) Θ ( 1/ ε ) whenever n n n and the database size are polynomial in N / δ N/\delta N / δ . In the practical regime of Table 2 (n = 65,536 n=65{,}536 n = 65 , 536 , N = 10 9 N=10^{9} N = 1 0 9 , ε = 0.1 \varepsilon=0.1 ε = 0.1 ), even an idealized, zero-cost first stage that preserved angles as accurately as a dense Gaussian projection would require an intermediate dimension of n ′ ≈ 17,250 n'\approx17{,}250 n ′ ≈ 17 , 250 (over a quarter of n n n ), while the second stage would require roughly four times as many rows as a single-stage dense sketch at accuracy ε \varepsilon ε . As a result, the two-stage composition requires slightly more multiply–adds per vector than a naive dense projection of the original n n n -dimensional vectors! By contrast, signing sparse FJLT rows directly reduces the projection cost by a factor of 2 to 5 in the worst case, and by a factor of 20 to 70 when certified with typical pair parameters (see Table 7 in Appendix § 7 .§ 1 ). While replacing the dense second stage with a structured circulant matrix reduces the cost of the two-stage pipeline [34 , 11 ] , doing so reintroduces inter-row dependencies and requires median-of-blocks decoding rather than a simple Hamming popcount or dot product.
Experiments
Because the primary contribution of this paper is theoretical, our numerical experiments are designed to illustrate and test the sharpness of our theorems rather than to benchmark end-to-end retrieval systems. After describing our test-pair families and variance-reduced measurement protocol in § 4.1 , we investigate three core questions: how sparse the projection rows can be made before estimation accuracy degrades (Section 4.2, Figure 2 and Figure 4 ), how closely our upper and lower bounds track the empirical support bias across input geometries (Section 4.3, Figure 5 ), and how switching from Bernoulli to balanced supports affects estimator bias and error (Section 4.4, Table 3 ). § 4.5 concludes with two further experiments on doubly balanced matrices and per-row variance crossovers (Figure 6 ), and Appendix § 7 documents additional simulation details and tables (Table 5 –Table 8 ).
Figure 4. Total sketch error decomposes into dense sampling noise plus support bias: as sketch length ℓ \ell ℓ grows at fixed sparsity r = 32 r = 32 r = 32 , GG (panel (a)) and BB (panel (c)) continue to decay as ℓ − 1 / 2 \ell^{-1/2} ℓ − 1/2 , whereas BG (panel (b)) saturates at its bias floor. Points show end-to-end RMSE on the Gaussian pair (n = 4096 n = 4096 n = 4096 , ρ = 0.9 \rho= 0.9 ρ = 0.9 , r = 32 r = 32 r = 32 ) with ± 2 \pm2 ± 2 standard errors. Solid gray lines show the dense rate σ / ℓ \sigma/\sqrt{\ell} σ / ℓ ; in panel (b), dotted lines mark the independently measured BG bias ∣ b u v ∣ |b_{uv}| ∣ b uv ∣ from Table 3 , and thin solid curves show σ 2 / ℓ + b u v 2 \sqrt{\sigma^2/\ell+b_{uv}^2} σ 2 / ℓ + b uv 2 .
Table 3. Switching from Bernoulli to balanced supports scales the BG support bias by approximately ( k u − 1 ) / k u (k_u-1)/k_u ( k u − 1 ) / k u , eliminating roughly one third of the bias on Gaussian inputs (k u ≈ 3 k_u \approx3 k u ≈ 3 ) and all of the bias on flat one-hot inputs (k u = 1 k_u = 1 k u = 1 ). Entries report the empirical BG bias b u v b_{uv} b uv (n = 4096 n = 4096 n = 4096 , standard errors ≤ 0.3 ⋅ 10 − 3 \le0.3 \cdot10^{-3} ≤ 0.3 ⋅ 1 0 − 3 ) across ρ ∈ { 0.5 , 0.9 , 0.99 } \rho\in\{0.5, 0.9, 0.99\} ρ ∈ { 0.5 , 0.9 , 0.99 } and r ∈ { 32 , 128 } r \in\{32, 128\} r ∈ { 32 , 128 } , alongside the coordinatewise BG pair certificate (Appendix § 6 .§ 5 ) at ρ = 0.99 \rho= 0.99 ρ = 0.99 .
Figure 6. Row sparsity inflates the per-row variance of the linear estimator GG while leaving the one-bit estimators BG and BB virtually unchanged, shifting the variance crossover to even lower correlations. Solid curves plot the dense Gaussian per-row variances across ρ ∈ [ 0 , 1 ) \rho\in[0,1) ρ ∈ [ 0 , 1 ) ; markers show balanced sparse FJLT variances (10 6 10^6 1 0 6 supports per point) on a spiky stored vector (k u = w u = 64 k_u = w_u = 64 k u = w u = 64 , n = 4096 n = 4096 n = 4096 ) at r = 640 r = 640 r = 640 (w u / r = 0.1 w_u/r = 0.1 w u / r = 0.1 , filled) and r = 3200 r = 3200 r = 3200 (w u / r = 0.02 w_u/r = 0.02 w u / r = 0.02 , open). The dashed curve tracks the sparse GG variance at r = 640 r = 640 r = 640 , moving the GG–BG crossover from ρ = 0.53 \rho= 0.53 ρ = 0.53 (dense) down to ρ = 0.46 \rho= 0.46 ρ = 0.46 (sparse).
Table 5. Empirical flatness parameters of Gaussian-like unit vectors and planes in dimension n = 65,536 n=65{,}536 n = 65 , 536 used to evaluate the certified columns of Table 2 (m = N = 10 9 m=N=10^9 m = N = 1 0 9 ).
Table 8. On the perfectly flat one-hot pair (k u = w u = 1 k_u = w_u = 1 k u = w u = 1 ), balanced supports eliminate the BG support bias completely, whereas the BB support bias persists under both support laws. Entries report end-to-end empirical bias and RMSE on the one-hot pair of Table 3 (n = 4096 n = 4096 n = 4096 , ρ = 0.9 \rho= 0.9 ρ = 0.9 , r = 32 r = 32 r = 32 ), with BB evaluated on ρ ^ B B = cos θ ^ \hat{\rho}_{\mathrm{BB}} = \cos\hat{\theta} ρ ^ BB = cos θ ^ .
Test pairs and measurements
Every experiment fixes a realization of the sign matrix D D D and a pair of unit vectors u = u 1 u=u_1 u = u 1 and v = ρ u 1 + 1 − ρ 2 u 2 v=\rho u_1+\sqrt{1-\rho^2}\,u_2 v = ρ u 1 + 1 − ρ 2 u 2 , where u 2 u_2 u 2 is a unit vector orthogonal to the stored vector u 1 u_1 u 1 . In keeping with our fixed-D D D theorems, all reported biases and errors are conditioned on D D D . To span the spectrum from benign to worst-case geometry, we evaluate three representative families of input pairs:
Gaussian pairs represent typical well-spread inputs: u 1 u_1 u 1 and u 2 u_2 u 2 are drawn as random orthonormal vectors alongside a random sign matrix D D D . After preconditioning, the pair is Gaussian-like in the sense of § 1.4 , with fourth moment κ u ≈ 3 \kappa_u\approx3 κ u ≈ 3 and cap w u ≈ 2 log n w_u\approx2\log n w u ≈ 2 log n (ranging between 17 and 20 at the dimensions n n n tested here).
One-hot pairs represent the most favorable geometry: u 1 u_1 u 1 and u 2 u_2 u 2 are distinct standard basis vectors, which the Hadamard transform H D HD H D maps to perfectly flat vectors (u ~ 1 , j 2 = u ~ 2 , j 2 = 1 / n \widetilde{u}_{1,j}^{2}=\widetilde{u}_{2,j}^{2}=1/n u 1 , j 2 = u 2 , j 2 = 1/ n ) for every realization of D D D , yielding κ u = w u = 1 \kappa_u=w_u=1 κ u = w u = 1 .
Hard pairs are the worst-case constructions of Theorem 21 (a) with block size s = 16 s=16 s = 16 : for BG, u u u is a normalized Walsh block with κ u = w u = 16 \kappa_u=w_u=16 κ u = w u = 16 ; for BB, u u u and v v v are two nearly flat vectors (κ u , κ v ≤ 1.01 \kappa_u,\kappa_v\le1.01 κ u , κ v ≤ 1.01 ) whose span has plane parameters κ U = 19 \kappa_U=19 κ U = 19 and w U = 17 w_U=17 w U = 17 . We fix D D D to lie on the block-hitting event E \mathcal{E} E of Theorem 21 (a) (which occurs under random signs with probability 2 s − 2 ≈ 5 ⋅ 10 − 4 2s^{-2}\approx5\cdot10^{-4} 2 s − 2 ≈ 5 ⋅ 1 0 − 4 ), thereby probing the exact worst-case regime of our conditional bounds.
The wide-range bias sweep in Figure 5 (Section 4.3) uses ambient dimension n = 2 14 = 16,384 n=2^{14}=16{,}384 n = 2 14 = 16 , 384 so that the row sparsity r r r can vary over nearly three orders of magnitude up to n / 2 n/2 n /2 , while all other experiments use n = 4096 n=4096 n = 4096 . For Gaussian pairs, a single realization of D D D is already highly representative because the empirical fourth moments concentrate tightly around their expectations, just as in the n = 65,536 n=65{,}536 n = 65 , 536 certificate benchmarks of Table 2 (see Table 5 in Appendix § 7 .§ 1 ).
We define the empirical bias of an estimator as its conditional expectation given D D D minus the ground-truth parameter. To measure this bias free of Gaussian Monte Carlo noise, we sample between 2 ⋅ 10 5 2 \cdot10^5 2 ⋅ 1 0 5 and 4 ⋅ 10 5 4 \cdot10^5 4 ⋅ 1 0 5 row supports S S S and average the exact conditional score expectations given S S S —namely the geometric features ζ S = σ u v / σ u \zeta_S = \sigma_{uv}/\sigma_u ζ S = σ uv / σ u for BG and θ S / π \theta_S/\pi θ S / π for BB illustrated in Figure 1 (Lemma 9(iii)). We measure overall estimation error by the root mean squared error (RMSE) of the cosine estimate: Figure 2 evaluates this RMSE directly from exact conditional single-row moments, whereas Figure 4 and Table 8 run end-to-end sketch simulations following Algorithm 1 (Appendix § 7 ). For SimHash (BB), we report the relative angular bias ∣ E [ θ ^ ∣ D ] − θ ∣ / θ |\mathbb{E}[\hat{\theta}\mid D]-\theta|/\theta ∣ E [ θ ^ ∣ D ] − θ ∣/ θ (matching the normalization of Theorem 21 (a)) when evaluating bias in Figure 5 , and the RMSE of ρ ^ B B = cos θ ^ \hat{\rho}_{\mathrm{BB}} = \cos\hat{\theta} ρ ^ BB = cos θ ^ when evaluating total error.
How sparse can the rows be?
Our conditional theorems bound the error of a one-bit sketch by the sampling noise of a dense sketch (scaling as 1 / ℓ 1/\sqrt{\ell} 1/ ℓ ) plus a support bias (scaling as 1 / r 1/r 1/ r independently of ℓ \ell ℓ ). Accordingly, the empirical RMSE should closely follow the two-term decomposition σ 2 / ℓ + b 2 \sqrt{\sigma^2/\ell+b^2} σ 2 / ℓ + b 2 , where σ 2 \sigma^2 σ 2 is the per-row score variance and b b b is the support bias. For both BG and BB, σ 2 \sigma^2 σ 2 is virtually indistinguishable from its dense value: π / 2 − ρ 2 \pi/2-\rho^2 π /2 − ρ 2 for BG (§ 2.1 ) and, by the delta method, θ ( π − θ ) sin 2 θ \theta(\pi-\theta)\sin^2\theta θ ( π − θ ) sin 2 θ for ρ ^ B B \hat{\rho}_{\mathrm{BB}} ρ ^ BB . For the linear estimator GG, the bias b b b is identically zero, while by (8) in § 3.3 the dense row variance 1 + ρ 2 1+\rho^2 1 + ρ 2 increases by the O ( 1 / r ) O(1/r) O ( 1/ r ) fourth-moment term f q 3 ( 3 κ u v − 1 b a l ( 1 + 2 ρ 2 ) ) \frac{f_q}{3}(3\kappa_{uv}-1_{\mathrm{bal}}(1+2\rho^2)) 3 f q ( 3 κ uv − 1 bal ( 1 + 2 ρ 2 )) . This decomposition predicts two distinct behaviors: a sparse one-bit sketch should match the accuracy of a dense sketch so long as its support bias b b b remains small relative to the dense noise floor σ / ℓ \sigma/\sqrt{\ell} σ / ℓ , whereas a sparse GG sketch should incur a fixed multiplicative variance overhead across all sketch lengths ℓ \ell ℓ . We test both predictions on the Gaussian pair at ρ = 0.9 \rho= 0.9 ρ = 0.9 .
Varying row sparsity at fixed sketch length. Returning to Figure 2 in § 1.4 , we sweep the row sparsity from r = n r = n r = n down to r = 8 r = 8 r = 8 at sketch lengths ℓ = 2 9 \ell= 2^9 ℓ = 2 9 and ℓ = 2 15 \ell= 2^{15} ℓ = 2 15 . In Figure 2 (a), the linear estimator GG incurs the same relative RMSE inflation at both sketch lengths—roughly 25% under Bernoulli supports and 17% under balanced supports at r = 8 r = 8 r = 8 , dropping below 7.2% once r ≥ 32 r \ge32 r ≥ 32 . In Figure 2 (b), the BG RMSE at ℓ = 2 9 \ell= 2^9 ℓ = 2 9 remains within 10% of the dense baseline down to r = 32 r = 32 r = 32 (Bernoulli) and r = 16 r = 16 r = 16 (balanced); when the sketch length increases to ℓ = 2 15 \ell= 2^{15} ℓ = 2 15 , the dense noise floor σ / ℓ \sigma/\sqrt{\ell} σ / ℓ drops by a factor of eight, requiring an eightfold increase in row sparsity (r = 256 r = 256 r = 256 for Bernoulli and r = 128 r = 128 r = 128 for balanced supports) to keep the O ( 1 / r ) O(1/r) O ( 1/ r ) support bias negligible. Meanwhile, in Figure 2 (c), BB stays within 0.5% of the dense RMSE all the way down to r = 8 r = 8 r = 8 at both sketch lengths because coordinate cancellations make its support bias exceptionally small on generic Gaussian planes (Section 4.3).
Varying sketch length at fixed row sparsity. Figure 4 fixes the row sparsity at r = 32 r = 32 r = 32 and sweeps the sketch length from ℓ = 2 9 \ell= 2^9 ℓ = 2 9 to 2 15 2^{15} 2 15 . Both GG in Figure 4 (a) and BB in Figure 4 (c) track the ℓ − 1 / 2 \ell^{-1/2} ℓ − 1/2 dense convergence rate across the entire range. By contrast, BG in Figure 4 (b) follows the ℓ − 1 / 2 \ell^{-1/2} ℓ − 1/2 curve initially before leveling off at an error floor equal to its support bias ∣ b u v ∣ |b_{uv}| ∣ b uv ∣ , which we measure independently in Table 3 (Section 4.4) as 11.0 ⋅ 10 − 3 11.0 \cdot10^{-3} 11.0 ⋅ 1 0 − 3 under Bernoulli supports and 7.2 ⋅ 10 − 3 7.2 \cdot10^{-3} 7.2 ⋅ 1 0 − 3 under balanced supports. Across all sketch lengths, the empirical BG error lies squarely on the theoretical curve σ 2 / ℓ + b u v 2 \sqrt{\sigma^2/\ell+ b_{uv}^2} σ 2 / ℓ + b uv 2 .
SimHash also hits a bias floor when coordinates do not cancel. Although BB exhibits negligible bias on the Gaussian pair of Figure 4 (c), it is not immune to support bias. Repeating the same sketch-length sweep on the one-hot pair (r = 32 r = 32 r = 32 , ρ = 0.9 \rho= 0.9 ρ = 0.9 ) in Table 8 (Appendix § 7 .§ 2 ), the bias of ρ ^ B B \hat{\rho}_{\mathrm{BB}} ρ ^ BB is + 1.6 ⋅ 10 − 3 +1.6 \cdot10^{-3} + 1.6 ⋅ 1 0 − 3 under Bernoulli supports and + 1.8 ⋅ 10 − 3 +1.8 \cdot10^{-3} + 1.8 ⋅ 1 0 − 3 under balanced supports—five to six standard errors away from zero and comparable to the dense noise floor of 2.7 ⋅ 10 − 3 2.7 \cdot10^{-3} 2.7 ⋅ 1 0 − 3 at ℓ = 2 15 \ell= 2^{15} ℓ = 2 15 . Thus SimHash, too, eventually reaches a sketch length beyond which adding more rows without increasing r r r yields diminishing returns.
In summary, the target sampling noise dictates the sketch length ℓ \ell ℓ , and for one-bit estimators the support bias then dictates the required row sparsity r r r . A few dozen nonzeros per row suffice to keep GG within 7% of a dense projection (and suffice for BB on typical Gaussian inputs), whereas BG requires r r r to scale inversely with the target error ϵ \epsilon ϵ on benign Gaussian pairs just as it does in the worst case of Theorem 21 (b).
How tight are the bias bounds?
Figure 5 compares the empirical support bias against three hierarchy levels of our theoretical upper bounds as r r r varies from 16 16 16 to n / 2 n/2 n /2 :
the coordinatewise pair certificate computed directly from u ~ \tilde{u} u ~ and v ~ \tilde{v} v ~ , which retains the exact coordinate variances V u V_u V u , V u v V_{uv} V uv for BG and uses a matrix Bernstein metric-tail bound over the row vectors c j \mathbf{c}_j c j for BB (Appendices § 6 .§ 5 and § 6 .6);
the parameter form depending only on summary caps and fourth moments (Proposition 13 (ii) for BG and the two bias terms of Theorem 18 (a) for BB—the same bounds evaluated at n = 65,536 n=65{,}536 n = 65 , 536 to produce the certified budgets in Table 2 , Table 6 , and Table 7); and
the single-term closed forms (1.15 w u / r 1.15\,w_u/r 1.15 w u / r and 2.83 k u ∨ v / r 2.83\,k_{u\vee v}/r 2.83 k u ∨ v / r for BG; 1.8 w U / r 1.8\,w_U/r 1.8 w U / r for BB).
Table 6. Partition of the target error budget ε = 0.1 \varepsilon=0.1 ε = 0.1 between sampling noise and support bias for the certified typical-pair column of Table 2 under balanced supports (n = 65,536 n=65{,}536 n = 65 , 536 , N = 10 9 N=10^9 N = 1 0 9 , δ = 0.1 \delta=0.1 δ = 0.1 ).
On the hard pairs in Figure 5 (c) and Figure 5 (d), we also plot the theoretical lower bounds of Theorem 21 (a). Because all empirical biases and bounds decay at the same 1 / r 1/r 1/ r rate once r r r is past the tail threshold, comparing them reduces to comparing their prefactors.
Typical Gaussian pair. For BG on the Gaussian pair at ρ = 0.9 \rho=0.9 ρ = 0.9 (Figure 5 (a)), the coordinatewise pair certificate tracks the empirical bias closely, exceeding it by only a factor of 2.4 to 3.5 for r ≥ 512 r \ge512 r ≥ 512 (and a factor of 5 to 6 at r = 128 r=128 r = 128 ). By contrast, the summary parameter form and closed-form bounds are 16 to 205 times larger than the empirical bias; the cap bound 1.15 w u / r 1.15\,w_u/r 1.15 w u / r is the most conservative because it substitutes a cap of w u ≈ 20 w_u \approx20 w u ≈ 20 in place of a fourth moment of k u ≈ 3 k_u \approx3 k u ≈ 3 , though it has the virtue of depending solely on the stored vector u u u .
For SimHash (BB) on the same Gaussian plane (Figure 5 (b)), every theoretical upper bound exceeds the empirical bias by more than two orders of magnitude. As noted in § 3.5 (and derived explicitly in Appendix § 6 .6), the leading second-order term of the BB bias is a signed sum over the n n n coordinates weighted by ∥ c j ∥ 4 \lVert\mathbf{c}_j\rVert^4 ∥ c j ∥ 4 whose terms oscillate with the orientation of the plane’s row vectors c j ∈ R 2 \mathbf{c}_j \in\mathbb{R}^2 c j ∈ R 2 . On an isotropic Gaussian plane, these orientations are distributed uniformly around the circle, causing the summands to cancel almost completely, whereas our Frobenius-norm bounds sum the magnitude of each coordinate’s contribution.
Worst-case Walsh-block pairs. On the hard pairs of Theorem 21 (a) (Figure 5 (c) and Figure 5 (d)), the coordinate signs align instead of canceling, and the empirical bias is tightly bracketed between our upper and lower bounds. For BG in Figure 5 (c), Theorem 21 (a) expresses the exact bias as − ρ Δ -\rho\Delta − ρ Δ and proves the lower bound Δ ≥ f q ( s − 1 b a l / 16 ) = Var ( σ u 2 ) / 16 \Delta\ge f_q(s-1_{\mathrm{bal}}/16)=\operatorname{Var}(\sigma_u^2)/16 Δ ≥ f q ( s − 1 bal /16 ) = Var ( σ u 2 ) /16 . At large r r r , the measured bias is almost exactly twice this lower bound, matching the asymptotic expansion Δ = ( 1 + o ( 1 ) ) Var ( σ u 2 ) / 8 \Delta=(1+o(1))\operatorname{Var}(\sigma_u^2)/8 Δ = ( 1 + o ( 1 )) Var ( σ u 2 ) /8 as s / r → 0 s/r \to0 s / r → 0 (consistent with (10); see Appendix § 6 .7), while the upper pair certificate sits within a factor of 1.9 to 2.9 of the true bias for all r ≥ 1024 r \ge1024 r ≥ 1024 . Similarly, for BB under balanced supports in Figure 5 (d), once r ≥ 2048 r \ge2048 r ≥ 2048 (so that the exponential cap tail has decayed), the empirical bias sits 2.7 times above the theoretical lower bound while the upper bound of Theorem 18 (a) sits roughly 6 times above the empirical bias. Recall that both vectors of this hard BB pair are individually nearly flat (k u , k v ≤ 1.01 k_u,k_v \le1.01 k u , k v ≤ 1.01 ), confirming empirically that the two-dimensional plane parameters (k u ∨ v , w U k_{u\vee v},w_U k u ∨ v , w U )—not the single-vector moments—govern the support bias of SimHash.
In short, our bias bounds are tight to within small constant factors (2× to 6×) on the worst-case inputs they must cover, while on benign Gaussian inputs only the coordinatewise BG pair certificate captures the cancellation between coordinates.
What does balancing change?
As shown in § 1.2 and § 3.1 , fixing the row support size to r r r reduces the variance of the captured energy σ u 2 \sigma_u^2 σ u 2 from ( 1 − q ) k u / r (1-q)k_u/r ( 1 − q ) k u / r under Bernoulli supports to f q ( k u − 1 ) / r f_q(k_u-1)/r f q ( k u − 1 ) / r under balanced supports. Because the second-order expansion (10) in § 3.4 approximates the BG support bias as − ρ 8 Var ( σ u 2 ) -\frac{\rho}{8}\operatorname{Var}(\sigma_u^2) − 8 ρ Var ( σ u 2 ) plus a smaller cross-covariance term, balancing the rows when r ≪ n r \ll n r ≪ n should scale the BG bias by ( k u − 1 ) / k u (k_u-1)/k_u ( k u − 1 ) / k u : cutting it by one third on Gaussian-like inputs where k u ≈ 3 k_u \approx3 k u ≈ 3 (from − 3 8 ρ / r -\frac{3}{8}\rho/r − 8 3 ρ / r to − 1 4 ρ / r -\frac{1}{4}\rho/r − 4 1 ρ / r ), eliminating it completely on flat inputs where k u = 1 k_u=1 k u = 1 (Proposition 13 (iii)), and making only a minor difference on spiky inputs with large k u k_u k u .
Table 3 verifies each of these predictions across Gaussian and one-hot pairs at r ∈ { 32 , 128 } r \in\{32,128\} r ∈ { 32 , 128 } and ρ ∈ { 0.5 , 0.9 , 0.99 } \rho\in\{0.5,0.9,0.99\} ρ ∈ { 0.5 , 0.9 , 0.99 } . At ρ = 0.99 \rho=0.99 ρ = 0.99 , where the cross-covariance term of (10) is negligible, every measured bias agrees with the leading term − ρ 8 Var ( σ u 2 ) -\frac{\rho}{8}\operatorname{Var}(\sigma_u^2) − 8 ρ Var ( σ u 2 ) to within one standard error. At ρ = 0.5 \rho=0.5 ρ = 0.5 , the cross-covariance term in (10) contributes an additional 6% (Bernoulli) to 9% (balanced) on the Gaussian pair and vanishes identically on the flat one-hot pair; including it brings (9) within 2.2 standard errors of every cell in Table 3 . Across all correlations on the Gaussian input, balanced supports reduce the magnitude of the BG bias by roughly one third. On the one-hot input, balanced supports eliminate the bias completely (matching zero within Monte Carlo precision), whereas Bernoulli supports still suffer a nonzero bias driven entirely by random fluctuations in row length. Conversely, on the spiky Walsh block of Figure 5 (c) (k u = 16 k_u = 16 k u = 16 ), the two support laws produce nearly identical biases (( k u − 1 ) / k u = 15 / 16 (k_u-1)/k_u = 15/16 ( k u − 1 ) / k u = 15/16 ). Finally, the rightmost two columns of Table 3 confirm that at r = 128 r = 128 r = 128 , the coordinatewise BG pair certificate sits within a factor of 3 of the measured bias on the Gaussian input and vanishes as expected on the balanced one-hot input.
For SimHash (BB), by contrast, the empirical bias (Figure 5 (b) and Figure 5 (d)) and overall RMSE (Figure 4 (c)) are virtually indistinguishable between Bernoulli and balanced supports. As noted in § 3.1 , conditioned on its nonzero count ∣ S ∣ |S| ∣ S ∣ , a Bernoulli row is simply a rescaled balanced row, and multiplying a row projection by a positive scalar leaves its sign—and thus the disagreement angle—unchanged. Moreover, flat individual vectors do not eliminate the BB bias: on the one-hot pair where the balanced BG bias vanishes, Table 8 (Appendix § 7 .§ 2 ) shows that the BB bias remains nonzero under both support laws because the off-diagonal metric entry σ 12 \sigma_{12} σ 12 still fluctuates from row to row.
In summary, balanced supports remove a 1 / k u 1/k_u 1/ k u fraction of the BG support bias while leaving the BB bias essentially unchanged.
Two further observations
Doubly balanced supports (balancing columns as well as rows). Whereas our balanced FJLT fixes the number of nonzeros per row, the sparse JL transforms of Kane and Nelson [ [21 ] and Nelson and Nguyễn [ [29 ] fix the number of nonzeros per column. Enforcing both constraints simultaneously yields doubly balanced supports , in which every row has r r r nonzeros and every column has ℓ r / n \ell r/n ℓ r / n nonzeros. Because column regularity couples the rows, our independent-row concentration bounds do not directly apply, and establishing high-probability tail bounds for doubly balanced one-bit sketches remains an open question. Empirically, on the Gaussian pair (ρ = 0.9 \rho= 0.9 ρ = 0.9 , r ∈ { 8 , 32 } r \in\{8, 32\} r ∈ { 8 , 32 } ), doubly balanced supports leave the BG and BB biases unchanged within standard error—as expected, since linearity of expectation implies that the bias depends only on the marginal distribution of a single row. However, column regularity measurably reduces the variance of the linear estimator GG: because the energies captured across all ℓ \ell ℓ rows are forced to sum deterministically to ℓ \ell ℓ , one of the three ν u = Var ( σ u 2 ) \nu_u = \operatorname{Var}(\sigma_u^2) ν u = Var ( σ u 2 ) terms in the per-row squared-norm variance Var ( X i 2 ∣ D ) = 2 + 3 ν u \operatorname{Var}(X_i^2 \mid D) = 2 + 3\nu_u Var ( X i 2 ∣ D ) = 2 + 3 ν u from (8) cancels out across rows. This predicts a norm-RMSE reduction factor of ( 2 + 2 ν u ) / ( 2 + 3 ν u ) \sqrt{(2+2\nu_u)/(2+3\nu_u)} ( 2 + 2 ν u ) / ( 2 + 3 ν u ) (1.4% to 4.7% in our setup), matching the observed 3% to 5% reduction within roughly one standard error.
Per-row variance crossover between linear and one-bit estimators. Recall from § 2.1 that for dense Gaussian projections, a BG row score has smaller variance ( π / 2 − ρ 2 ) (\pi/2-\rho^2) ( π /2 − ρ 2 ) than a linear GG row score ( 1 + ρ 2 ) (1+\rho^2) ( 1 + ρ 2 ) whenever ∣ ρ ∣ ≳ 0.53 |\rho| \gtrsim0.53 ∣ ρ ∣ ≳ 0.53 . Moving to sparse rows shifts this crossover even further in favor of the one-bit estimators: whereas the unconditional second moment of a BG row score remains locked at E [ Z i 2 ∣ D ] = π / 2 \mathbb{E}[Z_i^2 \mid D] = \pi/2 E [ Z i 2 ∣ D ] = π /2 (§ 3.4 ) and a BB bit disagreement remains bounded in [ 0 , 1 ] [0,1] [ 0 , 1 ] , the variance of a GG row product grows by the O ( k u v / r ) O(k_{uv}/r) O ( k uv / r ) fourth-moment term of (8) . Figure 6 illustrates this effect over 10 6 10^6 1 0 6 balanced supports for a spiky stored vector (k u = w u = 64 k_u = w_u = 64 k u = w u = 64 , n = 4096 n = 4096 n = 4096 ). Even at moderate sparsity r = 640 r = 640 r = 640 (w u / r = 0.1 w_u/r = 0.1 w u / r = 0.1 ), the BG and BB per-row variances lie right on top of their dense curves (deviating by at most 0.022 and 0.0023), whereas the dashed sparse GG curve shifts upward by 0.13 to 0.25 across ρ \rho ρ (returning toward the dense curve at r = 3200 r = 3200 r = 3200 ). As marked by the vertical drop lines in Figure 6 , the correlation threshold above which one-bit scores have lower per-row variance than GG drops from ρ = 0.53 \rho= 0.53 ρ = 0.53 to 0.46 for BG, and similarly from ρ = 0.59 \rho= 0.59 ρ = 0.59 to 0.55 for BB.
Discussion
Since Ailon and Chazelle [ [3 ] introduced the fast Johnson–Lindenstrauss transform nearly two decades ago, fast preconditioned sparse projections and one-bit quantization have largely evolved along separate tracks. Classical FJLT theory established sharp finite-sample guarantees for linear embeddings, while practical one-bit schemes—from SimHash [8 ] to modern asymmetric quantizers [36 , 15 , 37 ] —either relied on dense Θ ( n ℓ ) \Theta(n\ell) Θ ( n ℓ ) Gaussian projections, turned to structured circulant or Toeplitz matrices whose coupled rows complicate concentration, or applied sparse projections heuristically without non-asymptotic guarantees. This paper closes that gap by providing a unified finite-sample analysis across all three precision regimes: full precision on both sides (GG), one bit against full precision (BG), and one bit on both sides (BB).
Viewing each sparse row through the random metric M S M_S M S it induces on the two-dimensional span of a vector pair clarifies why sign quantization fundamentally alters the behavior of sparse sketches. Linear inner-product estimates read a linear functional of M S M_S M S and remain unbiased at every sparsity, whereas signed estimators read nonlinear functionals—a normalized projection for BG and a distorted angle for BB—whose curvature converts support-to-support energy fluctuations into a systematic O ( 1 / r ) O(1/r) O ( 1/ r ) sparse bias that does not decay as the sketch length ℓ \ell ℓ grows. Our Walsh-block lower bounds (Theorem 21 ) prove that the resulting Θ ( μ / ε ) \Theta(\mu/\varepsilon) Θ ( μ / ε ) worst-case sparsity scaling is an intrinsic property of one-bit sparse sketching rather than an artifact of our proof, and simultaneously settle the necessity of the ε − 1 \varepsilon^{-1} ε − 1 density factor in the classical ℓ 1 \ell_1 ℓ 1 FJLT of Ailon and Chazelle [ [3 ] . At the same time, conditioning on the realized preconditioner D D D yields data-dependent certificates expressed in terms of empirical fourth moments rather than worst-case caps, reducing the certified sparsity on typical well-spread inputs from 15–17% of the ambient dimension to roughly 1% (Table 2 ).
Two algorithmic design choices play a central role throughout our results. First, replacing independent Bernoulli supports with balanced supports of fixed cardinality r r r aligns the projection with contiguous, branch-free gather kernels on modern SIMD and GPU hardware while strictly improving statistical concentration. Removing row-length fluctuations cuts the BG support bias by roughly one third on Gaussian-like inputs and eliminates it completely on flat vectors (Proposition 13 (iii), Table 3 ). Within the same unified analysis, our full-precision bounds extend the optimal linear FJLT sparsity of Fandina et al. [ [13 ] to balanced supports and arbitrary failure probability δ \delta δ , while supplying fully explicit constants that correct inaccuracies in the original constants of Fandina et al. [ [13 ] .
Second, replacing the sample average with Catoni’s robust mean estimator substantially strengthens both linear and asymmetric guarantees. For linear inner products, Catoni’s decoder removes the ε \varepsilon ε -dependence of the row sparsity altogether (r = 3 μ ( m ) r = 3\,\mu(m) r = 3 μ ( m ) for all ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] ). For asymmetric one-bit estimation (BG), it removes all flatness conditions on the query vector, accommodates queries chosen adaptively after observing D D D , and halves the certified sparsity on typical inputs (Table 2 ). Crucially, in its non-iterative one-step formulation (Remark 17), the Catoni BG decoder reduces to softly clipping the uncompressed query projections once upon arrival and computing a standard sign dot product. Because this requires only a single streaming pass with negligible overhead beyond a standard inner product, it is directly suited to latency-critical deep learning and retrieval pipelines.
Future work and open problems
Applications to deep learning and vector databases. While our experiments here focus on controlled tests of the theoretical bounds, applying balanced signed FJLT sketches and single-pass Catoni decoding to large-scale machine learning and database systems is an immediate direction for future work. Natural targets include long-context key-value cache compression for transformer attention—where QJL [Zandieh et al., [36 ] ] and TurboQuant [Zandieh et al., [37 ] ] currently pair asymmetric one-bit codes with dense projections or unanalyzed structured transforms, particularly when attention keys are grouped across heads to reach larger effective dimensions n n n —as well as billion-scale approximate nearest-neighbor indexes built on asymmetric sign quantization [Gao and Long, [15 ] ]. Co-designing fused fast Walsh–Hadamard, balanced sparse gather, and one-step Catoni kernels on GPUs and evaluating end-to-end recall and perplexity on production workloads remain important practical steps.
High-probability tail bounds for fourth moments. On the theoretical side, when passing from fixed-D D D bounds to worst-case corollaries, we bound the fourth moments k X k_X k X and k U k_U k U by the corresponding caps w X w_X w X and 2 w U 2w_U 2 w U , which grow as O ( log ( n N / δ ) ) O(\log(n\sqrt{N}/\delta)) O ( log ( n N / δ )) even though E D k X ≤ 3 \mathbb{E}_D k_X \le3 E D k X ≤ 3 and E D k U ≤ 8 \mathbb{E}_D k_U \le8 E D k U ≤ 8 for any pre-specified input. Because k X k_X k X and k U k_U k U are degree-four polynomials in the random signs of D D D , standard hypercontractive inequalities yield dimension-free bounds of order O ( log 2 ( N / δ ) ) O(\log^2(N/\delta)) O ( log 2 ( N / δ )) , removing the dependence on n n n at the cost of squaring the logarithm, whereas Theorem 21(d) shows only that k X k_X k X (and hence k U ≥ k u k_U \ge k_u k U ≥ k u ) can reach Ω ( min { Λ , n } ) \Omega(\min\{\Lambda,n\}) Ω ( min { Λ , n }) . Determining whether k X k_X k X and k U k_U k U concentrate at the linear logarithmic scale O ( log ( N / δ ) ) O(\log(N/\delta)) O ( log ( N / δ )) without paying a log n \log n log n factor would directly sharpen the leading terms of our worst-case one-bit guarantees.
Additive-error lower bounds, bias calibration, and ranking. Although Theorem 21(c) proves our Ω ( ε − 1 Λ ) \Omega(\varepsilon^{-1}\Lambda) Ω ( ε − 1 Λ ) sparsity lower bound for SimHash under relative angular error with balanced supports (and conditioning on support size suggests the same order under Bernoulli supports), two fundamental questions remain open: whether SimHash requires r = Ω ( ε − 1 Λ ) r = \Omega(\varepsilon^{-1}\Lambda) r = Ω ( ε − 1 Λ ) under additive error, and whether alternative decoders can bypass the ε − 1 \varepsilon^{-1} ε − 1 sparsity barrier for BG. In particular, on the hard Walsh-block pairs of Theorem 21(a), the conditional BG bias is purely multiplicative (E [ ρ ^ B G ∣ D ] = ρ ( 1 − Δ ) \mathbb{E}[\widehat{\rho}_{\mathrm{BG}} \mid D] = \rho(1-\Delta) E [ ρ BG ∣ D ] = ρ ( 1 − Δ ) with Δ = 1 − E [ σ U ∣ D ] \Delta= 1-\mathbb{E}[\sigma_U \mid D] Δ = 1 − E [ σ U ∣ D ] ), so storing the single scalar factor ( 1 − Δ ) − 1 (1-\Delta)^{-1} ( 1 − Δ ) − 1 alongside each database vector—analogous to the per-vector scaling in RaBitQ [Gao and Long, [15 ] ]—cancels the leading − ε 8 Var ( σ U 2 ) -\frac{\varepsilon}{8}\operatorname{Var}(\sigma_U^2) − 8 ε Var ( σ U 2 ) term of (9) for every stored vector. Whether such scalar calibration (or maximum-likelihood one-bit decoders; Li [24 ] ) can provably beat Θ ( μ ( K ) / ε ) \Theta(\mu(K)/\varepsilon) Θ ( μ ( K ) / ε ) sparsity in general, where the cross-covariance term of (9) also contributes, and what sparsity suffices for pure top-k k k nearest-neighbor ranking rather than value estimation, are natural questions for future work.
Proofs
All of our proofs follow a common three-step blueprint. First, we condition on a fixed sign matrix D D D and examine a single row of the sparse matrix P P P : conditioned on its support S S S , the row acts on any pair of vectors ( u , v ) (u,v) ( u , v ) exactly as a dense Gaussian row acts on the subsampled pair ( u ~ S , v ~ S ) (\widetilde{u}_S,\widetilde{v}_S) ( u S , v S ) , inducing the random metric M S M_S M S on their span (Lemma 9), whose entries are rescaled coordinate sums over S S S (Lemma 28). Because each estimator averages a specific functional of M S M_S M S across the ℓ \ell ℓ rows, we first bound the single-row support bias—the expected deviation of that functional over the random draw of S S S —and then bound the row-to-row sampling fluctuations across the ℓ \ell ℓ conditionally independent rows. Finally, we take expectations over the random draw of D D D : invoking Lemma 6 bounds the empirical flatness parameters of all pre-specified inputs by the worst-case flatness level μ ( K ) \mu(K) μ ( K ) of (4) with high probability, converting each fixed-D D D theorem into its corresponding classical corollary.
The appendix is organized into six parts. Appendix A.1 collects concentration inequalities and robust estimation tools, while Appendix A.3 establishes Lemmas 9 and 28 along with the algebraic relations among our flatness parameters. Appendices A.4, A.5, and A.6 prove the guarantees for GG, BG, and BB, respectively, and Appendix A.7 establishes the lower bounds of Theorem 21 . Three additional results appear exclusively in this appendix: a scale-free Catoni estimator for pairwise squared distances (Theorem 32 ) and the coordinatewise pair certificates for the support bias of BG and BB (Propositions 34 and 42 ). Table 4 summarizes our notation, and every numerical constant and elementary inequality in Appendices A.1–A.7 has been verified by an accompanying validation script (Appendix B).
In this section, we collect the probabilistic and statistical tools used throughout the proofs. After stating standard concentration inequalities for sums of independent scalars and symmetric matrices, we establish the coupling principle that transfers these inequalities to sampling without replacement under balanced supports (Lemma 23 ), followed by the high-probability guarantees for Catoni’s robust mean estimator and its fast one-step variants (Lemmas 24 and 25).
Concentration of sums of independent scalar random variables. Bennett and Bernstein inequalities. Let Z : = ∑ j Z j Z := \sum_j Z_j Z := ∑ j Z j be a finite sum of independent, centered real random variables satisfying Z j ≤ R Z_j \le R Z j ≤ R almost surely for some R > 0 R > 0 R > 0 and ∑ j E Z j 2 ≤ V \sum_j \mathbb{E}Z_j^2 \le V ∑ j E Z j 2 ≤ V . Define Bennett’s function h ( t ) : = ( 1 + t ) log ( 1 + t ) − t h(t) := (1+t)\log(1+t)-t h ( t ) := ( 1 + t ) log ( 1 + t ) − t for t ≥ − 1 t \ge-1 t ≥ − 1 , with h ( − 1 ) = 1 h(-1) = 1 h ( − 1 ) = 1 . For all λ ≥ 0 \lambda\ge0 λ ≥ 0 and t ≥ 0 t \ge0 t ≥ 0 , Bennett’s inequality (first line) and Bernstein’s inequality (second line) bound the cumulant generating function and upper tail of Z Z Z :
log E e λ Z ≤ V R 2 ( e λ R − 1 − λ R ) , Pr [ Z ≥ t ] ≤ exp { − V R 2 h ( R t V ) } ; (10) \log\mathbb{E}e^{\lambda Z} \le\frac{V}{R^2}\left(e^{\lambda R}-1-\lambda R\right), \qquad\Pr[Z \ge t] \le\exp\left\{-\frac{V}{R^2}h\left(\frac{Rt}{V}\right)\right\}; \tag*{(10)} log E e λ Z ≤ R 2 V ( e λ R − 1 − λ R ) , Pr [ Z ≥ t ] ≤ exp { − R 2 V h ( V R t ) } ; (10)
log E e λ Z ≤ λ 2 V 2 ( 1 − λ R / 3 ) , Pr [ Z ≥ t ] ≤ exp { − t 2 2 ( V + R t / 3 ) } ( λ < 3 / R ) . (11) \log\mathbb{E}e^{\lambda Z} \le\frac{\lambda^2 V}{2(1-\lambda R/3)}, \qquad\Pr[Z \ge t] \le\exp\left\{-\frac{t^2}{2(V+Rt/3)}\right\}\quad(\lambda< 3/R). \tag*{(11)} log E e λ Z ≤ 2 ( 1 − λ R /3 ) λ 2 V , Pr [ Z ≥ t ] ≤ exp { − 2 ( V + R t /3 ) t 2 } ( λ < 3/ R ) . (11)
These are Theorem 2.9, Theorem 2.10, and Corollary 2.11 of Boucheron et al. [ [5 ] (noting that all four bounds are monotone increasing in V V V ). When ∣ Z j ∣ ≤ R |Z_j| \le R ∣ Z j ∣ ≤ R , the same bounds apply to − Z -Z − Z . We use Bennett’s inequality in Lemma 28, and Bernstein’s inequality in Appendix § 6 .§ 5 and Theorems 3(b) and 18 (b).
Maurer’s lower-tail inequality. When summands are nonnegative, their lower tail concentrates without requiring an upper bound on their range. Let W j W_j W j be finitely many independent nonnegative random variables with E W j 2 < ∞ \mathbb{E}W_j^2 < \infty E W j 2 < ∞ , and set Z : = ∑ j ( W j − E W j ) Z := \sum_j(W_j-\mathbb{E}W_j) Z := ∑ j ( W j − E W j ) . For all λ ≥ 0 \lambda\ge0 λ ≥ 0 and t ≥ 0 t \ge0 t ≥ 0 ,
log E e − λ Z ≤ λ 2 2 ∑ j E W j 2 , Pr [ Z ≤ − t ] ≤ exp { − t 2 2 ∑ j E W j 2 } . (12) \log\mathbb{E}e^{-\lambda Z} \le\frac{\lambda^2}{2}\sum_j \mathbb{E}W_j^2,\qquad\Pr[Z \le-t] \le\exp\left\{-\frac{t^2}{2\sum_j \mathbb{E}W_j^2}\right\}. \tag*{(12)} log E e − λ Z ≤ 2 λ 2 j ∑ E W j 2 , Pr [ Z ≤ − t ] ≤ exp { − 2 ∑ j E W j 2 t 2 } . (12)
The tail bound is Theorem 2.1 of Maurer [ [27 ] and the cumulant bound is the first step of its proof. We use Maurer’s inequality in Lemma 28 and Appendix § 6 .§ 4 .
Hoeffding’s inequality. Let Z j Z_j Z j be finitely many independent real random variables, where each Z j Z_j Z j takes values in an interval I j I_j I j of length ∣ I j ∣ |I_j| ∣ I j ∣ . For any t > 0 t > 0 t > 0 ,
Pr [ ∑ j ( Z j − E Z j ) ≥ t ] ≤ exp { − 2 t 2 ∑ j ∣ I j ∣ 2 } . (13) \Pr\left[\sum_j(Z_j-\mathbb{E}Z_j) \ge t\right] \le\exp\left\{-\frac{2t^2}{\sum_j |I_j|^2}\right\}. \tag*{(13)} Pr [ j ∑ ( Z j − E Z j ) ≥ t ] ≤ exp { − ∑ j ∣ I j ∣ 2 2 t 2 } . (13)
and the same bound holds for the lower tail ([18 Thm. 2] ). We apply Hoeffding’s inequality in Lemma 6 and Theorems 3(a) and 18 (a).
Concentration of sums of independent 2 × 2 2 \times2 2 × 2 matrices. Let λ min ( A ) \lambda_{\min}(A) λ m i n ( A ) , λ max ( A ) \lambda_{\max}(A) λ m a x ( A ) , and ∥ A ∥ o p \lVert A\rVert_{\mathrm{op}} ∥ A ∥ op denote the minimum eigenvalue, maximum eigenvalue, and operator norm of a symmetric matrix A A A , respectively, and let Z : = ∑ j Z j Z := \sum_j Z_j Z := ∑ j Z j be a finite sum of independent random symmetric 2 × 2 2 \times2 2 × 2 matrices.
(a) Matrix Chernoff. If Z j ⪰ 0 Z_j \succeq0 Z j ⪰ 0 , λ max ( Z j ) ≤ R \lambda_{\max}(Z_j) \le R λ m a x ( Z j ) ≤ R almost surely, and E Z = I 2 \mathbb{E}Z = I_2 E Z = I 2 , then with Bennett’s function h h h ,
Pr [ λ min ( Z ) ≤ 1 − τ ] ≤ 2 e − h ( − τ ) / R ( 0 ≤ τ ≤ 1 ) , Pr [ λ max ( Z ) ≥ 1 + τ ] ≤ 2 e − h ( τ ) / R ( τ ≥ 0 ) . (14) \begin{aligned}
\Pr[\lambda_{\min}(Z) \le1-\tau] &\le2e^{-h(-\tau)/R} &&(0 \le\tau\le1),\\
\Pr[\lambda_{\max}(Z) \ge1+\tau] &\le2e^{-h(\tau)/R} &&(\tau\ge0). \tag*{(14)}
\end{aligned} Pr [ λ m i n ( Z ) ≤ 1 − τ ] Pr [ λ m a x ( Z ) ≥ 1 + τ ] ≤ 2 e − h ( − τ ) / R ≤ 2 e − h ( τ ) / R ( 0 ≤ τ ≤ 1 ) , ( τ ≥ 0 ) . (14)
(b) Matrix Bernstein. If E Z j = 0 \mathbb{E}Z_j = 0 E Z j = 0 , ∥ Z j ∥ o p ≤ R \lVert Z_j\rVert_{\mathrm{op}} \le R ∥ Z j ∥ op ≤ R almost surely, and ∥ ∑ j E Z j 2 ∥ o p ≤ V \lVert\sum_j \mathbb{E}Z_j^2\rVert_{\mathrm{op}} \le V ∥ ∑ j E Z j 2 ∥ op ≤ V , then for all t ≥ 0 t \ge0 t ≥ 0 ,
Pr [ ∥ Z ∥ o p ≥ t ] ≤ 4 exp { − t 2 2 ( V + R t / 3 ) } . (15) \Pr[\lVert Z\rVert_{\mathrm{op}} \ge t] \le4\exp\left\{-\frac{t^2}{2(V+Rt/3)}\right\}. \tag*{(15)} Pr [∥ Z ∥ op ≥ t ] ≤ 4 exp { − 2 ( V + R t /3 ) t 2 } . (15)
Part (a) is Tropp [ [32 ] specialized to dimension 2 and rewritten using the identity e − h ( ± τ ) = e ± τ ( 1 ± τ ) − ( 1 ± τ ) e^{-h(\pm\tau)} = e^{\pm\tau}(1\pm\tau)^{-(1\pm\tau)} e − h ( ± τ ) = e ± τ ( 1 ± τ ) − ( 1 ± τ ) , while part (b) is Tropp [ [32 ] applied to Z j Z_j Z j and − Z j -Z_j − Z j . Both are used in Appendix A.6.
Balanced supports and the transfer principle. Although the concentration inequalities above assume independent summands, a balanced support S S S of size r r r is drawn without replacement. By a classical theorem of Hoeffding [ [18 ] , passing from sampling without replacement to sampling with replacement (independent draws) can only increase the expectation of any convex function of the sum. The lemma below, which follows the exchangeability coupling of Gross and Nesme [ [17 ] , establishes this dominance on any real vector space, covering both scalars and symmetric matrices.
Lemma 23 (Sampling without replacement). Let y 1 , … , y n y_1,\ldots,y_n y 1 , … , y n be elements of a real vector space and let 1 ≤ r ≤ n 1 \le r \le n 1 ≤ r ≤ n . Set T : = ∑ j ∈ S y j T := \sum_{j\in S} y_j T := ∑ j ∈ S y j , where S S S is drawn uniformly from the ( n r ) \binom{n}{r} ( r n ) subsets of [ n ] = { 1 , … , n } [n] = \{1,\ldots,n\} [ n ] = { 1 , … , n } of size r r r , and set T ∗ : = ∑ m = 1 r y J m T^* := \sum_{m=1}^{r} y_{J_m} T ∗ := ∑ m = 1 r y J m , where J 1 , … , J r J_1,\ldots,J_r J 1 , … , J r are drawn independently and uniformly from [ n ] [n] [ n ] . Then S S S and ( J 1 , … , J r ) (J_1,\ldots,J_r) ( J 1 , … , J r ) can be coupled on a common probability space such that E [ T ∗ ∣ S ] = T \mathbb{E}[T^* \mid S] = T E [ T ∗ ∣ S ] = T . Consequently, E f ( T ) ≤ E f ( T ∗ ) \mathbb{E}f(T) \le\mathbb{E}f(T^*) E f ( T ) ≤ E f ( T ∗ ) for every convex function f f f .
Proof of Lemma 23. First draw J 1 , … , J r J_1,\ldots,J_r J 1 , … , J r independently and uniformly from [ n ] [n] [ n ] , and then draw S S S uniformly from all subsets of [ n ] [n] [ n ] of size r r r that contain the set of distinct indices { J 1 , … , J r } \{J_1,\ldots,J_r\} { J 1 , … , J r } . Because this joint construction is invariant under arbitrary permutations of [ n ] [n] [ n ] , the marginal distribution of S S S is uniform over all ( n r ) \binom{n}{r} ( r n ) subsets of size r r r , and conditioned on S S S , the multiplicity counts N j : = # { m : J m = j } N_j := \#\{m : J_m = j\} N j := # { m : J m = j } for j ∈ S j \in S j ∈ S are exchangeable. Since ∑ j ∈ S N j = r \sum_{j\in S}N_j = r ∑ j ∈ S N j = r , exchangeability implies E [ N j ∣ S ] = 1 \mathbb{E}[N_j \mid S] = 1 E [ N j ∣ S ] = 1 for every j ∈ S j \in S j ∈ S . Consequently, E [ T ∗ ∣ S ] = ∑ j ∈ S E [ N j ∣ S ] y j = ∑ j ∈ S y j = T \mathbb{E}[T^* \mid S] = \sum_{j\in S}\mathbb{E}[N_j \mid S]y_j = \sum_{j\in S}y_j = T E [ T ∗ ∣ S ] = ∑ j ∈ S E [ N j ∣ S ] y j = ∑ j ∈ S y j = T . Because T ∗ T^* T ∗ takes only finitely many values given S S S , conditional Jensen’s inequality yields f ( T ) ≤ E [ f ( T ∗ ) ∣ S ] f(T) \le\mathbb{E}[f(T^*) \mid S] f ( T ) ≤ E [ f ( T ∗ ) ∣ S ] , and taking expectations over S S S completes the proof. □
Every tail bound in (10) –(15) is derived by bounding the expectation of a convex exponential functional of the sum—namely e λ T e^{\lambda T} e λ T in the scalar case, and tr e λ ( T − B ) \operatorname{tr}e^{\lambda(T-B)} tr e λ ( T − B ) for a fixed symmetric matrix B B B in the matrix case (via the Laplace transform method Pr [ λ max ( ± Z ) ≥ t ] ≤ e − λ t E tr e ± λ Z \Pr[\lambda_{\max}(\pm Z) \ge t] \le e^{-\lambda t}\mathbb{E}\operatorname{tr}e^{\pm\lambda Z} Pr [ λ m a x ( ± Z ) ≥ t ] ≤ e − λ t E tr e ± λ Z for λ > 0 \lambda> 0 λ > 0 ; see Tropp [ [32 ] )—and applying Markov’s inequality. Because both functionals are convex in T T T for all λ ∈ R \lambda\in\mathbb{R} λ ∈ R , Lemma 23 immediately yields the transfer principle used throughout our analysis of balanced supports:
Every concentration inequality in (10) –(15) holds for the without-replacement sum T = ∑ j ∈ S y j T = \sum_{j\in S}y_j T = ∑ j ∈ S y j over a balanced support whenever its hypotheses hold for the r r r independent with-replacement draws y J 1 , … , y J r y_{J_1},\ldots,y_{J_r} y J 1 , … , y J r (centering both T T T and the individual draws at their expectations when centered summands are required).
Under this transfer principle, the range parameter R R R and variance parameter V V V are simply those of r r r independent draws with replacement (ignoring the finite-population variance reduction factor f q f_q f q ). We also invoke Lemma 23 for polynomial moments such as f ( T ) = ( T − c ) 4 f(T) = (T-c)^4 f ( T ) = ( T − c ) 4 in Appendix A.5.
Catoni Decoder
Catoni’s robust mean estimator. Recall from § 2.1 that Catoni’s estimator Cat α ( W 1 , … , W ℓ ) \operatorname{Cat}_{\alpha}(W_1,\ldots,W_\ell) Cat α ( W 1 , … , W ℓ ) with scale parameter α > 0 \alpha> 0 α > 0 is the root of ∑ i = 1 ℓ ψ ( α ( W i − c ) ) = 0 \sum_{i=1}^{\ell}\psi(\alpha(W_i-c)) = 0 ∑ i = 1 ℓ ψ ( α ( W i − c )) = 0 , where ψ ( x ) = sign ( x ) log ( 1 + ∣ x ∣ + x 2 / 2 ) \psi(x) = \operatorname{sign}(x)\log(1+|x|+x^2/2) ψ ( x ) = sign ( x ) log ( 1 + ∣ x ∣ + x 2 /2 ) is the influence function defined in (2) . The guarantees in part (b) of Theorems 10 and 14 rely only on the fact that ψ \psi ψ is continuous, nondecreasing, and sandwiched between two quadratic logarithms, which we call its envelope :
− log ( 1 − x + x 2 2 ) ≤ ψ ( x ) ≤ log ( 1 + x + x 2 2 ) ( x ∈ R ) . (16) -\log\left(1-x+\frac{x^2}{2}\right)\leq\psi(x)\leq\log\left(1+x+\frac{x^2}{2}\right)\qquad(x\in\mathbb{R}). \tag*{(16)} − log ( 1 − x + 2 x 2 ) ≤ ψ ( x ) ≤ log ( 1 + x + 2 x 2 ) ( x ∈ R ) . (16)
Notice that Catoni’s ψ ( x ) \psi(x) ψ ( x ) coincides with the upper envelope for x ≥ 0 x\geq0 x ≥ 0 and the lower envelope for x ≤ 0 x\leq0 x ≤ 0 ; since ( 1 + x + x 2 2 ) ( 1 − x + x 2 2 ) = 1 + x 4 4 ≥ 1 \left(1+x+\frac{x^2}{2}\right)\left(1-x+\frac{x^2}{2}\right)=1+\frac{x^4}{4}\geq1 ( 1 + x + 2 x 2 ) ( 1 − x + 2 x 2 ) = 1 + 4 x 4 ≥ 1 , the lower bound never exceeds the upper bound, making ψ \psi ψ the extremal influence function permitted by the envelope [6 eq. (2.2] .
For any function ψ \psi ψ satisfying (16) and any random variable W W W with mean c 0 c_0 c 0 and variance at most σ 2 \sigma^2 σ 2 , every c ∈ R c\in\mathbb{R} c ∈ R and α > 0 \alpha>0 α > 0 satisfy
E exp { ± ψ ( α ( W − c ) ) } ≤ 1 ± α ( c 0 − c ) + α 2 2 ( σ 2 + ( c 0 − c ) 2 ) ≤ exp { ± α ( c 0 − c ) + α 2 2 ( σ 2 + ( c 0 − c ) 2 ) } . (17) \begin{aligned}
\mathbb{E}\exp\left\{\pm\psi\left(\alpha(W-c)\right)\right\}\leq1\pm\alpha(c_0-c)+\frac{\alpha^2}{2}\left(\sigma^2+(c_0-c)^2\right) \\
&\leq\exp\left\{\pm\alpha(c_0-c)+\frac{\alpha^2}{2}\left(\sigma^2+(c_0-c)^2\right)\right\}. \tag*{(17)}
\end{aligned} E exp { ± ψ ( α ( W − c ) ) } ≤ 1 ± α ( c 0 − c ) + 2 α 2 ( σ 2 + ( c 0 − c ) 2 ) ≤ exp { ± α ( c 0 − c ) + 2 α 2 ( σ 2 + ( c 0 − c ) 2 ) } . (17)
where the ± \pm ± signs correspond throughout [6 Prop. 2.1] . Indeed, exponentiating (16) gives e ± ψ ( x ) ≤ 1 ± x + x 2 2 e^{\pm\psi(x)}\leq1\pm x+\frac{x^2}{2} e ± ψ ( x ) ≤ 1 ± x + 2 x 2 ; substituting x = α ( W − c ) x=\alpha(W-c) x = α ( W − c ) , taking expectations using E ( W − c ) = c 0 − c \mathbb{E}(W-c)=c_0-c E ( W − c ) = c 0 − c and E ( W − c ) 2 ≤ σ 2 + ( c 0 − c ) 2 \mathbb{E}(W-c)^2\leq\sigma^2+(c_0-c)^2 E ( W − c ) 2 ≤ σ 2 + ( c 0 − c ) 2 , and applying 1 + y ≤ e y 1+y\leq e^y 1 + y ≤ e y yields (17) . The next two lemmas formulate Catoni’s guarantee simultaneously across N N N estimation tasks (where each task corresponds to a vector pair and its ℓ \ell ℓ samples are the pair’s ℓ \ell ℓ row scores).
Lemma 24 (Catoni’s estimate [6 ] ). Let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and ε > 0 \varepsilon>0 ε > 0 , and consider N N N estimation tasks t = 1 , … , N t=1,\ldots,N t = 1 , … , N . For each task t t t , let W t , 1 , … , W t , ℓ W_{t,1},\ldots,W_{t,\ell} W t , 1 , … , W t , ℓ be independent random variables with common mean c t c_t c t and variances at most σ ∗ 2 \sigma_*^2 σ ∗ 2 (samples across different tasks may be arbitrarily dependent). Set L : = log ( 2 N / δ ) L:=\log(2N/\delta) L := log ( 2 N / δ ) . If
ℓ ≥ 2 ( σ ∗ 2 + ε 2 ) ε − 2 L and α = ε σ ∗ 2 + ε 2 , \ell\geq2(\sigma_*^2+\varepsilon^2)\varepsilon^{-2}L\qquad\text{and}\qquad\alpha=\frac{\varepsilon}{\sigma_*^2+\varepsilon^2}, ℓ ≥ 2 ( σ ∗ 2 + ε 2 ) ε − 2 L and α = σ ∗ 2 + ε 2 ε , then with probability at least 1 − δ 1-\delta 1 − δ , all N N N tasks simultaneously satisfy ∣ Cat α ( W t , 1 , … , W t , ℓ ) − c t ∣ ≤ ε |\operatorname{Cat}_{\alpha}(W_{t,1},\ldots,W_{t,\ell})-c_t|\leq\varepsilon ∣ Cat α ( W t , 1 , … , W t , ℓ ) − c t ∣ ≤ ε .
Deviation form. If σ ∗ 2 > 0 \sigma_*^2>0 σ ∗ 2 > 0 and ℓ > 2 L \ell>2L ℓ > 2 L , the same guarantee holds with ε = s : = 2 σ ∗ 2 L / ( ℓ − 2 L ) \varepsilon=s:=\sqrt{2\sigma_*^2L/(\ell-2L)} ε = s := 2 σ ∗ 2 L / ( ℓ − 2 L ) and α = s / ( σ ∗ 2 + s 2 ) \alpha=s/(\sigma_*^2+s^2) α = s / ( σ ∗ 2 + s 2 ) .
Both statements remain valid (for any root c c c ) when ψ \psi ψ in (2) is replaced by any continuous nondecreasing function satisfying the envelope (16) .
For a single task and Catoni’s ψ \psi ψ , the deviation form is Catoni [ [6 ] . We include the short proof below to cover multiple tasks, fixed target accuracy ε \varepsilon ε , and general envelope functions ψ \psi ψ , as well as to prepare for the scale-free distance estimator of Theorem 32.
Proof of Lemma 24. Fix a task t t t , abbreviate W i : = W t , i W_i:=W_{t,i} W i := W t , i , and set Ψ ( c ) : = ∑ i = 1 ℓ ψ ( α ( W i − c ) ) \Psi(c):=\sum_{i=1}^{\ell}\psi\left(\alpha(W_i-c)\right) Ψ ( c ) := ∑ i = 1 ℓ ψ ( α ( W i − c ) ) for any continuous nondecreasing function ψ \psi ψ satisfying (16) . Then Ψ \Psi Ψ is continuous and nonincreasing in c c c . Because the lower bound in (16) is strictly positive on ( 0 , 2 ) (0,2) ( 0 , 2 ) , monotonicity implies ψ ( x ) > 0 \psi(x)>0 ψ ( x ) > 0 for all x > 0 x>0 x > 0 and ψ ( x ) < 0 \psi(x)<0 ψ ( x ) < 0 for all x < 0 x<0 x < 0 . Thus Ψ ( c ) > 0 \Psi(c)>0 Ψ ( c ) > 0 for c < min i W i c<\min_iW_i c < min i W i and Ψ ( c ) < 0 \Psi(c)<0 Ψ ( c ) < 0 for c > max i W i c>\max_iW_i c > max i W i , guaranteeing the existence of at least one root c ^ \hat c c ^ (which is unique when ψ \psi ψ is strictly increasing, as in (2) ).
If c ^ > c t + ε \hat c>c_t+\varepsilon c ^ > c t + ε , monotonicity gives Ψ ( c t + ε ) ≥ Ψ ( c ^ ) = 0 \Psi(c_t+\varepsilon)\geq\Psi(\hat c)=0 Ψ ( c t + ε ) ≥ Ψ ( c ^ ) = 0 . By Markov’s inequality, independence across i = 1 , … , ℓ i=1,\ldots,\ell i = 1 , … , ℓ , and (17) (applied with the + + + sign at c = c t + ε c=c_t+\varepsilon c = c t + ε ), any α > 0 \alpha>0 α > 0 satisfies
Pr [ c ^ > c t + ε ] ≤ E e Ψ ( c t + ε ) = ∏ i = 1 ℓ E e ψ ( α ( W i − c t − ε ) ) ≤ ( 1 − α ε + α 2 2 ( σ ∗ 2 + ε 2 ) ) ℓ . (18) \Pr[\hat c>c_t+\varepsilon]\leq\mathbb{E}e^{\Psi(c_t+\varepsilon)}
=\prod_{i=1}^{\ell}\mathbb{E}e^{\psi(\alpha(W_i-c_t-\varepsilon))}
\leq\left(1-\alpha\varepsilon+\frac{\alpha^2}{2}(\sigma_*^2+\varepsilon^2)\right)^\ell. \tag*{(18)} Pr [ c ^ > c t + ε ] ≤ E e Ψ ( c t + ε ) = i = 1 ∏ ℓ E e ψ ( α ( W i − c t − ε )) ≤ ( 1 − α ε + 2 α 2 ( σ ∗ 2 + ε 2 ) ) ℓ . (18)
Symmetrically, if c ^ < c t − ε \hat c<c_t-\varepsilon c ^ < c t − ε , then Ψ ( c t − ε ) ≤ 0 \Psi(c_t-\varepsilon)\leq0 Ψ ( c t − ε ) ≤ 0 , and applying (17) with the − - − sign at c = c t − ε c=c_t-\varepsilon c = c t − ε bounds Pr [ c ^ < c t − ε ] ≤ E e − Ψ ( c t − ε ) \Pr[\hat c<c_t-\varepsilon]\leq\mathbb{E}e^{-\Psi(c_t-\varepsilon)} Pr [ c ^ < c t − ε ] ≤ E e − Ψ ( c t − ε ) by the exact same quantity. Choosing α = ε / ( σ ∗ 2 + ε 2 ) \alpha=\varepsilon/(\sigma_*^2+\varepsilon^2) α = ε / ( σ ∗ 2 + ε 2 ) minimizes the base in (18) , reducing it to 1 − ε 2 / ( 2 ( σ ∗ 2 + ε 2 ) ) ≤ exp { − ε 2 / ( 2 ( σ ∗ 2 + ε 2 ) ) } 1-\varepsilon^2/(2(\sigma_*^2+\varepsilon^2))\leq\exp\{-\varepsilon^2/(2(\sigma_*^2+\varepsilon^2))\} 1 − ε 2 / ( 2 ( σ ∗ 2 + ε 2 )) ≤ exp { − ε 2 / ( 2 ( σ ∗ 2 + ε 2 ))} . The condition on ℓ \ell ℓ ensures that each one-sided tail probability is at most e − L = δ / ( 2 N ) e^{-L}=\delta/(2N) e − L = δ / ( 2 N ) , and a union bound over all 2 N 2N 2 N tails establishes the first claim. The deviation form follows immediately by setting ε = s \varepsilon=s ε = s , which solves ℓ = 2 ( σ ∗ 2 + s 2 ) s − 2 L \ell=2(\sigma_*^2+s^2)s^{-2}L ℓ = 2 ( σ ∗ 2 + s 2 ) s − 2 L .
Faster evaluation. While finding the exact root of (2) requires a few passes over the ℓ \ell ℓ samples of each pair and evaluates a logarithm per sample, three simple techniques eliminate this overhead in practice:
A logarithm-free influence function. The clamped cubic polynomial ψ 3 ( x ) : = x − x 3 / 6 \psi_3(x) := x - x^3/6 ψ 3 ( x ) := x − x 3 /6 for ∣ x ∣ ≤ 2 |x| \le\sqrt{2} ∣ x ∣ ≤ 2 (and constant ± 2 2 / 3 \pm2\sqrt{2}/3 ± 2 2 /3 outside [ − 2 , 2 ] [-\sqrt{2},\sqrt{2}] [ − 2 , 2 ] ) is continuous, nondecreasing, and satisfies the envelope (17) [7 eq. (1) and Lemma 3.1] . By the final clause of Lemma 24 , ψ 3 \psi_3 ψ 3 can be substituted directly for ψ \psi ψ , replacing transcendental logarithms with two multiplications per score.
Closed-form evaluation without root-finding. Evaluating the influence function just once at c = 0 c=0 c = 0 yields the non-iterative estimator ( α ℓ ) − 1 ∑ i ψ ( α W i ) (\alpha\ell)^{-1}\sum_i\psi(\alpha W_i) ( α ℓ ) − 1 ∑ i ψ ( α W i ) , which trades the variance σ 2 \sigma^2 σ 2 for the raw second moment E W i 2 \mathbb{E}W_i^2 E W i 2 . The following guarantee is the scalar specialization of Minsker [ [28 ] .
Lemma 25 (Catoni’s estimate without a root, after Minsker [ [28 ] ). In the setting of Lemma 24 , suppose the samples of task t t t have mean c t c_t c t and raw second moment E W t , i 2 ≤ ν ∗ \mathbb{E}W_{t,i}^2 \le\nu_* E W t , i 2 ≤ ν ∗ for some ν ∗ > 0 \nu_* > 0 ν ∗ > 0 , and let ψ \psi ψ be nondecreasing and satisfy (17). Setting α = 2 L / ( ℓ ν ∗ ) \alpha=\sqrt{2L/(\ell\nu_*)} α = 2 L / ( ℓ ν ∗ ) , with probability at least 1 − δ 1-\delta 1 − δ simultaneously across all N N N tasks,
∣ 1 α ℓ ∑ i = 1 ℓ ψ ( α W t , i ) − c t ∣ ≤ 2 ν ∗ L ℓ . \left|\frac{1}{\alpha\ell}\sum_{i=1}^{\ell}\psi(\alpha W_{t,i})-c_t\right|\le\sqrt{\frac{2\nu_*L}{\ell}}. α ℓ 1 i = 1 ∑ ℓ ψ ( α W t , i ) − c t ≤ ℓ 2 ν ∗ L .
Proof of Lemma 25. Fix a task t t t and write W i : = W t , i W_i := W_{t,i} W i := W t , i . Because σ 2 + c t 2 = E W i 2 ≤ ν ∗ \sigma^2+c_t^2=\mathbb{E}W_i^2\le\nu_* σ 2 + c t 2 = E W i 2 ≤ ν ∗ , evaluating (18) at c = 0 c=0 c = 0 yields E e ± ψ ( α W i ) ≤ exp { ± α c t + α 2 2 ν ∗ } \mathbb{E}e^{\pm\psi(\alpha W_i)}\le\exp\{\pm\alpha c_t+\frac{\alpha^2}{2}\nu_*\} E e ± ψ ( α W i ) ≤ exp { ± α c t + 2 α 2 ν ∗ } . By independence and Markov’s inequality, each of the two events
± ( ∑ i = 1 ℓ ψ ( α W i ) − α ℓ c t ) ≥ α 2 2 ℓ ν ∗ + L \pm\left(\sum_{i=1}^{\ell}\psi(\alpha W_i)-\alpha\ell c_t\right)\ge\frac{\alpha^2}{2}\ell\nu_*+L ± ( i = 1 ∑ ℓ ψ ( α W i ) − α ℓ c t ) ≥ 2 α 2 ℓ ν ∗ + L
has probability at most e − L = δ / ( 2 N ) e^{-L}=\delta/(2N) e − L = δ / ( 2 N ) . Outside the union of these 2 N 2N 2 N events, every task satisfies ∣ ( α ℓ ) − 1 ∑ i ψ ( α W t , i ) − c t ∣ ≤ α 2 ν ∗ + L α ℓ \left|(\alpha\ell)^{-1}\sum_i\psi(\alpha W_{t,i})-c_t\right|\le\frac{\alpha}{2}\nu_*+\frac{L}{\alpha\ell} ( α ℓ ) − 1 ∑ i ψ ( α W t , i ) − c t ≤ 2 α ν ∗ + α ℓ L , and substituting α = 2 L / ( ℓ ν ∗ ) \alpha=\sqrt{2L/(\ell\nu_*)} α = 2 L / ( ℓ ν ∗ ) minimizes the right-hand side to give 2 ν ∗ L / ℓ \sqrt{2\nu_*L/\ell} 2 ν ∗ L / ℓ .
For BG, this non-iterative estimator sacrifices no statistical accuracy at all: the variance bound σ ∗ 2 = π / 2 \sigma_*^2=\pi/2 σ ∗ 2 = π /2 used in Theorem 14 (b) is already the raw second moment E [ Z i 2 ∣ D ] = π / 2 \mathbb{E}[Z_i^2\mid D]=\pi/2 E [ Z i 2 ∣ D ] = π /2 . Setting ν ∗ = π / 2 \nu_*=\pi/2 ν ∗ = π /2 and α = 4 L / ( π ℓ ) \alpha=\sqrt{4L/(\pi\ell)} α = 4 L / ( π ℓ ) tightens the error radius from π L / ( ℓ − 2 L ) \sqrt{\pi L/(\ell-2L)} π L / ( ℓ − 2 L ) to π L / ℓ \sqrt{\pi L/\ell} π L / ℓ , removing the additive + 2 +2 + 2 term in Corollary 15(ii). Moreover, because ψ \psi ψ is odd, ψ ( α Z i ) = sign ( X i ) ψ ( α π / 2 Y i ) \psi(\alpha Z_i)=\operatorname{sign}(X_i)\psi(\alpha\sqrt{\pi/2}Y_i) ψ ( α Z i ) = sign ( X i ) ψ ( α π /2 Y i ) , so the estimator reduces to ℓ − 1 ∑ i sign ( X i ) ϕ ( Y i ) \ell^{-1}\sum_i\operatorname{sign}(X_i)\phi(Y_i) ℓ − 1 ∑ i sign ( X i ) ϕ ( Y i ) with ϕ ( y ) : = α − 1 ψ ( α π / 2 y ) \phi(y):=\alpha^{-1}\psi(\alpha\sqrt{\pi/2}\,y) ϕ ( y ) := α − 1 ψ ( α π /2 y ) —a standard inner product between the stored sign code and query projections that have been softly clipped once upon arrival. For GG, the raw second moment E ( X i Y i ) 2 \mathbb{E}(X_iY_i)^2 E ( X i Y i ) 2 exceeds the variance by ρ 2 ≤ 1 \rho^2\le1 ρ 2 ≤ 1 ; replacing σ ∗ 2 = 3 \sigma_*^2=3 σ ∗ 2 = 3 with ν ∗ = 4 \nu_*=4 ν ∗ = 4 in Corollary 11 (ii) requires 8 ε − 2 L 8\varepsilon^{-2}L 8 ε − 2 L rows, which matches the sketch length already specified in the corollary.
Single Newton step. When the exact root of (2) is desired, initializing at the closed-form estimate above and taking a single Newton step suffices in practice, in the spirit of one-step M-estimators [4 ] . Across our sparse GG and BG experiments on the Gaussian pair ( r ∈ { 8 , 32 } , ℓ ∈ { 2 9 , 2 15 } ) (r\in\{8,32\},\ell\in\{2^9,2^{15}\}) ( r ∈ { 8 , 32 } , ℓ ∈ { 2 9 , 2 15 }) , both support laws, one Newton step lands within 2.9 ⋅ 10 − 6 s 2.9\cdot10^{-6}\,s 2.9 ⋅ 1 0 − 6 s of the exact root (where s s s is the deviation bound of Lemma 24 ), and two Newton steps land within 10 − 14 10^{-14} 1 0 − 14 in absolute value.
Dense reference bounds for Catoni’s decoder. Finally, specializing Lemma 24 to a dense Gaussian matrix Φ = G \Phi=G Φ = G yields the dense Catoni sketch lengths reported in Table 2 .
Corollary 26 (Dense inner products, Catoni’s estimate). With Φ = G \Phi=G Φ = G in (1), let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , fix N N N pairs of unit vectors in advance, and let L : = log ( 2 N / δ ) L:=\log(2N/\delta) L := log ( 2 N / δ ) and ℓ > 2 L \ell>2L ℓ > 2 L . For GG, set s : = 4 L / ( ℓ − 2 L ) s:=\sqrt{4L/(\ell-2L)} s := 4 L / ( ℓ − 2 L ) and α = s / ( 2 + s 2 ) \alpha=s/(2+s^2) α = s / ( 2 + s 2 ) ; then with probability at least 1 − δ 1-\delta 1 − δ , all pairs satisfy ∣ Cat α ( X 1 Y 1 , … , X ℓ Y ℓ ) − ρ ∣ ≤ s |\operatorname{Cat}_{\alpha}(X_1Y_1,\ldots,X_\ell Y_\ell)-\rho|\le s ∣ Cat α ( X 1 Y 1 , … , X ℓ Y ℓ ) − ρ ∣ ≤ s . For BG, set s : = π L / ( ℓ − 2 L ) s:=\sqrt{\pi L/(\ell-2L)} s := π L / ( ℓ − 2 L ) and α = s / ( π / 2 + s 2 ) \alpha=s/(\pi/2+s^2) α = s / ( π /2 + s 2 ) ; then with probability at least 1 − δ 1-\delta 1 − δ , all pairs satisfy ∣ Cat α ( Z 1 , … , Z ℓ ) − ρ ∣ ≤ s |\operatorname{Cat}_{\alpha}(Z_1,\ldots,Z_\ell)-\rho|\le s ∣ Cat α ( Z 1 , … , Z ℓ ) − ρ ∣ ≤ s .
Proof of Corollary 26. We apply the deviation form of Lemma 24 with one task per pair. For a dense Gaussian row, ( X i , Y i ) (X_i,Y_i) ( X i , Y i ) is standard bivariate normal with correlation ρ \rho ρ , so the GG products X i Y i X_iY_i X i Y i are i.i.d. with mean ρ \rho ρ and variance E X i 2 Y i 2 − ρ 2 = ( 1 + 2 ρ 2 ) − ρ 2 = 1 + ρ 2 ≤ 2 \mathbb{E}X_i^2Y_i^2-\rho^2=(1+2\rho^2)-\rho^2=1+\rho^2\le2 E X i 2 Y i 2 − ρ 2 = ( 1 + 2 ρ 2 ) − ρ 2 = 1 + ρ 2 ≤ 2 ; taking σ ∗ 2 = 2 \sigma_*^2=2 σ ∗ 2 = 2 gives s = 4 L / ( ℓ − 2 L ) s=\sqrt{4L/(\ell-2L)} s = 4 L / ( ℓ − 2 L ) . For BG, the scores Z i Z_i Z i are i.i.d. with mean ρ \rho ρ and variance π / 2 − ρ 2 ≤ π / 2 \pi/2-\rho^2\le\pi/2 π /2 − ρ 2 ≤ π /2 (Theorem 2); taking σ ∗ 2 = π / 2 \sigma_*^2=\pi/2 σ ∗ 2 = π /2 gives s = π L / ( ℓ − 2 L ) s=\sqrt{\pi L/(\ell-2L)} s = π L / ( ℓ − 2 L ) .
Sampling the coordinates
This section establishes the algebraic relationships among our flatness parameters (Lemma 27 ), proves the two foundational lemmas that underpin all subsequent sections (Lemmas 9 and 28), and records the exactness of balanced supports on flat stored vectors (Corollary 29).
Properties of the flatness parameters. The following lemma proves the parameter inequalities stated in (5) and after (8), together with the expectations over D D D cited in § 3 . Let h ~ j \tilde{h}_j h ~ j denote the j j j th row of the orthogonal matrix H D HD H D , so that h 1 , … , h n ∈ R n h_1,\ldots,h_n \in\mathbb{R}^n h 1 , … , h n ∈ R n form an orthonormal basis and ∥ x ~ ∥ = ∥ x ∥ \|\tilde{x}\|=\|x\| ∥ x ~ ∥ = ∥ x ∥ . In this notation, x ~ j = ⟨ h j , x ⟩ \tilde{x}_j=\langle h_j,x\rangle x ~ j = ⟨ h j , x ⟩ , and c j = ( ⟨ h j , u 1 ⟩ , ⟨ h j , u 2 ⟩ ) ⊤ = U ⊤ h j c_j=(\langle h_j,u_1\rangle,\langle h_j,u_2\rangle)^\top=U^\top h_j c j = (⟨ h j , u 1 ⟩ , ⟨ h j , u 2 ⟩ ) ⊤ = U ⊤ h j is the j j j th row of U ~ = [ u ~ 1 u ~ 2 ] \tilde{U}=[\tilde{u}_1\ \tilde{u}_2] U ~ = [ u ~ 1 u ~ 2 ] transposed.
Lemma 27 (Relations between the parameters). Fix D D D . Let x x x , u u u , and v v v be unit vectors in R n \mathbb{R}^n R n , and let U = [ u 1 u 2 ] ∈ R n × 2 U=[u_1\ u_2]\in\mathbb{R}^{n\times2} U = [ u 1 u 2 ] ∈ R n × 2 be an orthonormal basis for the plane span { u , v } \operatorname{span}\{u,v\} span { u , v } (with orthogonal projector U U ⊤ UU^\top U U ⊤ ).
(a) 1 ≤ k x ≤ w x ≤ n 1\le k_x\le w_x\le n 1 ≤ k x ≤ w x ≤ n , with k x = 1 k_x=1 k x = 1 if and only if x ~ \tilde{x} x ~ is flat (x ~ j 2 = 1 / n \tilde{x}_j^2=1/n x ~ j 2 = 1/ n for all j j j ).
(b) k u v ≤ min { w u , k u k v } k_{uv}\le\min\{w_u,\sqrt{k_u k_v}\} k uv ≤ min { w u , k u k v } .
(c) ∥ c j ∥ = ∥ U U ⊤ h j ∥ \|c_j\|=\|UU^\top h_j\| ∥ c j ∥ = ∥ U U ⊤ h j ∥ for every j j j , so w U w_U w U and k U k_U k U depend only on the subspace span { u 1 , u 2 } \operatorname{span}\{u_1,u_2\} span { u 1 , u 2 } and not on the choice of orthonormal basis U U U . Moreover, w U w_U w U equals the maximum of w x w_x w x over all unit vectors x ∈ span { u 1 , u 2 } x\in\operatorname{span}\{u_1,u_2\} x ∈ span { u 1 , u 2 } , and 3 8 k U \frac{3}{8}k_U 8 3 k U equals the average of k x k_x k x over the unit circle in span { u 1 , u 2 } \operatorname{span}\{u_1,u_2\} span { u 1 , u 2 } . Finally, 2 ≤ w U ≤ w u 1 + w u 2 2\le w_U\le w_{u_1}+w_{u_2} 2 ≤ w U ≤ w u 1 + w u 2 , 4 ≤ k U ≤ 2 w U ≤ 2 n 4\le k_U\le2w_U\le2n 4 ≤ k U ≤ 2 w U ≤ 2 n , and k U ≤ 2 ( k u 1 + k u 2 ) k_U\le2(k_{u_1}+k_{u_2}) k U ≤ 2 ( k u 1 + k u 2 ) .
(d) When D D D is drawn at random and x x x and span { u 1 , u 2 } \operatorname{span}\{u_1,u_2\} span { u 1 , u 2 } are fixed independently of D D D , we have E D k x = 3 − 2 ∥ x ∥ 4 4 ≤ 3 \mathbb{E}_D k_x=3-2\|x\|_4^4\le3 E D k x = 3 − 2∥ x ∥ 4 4 ≤ 3 and E D k U = 8 − 2 ∑ i = 1 n ( U U ⊤ ) i i 2 ≤ 8 \mathbb{E}_D k_U=8-2\sum_{i=1}^n(UU^\top)_{ii}^2\le8 E D k U = 8 − 2 ∑ i = 1 n ( U U ⊤ ) ii 2 ≤ 8 .
Proof of Lemma 27. (a) Applying the Cauchy–Schwarz inequality to the vector ( x ~ j 2 ) j = 1 n (\tilde{x}_j^2)_{j=1}^n ( x ~ j 2 ) j = 1 n and the all-ones vector gives 1 = ∥ x ~ ∥ 2 4 ≤ n ∥ x ~ ∥ 4 4 = k x 1=\|\tilde{x}\|_2^4\le n\|\tilde{x}\|_4^4=k_x 1 = ∥ x ~ ∥ 2 4 ≤ n ∥ x ~ ∥ 4 4 = k x , with equality if and only if x ~ j 2 = 1 / n \tilde{x}_j^2=1/n x ~ j 2 = 1/ n for all j j j . Moreover, k x = n ∥ x ~ ∥ 4 4 ≤ n ∥ x ~ ∥ ∞ 2 ∥ x ~ ∥ 2 2 = w x k_x=n\|\tilde{x}\|_4^4\le n\|\tilde{x}\|_\infty^2\|\tilde{x}\|_2^2=w_x k x = n ∥ x ~ ∥ 4 4 ≤ n ∥ x ~ ∥ ∞ 2 ∥ x ~ ∥ 2 2 = w x , and w x ≤ n w_x\le n w x ≤ n because ∥ x ~ ∥ ∞ ≤ ∥ x ~ ∥ = 1 \|\tilde{x}\|_\infty\le\|\tilde{x}\|=1 ∥ x ~ ∥ ∞ ≤ ∥ x ~ ∥ = 1 .
(b) Similarly, k u v = n ∥ u ~ ∘ v ~ ∥ 2 2 ≤ n ∥ u ~ ∥ ∞ 2 ∥ v ~ ∥ 2 2 = w u k_{uv}=n\|\tilde{u}\circ\tilde{v}\|_2^2\le n\|\tilde{u}\|_\infty^2\|\tilde{v}\|_2^2=w_u k uv = n ∥ u ~ ∘ v ~ ∥ 2 2 ≤ n ∥ u ~ ∥ ∞ 2 ∥ v ~ ∥ 2 2 = w u , while Cauchy–Schwarz yields ∥ u ~ ∘ v ~ ∥ 2 2 ≤ ∥ u ~ ∥ 4 2 ∥ v ~ ∥ 4 2 \|\tilde{u}\circ\tilde{v}\|_2^2\le\|\tilde{u}\|_4^2\|\tilde{v}\|_4^2 ∥ u ~ ∘ v ~ ∥ 2 2 ≤ ∥ u ~ ∥ 4 2 ∥ v ~ ∥ 4 2 , so that k u v ≤ k u k v k_{uv}\le\sqrt{k_u k_v} k uv ≤ k u k v .
(c) Because c j = U ⊤ h j c_j=U^\top h_j c j = U ⊤ h j and U U U has orthonormal columns, ∥ c j ∥ = ∥ U U ⊤ h j ∥ \|c_j\|=\|UU^\top h_j\| ∥ c j ∥ = ∥ U U ⊤ h j ∥ for every j j j . Any unit vector in the plane takes the form x = cos ϕ u 1 + sin ϕ u 2 = U t ϕ x=\cos\phi\,u_1+\sin\phi\,u_2=Ut_\phi x = cos ϕ u 1 + sin ϕ u 2 = U t ϕ for some angle ϕ ∈ [ 0 , 2 π ) \phi\in[0,2\pi) ϕ ∈ [ 0 , 2 π ) , giving x ~ j = t ϕ ⊤ c j \tilde{x}_j=t_\phi^\top c_j x ~ j = t ϕ ⊤ c j with t ϕ = ( cos ϕ , sin ϕ ) ⊤ t_\phi=(\cos\phi,\sin\phi)^\top t ϕ = ( cos ϕ , sin ϕ ) ⊤ . Writing c j = ∥ c j ∥ t ϕ j c_j=\|c_j\|t_{\phi_j} c j = ∥ c j ∥ t ϕ j in polar coordinates yields x ~ j = ∥ c j ∥ cos ( ϕ − ϕ j ) \tilde{x}_j=\|c_j\|\cos(\phi-\phi_j) x ~ j = ∥ c j ∥ cos ( ϕ − ϕ j ) . Consequently, max ϕ x ~ j 2 = ∥ c j ∥ 2 \max_\phi\tilde{x}_j^2=\|c_j\|^2 max ϕ x ~ j 2 = ∥ c j ∥ 2 , so max ∥ x ∥ = 1 , x ∈ span { u 1 , u 2 } w x = n max j ∥ c j ∥ 2 = w U \max_{\|x\|=1,x\in\operatorname{span}\{u_1,u_2\}}w_x=n\max_j\|c_j\|^2=w_U max ∥ x ∥ = 1 , x ∈ span { u 1 , u 2 } w x = n max j ∥ c j ∥ 2 = w U . Likewise, because 1 2 π ∫ 0 2 π cos 4 ( ϕ − ϕ j ) d ϕ = 3 8 \frac{1}{2\pi}\int_0^{2\pi}\cos^4(\phi-\phi_j)\,d\phi=\frac{3}{8} 2 π 1 ∫ 0 2 π cos 4 ( ϕ − ϕ j ) d ϕ = 8 3 , averaging k x = n ∑ j ∥ c j ∥ 4 cos 4 ( ϕ − ϕ j ) k_x=n\sum_j\|c_j\|^4\cos^4(\phi-\phi_j) k x = n ∑ j ∥ c j ∥ 4 cos 4 ( ϕ − ϕ j ) over ϕ ∈ [ 0 , 2 π ) \phi\in[0,2\pi) ϕ ∈ [ 0 , 2 π ) gives 3 8 n ∑ j ∥ c j ∥ 4 = 3 8 k U \frac{3}{8}n\sum_j\|c_j\|^4=\frac{3}{8}k_U 8 3 n ∑ j ∥ c j ∥ 4 = 8 3 k U .
The remaining inequalities follow from ∑ j ∥ c j ∥ 2 = ∥ u ~ 1 ∥ 2 + ∥ u ~ 2 ∥ 2 = 2 \sum_j\|c_j\|^2=\|\tilde{u}_1\|^2+\|\tilde{u}_2\|^2=2 ∑ j ∥ c j ∥ 2 = ∥ u ~ 1 ∥ 2 + ∥ u ~ 2 ∥ 2 = 2 . By Cauchy–Schwarz, 4 = ( ∑ j ∥ c j ∥ 2 ) 2 ≤ n ∑ j ∥ c j ∥ 4 = k U 4=(\sum_j\|c_j\|^2)^2\le n\sum_j\|c_j\|^4=k_U 4 = ( ∑ j ∥ c j ∥ 2 ) 2 ≤ n ∑ j ∥ c j ∥ 4 = k U . Factoring out the maximum gives k U ≤ n max j ∥ c j ∥ 2 ∑ j ∥ c j ∥ 2 = 2 w U k_U\le n\max_j\|c_j\|^2\sum_j\|c_j\|^2=2w_U k U ≤ n max j ∥ c j ∥ 2 ∑ j ∥ c j ∥ 2 = 2 w U , and w U ≤ n w_U\le n w U ≤ n since ∥ U c j ∥ ≤ ∥ h j ∥ = 1 \|Uc_j\|\le\|h_j\|=1 ∥ U c j ∥ ≤ ∥ h j ∥ = 1 . Also, the maximum of n n n numbers is at least their average, w U = n max j ∥ c j ∥ 2 ≥ n ∑ j ∥ c j ∥ 2 / n = 2 w_U=n\max_j\|c_j\|^2\ge n\sum_j\|c_j\|^2/n=2 w U = n max j ∥ c j ∥ 2 ≥ n ∑ j ∥ c j ∥ 2 / n = 2 . Triangle inequalities on the coordinates yield w U ≤ n max j u ~ 1 , j 2 + n max j u ~ 2 , j 2 = w u 1 + w u 2 w_U\le n\max_j\tilde{u}_{1,j}^2+n\max_j\tilde{u}_{2,j}^2=w_{u_1}+w_{u_2} w U ≤ n max j u ~ 1 , j 2 + n max j u ~ 2 , j 2 = w u 1 + w u 2 , and summing ( u ~ 1 , j 2 + u ~ 2 , j 2 ) 2 ≤ 2 u ~ 1 , j 4 + 2 u ~ 2 , j 4 (\tilde{u}_{1,j}^2+\tilde{u}_{2,j}^2)^2\le2\tilde{u}_{1,j}^4+2\tilde{u}_{2,j}^4 ( u ~ 1 , j 2 + u ~ 2 , j 2 ) 2 ≤ 2 u ~ 1 , j 4 + 2 u ~ 2 , j 4 over j j j gives k U ≤ 2 ( k u 1 + k u 2 ) k_U\le2(k_{u_1}+k_{u_2}) k U ≤ 2 ( k u 1 + k u 2 ) .
(d) For any vector ς ∈ { ± 1 } n \varsigma\in\{\pm1\}^n ς ∈ { ± 1 } n of independent Rademacher signs and any symmetric matrix A ∈ R n × n A\in\mathbb{R}^{n\times n} A ∈ R n × n , expanding ς ⊤ A ς = tr A + 2 ∑ i < i ′ A i i ′ ς i ς i ′ \varsigma^\top A\varsigma=\operatorname{tr}A+2\sum_{i<i'}A_{ii'}\varsigma_i\varsigma_{i'} ς ⊤ A ς = tr A + 2 ∑ i < i ′ A i i ′ ς i ς i ′ and noting that the distinct-pair products { ς i ς i ′ } i < i ′ \{\varsigma_i\varsigma_{i'}\}_{i<i'} { ς i ς i ′ } i < i ′ are uncorrelated with mean zero and unit variance gives E ( ς ⊤ A ς ) 2 = ( tr A ) 2 + 4 ∑ i < i ′ A i i ′ 2 = ( tr A ) 2 + 2 ∥ A ∥ F 2 − 2 ∑ i A i i 2 \mathbb{E}(\varsigma^\top A\varsigma)^2=(\operatorname{tr}A)^2+4\sum_{i<i'}A_{ii'}^2=(\operatorname{tr}A)^2+2\|A\|_F^2-2\sum_iA_{ii}^2 E ( ς ⊤ A ς ) 2 = ( tr A ) 2 + 4 ∑ i < i ′ A i i ′ 2 = ( tr A ) 2 + 2∥ A ∥ F 2 − 2 ∑ i A ii 2 . For each fixed row j j j , the entries of h j h_j h j are H j i D i i = ς i / n H_{ji}D_{ii}=\varsigma_i/\sqrt{n} H j i D ii = ς i / n , where ς i : = n H j i D i i \varsigma_i:=\sqrt{n}H_{ji}D_{ii} ς i := n H j i D ii are independent Rademacher signs. Thus x ~ j 2 = ⟨ h j , x ⟩ 2 = ς ⊤ ( x x ⊤ ) ς / n \tilde{x}_j^2=\langle h_j,x\rangle^2=\varsigma^\top(xx^\top)\varsigma/n x ~ j 2 = ⟨ h j , x ⟩ 2 = ς ⊤ ( x x ⊤ ) ς / n and ∥ c j ∥ 2 = ∥ U U ⊤ h j ∥ 2 = ς ⊤ ( U U ⊤ ) ς / n \|c_j\|^2=\|UU^\top h_j\|^2=\varsigma^\top(UU^\top)\varsigma/n ∥ c j ∥ 2 = ∥ U U ⊤ h j ∥ 2 = ς ⊤ ( U U ⊤ ) ς / n . Setting A = x x ⊤ A=xx^\top A = x x ⊤ (for which tr A = ∥ A ∥ F = ∥ x ∥ 2 2 \operatorname{tr}A=\|A\|_F=\|x\|_2^2 tr A = ∥ A ∥ F = ∥ x ∥ 2 2 ) gives E D x ~ j 4 = ( 3 − 2 ∥ x ∥ 4 4 ) / n 2 \mathbb{E}_D\tilde{x}_j^4=(3-2\|x\|_4^4)/n^2 E D x ~ j 4 = ( 3 − 2∥ x ∥ 4 4 ) / n 2 . Setting A = U U ⊤ A=UU^\top A = U U ⊤ (for which tr A = ∥ A ∥ F 2 = 2 \operatorname{tr}A=\|A\|_F^2=2 tr A = ∥ A ∥ F 2 = 2 ) gives E D ∥ c j ∥ 4 = ( 8 − 2 ∑ i ( U U ⊤ ) i i 2 ) / n 2 \mathbb{E}_D\|c_j\|^4=(8-2\sum_i(UU^\top)_{ii}^2)/n^2 E D ∥ c j ∥ 4 = ( 8 − 2 ∑ i ( U U ⊤ ) ii 2 ) / n 2 . Summing over j = 1 , … , n j=1,\ldots,n j = 1 , … , n and multiplying by n n n establishes both identities. □ \square □
Proof of the random-metric reduction. We now prove Lemma 9 from § 3.2 .
Proof of Lemma 9. (i) Conditional distribution of ( X , Y ) (X,Y) ( X , Y ) . Any vector x = s 1 u 1 + s 2 u 2 = U s x=s_1u_1+s_2u_2=Us x = s 1 u 1 + s 2 u 2 = U s in the plane has preconditioned coordinates x ~ j = s ⊤ c j \widetilde{x}_j=s^\top c_j x j = s ⊤ c j ; in particular, e 1 ⊤ c j = u ~ j e_1^\top c_j=\widetilde{u}_j e 1 ⊤ c j = u j and t θ ⊤ c j = v ~ j t_\theta^\top c_j=\widetilde{v}_j t θ ⊤ c j = v j since v = cos θ u 1 + sin θ u 2 v=\cos\theta\,u_1+\sin\theta\,u_2 v = cos θ u 1 + sin θ u 2 (including when ∣ ρ ∣ = 1 |\rho|=1 ∣ ρ ∣ = 1 , where sin θ = 0 \sin\theta=0 sin θ = 0 ). Let ( e 1 , t θ ) (e_1,t_\theta) ( e 1 , t θ ) denote the 2 × 2 2\times2 2 × 2 matrix with columns e 1 e_1 e 1 and t θ t_\theta t θ . Conditioned on S S S , the nonzero weights g j g_j g j (j ∈ S j\in S j ∈ S ) are i.i.d. N ( 0 , 1 / q ) \mathcal{N}(0,1/q) N ( 0 , 1/ q ) , so writing ξ j : = q g j ∼ N ( 0 , 1 ) \xi_j:=\sqrt{q}g_j\sim\mathcal{N}(0,1) ξ j := q g j ∼ N ( 0 , 1 ) for j ∈ S j\in S j ∈ S and drawing independent ξ j ∼ N ( 0 , 1 ) \xi_j\sim\mathcal{N}(0,1) ξ j ∼ N ( 0 , 1 ) for j ∉ S j\notin S j ∈ / S gives g = ( ξ 1 , … , ξ n ) ⊤ ∼ N ( 0 , I n ) g=(\xi_1,\ldots,\xi_n)^\top\sim\mathcal{N}(0,I_n) g = ( ξ 1 , … , ξ n ) ⊤ ∼ N ( 0 , I n ) with X = ∑ j ∈ S ξ j q − 1 / 2 u ~ j = ⟨ g , u ~ S ⟩ X=\sum_{j\in S}\xi_jq^{-1/2}\widetilde{u}_j=\langle g,\widetilde{u}_S\rangle X = ∑ j ∈ S ξ j q − 1/2 u j = ⟨ g , u S ⟩ and Y = ⟨ g , v ~ S ⟩ Y=\langle g,\widetilde{v}_S\rangle Y = ⟨ g , v S ⟩ . Thus ( X , Y ) (X,Y) ( X , Y ) has the exact conditional law of ( ⟨ g , u ~ S ⟩ , ⟨ g , v ~ S ⟩ ) (\langle g,\widetilde{u}_S\rangle,\langle g,\widetilde{v}_S\rangle) (⟨ g , u S ⟩ , ⟨ g , v S ⟩) , which is centered bivariate normal with covariance
Σ S : = Cov ( ( X , Y ) ⊤ ∣ S ) = ( ∥ u ~ S ∥ 2 ⟨ u ~ S , v ~ S ⟩ ⟨ u ~ S , v ~ S ⟩ ∥ v ~ S ∥ 2 ) = ( e 1 , t θ ) ⊤ M S ( e 1 , t θ ) = ( σ u 2 σ u v σ u v σ v 2 ) . (19) \Sigma_S:=\operatorname{Cov}\bigl((X,Y)^\top\mid S\bigr)=
\begin{pmatrix}
\|\widetilde{u}_S\|^2 & \langle\widetilde{u}_S,\widetilde{v}_S\rangle\\
\langle\widetilde{u}_S,\widetilde{v}_S\rangle& \|\widetilde{v}_S\|^2
\end{pmatrix}
=(e_1,t_\theta)^\top M_S(e_1,t_\theta)=
\begin{pmatrix}
\sigma_u^2 & \sigma_{uv}\\
\sigma_{uv} & \sigma_v^2
\end{pmatrix}. \tag*{(19)} Σ S := Cov ( ( X , Y ) ⊤ ∣ S ) = ( ∥ u S ∥ 2 ⟨ u S , v S ⟩ ⟨ u S , v S ⟩ ∥ v S ∥ 2 ) = ( e 1 , t θ ) ⊤ M S ( e 1 , t θ ) = ( σ u 2 σ uv σ uv σ v 2 ) . (19)
(ii) Expected metric. Under both Bernoulli and balanced supports, each coordinate j ∈ [ n ] j\in[n] j ∈ [ n ] belongs to S S S with marginal probability q q q , so E M S = ∑ j c j c j ⊤ = U ~ ⊤ U ~ = I 2 \mathbb{E}M_S=\sum_j c_jc_j^\top=\widetilde{U}^\top\widetilde{U}=I_2 E M S = ∑ j c j c j ⊤ = U ⊤ U = I 2 . Reading off entries gives E σ 1 2 = E σ 2 2 = 1 \mathbb{E}\sigma_1^2=\mathbb{E}\sigma_2^2=1 E σ 1 2 = E σ 2 2 = 1 and E σ 12 = 0 \mathbb{E}\sigma_{12}=0 E σ 12 = 0 , and linearity gives E σ u 2 = 1 \mathbb{E}\sigma_u^2=1 E σ u 2 = 1 , E σ u v = e 1 ⊤ t θ = ρ \mathbb{E}\sigma_{uv}=e_1^\top t_\theta=\rho E σ uv = e 1 ⊤ t θ = ρ , and E σ v 2 = ∥ t θ ∥ 2 = 1 \mathbb{E}\sigma_v^2=\|t_\theta\|^2=1 E σ v 2 = ∥ t θ ∥ 2 = 1 .
(iii) Conditional score expectations. From (20), E [ X Y ∣ S ] = σ u v \mathbb{E}[XY\mid S]=\sigma_{uv} E [ X Y ∣ S ] = σ uv . For BG and BB, part (i) allows us to replace ( X , Y ) (X,Y) ( X , Y ) with ( ⟨ g , u ~ S ⟩ , ⟨ g , v ~ S ⟩ ) (\langle g,\widetilde{u}_S\rangle,\langle g,\widetilde{v}_S\rangle) (⟨ g , u S ⟩ , ⟨ g , v S ⟩) for g ∼ N ( 0 , I n ) g\sim\mathcal{N}(0,I_n) g ∼ N ( 0 , I n ) . For the BG score Z = π / 2 sign ( X ) Y Z=\sqrt{\pi/2}\operatorname{sign}(X)Y Z = π /2 sign ( X ) Y , suppose first that σ u > 0 \sigma_u>0 σ u > 0 , so u ~ S ≠ 0 \widetilde{u}_S\ne0 u S = 0 . If v ~ S ≠ 0 \widetilde{v}_S\ne0 v S = 0 as well, the second Gaussian identity in (2) yields E [ sign ( X ) Y ∣ S ] = 2 / π ⟨ u ~ S , v ~ S ⟩ / ∥ u ~ S ∥ \mathbb{E}[\operatorname{sign}(X)Y\mid S]=\sqrt{2/\pi}\,\langle\widetilde{u}_S,\widetilde{v}_S\rangle/\|\widetilde{u}_S\| E [ sign ( X ) Y ∣ S ] = 2/ π ⟨ u S , v S ⟩ /∥ u S ∥ , so E [ Z ∣ S ] = σ u v / σ u = ζ S \mathbb{E}[Z\mid S]=\sigma_{uv}/\sigma_u=\zeta_S E [ Z ∣ S ] = σ uv / σ u = ζ S ; if v ~ S = 0 \widetilde{v}_S=0 v S = 0 , then Y = 0 Y=0 Y = 0 and σ u v = 0 \sigma_{uv}=0 σ uv = 0 , so E [ Z ∣ S ] = 0 = ζ S \mathbb{E}[Z\mid S]=0=\zeta_S E [ Z ∣ S ] = 0 = ζ S . Finally, if σ u = 0 \sigma_u=0 σ u = 0 , then X = 0 X=0 X = 0 and sign X = + 1 \operatorname{sign}X=+1 sign X = + 1 by the convention sign ( 0 ) = + 1 \operatorname{sign}(0)=+1 sign ( 0 ) = + 1 , giving E [ Z ∣ S ] = π / 2 E [ Y ∣ S ] = 0 = ζ S \mathbb{E}[Z\mid S]=\sqrt{\pi/2}\mathbb{E}[Y\mid S]=0=\zeta_S E [ Z ∣ S ] = π /2 E [ Y ∣ S ] = 0 = ζ S .
For BB, we check the three cases defining θ S \theta_S θ S . When σ u σ v > 0 \sigma_u\sigma_v>0 σ u σ v > 0 , both u ~ S \widetilde{u}_S u S and v ~ S \widetilde{v}_S v S are nonzero, and the third identity in (2) gives Pr [ sign X ≠ sign Y ∣ S ] = ∠ ( u ~ S , v ~ S ) / π \Pr[\operatorname{sign}X\ne\operatorname{sign}Y\mid S]=\angle(\widetilde{u}_S,\widetilde{v}_S)/\pi Pr [ sign X = sign Y ∣ S ] = ∠ ( u S , v S ) / π with cos ∠ ( u ~ S , v ~ S ) = σ u v / ( σ u σ v ) = ρ S = cos θ S \cos\angle(\widetilde{u}_S,\widetilde{v}_S)=\sigma_{uv}/(\sigma_u\sigma_v)=\rho_S=\cos\theta_S cos ∠ ( u S , v S ) = σ uv / ( σ u σ v ) = ρ S = cos θ S . When exactly one of σ u \sigma_u σ u or σ v \sigma_v σ v vanishes, that projection is identically zero (with sign + 1 +1 + 1 ) while the other is a nondegenerate centered normal variable (negative with probability 1 2 = θ S / π \frac12=\theta_S/\pi 2 1 = θ S / π ). When σ u = σ v = 0 \sigma_u=\sigma_v=0 σ u = σ v = 0 , both projections vanish and have sign + 1 +1 + 1 , so they disagree with probability 0 = θ S / π 0=\theta_S/\pi 0 = θ S / π . Whenever M S ≻ 0 M_S\succ0 M S ≻ 0 , we have σ u , σ v > 0 \sigma_u,\sigma_v>0 σ u , σ v > 0 and cos ϑ θ ( M S ) = σ u v / ( σ u σ v ) = cos θ S \cos\vartheta_\theta(M_S)=\sigma_{uv}/(\sigma_u\sigma_v)=\cos\theta_S cos ϑ θ ( M S ) = σ uv / ( σ u σ v ) = cos θ S , so θ S = ϑ θ ( M S ) \theta_S=\vartheta_\theta(M_S) θ S = ϑ θ ( M S ) since both lie in [ 0 , π ] [0,\pi] [ 0 , π ] .
(iv) Gram identity. Because det ( e 1 , t θ ) = sin θ \det(e_1,t_\theta)=\sin\theta det ( e 1 , t θ ) = sin θ , taking determinants in (20) gives σ u 2 σ v 2 − σ u v 2 = det M S sin 2 θ = ( 1 − ρ 2 ) det M S ≥ 0 \sigma_u^2\sigma_v^2-\sigma_{uv}^2=\det M_S\sin^2\theta=(1-\rho^2)\det M_S\ge0 σ u 2 σ v 2 − σ uv 2 = det M S sin 2 θ = ( 1 − ρ 2 ) det M S ≥ 0 , which implies ∣ σ u v ∣ ≤ σ u σ v |\sigma_{uv}|\le\sigma_u\sigma_v ∣ σ uv ∣ ≤ σ u σ v . For any M ≻ 0 M\succ0 M ≻ 0 , dividing this identity by ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) > 0 (e_1^\top Me_1)(t_\theta^\top Mt_\theta)>0 ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) > 0 gives
sin 2 ϑ θ ( M ) = 1 − ( e 1 ⊤ M t θ ) 2 ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) = sin 2 θ det M ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) ≤ sin 2 θ λ max ( M ) λ min ( M ) . \sin^2\vartheta_\theta(M)=1-\frac{(e_1^\top Mt_\theta)^2}{(e_1^\top Me_1)(t_\theta^\top Mt_\theta)}
=\frac{\sin^2\theta\det M}{(e_1^\top Me_1)(t_\theta^\top Mt_\theta)}
\le\sin^2\theta\frac{\lambda_{\max}(M)}{\lambda_{\min}(M)}. sin 2 ϑ θ ( M ) = 1 − ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) ( e 1 ⊤ M t θ ) 2 = ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) sin 2 θ det M ≤ sin 2 θ λ m i n ( M ) λ m a x ( M ) .
since det M = λ max ( M ) λ min ( M ) \det M=\lambda_{\max}(M)\lambda_{\min}(M) det M = λ m a x ( M ) λ m i n ( M ) and both Rayleigh quotients in the denominator are at least λ min ( M ) \lambda_{\min}(M) λ m i n ( M ) . Taking square roots (as θ , ϑ θ ( M ) ∈ [ 0 , π ] \theta,\vartheta_\theta(M)\in[0,\pi] θ , ϑ θ ( M ) ∈ [ 0 , π ] ) completes the proof. □ \square □
Moments and tails of coordinate sums over a random support. Every entry of M S M_S M S —as well as linear combinations such as σ u v \sigma_{uv} σ uv and σ v 2 \sigma_v^2 σ v 2 —has the form T = q − 1 ∑ j ∈ S y j T=q^{-1}\sum_{j\in S}y_j T = q − 1 ∑ j ∈ S y j for a deterministic vector y ∈ R n y\in\mathbb{R}^n y ∈ R n . The next lemma establishes the covariance of any two such sums and bounds both tails of the captured energy σ x 2 \sigma_x^2 σ x 2 .
Lemma 28 (Sums over a random support, both laws). Fix D D D , and let S S S be the support of a single row under either support law. For any y , y ′ ∈ R n y,y'\in\mathbb{R}^n y , y ′ ∈ R n , set T : = q − 1 ∑ j ∈ S y j T:=q^{-1}\sum_{j\in S}y_j T := q − 1 ∑ j ∈ S y j and T ′ : = q − 1 ∑ j ∈ S y j ′ T':=q^{-1}\sum_{j\in S}y'_j T ′ := q − 1 ∑ j ∈ S y j ′ . Then E T = ∑ j y j \mathbb{E}T=\sum_j y_j E T = ∑ j y j and
Cov ( T , T ′ ) = f q q ( ⟨ y , y ′ ⟩ − 1 b a l n ∑ j y j ∑ j y j ′ ) . \operatorname{Cov}(T,T')=\frac{f_q}{q}\left(\langle y,y'\rangle-\frac{\mathbf{1}_{\mathrm{bal}}}{n}\sum_j y_j\sum_j y'_j\right). Cov ( T , T ′ ) = q f q ( ⟨ y , y ′ ⟩ − n 1 bal j ∑ y j j ∑ y j ′ ) . In particular, for any unit vector x x x with captured energy σ x 2 = ∥ x ~ S ∥ 2 \sigma_x^2=\|\widetilde{x}_S\|^2 σ x 2 = ∥ x S ∥ 2 .
E σ x 2 = 1 \mathbb{E}\sigma_x^2=1 E σ x 2 = 1 , Var ( σ x 2 ) = f q ( k x − 1 b a l ) / r ≤ w x / r \operatorname{Var}(\sigma_x^2)=f_q(k_x-1_{\mathrm{bal}})/r\le w_x/r Var ( σ x 2 ) = f q ( k x − 1 bal ) / r ≤ w x / r , and σ x 2 ≤ n / r \sigma_x^2\le n/r σ x 2 ≤ n / r almost surely;
Pr [ σ x 2 < t ] ≤ exp { − ( 1 − t ) 2 r / ( 2 k x ) } \Pr[\sigma_x^2<t]\le\exp\{-(1-t)^2r/(2k_x)\} Pr [ σ x 2 < t ] ≤ exp { − ( 1 − t ) 2 r / ( 2 k x )} for all t ∈ ( 0 , 1 ) t\in(0,1) t ∈ ( 0 , 1 ) ;
Pr [ σ x 2 ≥ 1 + t ] ≤ exp { − ( r / w x ) h ( t ) } \Pr[\sigma_x^2\ge1+t]\le\exp\{-(r/w_x)h(t)\} Pr [ σ x 2 ≥ 1 + t ] ≤ exp { − ( r / w x ) h ( t )} for all t > 0 t>0 t > 0 , where h ( t ) = ( 1 + t ) log ( 1 + t ) − t h(t)=(1+t)\log(1+t)-t h ( t ) = ( 1 + t ) log ( 1 + t ) − t ;
as shown in Lemma 27, k x ≥ 1 k_x\ge1 k x ≥ 1 (with equality if and only if x ~ \widetilde{x} x is flat), and E D k x = 3 − 2 ∥ x ∥ 4 4 ≤ 3 \mathbb{E}_Dk_x=3-2\|x\|_4^4\le3 E D k x = 3 − 2∥ x ∥ 4 4 ≤ 3 when x x x is fixed independently of D D D ;
(v) Domination by independent summands. Define the auxiliary sum S ∗ S_\ast S ∗ by
S ∗ : = ∑ j = 1 n W j , W j : = 1 { j ∈ S } x ~ j 2 / q (Bernoulli supports) , S ∗ : = ∑ m = 1 r W m , W m : = x ~ J m 2 / q (balanced supports) . (20) \begin{aligned}
S_\ast&:= \sum_{j=1}^{n} W_j,\qquad W_j := \mathbf{1}\{j \in S\}\,\tilde{x}_j^2/q \quad\text{(Bernoulli supports)},\\
S_\ast&:= \sum_{m=1}^{r} W_m,\qquad W_m := \tilde{x}_{J_m}^2/q \quad\text{(balanced supports)}. \tag*{(20)}
\end{aligned} S ∗ S ∗ := j = 1 ∑ n W j , W j := 1 { j ∈ S } x ~ j 2 / q (Bernoulli supports) , := m = 1 ∑ r W m , W m := x ~ J m 2 / q (balanced supports) . (20)
where J 1 , … , J r J_1,\ldots,J_r J 1 , … , J r are drawn independently and uniformly from [ n ] [n] [ n ] . Under both laws, the summands of S ∗ S_\ast S ∗ are mutually independent, take values in [ 0 , w x / r ] [0,w_x/r] [ 0 , w x / r ] , have means summing to 1 1 1 , and have second moments summing to k x / r k_x/r k x / r . Moreover, E f ( σ x 2 ) ≤ E f ( S ∗ ) \mathbb{E}f(\sigma_x^2) \leq\mathbb{E}f(S_\ast) E f ( σ x 2 ) ≤ E f ( S ∗ ) for every convex function f : R → R f:\mathbb{R}\to\mathbb{R} f : R → R .
Proof of Lemma 28. Covariance identity. Writing ξ j : = 1 { j ∈ S } \xi_j:=\mathbf{1}\{j\in S\} ξ j := 1 { j ∈ S } gives T = q − 1 ∑ j ξ j y j T=q^{-1}\sum_j \xi_j y_j T = q − 1 ∑ j ξ j y j . Under either support law, E ξ j = q \mathbb{E}\xi_j=q E ξ j = q (so E T = ∑ j y j \mathbb{E}T=\sum_j y_j E T = ∑ j y j ) and Var ξ j = q ( 1 − q ) \operatorname{Var}\xi_j=q(1-q) Var ξ j = q ( 1 − q ) . Under Bernoulli supports, the indicators ξ j \xi_j ξ j are independent, so Cov ( ξ j , ξ j ′ ) = 0 \operatorname{Cov}(\xi_j,\xi_{j'})=0 Cov ( ξ j , ξ j ′ ) = 0 for j ≠ j ′ j\ne j' j = j ′ . Under balanced supports, ∑ j = 1 n ξ j = r \sum_{j=1}^n \xi_j=r ∑ j = 1 n ξ j = r is constant and the indicators are exchangeable, so 0 = Cov ( ξ j , ∑ j ′ ξ j ′ ) = q ( 1 − q ) + ( n − 1 ) Cov ( ξ j , ξ j ′ ) 0=\operatorname{Cov}(\xi_j,\sum_{j'}\xi_{j'})=q(1-q)+(n-1)\operatorname{Cov}(\xi_j,\xi_{j'}) 0 = Cov ( ξ j , ∑ j ′ ξ j ′ ) = q ( 1 − q ) + ( n − 1 ) Cov ( ξ j , ξ j ′ ) for j ≠ j ′ j\ne j' j = j ′ . Using f q f_q f q and 1 b a l \mathbf{1}_{\mathrm{bal}} 1 bal from Definition 8 , both cases combine into Cov ( ξ j , ξ j ′ ) = q f q ( 1 { j = j ′ } − 1 b a l n ) \operatorname{Cov}(\xi_j,\xi_{j'})=qf_q\left(\mathbf{1}\{j=j'\}-\frac{\mathbf{1}_{\mathrm{bal}}}{n}\right) Cov ( ξ j , ξ j ′ ) = q f q ( 1 { j = j ′ } − n 1 bal ) , and substituting this into Cov ( T , T ′ ) = q − 2 ∑ j , j ′ y j y j ′ ′ Cov ( ξ j , ξ j ′ ) \operatorname{Cov}(T,T')=q^{-2}\sum_{j,j'}y_jy_{j'}'\operatorname{Cov}(\xi_j,\xi_{j'}) Cov ( T , T ′ ) = q − 2 ∑ j , j ′ y j y j ′ ′ Cov ( ξ j , ξ j ′ ) yields the covariance formula.
(i) Mean, variance, and range of σ x 2 \sigma_x^2 σ x 2 . Specializing to y j = y j ′ = x ~ j 2 y_j=y_j'=\tilde{x}_j^2 y j = y j ′ = x ~ j 2 gives T = T ′ = σ x 2 T=T'=\sigma_x^2 T = T ′ = σ x 2 , ∑ j y j = ∥ x ~ ∥ 2 2 = 1 \sum_j y_j=\lVert\tilde{x}\rVert_2^2=1 ∑ j y j = ∥ x ~ ∥ 2 2 = 1 , and ⟨ y , y ⟩ = ∥ x ~ ∥ 4 4 = k x / n \langle y,y\rangle=\lVert\tilde{x}\rVert_4^4=k_x/n ⟨ y , y ⟩ = ∥ x ~ ∥ 4 4 = k x / n . Since q n = r qn=r q n = r , the covariance formula yields Var ( σ x 2 ) = f q ( k x − 1 b a l ) / r ≤ w x / r \operatorname{Var}(\sigma_x^2)=f_q(k_x-\mathbf{1}_{\mathrm{bal}})/r\leq w_x/r Var ( σ x 2 ) = f q ( k x − 1 bal ) / r ≤ w x / r (as f q ≤ 1 f_q\leq1 f q ≤ 1 and k x ≤ w x k_x\leq w_x k x ≤ w x ), while ∑ j ∈ S x ~ j 2 ≤ ∥ x ~ ∥ 2 2 = 1 \sum_{j\in S}\tilde{x}_j^2\leq\lVert\tilde{x}\rVert_2^2=1 ∑ j ∈ S x ~ j 2 ≤ ∥ x ~ ∥ 2 2 = 1 implies σ x 2 ≤ 1 / q = n / r \sigma_x^2\leq1/q=n/r σ x 2 ≤ 1/ q = n / r . Part (iv) simply restates Lemma 27 (a) and (d).
(v) Domination by independent summands. Under Bernoulli supports, S ∗ = σ x 2 S_\ast=\sigma_x^2 S ∗ = σ x 2 identically, and the independent summands W j = ξ j x ~ j 2 / q W_j=\xi_j\tilde{x}_j^2/q W j = ξ j x ~ j 2 / q have means x ~ j 2 \tilde{x}_j^2 x ~ j 2 and second moments x ~ j 2 / q \tilde{x}_j^2/q x ~ j 2 / q . Under balanced supports, σ x 2 \sigma_x^2 σ x 2 is the sum of r r r draws without replacement from { x ~ j 2 / q } j = 1 n \{\tilde{x}_j^2/q\}_{j=1}^n { x ~ j 2 / q } j = 1 n , whereas S ∗ S_\ast S ∗ is the sum of r r r independent draws with replacement, each having mean ( n q ) − 1 = 1 / r (nq)^{-1}=1/r ( n q ) − 1 = 1/ r and second moment n − 1 q − 2 ∥ x ~ ∥ 4 4 = k x / r 2 n^{-1}q^{-2}\lVert\tilde{x}\rVert_4^4=k_x/r^2 n − 1 q − 2 ∥ x ~ ∥ 4 4 = k x / r 2 . In both cases, every summand lies in [ 0 , ∥ x ~ ∥ ∞ 2 / q ] = [ 0 , w x / r ] [0,\lVert\tilde{x}\rVert_\infty^2/q]=[0,w_x/r] [ 0 , ∥ x ~ ∥ ∞ 2 / q ] = [ 0 , w x / r ] , the means sum to ∥ x ~ ∥ 2 2 = 1 \lVert\tilde{x}\rVert_2^2=1 ∥ x ~ ∥ 2 2 = 1 , and the second moments sum to q − 1 ∥ x ~ ∥ 4 4 = k x / r q^{-1}\lVert\tilde{x}\rVert_4^4=k_x/r q − 1 ∥ x ~ ∥ 4 4 = k x / r . The convex ordering E f ( σ x 2 ) ≤ E f ( S ∗ ) \mathbb{E}f(\sigma_x^2)\leq\mathbb{E}f(S_\ast) E f ( σ x 2 ) ≤ E f ( S ∗ ) holds with equality for Bernoulli supports and follows from Lemma 23 for balanced supports.
(ii) and (iii) Tail bounds. By the transfer principle of Appendix § 6 .§ 1 (and part (v)), it suffices to prove both tail bounds for the independent sum S ∗ S_\ast S ∗ . For the lower tail (ii), applying Maurer’s inequality (12) to the nonnegative summands of S ∗ S_\ast S ∗ at deviation 1 − t 1-t 1 − t gives Pr [ S ∗ < t ] ≤ Pr [ 1 − S ∗ ≥ 1 − t ] ≤ e − ( 1 − t ) 2 r / ( 2 k x ) \Pr[S_\ast<t]\leq\Pr[1-S_\ast\geq1-t]\leq e^{-(1-t)^2r/(2k_x)} Pr [ S ∗ < t ] ≤ Pr [ 1 − S ∗ ≥ 1 − t ] ≤ e − ( 1 − t ) 2 r / ( 2 k x ) . For the upper tail (iii), the centered summands W − E W W-\mathbb{E}W W − E W are bounded above by w x / r w_x/r w x / r and have total variance at most ∑ E W 2 = k x / r ≤ w x / r \sum\mathbb{E}W^2=k_x/r\leq w_x/r ∑ E W 2 = k x / r ≤ w x / r ; applying Bennett’s inequality (10) with R = V = w x / r R=V=w_x/r R = V = w x / r yields Pr [ S ∗ ≥ 1 + t ] ≤ exp { − ( V / R 2 ) h ( R t / V ) } = e − ( r / w x ) h ( t ) \Pr[S_\ast\geq1+t]\leq\exp\{-(V/R^2)h(Rt/V)\}=e^{-(r/w_x)h(t)} Pr [ S ∗ ≥ 1 + t ] ≤ exp { − ( V / R 2 ) h ( R t / V )} = e − ( r / w x ) h ( t ) .
Notice how the covariance formula in Lemma 28 reflects the support law: for y ′ = y y'=y y ′ = y under balanced supports, the parenthetical factor is n n n times the population variance of { y j } j = 1 n \{y_j\}_{j=1}^n { y j } j = 1 n multiplied by the finite-population correction f q = ( n − r ) / ( n − 1 ) f_q=(n-r)/(n-1) f q = ( n − r ) / ( n − 1 ) ; under Bernoulli supports, the centering term is absent (1 b a l = 0 \mathbf{1}_{\mathrm{bal}}=0 1 bal = 0 ) because the random support size ∣ S ∣ |S| ∣ S ∣ adds variance even when y y y is constant. In particular, when k u = 1 k_u=1 k u = 1 , balanced supports have zero energy variance.
Corollary 29 (Flat stored vectors). Fix D D D . Under balanced supports, if k u = 1 k_u=1 k u = 1 , then σ u 2 = 1 \sigma_u^2=1 σ u 2 = 1 deterministically on every support. Consequently, conditioned on D D D , we have ℓ − 1 ∥ Φ u ∥ 2 ∼ χ ℓ 2 / ℓ \ell^{-1}\lVert\Phi u\rVert^2\sim\chi_\ell^2/\ell ℓ − 1 ∥ Φ u ∥ 2 ∼ χ ℓ 2 / ℓ exactly, and E [ ρ B G ∣ D ] = ρ \mathbb{E}[\rho_{\mathrm{BG}}\mid D]=\rho E [ ρ BG ∣ D ] = ρ for every query v v v .
Proof of Corollary 29. By Lemma 27 (a), k u = 1 k_u=1 k u = 1 implies u ~ j 2 = 1 / n \tilde{u}_j^2=1/n u ~ j 2 = 1/ n for all j j j , so every subset S S S of size r r r captures energy σ u 2 = q − 1 ( r / n ) = 1 \sigma_u^2=q^{-1}(r/n)=1 σ u 2 = q − 1 ( r / n ) = 1 . Conditioned on D D D , the rows of Φ \Phi Φ are independent, and by Lemma 9(i) each entry ( Φ u ) i (\Phi u)_i ( Φ u ) i is distributed as N ( 0 , σ u , i 2 ) = N ( 0 , 1 ) \mathcal{N}(0,\sigma_{u,i}^2)=\mathcal{N}(0,1) N ( 0 , σ u , i 2 ) = N ( 0 , 1 ) given S i S_i S i (and hence given D D D ), so ∥ Φ u ∥ 2 ∼ χ ℓ 2 \lVert\Phi u\rVert^2\sim\chi_\ell^2 ∥ Φ u ∥ 2 ∼ χ ℓ 2 . For any query v v v , Lemma 9(iii) and (ii) give E [ Z i ∣ S i ] = σ u v , i / σ u , i = σ u v , i \mathbb{E}[Z_i\mid S_i]=\sigma_{uv,i}/\sigma_{u,i}=\sigma_{uv,i} E [ Z i ∣ S i ] = σ uv , i / σ u , i = σ uv , i and E σ u v , i = ρ \mathbb{E}\sigma_{uv,i}=\rho E σ uv , i = ρ , whence E [ ρ ^ B G ∣ D ] = ρ \mathbb{E}[\hat{\rho}_{\mathrm{BG}}\mid D]=\rho E [ ρ ^ BG ∣ D ] = ρ .
By contrast, under Bernoulli supports, a flat vector u u u has captured energy σ u 2 = ∣ S ∣ / r \sigma_u^2=|S|/r σ u 2 = ∣ S ∣/ r , which fluctuates with the Binomial ( n , q ) \operatorname{Binomial}(n,q) Binomial ( n , q ) support size.
Full precision (GG)
For the full-precision linear estimator GG, sparse sampling inflates the spread of each row score without introducing any bias (§ 3.3 ). Fix D D D and a unit vector x x x . Conditioned on D D D , the rows of Φ \Phi Φ are i.i.d., and conditioned on the support S i S_i S i , the projection ( Φ x ) i (\Phi x)_i ( Φ x ) i is distributed as N ( 0 , σ x , i 2 ) \mathcal{N}(0,\sigma_{x,i}^2) N ( 0 , σ x , i 2 ) , where σ x , i 2 = ∥ x ~ S i ∥ 2 \sigma_{x,i}^2 = \lVert\tilde{x}_{S_i}\rVert^2 σ x , i 2 = ∥ x ~ S i ∥ 2 is the energy captured from x x x by row i i i (Lemma 9(i) with u = v = x u=v=x u = v = x ). Consequently, the squared projections ( Φ x ) i 2 (\Phi x)_i^2 ( Φ x ) i 2 whose average forms ℓ − 1 ∥ Φ x ∥ 2 \ell^{-1}\lVert\Phi x\rVert^2 ℓ − 1 ∥ Φ x ∥ 2 are i.i.d. copies of
T = σ x 2 ξ 2 , ξ ∼ N ( 0 , 1 ) independent of σ x 2 , E σ x 2 = 1 , Var ( σ x 2 ) = f q r ( k x − 1 b a l ) , (21) T=\sigma_x^2\xi^2,\qquad\xi\sim\mathcal{N}(0,1)\text{ independent of }\sigma_x^2,\qquad\mathbb{E}\sigma_x^2=1,\qquad\operatorname{Var}(\sigma_x^2)=\frac{f_q}{r}(k_x-1_{\mathrm{bal}}), \tag*{(21)} T = σ x 2 ξ 2 , ξ ∼ N ( 0 , 1 ) independent of σ x 2 , E σ x 2 = 1 , Var ( σ x 2 ) = r f q ( k x − 1 bal ) , (21)
where the moments of σ x 2 \sigma_x^2 σ x 2 are given by Lemma 28(i). Each squared entry is thus a χ 1 2 \chi_1^2 χ 1 2 random variable modulated by a random scale factor σ x 2 \sigma_x^2 σ x 2 of unit mean. Catoni’s robust decoder requires only the mean and variance of the per-row product X i Y i X_iY_i X i Y i (Proposition 30). The standard sample average requires more delicate control: while Maurer’s inequality bounds its lower tail using only E T 2 \mathbb{E}T^2 E T 2 , its upper tail requires bounding the moment generating function of T T T on the high-probability event that no row captures excessive energy (Lemma 31 ). At the end of this section, we also introduce and analyze a scale-free Catoni estimator for pairwise squared distances (Theorem 32 ).
Throughout this section, unless D D D is explicitly drawn at random, we condition on a fixed D D D and treat admissible vectors as deterministic.
Moments of a row product. We first compute the exact mean and variance of a single row product X i Y i X_iY_i X i Y i for a pair of unit vectors u , v u,v u , v , where X i = ( Φ u ) i X_i=(\Phi u)_i X i = ( Φ u ) i and Y i = ( Φ v ) i Y_i=(\Phi v)_i Y i = ( Φ v ) i .
Proposition 30 (GG row moments). Fix D D D and unit vectors u , v u,v u , v . Under either support law, E [ X i Y i ] = ρ \mathbb{E}[X_iY_i]=\rho E [ X i Y i ] = ρ and
Var ( X i Y i ) = 1 + ρ 2 + f q r ( 3 k u v − 1 b a l ( 1 + 2 ρ 2 ) ) ≤ 1 + ρ 2 + 3 f q k u v r . \operatorname{Var}(X_iY_i)=1+\rho^2+\frac{f_q}{r}\left(3k_{uv}-1_{\mathrm{bal}}(1+2\rho^2)\right)\le1+\rho^2+\frac{3f_qk_{uv}}{r}. Var ( X i Y i ) = 1 + ρ 2 + r f q ( 3 k uv − 1 bal ( 1 + 2 ρ 2 ) ) ≤ 1 + ρ 2 + r 3 f q k uv .
In particular, when v = u v=u v = u , we have Var ( X i 2 ) = 2 + 3 Var ( σ u 2 ) \operatorname{Var}(X_i^2)=2+3\operatorname{Var}(\sigma_u^2) Var ( X i 2 ) = 2 + 3 Var ( σ u 2 ) .
Proof of Proposition 30. Fix a row and omit its subscript i i i . Conditioned on the support S S S , the pair ( X , Y ) (X,Y) ( X , Y ) is centered bivariate normal with variances σ u 2 \sigma_u^2 σ u 2 and σ v 2 \sigma_v^2 σ v 2 and covariance σ u v \sigma_{uv} σ uv (Lemma 9(i)). By Isserlis’ theorem (Wick’s formula), E [ X Y ∣ S ] = σ u v \mathbb{E}[XY\mid S]=\sigma_{uv} E [ X Y ∣ S ] = σ uv and E [ X 2 Y 2 ∣ S ] = σ u 2 σ v 2 + 2 σ u v 2 \mathbb{E}[X^2Y^2\mid S]=\sigma_u^2\sigma_v^2+2\sigma_{uv}^2 E [ X 2 Y 2 ∣ S ] = σ u 2 σ v 2 + 2 σ uv 2 .
Notice that σ u 2 \sigma_u^2 σ u 2 , σ v 2 \sigma_v^2 σ v 2 , and σ u v \sigma_{uv} σ uv are coordinate sums q − 1 ∑ j ∈ S y j q^{-1}\sum_{j\in S}y_j q − 1 ∑ j ∈ S y j over S S S with y j = u ~ j 2 y_j=\tilde{u}_j^2 y j = u ~ j 2 , v ~ j 2 \tilde{v}_j^2 v ~ j 2 , and u ~ j v ~ j \tilde{u}_j\tilde{v}_j u ~ j v ~ j , respectively. Because H D HD H D is orthogonal, the coordinate totals of these three vectors are 1 1 1 , 1 1 1 , and ρ \rho ρ . Lemma 28 therefore gives E σ u 2 = E σ v 2 = 1 \mathbb{E}\sigma_u^2=\mathbb{E}\sigma_v^2=1 E σ u 2 = E σ v 2 = 1 and E [ X Y ] = E σ u v = ρ \mathbb{E}[XY]=\mathbb{E}\sigma_{uv}=\rho E [ X Y ] = E σ uv = ρ , so that
Var ( X Y ) = E [ σ u 2 σ v 2 ] + 2 E σ u v 2 − ρ 2 = 1 + ρ 2 + Cov ( σ u 2 , σ v 2 ) + 2 Var ( σ u v ) . \operatorname{Var}(XY)=\mathbb{E}[\sigma_u^2\sigma_v^2]+2\mathbb{E}\sigma_{uv}^2-\rho^2=1+\rho^2+\operatorname{Cov}(\sigma_u^2,\sigma_v^2)+2\operatorname{Var}(\sigma_{uv}). Var ( X Y ) = E [ σ u 2 σ v 2 ] + 2 E σ uv 2 − ρ 2 = 1 + ρ 2 + Cov ( σ u 2 , σ v 2 ) + 2 Var ( σ uv ) .
In the covariance formula of Lemma 28, the inner product ⟨ y , y ′ ⟩ \langle y,y'\rangle ⟨ y , y ′ ⟩ equals ∥ u ~ ∘ v ~ ∥ 2 = k u v / n \lVert\tilde{u}\circ\tilde{v}\rVert^2=k_{uv}/n ∥ u ~ ∘ v ~ ∥ 2 = k uv / n both for the pair ( σ u 2 , σ v 2 ) (\sigma_u^2,\sigma_v^2) ( σ u 2 , σ v 2 ) and for ( σ u v , σ u v ) (\sigma_{uv},\sigma_{uv}) ( σ uv , σ uv ) , while the product of coordinate totals is 1 1 1 for ( σ u 2 , σ v 2 ) (\sigma_u^2,\sigma_v^2) ( σ u 2 , σ v 2 ) and ρ 2 \rho^2 ρ 2 for ( σ u v , σ u v ) (\sigma_{uv},\sigma_{uv}) ( σ uv , σ uv ) . Using q n = r qn=r q n = r , we obtain
Cov ( σ u 2 , σ v 2 ) = f q r ( k u v − 1 b a l ) , Var ( σ u v ) = f q r ( k u v − 1 b a l ρ 2 ) . \operatorname{Cov}(\sigma_u^2,\sigma_v^2)=\frac{f_q}{r}(k_{uv}-1_{\mathrm{bal}}),\qquad\operatorname{Var}(\sigma_{uv})=\frac{f_q}{r}(k_{uv}-1_{\mathrm{bal}}\rho^2). Cov ( σ u 2 , σ v 2 ) = r f q ( k uv − 1 bal ) , Var ( σ uv ) = r f q ( k uv − 1 bal ρ 2 ) .
Substituting these expressions yields the exact variance identity, and dropping the nonnegative term f q 1 b a l ( 1 + 2 ρ 2 ) / r f_q1_{\mathrm{bal}}(1+2\rho^2)/r f q 1 bal ( 1 + 2 ρ 2 ) / r gives the upper bound. Setting v = u v=u v = u (ρ = 1 \rho=1 ρ = 1 and k u u = k u k_{uu}=k_u k uu = k u ) gives Var ( X 2 ) = 2 + 3 f q ( k u − 1 b a l ) / r = 2 + 3 Var ( σ u 2 ) \operatorname{Var}(X^2)=2+3f_q(k_u-1_{\mathrm{bal}})/r=2+3\operatorname{Var}(\sigma_u^2) Var ( X 2 ) = 2 + 3 f q ( k u − 1 bal ) / r = 2 + 3 Var ( σ u 2 ) . □ \square □
Notice that the variance bound 1 + ρ 2 + 3 f q k u v / r 1+\rho^2+3f_qk_{uv}/r 1 + ρ 2 + 3 f q k uv / r used in Theorem 10 (b) drops only the finite-population correction term f q 1 b a l ( 1 + 2 ρ 2 ) / r f_q1_{\mathrm{bal}}(1+2\rho^2)/r f q 1 bal ( 1 + 2 ρ 2 ) / r . Moreover, replacing k u v k_{uv} k uv by the stored gap w u w_u w u (as in the final sentence of Theorem 10 (b)) gives the upper bound. For the normalized Walsh block x x x of size s s s in Theorem 21 (a) on the event E \mathcal{E} E where w x = k x = s w_x=k_x=s w x = k x = s , the self-pair u = v = x u=v=x u = v = x has Var ( X i 2 ) = 2 + 3 f q ( s − 1 b a l ) / r \operatorname{Var}(X_i^2)=2+3f_q(s-1_{\mathrm{bal}})/r Var ( X i 2 ) = 2 + 3 f q ( s − 1 bal ) / r , and both k u v k_{uv} k uv and w u w_u w u evaluate to s s s .
Analysis of the sample average. For λ ≥ 0 \lambda\geq0 λ ≥ 0 , conditioning on σ x 2 \sigma_x^2 σ x 2 in (21) gives E [ e λ T ∣ σ x 2 ] = L ( σ x 2 ) \mathbb{E}[e^{\lambda T}\mid\sigma_x^2]=\mathcal{L}(\sigma_x^2) E [ e λ T ∣ σ x 2 ] = L ( σ x 2 ) , where L ( t ) : = ( 1 − 2 λ t ) − 1 / 2 \mathcal{L}(t):=(1-2\lambda t)^{-1/2} L ( t ) := ( 1 − 2 λ t ) − 1/2 is the χ 1 2 \chi_1^2 χ 1 2 moment generating function for 2 λ t < 1 2\lambda t<1 2 λ t < 1 . Because L ( t ) \mathcal{L}(t) L ( t ) diverges as t ↑ 1 / ( 2 λ ) t\uparrow1/(2\lambda) t ↑ 1/ ( 2 λ ) , we truncate σ x 2 \sigma_x^2 σ x 2 at a threshold τ ≥ 1 \tau\geq1 τ ≥ 1 satisfying 4 λ τ ≤ 1 4\lambda\tau\leq1 4 λ τ ≤ 1 .
Lemma 31 (Truncated moment generating function of a squared entry). Let σ x 2 ≥ 0 \sigma_x^2 \ge0 σ x 2 ≥ 0 satisfy E σ x 2 = 1 \mathbb{E}\sigma_x^2 = 1 E σ x 2 = 1 and Var ( σ x 2 ) ≤ V \operatorname{Var}(\sigma_x^2) \le V Var ( σ x 2 ) ≤ V , let ξ ∼ N ( 0 , 1 ) \xi\sim\mathcal{N}(0,1) ξ ∼ N ( 0 , 1 ) be independent of σ x 2 \sigma_x^2 σ x 2 , and set T = σ x 2 ξ 2 T = \sigma_x^2 \xi^2 T = σ x 2 ξ 2 . For any λ ≥ 0 \lambda\ge0 λ ≥ 0 and τ ≥ 1 \tau\ge1 τ ≥ 1 satisfying 4 λ τ ≤ 1 4\lambda\tau\le1 4 λ τ ≤ 1 ,
log E [ e λ ( T − 1 ) 1 { σ x 2 ≤ τ } ] ≤ λ 2 1 − 2 λ + 8.5 λ 2 V . (22) \log\mathbb{E}\left[e^{\lambda(T-1)}\mathbf{1}\{\sigma_x^2 \le\tau\}\right] \le\frac{\lambda^2}{1-2\lambda} + 8.5\lambda^2V. \tag*{(22)} log E [ e λ ( T − 1 ) 1 { σ x 2 ≤ τ } ] ≤ 1 − 2 λ λ 2 + 8.5 λ 2 V . (22)
Proof of Lemma 31. Differentiating L ( t ) = ( 1 − 2 λ t ) − 1 / 2 L(t)=(1-2\lambda t)^{-1/2} L ( t ) = ( 1 − 2 λ t ) − 1/2 gives L ′ ( t ) = λ ( 1 − 2 λ t ) − 3 / 2 ≥ 0 L'(t)=\lambda(1-2\lambda t)^{-3/2} \ge0 L ′ ( t ) = λ ( 1 − 2 λ t ) − 3/2 ≥ 0 and L ′ ′ ( t ) = 3 λ 2 ( 1 − 2 λ t ) − 5 / 2 L''(t)=3\lambda^2(1-2\lambda t)^{-5/2} L ′′ ( t ) = 3 λ 2 ( 1 − 2 λ t ) − 5/2 . Whenever σ x 2 ≤ τ \sigma_x^2 \le\tau σ x 2 ≤ τ , the interval between 1 1 1 and σ x 2 \sigma_x^2 σ x 2 lies inside [ 0 , τ ] [0,\tau] [ 0 , τ ] , where 1 − 2 λ t ≥ 1 2 1-2\lambda t \ge\frac{1}{2} 1 − 2 λ t ≥ 2 1 because 4 λ τ ≤ 1 4\lambda\tau\le1 4 λ τ ≤ 1 . Thus L ′ ′ ( t ) ≤ 3 ⋅ 2 5 / 2 λ 2 ≤ 17 λ 2 L''(t) \le3 \cdot2^{5/2}\lambda^2 \le17\lambda^2 L ′′ ( t ) ≤ 3 ⋅ 2 5/2 λ 2 ≤ 17 λ 2 throughout the interval, and Taylor’s theorem with Lagrange remainder around t = 1 t=1 t = 1 gives
L ( σ x 2 ) ≤ L ( 1 ) + L ′ ( 1 ) ( σ x 2 − 1 ) + 8.5 λ 2 ( σ x 2 − 1 ) 2 L(\sigma_x^2) \le L(1)+L'(1)(\sigma_x^2-1)+8.5\lambda^2(\sigma_x^2-1)^2 L ( σ x 2 ) ≤ L ( 1 ) + L ′ ( 1 ) ( σ x 2 − 1 ) + 8.5 λ 2 ( σ x 2 − 1 ) 2
whenever σ x 2 ≤ τ \sigma_x^2 \le\tau σ x 2 ≤ τ .
Multiplying by 1 { σ x 2 ≤ τ } \mathbf{1}\{\sigma_x^2 \le\tau\} 1 { σ x 2 ≤ τ } and taking expectations, the constant term is bounded by L ( 1 ) L(1) L ( 1 ) , the linear term is nonpositive because L ′ ( 1 ) ≥ 0 L'(1) \ge0 L ′ ( 1 ) ≥ 0 and E [ ( σ x 2 − 1 ) 1 { σ x 2 ≤ τ } ] = − E [ ( σ x 2 − 1 ) 1 { σ x 2 > τ } ] ≤ 0 \mathbb{E}[(\sigma_x^2-1)\mathbf{1}\{\sigma_x^2 \le\tau\}]=-\mathbb{E}[(\sigma_x^2-1)\mathbf{1}\{\sigma_x^2 > \tau\}] \le0 E [( σ x 2 − 1 ) 1 { σ x 2 ≤ τ }] = − E [( σ x 2 − 1 ) 1 { σ x 2 > τ }] ≤ 0 (since E σ x 2 = 1 \mathbb{E}\sigma_x^2=1 E σ x 2 = 1 and τ ≥ 1 \tau\ge1 τ ≥ 1 ), and the quadratic term is bounded by 8.5 λ 2 Var ( σ x 2 ) ≤ 8.5 λ 2 V 8.5\lambda^2\operatorname{Var}(\sigma_x^2) \le8.5\lambda^2V 8.5 λ 2 Var ( σ x 2 ) ≤ 8.5 λ 2 V . Using L ( 1 ) ≥ 1 L(1) \ge1 L ( 1 ) ≥ 1 and 1 + y ≤ e y 1+y \le e^y 1 + y ≤ e y , we obtain
E [ L ( σ x 2 ) 1 { σ x 2 ≤ τ } ] ≤ L ( 1 ) + 8.5 λ 2 V ≤ L ( 1 ) e 8.5 λ 2 V . \mathbb{E}[L(\sigma_x^2)\mathbf{1}\{\sigma_x^2 \le\tau\}] \le L(1)+8.5\lambda^2V \le L(1)e^{8.5\lambda^2V}. E [ L ( σ x 2 ) 1 { σ x 2 ≤ τ }] ≤ L ( 1 ) + 8.5 λ 2 V ≤ L ( 1 ) e 8.5 λ 2 V .
Multiplying by e − λ e^{-\lambda} e − λ and taking logarithms bounds the left-hand side of (22) by − λ − 1 2 log ( 1 − 2 λ ) + 8.5 λ 2 V -\lambda-\frac{1}{2}\log(1-2\lambda)+8.5\lambda^2V − λ − 2 1 log ( 1 − 2 λ ) + 8.5 λ 2 V . Finally, since 2 λ ≤ 2 λ τ ≤ 1 2 2\lambda\le2\lambda\tau\le\frac{1}{2} 2 λ ≤ 2 λ τ ≤ 2 1 , expanding the logarithm in a power series yields
− λ − 1 2 log ( 1 − 2 λ ) = ∑ p ≥ 2 ( 2 λ ) p 2 p ≤ 1 4 ∑ p ≥ 2 ( 2 λ ) p = λ 2 1 − 2 λ . -\lambda-\frac{1}{2}\log(1-2\lambda)=\sum_{p\ge2}\frac{(2\lambda)^p}{2p}\le\frac{1}{4}\sum_{p\ge2}(2\lambda)^p=\frac{\lambda^2}{1-2\lambda}. − λ − 2 1 log ( 1 − 2 λ ) = p ≥ 2 ∑ 2 p ( 2 λ ) p ≤ 4 1 p ≥ 2 ∑ ( 2 λ ) p = 1 − 2 λ λ 2 .
□
Proof of Theorem 10. (a) As described in § 3.3 , the sparsity requirement on r r r is the maximum of a variance condition and a capture condition. For each x ∈ U x \in\mathcal{U} x ∈ U , let σ x , i 2 = ∥ x ~ S i ∥ 2 \sigma_{x,i}^2=\|\widetilde{x}_{S_i}\|^2 σ x , i 2 = ∥ x S i ∥ 2 denote the energy captured from x x x by row i i i , let T i = ( Φ x ) i 2 T_i=(\Phi x)_i^2 T i = ( Φ x ) i 2 , and let T ‾ : = ℓ − 1 ∥ Φ x ∥ 2 \overline{T}:=\ell^{-1}\|\Phi x\|^2 T := ℓ − 1 ∥Φ x ∥ 2 . By (21) , the pairs ( σ x , i 2 , T i ) (\sigma_{x,i}^2,T_i) ( σ x , i 2 , T i ) for i = 1 , … , ℓ i=1,\ldots,\ell i = 1 , … , ℓ are i.i.d. with the distribution of ( σ x 2 , σ x 2 ξ 2 ) (\sigma_x^2,\sigma_x^2\xi^2) ( σ x 2 , σ x 2 ξ 2 ) .
Variance control. For every x ∈ U x \in\mathcal{U} x ∈ U , the variance condition r ≥ 8 f q k U r \ge8f_qk_{\mathcal{U}} r ≥ 8 f q k U and (21) ensure Var ( σ x 2 ) = f q ( k x − 1 b a l ) / r ≤ f q k U / r ≤ 1 8 \operatorname{Var}(\sigma_x^2)=f_q(k_x-\mathbf{1}_{\mathrm{bal}})/r \le f_qk_{\mathcal{U}}/r \le\frac{1}{8} Var ( σ x 2 ) = f q ( k x − 1 bal ) / r ≤ f q k U / r ≤ 8 1 .
Capture event. Set τ : = 1 + 1 / ε \tau:=1+1/\varepsilon τ := 1 + 1/ ε , and let C \mathcal{C} C denote the event that σ x , i 2 ≤ τ \sigma_{x,i}^2 \le\tau σ x , i 2 ≤ τ holds simultaneously for all i ∈ [ ℓ ] i \in[\ell] i ∈ [ ℓ ] and all x ∈ U x \in\mathcal{U} x ∈ U . If the first branch of the capture condition holds (r ≥ ε n / ( 1 + ε ) r \ge\varepsilon n/(1+\varepsilon) r ≥ ε n / ( 1 + ε ) ), then σ x , i 2 ≤ n / r ≤ τ \sigma_{x,i}^2 \le n/r \le\tau σ x , i 2 ≤ n / r ≤ τ deterministically (Lemma 28(i)), so Pr [ C c ] = 0 \Pr[\mathcal{C}^{c}]=0 Pr [ C c ] = 0 . Otherwise, the second branch r ≥ w U log ( 3 ℓ ∣ U ∣ / δ ) / h ( 1 / ε ) r \ge w_{\mathcal{U}}\log(3\ell|\mathcal{U}|/\delta)/h(1/\varepsilon) r ≥ w U log ( 3 ℓ ∣ U ∣/ δ ) / h ( 1/ ε ) holds; applying Bennett’s upper-tail bound (Lemma 28(iii) with t = 1 / ε t=1/\varepsilon t = 1/ ε ) and w x ≤ w U w_x \le w_{\mathcal{U}} w x ≤ w U gives
Pr [ σ x , i 2 > τ ] ≤ exp { − ( r / w U ) h ( 1 / ε ) } ≤ δ 3 ℓ ∣ U ∣ \Pr[\sigma_{x,i}^2>\tau]\le\exp\{-(r/w_{\mathcal{U}})h(1/\varepsilon)\}\le\frac{\delta}{3\ell|\mathcal{U}|} Pr [ σ x , i 2 > τ ] ≤ exp { − ( r / w U ) h ( 1/ ε )} ≤ 3 ℓ ∣ U ∣ δ
for each of the ℓ ∣ U ∣ \ell|\mathcal{U}| ℓ ∣ U ∣ pairs ( i , x ) (i,x) ( i , x ) , so a union bound yields Pr [ C c ] ≤ δ / 3 \Pr[\mathcal{C}^c]\le\delta/3 Pr [ C c ] ≤ δ /3 . (Note that truncating at τ = 1 + 1 / ε \tau=1+1/\varepsilon τ = 1 + 1/ ε , where h ( 1 / ε ) = Θ ( ε − 1 log ( 1 + 1 / ε ) ) h(1/\varepsilon)=\Theta(\varepsilon^{-1}\log(1+1/\varepsilon)) h ( 1/ ε ) = Θ ( ε − 1 log ( 1 + 1/ ε )) , rather than at a constant threshold τ = 2 \tau=2 τ = 2 is precisely where Theorem 7 saves a logarithmic factor over Theorem 5 .)
Upper tail. Fix x ∈ U x \in\mathcal{U} x ∈ U and set λ : = ε / 8 \lambda:=\varepsilon/8 λ := ε /8 . Since 4 λ τ = ( 1 + ε ) / 2 ≤ 1 4\lambda\tau=(1+\varepsilon)/2\le1 4 λ τ = ( 1 + ε ) /2 ≤ 1 , Lemma 31 applies with V = 1 8 V=\frac{1}{8} V = 8 1 (giving 8.5 λ 2 V = 17 16 λ 2 8.5\lambda^2V=\frac{17}{16}\lambda^2 8.5 λ 2 V = 16 17 λ 2 ). Because 1 { σ x , i 2 ≤ τ } = 1 \mathbf{1}\{\sigma_{x,i}^2\le\tau\}=1 1 { σ x , i 2 ≤ τ } = 1 for all i i i on C \mathcal{C} C , applying Markov’s inequality to ∏ i = 1 ℓ e λ ( T i − 1 ) 1 { σ x , i 2 ≤ τ } \prod_{i=1}^{\ell}e^{\lambda(T_i-1)}\mathbf{1}\{\sigma_{x,i}^2\le\tau\} ∏ i = 1 ℓ e λ ( T i − 1 ) 1 { σ x , i 2 ≤ τ } and using row independence and (22) yields
Pr [ { T ‾ ≥ 1 + ε } ∩ C ] ≤ e − λ ℓ ε ( E [ e λ ( T − 1 ) 1 { σ x 2 ≤ τ } ] ) ℓ ≤ exp { − ℓ ( λ ε − λ 2 1 − 2 λ − 17 16 λ 2 ) } . \Pr\left[\{\overline{T}\ge1+\varepsilon\}\cap\mathcal{C}\right]\le e^{-\lambda\ell\varepsilon}\left(\mathbb{E}[e^{\lambda(T-1)}\mathbf{1}\{\sigma_x^2\le\tau\}]\right)^\ell\le\exp\left\{-\ell\left(\lambda\varepsilon-\frac{\lambda^2}{1-2\lambda}-\frac{17}{16}\lambda^2\right)\right\}. Pr [ { T ≥ 1 + ε } ∩ C ] ≤ e − λ ℓ ε ( E [ e λ ( T − 1 ) 1 { σ x 2 ≤ τ }] ) ℓ ≤ exp { − ℓ ( λ ε − 1 − 2 λ λ 2 − 16 17 λ 2 ) } .
Since λ ≤ 1 8 \lambda\le\frac{1}{8} λ ≤ 8 1 , we have ( 1 − 2 λ ) − 1 ≤ 4 3 (1-2\lambda)^{-1}\le\frac{4}{3} ( 1 − 2 λ ) − 1 ≤ 3 4 and 4 3 + 17 16 < 2.4 \frac{4}{3}+\frac{17}{16}<2.4 3 4 + 16 17 < 2.4 , so the quantity in parentheses is at least λ ε − 2.4 λ 2 = ( 1 8 − 2.4 64 ) ε 2 = 0.0875 ε 2 ≥ ε 2 / 12 \lambda\varepsilon-2.4\lambda^2=\left(\frac{1}{8}-\frac{2.4}{64}\right)\varepsilon^2=0.0875\varepsilon^2\ge\varepsilon^2/12 λ ε − 2.4 λ 2 = ( 8 1 − 64 2.4 ) ε 2 = 0.0875 ε 2 ≥ ε 2 /12 .
Lower tail. Because the variables T i ≥ 0 T_i\ge0 T i ≥ 0 are independent with E T i = 1 \mathbb{E}T_i=1 E T i = 1 and E T i 2 = E σ x 4 E ξ 4 = 3 ( 1 + Var ( σ x 2 ) ) ≤ 27 8 \mathbb{E}T_i^2=\mathbb{E}\sigma_x^4\mathbb{E}\xi^4=3(1+\operatorname{Var}(\sigma_x^2))\le\frac{27}{8} E T i 2 = E σ x 4 E ξ 4 = 3 ( 1 + Var ( σ x 2 )) ≤ 8 27 , Maurer’s inequality (12) applied to ℓ T ‾ \ell\overline{T} ℓ T at deviation ℓ ε \ell\varepsilon ℓ ε gives
Pr [ T ‾ ≤ 1 − ε ] ≤ exp { − ( ℓ ε ) 2 2 ℓ ⋅ 27 / 8 } = e − 4 ℓ ε 2 / 27 ≤ e − ℓ ε 2 / 12 . \Pr[\overline{T}\le1-\varepsilon]\le\exp\left\{-\frac{(\ell\varepsilon)^2}{2\ell\cdot27/8}\right\}=e^{-4\ell\varepsilon^2/27}\le e^{-\ell\varepsilon^2/12}. Pr [ T ≤ 1 − ε ] ≤ exp { − 2 ℓ ⋅ 27/8 ( ℓ ε ) 2 } = e − 4 ℓ ε 2 /27 ≤ e − ℓ ε 2 /12 .
Union bound. The sketch-length condition ℓ ≥ 12 ε − 2 log ( 3 ∣ U ∣ / δ ) \ell\ge12\varepsilon^{-2}\log(3|\mathcal{U}|/\delta) ℓ ≥ 12 ε − 2 log ( 3∣ U ∣/ δ ) ensures e − ℓ ε 2 / 12 ≤ δ / ( 3 ∣ U ∣ ) e^{-\ell\varepsilon^2/12}\le\delta/(3|\mathcal{U}|) e − ℓ ε 2 /12 ≤ δ / ( 3∣ U ∣ ) . Summing over the $2|\mathcal{U}|$ upper- and lower-tail events (contributing at most 2 δ / 3 2\delta/3 2 δ /3 ) and adding Pr [ C c ] ≤ δ / 3 \Pr[\mathcal{C}^c]\le\delta/3 Pr [ C c ] ≤ δ /3 bounds the total failure probability by $\delta.
(b) By Proposition 30, the row products X i Y i X_iY_i X i Y i of each pair are i.i.d. with mean ρ \rho ρ and variance at most σ ∗ 2 \sigma_*^2 σ ∗ 2 , so the claim follows immediately from the deviation form of Lemma 24 . The final sentence follows from k u v ≤ w u k_{uv} \leq w_u k uv ≤ w u (4) , ρ 2 ≤ 1 \rho^2 \leq1 ρ 2 ≤ 1 , and f q ≤ 1 f_q \leq1 f q ≤ 1 .
Proof of Corollary 11 . (i) Abbreviate μ 1 : = μ ( 2 ∣ U ∣ ) = 2 log ( 8 n ∣ U ∣ / δ ) \mu_1 := \mu(2|U|) = 2\log(8n|U|/\delta) μ 1 := μ ( 2∣ U ∣ ) = 2 log ( 8 n ∣ U ∣/ δ ) .
Flattening. Applying Lemma 6 with δ 0 = δ / 4 \delta_0 = \delta/4 δ 0 = δ /4 guarantees k U ≤ w U ≤ 2 log ( 8 n ∣ U ∣ / δ ) = μ 1 k_U \leq w_U \leq2\log(8n|U|/\delta) = \mu_1 k U ≤ w U ≤ 2 log ( 8 n ∣ U ∣/ δ ) = μ 1 with probability at least 1 − δ / 4 1-\delta/4 1 − δ /4 over D D D . Fix any D D D in this event.
Conditional bound. We invoke Theorem 10 (a) with failure budget 3 δ / 4 3\delta/4 3 δ /4 (so that the overall failure probability is at most δ / 4 + 3 δ / 4 = δ \delta/4+3\delta/4=\delta δ /4 + 3 δ /4 = δ ). Its logarithmic factors become log ( 4 ∣ U ∣ / δ ) \log(4|U|/\delta) log ( 4∣ U ∣/ δ ) and log ( 4 ℓ ∣ U ∣ / δ ) \log(4\ell|U|/\delta) log ( 4 ℓ ∣ U ∣/ δ ) , matching our condition on ℓ \ell ℓ . Its variance condition r ≥ 8 f q k U r \geq8f_qk_U r ≥ 8 f q k U holds because r ≥ min { n , 8 μ 1 } r \geq\min\{n,8\mu_1\} r ≥ min { n , 8 μ 1 } implies either r = n r=n r = n (where f q = 0 f_q=0 f q = 0 ) or r ≥ 8 μ 1 ≥ 8 f q k U r\geq8\mu_1\geq8f_qk_U r ≥ 8 μ 1 ≥ 8 f q k U . Its capture condition holds via its first branch if r ≥ ε n / ( 1 + ε ) r\geq\varepsilon n/(1+\varepsilon) r ≥ ε n / ( 1 + ε ) , and otherwise follows from w U ≤ μ 1 w_U\leq\mu_1 w U ≤ μ 1 and the elementary bound h ( t ) ≥ t 2 log ( 1 + t ) h(t)\geq\frac{t}{2}\log(1+t) h ( t ) ≥ 2 t log ( 1 + t ) at t = 1 / ε t=1/\varepsilon t = 1/ ε :
r ≥ 2 ε μ 1 log ( 4 ℓ ∣ U ∣ / δ ) log ( 1 + 1 / ε ) ≥ w U log ( 4 ℓ ∣ U ∣ / δ ) h ( 1 / ε ) . r \geq\frac{2\varepsilon\mu_1\log(4\ell|U|/\delta)}{\log(1+1/\varepsilon)} \geq\frac{w_U\log(4\ell|U|/\delta)}{h(1/\varepsilon)}. r ≥ log ( 1 + 1/ ε ) 2 ε μ 1 log ( 4 ℓ ∣ U ∣/ δ ) ≥ h ( 1/ ε ) w U log ( 4 ℓ ∣ U ∣/ δ ) .
(To verify h ( t ) ≥ t 2 log ( 1 + t ) h(t)\geq\frac{t}{2}\log(1+t) h ( t ) ≥ 2 t log ( 1 + t ) for t ≥ 0 t\geq0 t ≥ 0 , note that both sides vanish at t = 0 t=0 t = 0 and their difference has derivative 1 2 log ( 1 + t ) − t 2 ( 1 + t ) ≥ 0 \frac{1}{2}\log(1+t)-\frac{t}{2(1+t)}\geq0 2 1 log ( 1 + t ) − 2 ( 1 + t ) t ≥ 0 .)
Distances and inner products. To preserve pairwise distances among m m m points, take U U U to be the set of normalized difference vectors ( x − y ) / ∥ x − y ∥ (x-y)/\lVert x-y\rVert ( x − y ) / ∥ x − y ∥ for all distinct unordered pairs (∣ U ∣ < m 2 / 2 |U|<m^2/2 ∣ U ∣ < m 2 /2 ). To preserve inner products of N N N unit-vector pairs, take U U U to be the normalized nonzero vectors among u ± v u\pm v u ± v (∣ U ∣ ≤ 2 N |U|\leq2N ∣ U ∣ ≤ 2 N ); polarization 4 ( ρ ^ G G − ρ ) = ( ℓ − 1 ∥ Φ ( u + v ) ∥ 2 − ∥ u + v ∥ 2 ) − ( ℓ − 1 ∥ Φ ( u − v ) ∥ 2 − ∥ u − v ∥ 2 ) 4(\widehat{\rho}_{GG}-\rho)=(\ell^{-1}\lVert\Phi(u+v)\rVert^2-\lVert u+v\rVert^2)-(\ell^{-1}\lVert\Phi(u-v)\rVert^2-\lVert u-v\rVert^2) 4 ( ρ GG − ρ ) = ( ℓ − 1 ∥ Φ ( u + v ) ∥ 2 − ∥ u + v ∥ 2 ) − ( ℓ − 1 ∥ Φ ( u − v ) ∥ 2 − ∥ u − v ∥ 2 ) together with ∥ u + v ∥ 2 + ∥ u − v ∥ 2 = 4 \lVert u+v\rVert^2+\lVert u-v\rVert^2=4 ∥ u + v ∥ 2 + ∥ u − v ∥ 2 = 4 then gives ∣ ρ ^ G G − ρ ∣ ≤ ε |\widehat{\rho}_{GG}-\rho|\leq\varepsilon ∣ ρ GG − ρ ∣ ≤ ε .
(ii) Flattening and Catoni’s decoder. Applying Lemma 6 with δ 0 = δ / 2 \delta_0=\delta/2 δ 0 = δ /2 to the m m m fixed database vectors ensures w u ≤ 2 log ( 4 n m / δ ) = μ ( m ) w_u\leq2\log(4nm/\delta)=\mu(m) w u ≤ 2 log ( 4 nm / δ ) = μ ( m ) simultaneously for all stored vectors with probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 over D D D (since the bound uses only w u w_u w u , the queries v v v may depend on D D D ). On this event, Proposition 30 and k u v ≤ w u k_{uv}\leq w_u k uv ≤ w u bound the row-product variance of every pair by 2 + 3 f q w u / r ≤ 3 2+3f_qw_u/r\leq3 2 + 3 f q w u / r ≤ 3 (as either r = n r=n r = n and f q = 0 f_q=0 f q = 0 , or r ≥ 3 μ ( m ) ≥ 3 w u r\geq3\mu(m)\geq3w_u r ≥ 3 μ ( m ) ≥ 3 w u ). Applying Lemma 24 with σ ∗ = 3 \sigma^*=3 σ ∗ = 3 , accuracy ε \varepsilon ε , scale α = ε / ( 3 + ε 2 ) \alpha=\varepsilon/(3+\varepsilon^2) α = ε / ( 3 + ε 2 ) , and failure probability δ / 2 \delta/2 δ /2 requires ℓ ≥ 2 ( 3 + ε 2 ) ε − 2 log ( 4 N / δ ) \ell\geq2(3+\varepsilon^2)\varepsilon^{-2}\log(4N/\delta) ℓ ≥ 2 ( 3 + ε 2 ) ε − 2 log ( 4 N / δ ) , which is satisfied since 2 ( 3 + ε 2 ) ≤ 8 2(3+\varepsilon^2)\leq8 2 ( 3 + ε 2 ) ≤ 8 .
Encoding complexity. Set L U : = log ( 4 ∣ U ∣ / δ ) L_U:=\log(4|U|/\delta) L U := log ( 4∣ U ∣/ δ ) . Because rounding ℓ \ell ℓ up to an integer adds at most 1 < ε − 2 log 4 1<\varepsilon^{-2}\log4 1 < ε − 2 log 4 , the minimum allowed sketch length satisfies ℓ ≤ 13 ε − 2 L U \ell\leq13\varepsilon^{-2}L_U ℓ ≤ 13 ε − 2 L U in (i) and ℓ ≤ 9 ε − 2 log ( 4 N / δ ) \ell\leq9\varepsilon^{-2}\log(4N/\delta) ℓ ≤ 9 ε − 2 log ( 4 N / δ ) in (ii), while in (ii) the minimum sparsity satisfies r ≤ 1 + 3 μ ( m ) r\leq1+3\mu(m) r ≤ 1 + 3 μ ( m ) . In (i), evaluating the second capture branch at ℓ ≤ 13 ε − 2 L U \ell\leq13\varepsilon^{-2}L_U ℓ ≤ 13 ε − 2 L U gives
log 4 ℓ ∣ U ∣ δ = L U + log ℓ ≤ L U + log 13 + 2 log 1 ε + log L U ≤ 2 μ 1 + 2 log 1 ε , \log\frac{4\ell|U|}{\delta}=L_U+\log\ell\leq L_U+\log13+2\log\frac{1}{\varepsilon}+\log L_U\leq2\mu_1+2\log\frac{1}{\varepsilon}, log δ 4 ℓ ∣ U ∣ = L U + log ℓ ≤ L U + log 13 + 2 log ε 1 + log L U ≤ 2 μ 1 + 2 log ε 1 ,
2 ε μ 1 log ( 4 ℓ ∣ U ∣ / δ ) log ( 1 + 1 / ε ) ≤ 4 ε μ 1 log ( 1 / ε ) log ( 1 + 1 / ε ) + 4 ε μ 1 2 log ( 1 + 1 / ε ) ≤ 4 ε μ 1 + 8 ε μ 1 2 log ( 2 / ε ) , \frac{2\varepsilon\mu_1\log(4\ell|U|/\delta)}{\log(1+1/\varepsilon)}
\leq\frac{4\varepsilon\mu_1\log(1/\varepsilon)}{\log(1+1/\varepsilon)}
+\frac{4\varepsilon\mu_1^2}{\log(1+1/\varepsilon)}
\leq4\varepsilon\mu_1+\frac{8\varepsilon\mu_1^2}{\log(2/\varepsilon)}, log ( 1 + 1/ ε ) 2 ε μ 1 log ( 4 ℓ ∣ U ∣/ δ ) ≤ log ( 1 + 1/ ε ) 4 ε μ 1 log ( 1/ ε ) + log ( 1 + 1/ ε ) 4 ε μ 1 2 ≤ 4 ε μ 1 + log ( 2/ ε ) 8 ε μ 1 2 ,
where the first line uses log L U ≤ L U \log L_U\leq L_U log L U ≤ L U , 2 L U ≤ μ 1 2L_U\leq\mu_1 2 L U ≤ μ 1 , and log 13 ≤ μ 1 \log13\leq\mu_1 log 13 ≤ μ 1 , and the second line uses log ( 1 / ε ) ≤ log ( 1 + 1 / ε ) \log(1/\varepsilon)\leq\log(1+1/\varepsilon) log ( 1/ ε ) ≤ log ( 1 + 1/ ε ) and log ( 1 + 1 / ε ) ≥ 1 2 log ( 2 / ε ) \log(1+1/\varepsilon)\geq\frac{1}{2}\log(2/\varepsilon) log ( 1 + 1/ ε ) ≥ 2 1 log ( 2/ ε ) (since ( 1 + 1 / ε ) 2 ≥ 2 / ε (1+1/\varepsilon)^2\geq2/\varepsilon ( 1 + 1/ ε ) 2 ≥ 2/ ε for ε ≤ 1 \varepsilon\leq1 ε ≤ 1 ). Thus the smallest integer r r r in (i) is at most 1 + max { 8 μ 1 , 4 ε μ 1 + 8 ε μ 1 2 / log ( 2 / ε ) } ≤ 1 + 12 μ 1 max { 1 , ε μ 1 / log ( 2 / ε ) } 1+\max\{8\mu_1,4\varepsilon\mu_1+8\varepsilon\mu_1^2/\log(2/\varepsilon)\}\leq1+12\mu_1\max\{1,\varepsilon\mu_1/\log(2/\varepsilon)\} 1 + max { 8 μ 1 , 4 ε μ 1 + 8 ε μ 1 2 / log ( 2/ ε )} ≤ 1 + 12 μ 1 max { 1 , ε μ 1 / log ( 2/ ε )} , and multiplying by ℓ \ell ℓ yields the stated operation counts.
Scale-free robust estimation of squared distances. While Corollary 11 (ii) estimates inner products of unit vectors at ε \varepsilon ε -independent sparsity r = 3 μ ( m ) = O ( log ( n m / δ ) ) r=3\mu(m)=O(\log(nm/\delta)) r = 3 μ ( m ) = O ( log ( nm / δ )) , extending Catoni’s estimator to unnormalized pairwise squared distances ∥ d ∥ 2 = ∥ x − y ∥ 2 \lVert d\rVert^2=\lVert x-y\rVert^2 ∥ d ∥ 2 = ∥ x − y ∥ 2 faces a scaling obstacle: the squared projections ( Φ d ) i 2 (\Phi d)_i^2 ( Φ d ) i 2 have mean ∥ d ∥ 2 \lVert d\rVert^2 ∥ d ∥ 2 and standard deviation Θ ( ∥ d ∥ 2 ) \Theta(\lVert d\rVert^2) Θ (∥ d ∥ 2 ) , so the optimal scale parameter α \alpha α in (2) would need to scale as ε / ∥ d ∥ 2 \varepsilon/\lVert d\rVert^2 ε / ∥ d ∥ 2 , which depends on the very distance we wish to estimate. We overcome this obstacle by normalizing each squared projection by the candidate value c > 0 c>0 c > 0 inside the influence function. Specifically, for α > 0 \alpha>0 α > 0 and any d ∈ R n d\in\mathbb{R}^n d ∈ R n with d ≠ 0 d\ne0 d = 0 , consider the root-finding equation
∑ i = 1 ℓ ψ ( α { ( Φ d ) i 2 c − 1 } ) = 0 (23) \sum_{i=1}^{\ell}\psi\left(\alpha\left\{\frac{(\Phi d)_i^2}{c}-1\right\}\right)=0 \tag*{(23)} i = 1 ∑ ℓ ψ ( α { c ( Φ d ) i 2 − 1 } ) = 0 (23)
in c > 0 c>0 c > 0 , where ψ \psi ψ is Catoni’s influence function (2) . Because the left-hand side is continuous and strictly decreasing in c c c —ranging from + ∞ +\infty + ∞ as c ↓ 0 c\downarrow0 c ↓ 0 to ℓ ψ ( − α ) < 0 \ell\psi(-\alpha)<0 ℓ ψ ( − α ) < 0 as c → ∞ c\to\infty c → ∞ —equation (23) admits a unique positive root ∥ d ∥ 2 \lVert d\rVert^2 ∥ d ∥ 2 (readily found by bisection on log c \log c log c ; we set ∥ d ^ ∥ 2 : = 0 \lVert\widehat{d}\rVert^2 := 0 ∥ d ∥ 2 := 0 if Φ d = 0 \Phi d = 0 Φ d = 0 ). We call ∥ d ^ ∥ 2 \lVert\widehat{d}\rVert^2 ∥ d ∥ 2 the self-normalized Catoni estimate of ∥ d ∥ 2 \lVert d\rVert^2 ∥ d ∥ 2 . Notice that for d = x − y d=x-y d = x − y , the estimator depends only on the linear sketches Φ x \Phi x Φ x and Φ y \Phi y Φ y , and replacing d d d by t d td t d scales ∥ d ^ ∥ 2 \lVert\widehat{d}\rVert^2 ∥ d ∥ 2 by t 2 t^2 t 2 , allowing a single universal parameter α \alpha α to work simultaneously across all distance scales.
Theorem 32 (GG squared distances). Use either support law, and let δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) .
(a) Realized preconditioner. Fix any D D D . Let B B B be an admissible finite set of nonzero vectors, set k B : = max d ∈ B k d / ∥ d ∥ k_B:=\max_{d\in B} k_d/\lVert d\rVert k B := max d ∈ B k d / ∥ d ∥ , and let σ ∗ 2 ≥ 2 + 3 f q k B / r \sigma_*^2\ge2+3f_qk_B/r σ ∗ 2 ≥ 2 + 3 f q k B / r . If
α = ε ( 1 − ε 2 ) σ ∗ 2 + ε 2 and ℓ ≥ 2 ( σ ∗ 2 + ε 2 ) ε 2 ( 1 − ε 2 ) log 2 ∣ B ∣ δ , \alpha=\frac{\varepsilon(1-\varepsilon^2)}{\sigma_*^2+\varepsilon^2}
\qquad\text{and}\qquad
\ell\ge\frac{2(\sigma_*^2+\varepsilon^2)}{\varepsilon^2(1-\varepsilon^2)}\log\frac{2|B|}{\delta}, α = σ ∗ 2 + ε 2 ε ( 1 − ε 2 ) and ℓ ≥ ε 2 ( 1 − ε 2 ) 2 ( σ ∗ 2 + ε 2 ) log δ 2∣ B ∣ , then with probability at least 1 − δ 1-\delta 1 − δ over P P P , the self-normalized Catoni estimate of (23) satisfies
∥ d ^ ∥ 2 − ∥ d ∥ 2 ≤ ε ∥ d ∥ 2 for all d ∈ B . \lVert\widehat{d}\rVert^2-\lVert d\rVert^2\le\varepsilon\lVert d\rVert^2\quad\text{for all }d\in B. ∥ d ∥ 2 − ∥ d ∥ 2 ≤ ε ∥ d ∥ 2 for all d ∈ B . (b) Classical form. Let m m m points be fixed independently of ( D , P ) (D,P) ( D , P ) , let ε ≤ 1 2 \varepsilon\le\frac12 ε ≤ 2 1 , and recall μ ( m 2 / 2 ) = 2 log ( 2 n m 2 / δ ) \mu(m^2/2)=2\log(2nm^2/\delta) μ ( m 2 /2 ) = 2 log ( 2 n m 2 / δ ) from (3) . If
r ≥ min { n , 3 μ ( m 2 / 2 ) } , ℓ ≥ 9 ε 2 log 2 m 2 δ and α = ε ( 1 − ε 2 ) 3 + ε 2 , r\ge\min\{n,3\mu(m^2/2)\},\qquad
\ell\ge\frac{9}{\varepsilon^2}\log\frac{2m^2}{\delta}
\qquad\text{and}\qquad
\alpha=\frac{\varepsilon(1-\varepsilon^2)}{3+\varepsilon^2}, r ≥ min { n , 3 μ ( m 2 /2 )} , ℓ ≥ ε 2 9 log δ 2 m 2 and α = 3 + ε 2 ε ( 1 − ε 2 ) , *then with probability at least 1 − δ 1-\delta 1 − δ , we have ∥ x − y ^ ∥ 2 − ∥ x − y ∥ 2 ≤ ε ∥ x − y ∥ 2 \lVert\widehat{x-y}\rVert^2-\lVert x-y\rVert^2\le\varepsilon\lVert x-y\rVert^2 ∥ x − y ∥ 2 − ∥ x − y ∥ 2 ≤ ε ∥ x − y ∥ 2 for all pairs of points x , y x,y x , y .
Comparing part (a) with Lemma 24 shows that self-normalization increases the required sketch length only by the factor ( 1 − ε 2 ) − 1 = 1 + O ( ε 2 ) (1-\varepsilon^2)^{-1}=1+O(\varepsilon^2) ( 1 − ε 2 ) − 1 = 1 + O ( ε 2 ) , while the row sparsity r r r enters solely through the variance bound σ ∗ 2 \sigma_*^2 σ ∗ 2 . (In part (b), the restriction ε ≤ 1 2 \varepsilon\le\frac12 ε ≤ 2 1 is used only to simplify 2 ( 3 + ε 2 ) / ( 1 − ε 2 ) < 26 3 < 9 2(3+\varepsilon^2)/(1-\varepsilon^2)<\frac{26}{3}<9 2 ( 3 + ε 2 ) / ( 1 − ε 2 ) < 3 26 < 9 ; for 1 2 < ε < 1 \frac12<\varepsilon<1 2 1 < ε < 1 , the same sparsity r ≥ min { n , 3 μ ( m 2 / 2 ) } r\ge\min\{n,3\mu(m^2/2)\} r ≥ min { n , 3 μ ( m 2 /2 )} suffices with ℓ ≥ 2 ( 3 + ε 2 ) ε − 2 ( 1 − ε 2 ) − 1 log ( 2 m 2 / δ ) \ell\ge2(3+\varepsilon^2)\varepsilon^{-2}(1-\varepsilon^2)^{-1}\log(2m^2/\delta) ℓ ≥ 2 ( 3 + ε 2 ) ε − 2 ( 1 − ε 2 ) − 1 log ( 2 m 2 / δ ) .) In particular, for dense rows (f q = 0 f_q=0 f q = 0 , σ ∗ 2 = 2 \sigma_*^2=2 σ ∗ 2 = 2 ), part (a) requires ℓ ≥ ( 4 + O ( ε 2 ) ) ε − 2 log ( 2 ∣ B ∣ / δ ) \ell\ge(4+O(\varepsilon^2))\varepsilon^{-2}\log(2|B|/\delta) ℓ ≥ ( 4 + O ( ε 2 )) ε − 2 log ( 2∣ B ∣/ δ ) , matching the optimal leading constant 4 4 4 of Theorem 1 .
Proof of Theorem 32. (a) Fix d ∈ B d\in B d ∈ B , and set T i : = ( Φ d ) i 2 / ∥ d ∥ 2 T_i:=(\Phi d)_i^2/\lVert d\rVert^2 T i := ( Φ d ) i 2 / ∥ d ∥ 2 and τ ^ : = ∥ d ^ ∥ 2 / ∥ d ∥ 2 \widehat{\tau}:=\lVert\widehat{d}\rVert^2/\lVert d\rVert^2 τ := ∥ d ∥ 2 / ∥ d ∥ 2 , so that our goal is to prove ∣ τ ^ − 1 ∣ ≤ ε |\widehat{\tau}-1|\le\varepsilon ∣ τ − 1∣ ≤ ε . By (21) and Proposition 30 applied to the unit vector x : = d / ∥ d ∥ x:=d/\lVert d\rVert x := d / ∥ d ∥ , the variables T i T_i T i are i.i.d. with mean E T i = 1 \mathbb{E}T_i=1 E T i = 1 and variance Var T i = 2 + 3 Var ( σ x 2 ) ≤ 2 + 3 f q k B / r ≤ σ ∗ 2 \operatorname{Var}T_i=2+3\operatorname{Var}(\sigma_x^2)\le2+3f_qk_B/r\le\sigma_*^2 Var T i = 2 + 3 Var ( σ x 2 ) ≤ 2 + 3 f q k B / r ≤ σ ∗ 2 . Setting c = τ ∥ d ∥ 2 c=\tau\lVert d\rVert^2 c = τ ∥ d ∥ 2 rewrites the left-hand side of (23) as Ψ ( τ ) : = ∑ i = 1 ℓ ψ ( ( α / τ ) ( T i − τ ) ) \Psi(\tau):=\sum_{i=1}^{\ell}\psi((\alpha/\tau)(T_i-\tau)) Ψ ( τ ) := ∑ i = 1 ℓ ψ (( α / τ ) ( T i − τ )) for τ > 0 \tau>0 τ > 0 . Because Ψ \Psi Ψ is strictly decreasing with unique root τ ^ \widehat{\tau} τ whenever Φ d ≠ 0 \Phi d\ne0 Φ d = 0 (and τ ^ = 0 \widehat{\tau}=0 τ = 0 , Ψ ( τ ) = ℓ ψ ( − α ) < 0 \Psi(\tau)=\ell\psi(-\alpha)<0 Ψ ( τ ) = ℓ ψ ( − α ) < 0 when Φ d = 0 \Phi d=0 Φ d = 0 ), we have the exact equivalence of events
{ τ ^ > 1 + ε } = { Ψ ( 1 + ε ) > 0 } and { τ ^ < 1 − ε } = { Ψ ( 1 − ε ) < 0 } . \{\widehat{\tau}>1+\varepsilon\}=\{\Psi(1+\varepsilon)>0\}
\qquad\text{and}\qquad
\{\widehat{\tau}<1-\varepsilon\}=\{\Psi(1-\varepsilon)<0\}. { τ > 1 + ε } = { Ψ ( 1 + ε ) > 0 } and { τ < 1 − ε } = { Ψ ( 1 − ε ) < 0 } .
Notice that at τ = 1 ± ε \tau=1\pm\varepsilon τ = 1 ± ε , the sum Ψ ( 1 ± ε ) \Psi(1\pm\varepsilon) Ψ ( 1 ± ε ) is identical to the standard Catoni sum in (2) evaluated on the unit-mean samples T i T_i T i at the shifted scale parameter α ± : = α / ( 1 ± ε ) = ε ( 1 ∓ ε ) / ( σ ∗ 2 + ε 2 ) \alpha_\pm:=\alpha/(1\pm\varepsilon)=\varepsilon(1\mp\varepsilon)/(\sigma_*^2+\varepsilon^2) α ± := α / ( 1 ± ε ) = ε ( 1 ∓ ε ) / ( σ ∗ 2 + ε 2 ) . Applying (17) to W = T i W=T_i W = T i (with c 0 = 1 c_0=1 c 0 = 1 and variance at most σ ∗ 2 \sigma_*^2 σ ∗ 2 ) using the + + + sign and scale α + \alpha_+ α + at c = 1 + ε c=1+\varepsilon c = 1 + ε (so c 0 − c = − ε c_0-c=-\varepsilon c 0 − c = − ε ), Markov's inequality and row independence yield
Pr [ τ ^ > 1 + ε ] ≤ E e Ψ ( 1 + ε ) = ∏ i = 1 ℓ E e ψ ( α + ( T i − 1 − ε ) ) ≤ exp { − ℓ ( α + ε − α + 2 2 ( σ ∗ 2 + ε 2 ) ) } . \Pr[\widehat{\tau}>1+\varepsilon]\le\mathbb{E}e^{\Psi(1+\varepsilon)}
=\prod_{i=1}^{\ell}\mathbb{E}e^{\psi(\alpha_+(T_i-1-\varepsilon))}
\le\exp\left\{-\ell\left(\alpha_+\varepsilon-\frac{\alpha_+^2}{2}(\sigma_*^2+\varepsilon^2)\right)\right\}. Pr [ τ > 1 + ε ] ≤ E e Ψ ( 1 + ε ) = i = 1 ∏ ℓ E e ψ ( α + ( T i − 1 − ε )) ≤ exp { − ℓ ( α + ε − 2 α + 2 ( σ ∗ 2 + ε 2 ) ) } .
Likewise, applying (17) with the − - − sign and scale α − \alpha_- α − at c = 1 − ε c=1-\varepsilon c = 1 − ε bounds Pr [ τ ^ < 1 − ε ] ≤ E e − Ψ ( 1 − ε ) \Pr[\widehat{\tau}<1-\varepsilon]\le\mathbb{E}e^{-\Psi(1-\varepsilon)} Pr [ τ < 1 − ε ] ≤ E e − Ψ ( 1 − ε ) by the same expression with α − \alpha_- α − in place of α + \alpha_+ α + . Remarkably, the two exponents are identical:
α ± ε − α ± 2 2 ( σ ∗ 2 + ε 2 ) = ε 2 σ ∗ 2 + ε 2 ( 1 ∓ ε ) ( 1 − 1 ∓ ε 2 ) = ε 2 ( 1 − ε 2 ) 2 ( σ ∗ 2 + ε 2 ) . \alpha_\pm\varepsilon-\frac{\alpha_\pm^2}{2}(\sigma_*^2+\varepsilon^2)
=\frac{\varepsilon^2}{\sigma_*^2+\varepsilon^2}(1\mp\varepsilon)\left(1-\frac{1\mp\varepsilon}{2}\right)
=\frac{\varepsilon^2(1-\varepsilon^2)}{2(\sigma_*^2+\varepsilon^2)}. α ± ε − 2 α ± 2 ( σ ∗ 2 + ε 2 ) = σ ∗ 2 + ε 2 ε 2 ( 1 ∓ ε ) ( 1 − 2 1 ∓ ε ) = 2 ( σ ∗ 2 + ε 2 ) ε 2 ( 1 − ε 2 ) .
The condition on ℓ \ell ℓ ensures that each tail has probability at most δ / ( 2 ∣ B ∣ ) \delta/(2|B|) δ / ( 2∣ B ∣ ) , and a union bound over all 2 ∣ B ∣ 2|B| 2∣ B ∣ tails proves (a).
(b) Let B B B be the set of nonzero difference vectors x − y x-y x − y across all unordered pairs (∣ B ∣ ≤ m 2 / 2 |B|\le m^2/2 ∣ B ∣ ≤ m 2 /2 ; pairs with x = y x=y x = y have ∥ x − y ^ ∥ 2 = 0 = ∥ x − y ∥ 2 \lVert\widehat{x-y}\rVert^2=0=\lVert x-y\rVert^2 ∥ x − y ∥ 2 = 0 = ∥ x − y ∥ 2 deterministically). Applying Lemma 6 with δ 0 = δ / 2 \delta_0=\delta/2 δ 0 = δ /2 to the normalized vectors in B B B ensures k B ≤ max d ∈ B w d / ∥ d ∥ ≤ 2 log ( 4 n ∣ B ∣ / δ ) ≤ μ ( m 2 / 2 ) k_B\le\max_{d\in B}w_d/\lVert d\rVert\le2\log(4n|B|/\delta)\le\mu(m^2/2) k B ≤ max d ∈ B w d / ∥ d ∥ ≤ 2 log ( 4 n ∣ B ∣/ δ ) ≤ μ ( m 2 /2 ) with probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 over D D D . On this event, 2 + 3 f q k B / r ≤ 3 2+3f_qk_B/r\le3 2 + 3 f q k B / r ≤ 3 , so part (a) applies with σ ∗ 2 = 3 \sigma_*^2=3 σ ∗ 2 = 3 and failure probability δ / 2 \delta/2 δ /2 , requiring ℓ ≥ 2 ( 3 + ε 2 ) ε − 2 ( 1 − ε 2 ) − 1 log ( 4 ∣ B ∣ / δ ) ≤ 9 ε − 2 log ( 2 m 2 / δ ) \ell\ge2(3+\varepsilon^2)\varepsilon^{-2}(1-\varepsilon^2)^{-1}\log(4|B|/\delta)\le9\varepsilon^{-2}\log(2m^2/\delta) ℓ ≥ 2 ( 3 + ε 2 ) ε − 2 ( 1 − ε 2 ) − 1 log ( 4∣ B ∣/ δ ) ≤ 9 ε − 2 log ( 2 m 2 / δ ) for ε ≤ 1 2 \varepsilon\le\frac12 ε ≤ 2 1 .
:::
One bit against full precision (BG)
This section proves our guarantees for the asymmetric estimator BG from § 3.4 , along with Theorem 2 for dense projections. Throughout this section (until the proof of Corollary 15), we condition on a fixed sign matrix D D D and a pair of unit vectors ( u , v ) (u,v) ( u , v ) , let S S S denote the support of a single row, and write E \mathbb{E} E , Var \operatorname{Var} Var , and Pr \Pr Pr for expectations, variances, and probabilities over the draw of P P P . Writing ζ ˉ : = E [ Z ∣ D ] = E ζ S \bar{\zeta}:=\mathbb{E}[Z\mid D]=\mathbb{E}\zeta_S ζ ˉ := E [ Z ∣ D ] = E ζ S for the expected single-row score, the estimation error decomposes into sampling noise plus support bias: ρ ^ B G − ρ = ( ρ ^ B G − ζ ˉ ) + b u v \hat{\rho}_{\mathrm{BG}}-\rho=(\hat{\rho}_{\mathrm{BG}}-\bar{\zeta})+b_{uv} ρ ^ BG − ρ = ( ρ ^ BG − ζ ˉ ) + b uv , where b u v = E ζ S − ρ b_{uv}=\mathbb{E}\zeta_S-\rho b uv = E ζ S − ρ . Lemma 33 characterizes the conditional distribution and moment generating function of a single row score Z Z Z given its support S S S . To bound the support bias b u v = E [ σ u v / σ u ] − ρ b_{uv}=\mathbb{E}[\sigma_{uv}/\sigma_u]-\rho b uv = E [ σ uv / σ u ] − ρ , we derive an exact algebraic identity expressing ζ S − ρ \zeta_S-\rho ζ S − ρ in terms of products of coordinate sampling fluctuations, which we bound via Cauchy–Schwarz on typical supports (σ u 2 ≥ t \sigma_u^2\ge t σ u 2 ≥ t ) and pointwise on the lower tail (σ u 2 < t \sigma_u^2<t σ u 2 < t ) in Proposition 34. To control the sampling noise across rows, Catoni’s decoder requires only the unconditional variance bound Var ( Z ∣ D ) ≤ π / 2 \operatorname{Var}(Z\mid D)\le\pi/2 Var ( Z ∣ D ) ≤ π /2 , whereas the dot-product decoder requires bounding the unconditional moment generating function E [ e λ ( Z − ζ ˉ ) ∣ D ] \mathbb{E}[e^{\lambda(Z-\bar{\zeta})}\mid D] E [ e λ ( Z − ζ ˉ ) ∣ D ] over the random draw of S S S (Proposition 38).
Throughout the analysis, we set η : = σ u 2 − 1 \eta:=\sigma_u^2-1 η := σ u 2 − 1 and ω : = σ u v − ρ σ u 2 = 1 − ρ 2 σ 12 \omega:=\sigma_{uv}-\rho\sigma_u^2=\sqrt{1-\rho^2}\,\sigma_{12} ω := σ uv − ρ σ u 2 = 1 − ρ 2 σ 12 , and use the shorthand E [ W ; A ] : = E [ W 1 A ] \mathbb{E}[W;A]:=\mathbb{E}[W\mathbf{1}_A] E [ W ; A ] := E [ W 1 A ] for any event A A A . For any vector y ∈ R n y\in\mathbb{R}^n y ∈ R n , we refer to T = q − 1 ∑ j ∈ S y j T=q^{-1}\sum_{j\in S}y_j T = q − 1 ∑ j ∈ S y j in Lemma 28 as the captured sum of y y y , whose expectation is ∑ j y j \sum_j y_j ∑ j y j . Because u ~ j = e 1 T c j \tilde{u}_j=e_1^{\mathsf{T}}c_j u ~ j = e 1 T c j and v ~ j = e 2 T c j \tilde{v}_j=e_2^{\mathsf{T}}c_j v ~ j = e 2 T c j , the definition of M S M_S M S in (7) implies that
σ u 2 , σ u v , σ v 2 , ω are the captured sums of u ~ ∘ u ~ , u ~ ∘ v ~ , v ~ ∘ v ~ , u ~ ∘ ( v ~ − ρ u ~ ) , (24) \sigma_u^2,\ \sigma_{uv},\ \sigma_v^2,\ \omega\quad\text{are the captured sums of}\quad\tilde{u}\circ\tilde{u},\ \tilde{u}\circ\tilde{v},\ \tilde{v}\circ\tilde{v},\ \tilde{u}\circ(\tilde{v}-\rho\tilde{u}), \tag*{(24)} σ u 2 , σ uv , σ v 2 , ω are the captured sums of u ~ ∘ u ~ , u ~ ∘ v ~ , v ~ ∘ v ~ , u ~ ∘ ( v ~ − ρ u ~ ) , (24)
with coordinate totals 1 1 1 , ρ \rho ρ , 1 1 1 , and 0 0 0 , respectively. In particular, E ω = 0 \mathbb{E}\omega=0 E ω = 0 , and Lemma 28 applies directly to the captured energies σ u 2 \sigma_u^2 σ u 2 (with x = u x=u x = u ) and σ v 2 \sigma_v^2 σ v 2 (with x = v x=v x = v ).
Lemma 33 (Conditional law of the BG score). Fix D D D and the support S S S of a single row, and adopt the convention sign ( 0 ) = + 1 \operatorname{sign}(0)=+1 sign ( 0 ) = + 1 . Then ∣ ζ S ∣ ≤ σ v |\zeta_S|\le\sigma_v ∣ ζ S ∣ ≤ σ v , E [ Z ∣ S ] = ζ S \mathbb{E}[Z\mid S]=\zeta_S E [ Z ∣ S ] = ζ S , and every λ ∈ R \lambda\in\mathbb{R} λ ∈ R satisfies
E [ e λ Z ∣ S ] = e π λ 2 σ v 2 / 4 2 Φ 0 ( π / 2 λ ζ S ) ≤ e λ ζ S + π λ 2 σ v 2 / 4 , (25) \mathbb{E}[e^{\lambda Z}\mid S]=e^{\pi\lambda^2\sigma_v^2/4}2\Phi_0\left(\sqrt{\pi/2}\,\lambda\zeta_S\right)\le e^{\lambda\zeta_S+\pi\lambda^2\sigma_v^2/4}, \tag*{(25)} E [ e λ Z ∣ S ] = e π λ 2 σ v 2 /4 2 Φ 0 ( π /2 λ ζ S ) ≤ e λ ζ S + π λ 2 σ v 2 /4 , (25) where Φ 0 \Phi_0 Φ 0 denotes the standard normal cumulative distribution function . Furthermore, E [ Z 2 ∣ D ] = π / 2 \mathbb{E}[Z^2\mid D]=\pi/2 E [ Z 2 ∣ D ] = π /2 and Var ( Z ∣ D ) = π / 2 − ( E [ Z ∣ D ] ) 2 \operatorname{Var}(Z\mid D)=\pi/2-(\mathbb{E}[Z\mid D])^2 Var ( Z ∣ D ) = π /2 − ( E [ Z ∣ D ] ) 2 for every realization of $D.
Proof of Lemma 33. Let ξ 1 , ξ 2 \xi_1,\xi_2 ξ 1 , ξ 2 be independent standard normal random variables. By the Gram identity (Lemma 9(iv)), ∣ ζ S ∣ ≤ σ v |\zeta_S|\le\sigma_v ∣ ζ S ∣ ≤ σ v , and σ u v = 0 \sigma_{uv}=0 σ uv = 0 whenever σ u = 0 \sigma_u=0 σ u = 0 . Conditioned on S S S , the projection pair ( X , Y ) (X,Y) ( X , Y ) has the same joint distribution as ( σ u ξ 1 , ζ S ξ 1 + ( σ v 2 − ζ S 2 ) 1 / 2 ξ 2 ) (\sigma_u\xi_1,\ \zeta_S\xi_1+(\sigma_v^2-\zeta_S^2)^{1/2}\xi_2) ( σ u ξ 1 , ζ S ξ 1 + ( σ v 2 − ζ S 2 ) 1/2 ξ 2 ) , since both pairs are centered bivariate normal with variances σ u 2 \sigma_u^2 σ u 2 and σ v 2 \sigma_v^2 σ v 2 and covariance σ u ζ S = σ u v \sigma_u\zeta_S=\sigma_{uv} σ u ζ S = σ uv (Lemma 9(i)). Noting that sign ( σ u ξ 1 ) ξ 1 = ∣ ξ 1 ∣ \operatorname{sign}(\sigma_u\xi_1)\xi_1=|\xi_1| sign ( σ u ξ 1 ) ξ 1 = ∣ ξ 1 ∣ when σ u > 0 \sigma_u>0 σ u > 0 and ζ S = 0 \zeta_S=0 ζ S = 0 when σ u = 0 \sigma_u=0 σ u = 0 , we obtain in both cases the distributional representation
Z = d π / 2 ( ζ S ∣ ξ 1 ∣ + ( σ v 2 − ζ S 2 ) 1 / 2 ξ 2 ′ ) , ξ 2 ′ : = sign ( σ u ξ 1 ) ξ 2 . Z\mathrel{\mathop{=}^{d}}\sqrt{\pi/2}\left(\zeta_S|\xi_1|+(\sigma_v^2-\zeta_S^2)^{1/2}\xi'_2\right),\qquad\xi'_2:=\operatorname{sign}(\sigma_u\xi_1)\xi_2. Z = d π /2 ( ζ S ∣ ξ 1 ∣ + ( σ v 2 − ζ S 2 ) 1/2 ξ 2 ′ ) , ξ 2 ′ := sign ( σ u ξ 1 ) ξ 2 .
Because sign ( σ u ξ 1 ) ∈ { ± 1 } \operatorname{sign}(\sigma_u\xi_1)\in\{\pm1\} sign ( σ u ξ 1 ) ∈ { ± 1 } (by sign ( 0 ) = + 1 \operatorname{sign}(0)=+1 sign ( 0 ) = + 1 ) depends only on ξ 1 \xi_1 ξ 1 , while ξ 2 \xi_2 ξ 2 is symmetric and independent of ξ 1 \xi_1 ξ 1 , the variable ξ 2 ′ \xi'_2 ξ 2 ′ is standard normal and independent of ξ 1 \xi_1 ξ 1 .
Taking expectations using E ∣ ξ 1 ∣ = 2 / π \mathbb{E}|\xi_1|=\sqrt{2/\pi} E ∣ ξ 1 ∣ = 2/ π yields E [ Z ∣ S ] = ζ S \mathbb{E}[Z\mid S]=\zeta_S E [ Z ∣ S ] = ζ S . Similarly, using the independence of ∣ ξ 1 ∣ |\xi_1| ∣ ξ 1 ∣ and ξ 2 ′ \xi'_2 ξ 2 ′ together with the half-normal moment generating function E e t ∣ ξ 1 ∣ = 2 e t 2 / 2 Φ 0 ( t ) \mathbb{E}e^{t|\xi_1|}=2e^{t^2/2}\Phi_0(t) E e t ∣ ξ 1 ∣ = 2 e t 2 /2 Φ 0 ( t ) gives
E [ e λ Z ∣ S ] = E e π / 2 λ ζ S ∣ ξ 1 ∣ E e π / 2 λ ( σ v 2 − ζ S 2 ) 1 / 2 ξ 2 ′ = 2 e π λ 2 ζ S 2 / 4 Φ 0 ( π / 2 λ ζ S ) e π λ 2 ( σ v 2 − ζ S 2 ) / 4 , \mathbb{E}[e^{\lambda Z}\mid S]=\mathbb{E}e^{\sqrt{\pi/2}\lambda\zeta_S|\xi_1|}\mathbb{E}e^{\sqrt{\pi/2}\lambda(\sigma_v^2-\zeta_S^2)^{1/2}\xi'_2}=2e^{\pi\lambda^2\zeta_S^2/4}\Phi_0\left(\sqrt{\pi/2}\lambda\zeta_S\right)e^{\pi\lambda^2(\sigma_v^2-\zeta_S^2)/4}, E [ e λ Z ∣ S ] = E e π /2 λ ζ S ∣ ξ 1 ∣ E e π /2 λ ( σ v 2 − ζ S 2 ) 1/2 ξ 2 ′ = 2 e π λ 2 ζ S 2 /4 Φ 0 ( π /2 λ ζ S ) e π λ 2 ( σ v 2 − ζ S 2 ) /4 ,
establishing the identity in (25) . To deduce the upper bound, observe that log ( 2 Φ 0 ( t ) ) \log(2\Phi_0(t)) log ( 2 Φ 0 ( t )) is concave (by log-concavity of the Gaussian density), vanishes at t = 0 t=0 t = 0 , and has derivative Φ 0 ′ ( 0 ) / Φ 0 ( 0 ) = 2 / π \Phi'_0(0)/\Phi_0(0)=\sqrt{2/\pi} Φ 0 ′ ( 0 ) / Φ 0 ( 0 ) = 2/ π at t = 0 t=0 t = 0 ; it therefore lies below its tangent line, giving 2 Φ 0 ( t ) ≤ e t 2 / π 2\Phi_0(t)\le e^{t\sqrt{2/\pi}} 2 Φ 0 ( t ) ≤ e t 2/ π for all t ∈ R t\in\mathbb{R} t ∈ R . Substituting t = π / 2 λ ζ S t=\sqrt{\pi/2}\,\lambda\zeta_S t = π /2 λ ζ S yields the inequality in (25) .
Finally, because sign ( X ) 2 = 1 \operatorname{sign}(X)^2=1 sign ( X ) 2 = 1 everywhere, we have Z 2 = π 2 Y 2 Z^2=\frac{\pi}{2}Y^2 Z 2 = 2 π Y 2 identically, so Lemma 9(i) and (ii) give E [ Z 2 ∣ D ] = π 2 E σ v 2 = π 2 \mathbb{E}[Z^2\mid D]=\frac{\pi}{2}\mathbb{E}\sigma_v^2=\frac{\pi}{2} E [ Z 2 ∣ D ] = 2 π E σ v 2 = 2 π , from which the variance formula follows. □ \square □
Proof of Theorem 2. A dense Gaussian row Φ = G \Phi=G Φ = G corresponds to the deterministic metric M S = I 2 M_S=I_2 M S = I 2 (σ u 2 = σ v 2 = 1 \sigma_u^2=\sigma_v^2=1 σ u 2 = σ v 2 = 1 and σ u v = ζ S = ρ \sigma_{uv}=\zeta_S=\rho σ uv = ζ S = ρ ) in Lemma 33 for any ambient dimension n n n . Lemma 33 therefore yields E Z i = ρ \mathbb{E}Z_i=\rho E Z i = ρ , E Z i 2 = π / 2 \mathbb{E}Z_i^2=\pi/2 E Z i 2 = π /2 , Var Z i = π / 2 − ρ 2 \operatorname{Var} Z_i=\pi/2-\rho^2 Var Z i = π /2 − ρ 2 , and E e λ ( Z i − ρ ) ≤ e π λ 2 / 4 \mathbb{E}e^{\lambda(Z_i-\rho)}\le e^{\pi\lambda^2/4} E e λ ( Z i − ρ ) ≤ e π λ 2 /4 for all λ ∈ R \lambda\in\mathbb{R} λ ∈ R . For any t > 0 t>0 t > 0 , row independence and Markov’s inequality at λ = 2 t / π \lambda=2t/\pi λ = 2 t / π give Pr [ ± ( ρ ^ B G − ρ ) ≥ t ] ≤ e − ℓ ( λ t − π λ 2 / 4 ) = e − ℓ t 2 / π \Pr[\pm(\widehat{\rho}_{BG}-\rho)\ge t]\le e^{-\ell(\lambda t-\pi\lambda^2/4)}=e^{-\ell t^2/\pi} Pr [ ± ( ρ B G − ρ ) ≥ t ] ≤ e − ℓ ( λ t − π λ 2 /4 ) = e − ℓ t 2 / π . Taking a union bound over all 2 N 2N 2 N one-sided tail events bounds the failure probability by 2 N e − ℓ t 2 / π 2Ne^{-\ell t^2/\pi} 2 N e − ℓ t 2 / π , which equals δ \delta δ at t = π log ( 2 N / δ ) / ℓ t=\sqrt{\pi\log(2N/\delta)/\ell} t = π log ( 2 N / δ ) / ℓ .
Bounding the support bias. Next, we establish the coordinatewise pair certificate for the support bias b u v b_{uv} b uv , from which Proposition 13 will follow by specialization.
Proposition 34 (BG support bias, certificate form). Fix D D D and a pair ( u , v ) (u,v) ( u , v ) under either support law. Set V u : = Var ( σ u 2 ) = f q ( k u − 1 b a l ) / r V_u:=\operatorname{Var}(\sigma_u^2)=f_q(k_u-1_{\mathrm{bal}})/r V u := Var ( σ u 2 ) = f q ( k u − 1 bal ) / r , V u v : = Var ( σ u v − ρ σ u 2 ) = f q q ∥ u ~ ∘ ( v ~ − ρ u ~ ) ∥ 2 V_{uv}:=\operatorname{Var}(\sigma_{uv}-\rho\sigma_u^2)=\frac{f_q}{q}\|\tilde{u}\circ(\tilde{v}-\rho\tilde{u})\|^2 V uv := Var ( σ uv − ρ σ u 2 ) = q f q ∥ u ~ ∘ ( v ~ − ρ u ~ ) ∥ 2 , and p t : = Pr [ σ u 2 < t ] p_t:=\Pr[\sigma_u^2<t] p t := Pr [ σ u 2 < t ] . Then for every threshold t ∈ ( 0 , 1 ) t\in(0,1) t ∈ ( 0 , 1 ) ,
∣ b u v ∣ ≤ ∣ ρ ∣ V u 2 ( 1 + t ) 2 + V u V u v t ( 1 + t ) + ∣ ρ ∣ 2 p t + ( 1 − ρ 2 ) p t . (26) |b_{uv}|\le\frac{|\rho|V_u}{2(1+\sqrt{t})^2}+\frac{\sqrt{V_uV_{uv}}}{\sqrt{t}(1+\sqrt{t})}+\frac{|\rho|}{2}p_t+\sqrt{(1-\rho^2)p_t}. \tag*{(26)} ∣ b uv ∣ ≤ 2 ( 1 + t ) 2 ∣ ρ ∣ V u + t ( 1 + t ) V u V uv + 2 ∣ ρ ∣ p t + ( 1 − ρ 2 ) p t . (26) Here p t ≤ e − ( 1 − t ) 2 r / ( 2 k u ) p_t\le e^{-(1-t)^2r/(2k_u)} p t ≤ e − ( 1 − t ) 2 r / ( 2 k u ) , V u ≤ k u / r ≤ w u / r V_u\le k_u/r\le w_u/r V u ≤ k u / r ≤ w u / r , and V u v ≤ min { ( 1 − ρ 2 ) w u , ( 1 + ∣ ρ ∣ ) 2 f q k u ∨ v } / r V_{uv}\le\min\{(1-\rho^2)w_u,(1+|\rho|)^2f_qk_{u\vee v}\}/r V uv ≤ min {( 1 − ρ 2 ) w u , ( 1 + ∣ ρ ∣ ) 2 f q k u ∨ v } / r .
In (26) , the first two terms bound the bias on the high-probability event { σ u 2 ≥ t } \{\sigma_u^2\ge t\} { σ u 2 ≥ t } , while the last two terms control the lower-tail event { σ u 2 < t } \{\sigma_u^2<t\} { σ u 2 < t } where the denominator σ u \sigma_u σ u of ζ S \zeta_S ζ S becomes small. Notice that as t ↑ 1 t\uparrow1 t ↑ 1 , the prefactors of the first two terms converge to 1 8 \frac18 8 1 and 1 2 \frac12 2 1 , matching the exact second-order Taylor expansion of Remark 35. Replacing p t p_t p t with its Maurer bound e − ( 1 − t ) 2 r / ( 2 k u ) e^{-(1-t)^2r/(2k_u)} e − ( 1 − t ) 2 r / ( 2 k u ) allows (26) to be evaluated in O ( n ) O(n) O ( n ) time from u ~ \tilde{u} u ~ and v ~ \tilde{v} v ~ , and our numerical experiments in § 4 optimize this bound over t ∈ ( 0 , 1 ) t\in(0,1) t ∈ ( 0 , 1 ) .
Proof of Proposition 34. Step 1: Exact bias decomposition. Writing σ u v = ρ σ u 2 + ω \sigma_{uv}=\rho\sigma_u^2+\omega σ uv = ρ σ u 2 + ω gives ζ S − ρ = ρ ( σ u − 1 ) + ω / σ u \zeta_S-\rho=\rho(\sigma_u-1)+\omega/\sigma_u ζ S − ρ = ρ ( σ u − 1 ) + ω / σ u on every support. Because M S ⪰ 0 M_S\succeq0 M S ⪰ 0 , its determinant is nonnegative, so σ 12 2 ≤ σ 1 2 σ 2 2 = σ u 2 σ v 2 \sigma_{12}^2\le\sigma_1^2\sigma_2^2=\sigma_u^2\sigma_v^2 σ 12 2 ≤ σ 1 2 σ 2 2 = σ u 2 σ v 2 and hence ω 2 ≤ ( 1 − ρ 2 ) σ u 2 σ v 2 \omega^2\le(1-\rho^2)\sigma_u^2\sigma_v^2 ω 2 ≤ ( 1 − ρ 2 ) σ u 2 σ v 2 (in particular, ω = 0 \omega=0 ω = 0 whenever σ u = 0 \sigma_u=0 σ u = 0 , consistent with setting ω / σ u : = 0 \omega/\sigma_u:=0 ω / σ u := 0 and ζ S : = 0 \zeta_S:=0 ζ S := 0 there). Observing that ( σ u − 1 ) 2 = ( σ u 2 − 1 ) − 2 ( σ u − 1 ) (\sigma_u-1)^2=(\sigma_u^2-1)-2(\sigma_u-1) ( σ u − 1 ) 2 = ( σ u 2 − 1 ) − 2 ( σ u − 1 ) and E σ u 2 = 1 \mathbb{E}\sigma_u^2=1 E σ u 2 = 1 gives E ( σ u − 1 ) = − 1 2 E ( σ u − 1 ) 2 \mathbb{E}(\sigma_u-1)=-\frac12\mathbb{E}(\sigma_u-1)^2 E ( σ u − 1 ) = − 2 1 E ( σ u − 1 ) 2 , while E ω = 0 \mathbb{E}\omega=0 E ω = 0 gives E [ ω / σ u ] = E [ ω ( σ u − 1 − 1 ) ] \mathbb{E}[\omega/\sigma_u]=\mathbb{E}[\omega(\sigma_u^{-1}-1)] E [ ω / σ u ] = E [ ω ( σ u − 1 − 1 )] . Taking expectations of ζ S − ρ \zeta_S-\rho ζ S − ρ therefore yields the exact identity
b u v = − ρ 2 E ( σ u − 1 ) 2 − E [ ω σ u − 1 σ u ] . (27) b_{uv}=-\frac{\rho}{2}\mathbb{E}(\sigma_u-1)^2-\mathbb{E}\left[\omega\frac{\sigma_u-1}{\sigma_u}\right]. \tag*{(27)} b uv = − 2 ρ E ( σ u − 1 ) 2 − E [ ω σ u σ u − 1 ] . (27)
Step 2: Truncation at { σ u 2 ≥ t } \{\sigma_u^2\ge t\} { σ u 2 ≥ t } . Abbreviate c 1 ( t ) : = 1 / ( 2 ( 1 + t ) 2 ) c_1(t):=1/(2(1+\sqrt{t})^2) c 1 ( t ) := 1/ ( 2 ( 1 + t ) 2 ) and c 2 ( t ) : = 1 / ( t ( 1 + t ) ) c_2(t):=1/(\sqrt{t}(1+\sqrt{t})) c 2 ( t ) := 1/ ( t ( 1 + t )) , and recall that E η 2 = V u \mathbb{E}\eta^2=V_u E η 2 = V u and E ω 2 = V u v \mathbb{E}\omega^2=V_{uv} E ω 2 = V uv . On the event { σ u 2 ≥ t } \{\sigma_u^2\ge t\} { σ u 2 ≥ t } , we have σ u ≥ t \sigma_u\ge\sqrt{t} σ u ≥ t and ∣ σ u − 1 ∣ = ∣ η ∣ / ( 1 + σ u ) ≤ ∣ η ∣ / ( 1 + t ) |\sigma_u-1|=|\eta|/(1+\sigma_u)\le|\eta|/(1+\sqrt{t}) ∣ σ u − 1∣ = ∣ η ∣/ ( 1 + σ u ) ≤ ∣ η ∣/ ( 1 + t ) . On the complementary event { σ u 2 < t } \{\sigma_u^2<t\} { σ u 2 < t } , we have ( σ u − 1 ) 2 ≤ 1 (\sigma_u-1)^2\le1 ( σ u − 1 ) 2 ≤ 1 (since 0 ≤ σ u < 1 0\le\sigma_u<1 0 ≤ σ u < 1 ) and, by Step 1, ∣ ω ∣ ∣ σ u − 1 ∣ / σ u ≤ ∣ ω ∣ / σ u ≤ 1 − ρ 2 σ v |\omega||\sigma_u-1|/\sigma_u\le|\omega|/\sigma_u\le\sqrt{1-\rho^2}\,\sigma_v ∣ ω ∣∣ σ u − 1∣/ σ u ≤ ∣ ω ∣/ σ u ≤ 1 − ρ 2 σ v . Applying the Cauchy–Schwarz inequality in the second and fourth lines below (together with E σ 2 2 = 1 \mathbb{E}\sigma_2^2=1 E σ 2 2 = 1 ) yields
E [ ( σ u − 1 ) 2 ; σ u 2 ≥ t ] ≤ E η 2 ( 1 + t ) 2 = 2 c 1 ( t ) V u , \mathbb{E}\left[(\sigma_u-1)^2;\sigma_u^2\ge t\right]\le\frac{\mathbb{E}\eta^2}{(1+\sqrt{t})^2}=2c_1(t)V_u, E [ ( σ u − 1 ) 2 ; σ u 2 ≥ t ] ≤ ( 1 + t ) 2 E η 2 = 2 c 1 ( t ) V u ,
E [ ∣ ω ∣ ∣ σ u − 1 ∣ σ u ; σ u 2 ≥ t ] ≤ E ∣ ω η ∣ t ( 1 + t ) ≤ c 2 ( t ) V u V u v , \mathbb{E}\left[|\omega|\frac{|\sigma_u-1|}{\sigma_u};\sigma_u^2\ge t\right]\le\frac{\mathbb{E}|\omega\eta|}{\sqrt{t}(1+\sqrt{t})}\le c_2(t)\sqrt{V_uV_{uv}}, E [ ∣ ω ∣ σ u ∣ σ u − 1∣ ; σ u 2 ≥ t ] ≤ t ( 1 + t ) E ∣ ω η ∣ ≤ c 2 ( t ) V u V uv ,
E [ ( σ u − 1 ) 2 ; σ u 2 < t ] ≤ p t , \mathbb{E}\left[(\sigma_u-1)^2;\sigma_u^2<t\right]\le p_t, E [ ( σ u − 1 ) 2 ; σ u 2 < t ] ≤ p t ,
E [ ∣ ω ∣ ∣ σ u − 1 ∣ σ u ; σ u 2 < t ] ≤ 1 − ρ 2 E [ σ v ; σ u 2 < t ] ≤ ( 1 − ρ 2 ) p t . \mathbb{E}\left[|\omega|\frac{|\sigma_u-1|}{\sigma_u};\sigma_u^2<t\right]\le\sqrt{1-\rho^2}\,\mathbb{E}[\sigma_v;\sigma_u^2<t]\le\sqrt{(1-\rho^2)p_t}. E [ ∣ ω ∣ σ u ∣ σ u − 1∣ ; σ u 2 < t ] ≤ 1 − ρ 2 E [ σ v ; σ u 2 < t ] ≤ ( 1 − ρ 2 ) p t .
Combining these four inequalities with (27) establishes (26) .
Step 3: Parameter bounds. Lemma 28(i) and (ii) give the expressions for V u V_u V u and the upper bound on p t p_t p t . By (24) , ω \omega ω is the captured sum of y : = u ~ ∘ ( v ~ − ρ u ~ ) y:=\tilde{u}\circ(\tilde{v}-\rho\tilde{u}) y := u ~ ∘ ( v ~ − ρ u ~ ) , whose coordinates sum to 0 0 0 , so Lemma 28 gives
V u v = f q q ∥ y ∥ 2 = f q n q ∥ y ∥ 2 . V_{uv}=\frac{f_q}{q}\|y\|^2=\frac{f_qn}{q}\|y\|^2. V uv = q f q ∥ y ∥ 2 = q f q n ∥ y ∥ 2 .
The two upper bounds on V u v V_{uv} V uv follow immediately from
∥ y ∥ 2 ≤ ∥ u ~ ∥ ∞ 2 ∥ v ~ − ρ u ~ ∥ 2 = w u n ( 1 − ρ 2 ) , \|y\|^2\le\|\tilde{u}\|_\infty^2\|\tilde{v}-\rho\tilde{u}\|^2=\frac{w_u}{n}(1-\rho^2), ∥ y ∥ 2 ≤ ∥ u ~ ∥ ∞ 2 ∥ v ~ − ρ u ~ ∥ 2 = n w u ( 1 − ρ 2 ) ,
∥ y ∥ ≤ ∥ u ~ ∘ v ~ ∥ + ∣ ρ ∣ ∥ u ~ ∘ u ~ ∥ = k u v / n + ∣ ρ ∣ k u / n ≤ ( 1 + ∣ ρ ∣ ) k u v / n , \|y\|\le\|\tilde{u}\circ\tilde{v}\|+|\rho|\|\tilde{u}\circ\tilde{u}\|=\sqrt{k_{uv}/n}+|\rho|\sqrt{k_u/n}\le(1+|\rho|)\sqrt{k_{uv}/n}, ∥ y ∥ ≤ ∥ u ~ ∘ v ~ ∥ + ∣ ρ ∣∥ u ~ ∘ u ~ ∥ = k uv / n + ∣ ρ ∣ k u / n ≤ ( 1 + ∣ ρ ∣ ) k uv / n ,
using f q ≤ 1 f_q\le1 f q ≤ 1 in the first line and k u v ≤ k u k v ≤ k u ∨ v k_{uv}\le\sqrt{k_u k_v}\le k_{u\vee v} k uv ≤ k u k v ≤ k u ∨ v (4) in the second.
Remark 35 (Leading-order bias approximation). Replacing σ u − 1 \sigma_u-1 σ u − 1 by its linear Taylor approximation η / 2 = ( σ u − 1 ) / 2 \eta/2=(\sigma_u-1)/2 η /2 = ( σ u − 1 ) /2 and σ u \sigma_u σ u in the denominator by 1 1 1 in the exact identity (27) yields the second-order approximation
b u v ≈ − ρ V u / 8 − Cov ( ω , σ u 2 ) / 2 , where Cov ( ω , σ u 2 ) = f q q ∑ j u ~ j 3 ( v ~ j − ρ u ~ j ) b_{uv}\approx-\rho V_u/8-\operatorname{Cov}(\omega,\sigma_u^2)/2,\qquad\text{where}\quad\operatorname{Cov}(\omega,\sigma_u^2)=\frac{f_q}{q}\sum_j\tilde{u}_j^3(\tilde{v}_j-\rho\tilde{u}_j) b uv ≈ − ρ V u /8 − Cov ( ω , σ u 2 ) /2 , where Cov ( ω , σ u 2 ) = q f q j ∑ u ~ j 3 ( v ~ j − ρ u ~ j )
by Lemma 28. Here − ρ V u / 8 -\rho V_u/8 − ρ V u /8 is ρ \rho ρ times the self-pair bias of the stored vector u u u , while − Cov ( ω , σ u 2 ) / 2 -\operatorname{Cov}(\omega,\sigma_u^2)/2 − Cov ( ω , σ u 2 ) /2 captures the cross-correlation between energy fluctuations and angular distortion. Evaluated in O ( n ) O(n) O ( n ) time, this approximation agrees with the true bias to within 1.3% on Gaussian-like pairs at r ∈ { 64 , 256 } r\in\{64,256\} r ∈ { 64 , 256 } , and to within 14% on cap-saturating pairs with k u = w u ≤ 0.2 r k_u=w_u\leq0.2\,r k u = w u ≤ 0.2 r (see the supplementary code documentation; Appendix § 7 ). Because it is an asymptotic approximation rather than a rigorous upper bound, however, it is never used in our theorems.
Proof of Proposition 13. Each bound in Proposition 13 is obtained by evaluating (26) at a specific threshold t ∈ ( 0 , 1 ) t\in(0,1) t ∈ ( 0 , 1 ) and substituting the parameter bounds for V u V_u V u , V u v V_{uv} V uv , and p t p_t p t from Proposition 34. Throughout the proof, we repeatedly use two elementary inequalities for s , s ′ ≥ 0 s,s'\geq0 s , s ′ ≥ 0 and c > 0 c>0 c > 0 :
s ∣ ρ ∣ + s ′ 1 − ρ 2 ≤ s 2 + s ′ 2 , (28) s|\rho|+s'\sqrt{1-\rho^2}\leq\sqrt{s^2+s'^2}, \tag*{(28)} s ∣ ρ ∣ + s ′ 1 − ρ 2 ≤ s 2 + s ′2 , (28)
e − c / τ ≤ τ τ 0 e − c / τ 0 for 0 < τ ≤ τ 0 ≤ c , and e − c / τ ≤ τ e c for all τ > 0. (29) e^{-c/\tau}\leq\frac{\tau}{\tau_0}e^{-c/\tau_0}\quad\text{for }0<\tau\leq\tau_0\leq c,\qquad\text{and}\qquad e^{-c/\tau}\leq\frac{\tau}{ec}\quad\text{for all }\tau>0. \tag*{(29)} e − c / τ ≤ τ 0 τ e − c / τ 0 for 0 < τ ≤ τ 0 ≤ c , and e − c / τ ≤ ec τ for all τ > 0. (29)
Here (28) is Cauchy–Schwarz applied to ( ∣ ρ ∣ , 1 − ρ 2 ) (|\rho|,\sqrt{1-\rho^2}) ( ∣ ρ ∣ , 1 − ρ 2 ) , while (29) follows from the fact that τ ↦ e − c / τ / τ \tau\mapsto e^{-c/\tau}/\tau τ ↦ e − c / τ / τ has derivative e − c / τ ( c − τ ) / τ 3 e^{-c/\tau}(c-\tau)/\tau^3 e − c / τ ( c − τ ) / τ 3 , making it increasing on ( 0 , c ] (0,c] ( 0 , c ] and maximized globally at τ = c \tau=c τ = c .
Part (i). Set τ u : = w u / r ≤ 9 64 \tau_u:=w_u/r\leq\frac{9}{64} τ u := w u / r ≤ 64 9 and choose t = 9 25 t=\frac{9}{25} t = 25 9 , so that c 1 ( t ) = 25 128 c_1(t)=\frac{25}{128} c 1 ( t ) = 128 25 , c 2 ( t ) = 25 24 c_2(t)=\frac{25}{24} c 2 ( t ) = 24 25 , and ( 1 − t ) 2 / 2 = 0.2048 (1-t)^2/2=0.2048 ( 1 − t ) 2 /2 = 0.2048 . Then V u ≤ τ u V_u\leq\tau_u V u ≤ τ u , V u V u v ≤ 1 − ρ 2 τ u \sqrt{V_uV_{uv}}\leq\sqrt{1-\rho^2}\,\tau_u V u V uv ≤ 1 − ρ 2 τ u , and (since k u ≤ w u k_u\leq w_u k u ≤ w u ) p t ≤ p ∗ : = e − 0.2048 / τ u p_t\leq p_*:=e^{-0.2048/\tau_u} p t ≤ p ∗ := e − 0.2048/ τ u . Grouping the terms of (26) by ∣ ρ ∣ |\rho| ∣ ρ ∣ and 1 − ρ 2 \sqrt{1-\rho^2} 1 − ρ 2 and applying (28) gives
∣ b u v ∣ ≤ ∣ ρ ∣ ( 25 128 τ u + p ∗ 2 ) + 1 − ρ 2 ( 25 24 τ u + p ∗ ) ≤ τ u [ ( 25 128 + p ∗ 2 τ u ) 2 + ( 25 24 + p ∗ τ u ) 2 ] 1 / 2 . |b_{uv}|\leq|\rho|\left(\frac{25}{128}\tau_u+\frac{p_*}{2}\right)+\sqrt{1-\rho^2}\left(\frac{25}{24}\tau_u+\sqrt{p_*}\right)\leq\tau_u\left[\left(\frac{25}{128}+\frac{p_*}{2\tau_u}\right)^2+\left(\frac{25}{24}+\frac{\sqrt{p_*}}{\tau_u}\right)^2\right]^{1/2}. ∣ b uv ∣ ≤ ∣ ρ ∣ ( 128 25 τ u + 2 p ∗ ) + 1 − ρ 2 ( 24 25 τ u + p ∗ ) ≤ τ u [ ( 128 25 + 2 τ u p ∗ ) 2 + ( 24 25 + τ u p ∗ ) 2 ] 1/2 .
Applying the first inequality in (29) with τ 0 = 1 64 \tau_0=\frac{1}{64} τ 0 = 64 1 (at c = 0.2048 c=0.2048 c = 0.2048 for p ∗ / τ u p_*/\tau_u p ∗ / τ u and at c = 0.1024 c=0.1024 c = 0.1024 for p ∗ / τ u \sqrt{p_*}/\tau_u p ∗ / τ u ) shows that the bracketed factor is maximized at τ u = 1 64 \tau_u=\frac{1}{64} τ u = 64 1 , where it evaluates to 1.1495 … < 1.15 1.1495\ldots<1.15 1.1495 … < 1.15 .
Part (ii). Choose t = 1 2 t=\frac{1}{2} t = 2 1 , giving c 1 ( t ) = ( 2 − 1 ) 2 c_1(t)=(\sqrt{2}-1)^2 c 1 ( t ) = ( 2 − 1 ) 2 , c 2 ( t ) = 2 ( 2 − 1 ) c_2(t)=2(\sqrt{2}-1) c 2 ( t ) = 2 ( 2 − 1 ) , and p 1 / 2 ≤ e − r / ( 8 k u ) p_{1/2}\leq e^{-r/(8k_u)} p 1/2 ≤ e − r / ( 8 k u ) . Substituting V u = f q ( k u − 1 b a l ) / r V_u=f_q(k_u-1_{\mathrm{bal}})/r V u = f q ( k u − 1 bal ) / r , the second bound on V u v V_{uv} V uv , ∣ ρ ∣ ≤ 1 |\rho|\leq1 ∣ ρ ∣ ≤ 1 , and k u − 1 b a l ≤ ( k u − 1 b a l ) k u ∨ v k_u-1_{\mathrm{bal}}\leq\sqrt{(k_u-1_{\mathrm{bal}})k_{u\vee v}} k u − 1 bal ≤ ( k u − 1 bal ) k u ∨ v into the first two terms of (26) , and applying (28) with p 1 / 2 ≤ 1 p_{1/2}\leq1 p 1/2 ≤ 1 to the last two terms yields
c 1 ( t ) ∣ ρ ∣ V u + c 2 ( t ) V u V u v ≤ ( c 1 ( t ) + 2 c 2 ( t ) ) f q ( k u − 1 b a l ) k u ∨ v r , c_1(t)|\rho|V_u+c_2(t)\sqrt{V_uV_{uv}}\leq\left(c_1(t)+2c_2(t)\right)\frac{f_q\sqrt{(k_u-1_{\mathrm{bal}})k_{u\vee v}}}{r}, c 1 ( t ) ∣ ρ ∣ V u + c 2 ( t ) V u V uv ≤ ( c 1 ( t ) + 2 c 2 ( t ) ) r f q ( k u − 1 bal ) k u ∨ v ,
∣ ρ ∣ 2 p 1 / 2 + ( 1 − ρ 2 ) p 1 / 2 ≤ p 1 / 2 ( 1 + p 1 / 2 / 4 ) ≤ 5 2 p 1 / 2 < 1.12 e − r / ( 16 k u ) . \frac{|\rho|}{2}p_{1/2}+\sqrt{(1-\rho^2)p_{1/2}}\leq\sqrt{p_{1/2}(1+p_{1/2}/4)}\leq\frac{\sqrt{5}}{2}\sqrt{p_{1/2}}<1.12\,e^{-r/(16k_u)}. 2 ∣ ρ ∣ p 1/2 + ( 1 − ρ 2 ) p 1/2 ≤ p 1/2 ( 1 + p 1/2 /4 ) ≤ 2 5 p 1/2 < 1.12 e − r / ( 16 k u ) .
Since c 1 ( t ) + 2 c 2 ( t ) = 2 2 − 1 < 1.83 c_1(t)+2c_2(t)=2\sqrt{2}-1<1.83 c 1 ( t ) + 2 c 2 ( t ) = 2 2 − 1 < 1.83 , summing these two inequalities establishes the first bound of (ii). When k u ∨ v ≤ r / 70 k_{u\vee v}\leq r/70 k u ∨ v ≤ r /70 , the first term is at most 1.83 k u ∨ v / r 1.83\,k_{u\vee v}/r 1.83 k u ∨ v / r , while the first inequality in (29) with c = 1 16 c=\frac{1}{16} c = 16 1 , τ = k u / r \tau=k_u/r τ = k u / r , and τ 0 = 1 70 \tau_0=\frac{1}{70} τ 0 = 70 1 bounds the second term by 1.12 ⋅ 70 e − 70 / 16 k u ∨ v / r < 0.99 k u ∨ v / r 1.12\cdot70\,e^{-70/16}k_{u\vee v}/r<0.99\,k_{u\vee v}/r 1.12 ⋅ 70 e − 70/16 k u ∨ v / r < 0.99 k u ∨ v / r ; summing gives ( 1.83 + 0.99 ) k u ∨ v / r < 2.83 k u ∨ v / r (1.83+0.99)k_{u\vee v}/r<2.83\,k_{u\vee v}/r ( 1.83 + 0.99 ) k u ∨ v / r < 2.83 k u ∨ v / r .
Part (iii). Under balanced supports, k u = 1 k_u=1 k u = 1 implies V u = 0 V_u=0 V u = 0 and p t = 0 p_t=0 p t = 0 , so every term in (26) vanishes (matching Corollary 29).
Unconditional bound 4.3 w u / r 4.3\,w_u/r 4.3 w u / r of Remark 16. For arbitrary τ u = w u / r > 0 \tau_u=w_u/r>0 τ u = w u / r > 0 , set t = 1 4 t=\frac{1}{4} t = 4 1 , so that c 1 ( t ) = 2 9 c_1(t)=\frac{2}{9} c 1 ( t ) = 9 2 , c 2 ( t ) = 4 3 c_2(t)=\frac{4}{3} c 2 ( t ) = 3 4 , and p 1 / 4 ≤ e − 9 / ( 32 τ u ) p_{1/4}\leq e^{-9/(32\tau_u)} p 1/4 ≤ e − 9/ ( 32 τ u ) . Grouping the terms via (28) , applying the triangle inequality in R 2 \mathbb{R}^2 R 2 to separate the τ u \tau_u τ u and p 1 / 4 p_{1/4} p 1/4 contributions, and using the second inequality of (29) with c = 9 64 c=\frac{9}{64} c = 64 9 yields
∣ b u v ∣ ≤ [ ( 2 9 ) 2 + ( 4 3 ) 2 ] 1 / 2 τ u + 5 2 e − 9 / ( 64 τ u ) ≤ ( 2 37 9 + 32 5 9 e ) τ u < 4.28 τ u . |b_{uv}|\leq\left[\left(\frac{2}{9}\right)^2+\left(\frac{4}{3}\right)^2\right]^{1/2}\tau_u+\frac{\sqrt{5}}{2}e^{-9/(64\tau_u)}\leq\left(\frac{2\sqrt{37}}{9}+\frac{32\sqrt{5}}{9e}\right)\tau_u<4.28\,\tau_u. ∣ b uv ∣ ≤ [ ( 9 2 ) 2 + ( 3 4 ) 2 ] 1/2 τ u + 2 5 e − 9/ ( 64 τ u ) ≤ ( 9 2 37 + 9 e 32 5 ) τ u < 4.28 τ u .
Concentration of the dot-product decoder. By Lemma 33, the conditional moment generating function of a BG row score depends on the support S S S solely through ζ S \zeta_S ζ S and σ v 2 \sigma_v^2 σ v 2 . We first bound the support-level fluctuations of these two quantities in terms of τ : = w u ∨ v / r \tau:=w_{u\vee v}/r τ := w u ∨ v / r .
Lemma 37 (Fluctuations over the supports). Under either support law, fix D D D and a pair ( u , v ) (u,v) ( u , v ) satisfying τ : = w u ∨ v / r ≤ 1 16 \tau:=w_{u\vee v}/r\le\frac{1}{16} τ := w u ∨ v / r ≤ 16 1 . Then:
(a) Var ( σ u 2 ) ≤ τ \operatorname{Var}(\sigma_u^2)\le\tau Var ( σ u 2 ) ≤ τ , Var ( σ v 2 ) ≤ τ \operatorname{Var}(\sigma_v^2)\le\tau Var ( σ v 2 ) ≤ τ , and Var ( σ u v ) ≤ τ \operatorname{Var}(\sigma_{uv})\le\tau Var ( σ uv ) ≤ τ ;
(b) E ( σ u 2 − 1 ) 4 ≤ ( 3 + τ ) τ 2 \mathbb{E}(\sigma_u^2-1)^4\le(3+\tau)\tau^2 E ( σ u 2 − 1 ) 4 ≤ ( 3 + τ ) τ 2 ;
(c) Var ( ζ S ) ≤ 2.2 τ \sqrt{\operatorname{Var}(\zeta_S)}\le2.2\sqrt{\tau} Var ( ζ S ) ≤ 2.2 τ ;
(d) E exp { λ 0 ( σ v 2 − 2 ) } ≤ e − 0.38 / τ \mathbb{E}\exp\{\lambda_0(\sigma_v^2-2)\}\le e^{-0.38/\tau} E exp { λ 0 ( σ v 2 − 2 )} ≤ e − 0.38/ τ for λ 0 : = 0.68 / τ \lambda_0:=0.68/\tau λ 0 := 0.68/ τ .
Proof of Lemma 37. (a) Because w u , w v ≤ τ r w_u,w_v\le\tau r w u , w v ≤ τ r , Lemma 28(i) immediately gives Var ( σ u 2 ) ≤ τ \operatorname{Var}(\sigma_u^2)\le\tau Var ( σ u 2 ) ≤ τ and Var ( σ v 2 ) ≤ τ \operatorname{Var}(\sigma_v^2)\le\tau Var ( σ v 2 ) ≤ τ . Similarly, since σ u v \sigma_{uv} σ uv is the captured sum of u ~ ∘ v ~ \tilde{u}\circ\tilde{v} u ~ ∘ v ~ with total ρ \rho ρ , Lemma 28 with f q ≤ 1 f_q\le1 f q ≤ 1 and q n = r qn=r q n = r yields
Var ( σ u v ) = f q q ( ∥ u ~ ∘ v ~ ∥ 2 − 1 b a l n ρ 2 ) ≤ 1 q ∥ u ~ ∘ v ~ ∥ 2 = k u v r ≤ w u r ≤ τ . \operatorname{Var}(\sigma_{uv})=\frac{f_q}{q}\left(\lVert\tilde{u}\circ\tilde{v}\rVert^2-\frac{1_{\mathrm{bal}}}{n}\rho^2\right)\le\frac{1}{q}\lVert\tilde{u}\circ\tilde{v}\rVert^2=\frac{k_{uv}}{r}\le\frac{w_u}{r}\le\tau. Var ( σ uv ) = q f q ( ∥ u ~ ∘ v ~ ∥ 2 − n 1 bal ρ 2 ) ≤ q 1 ∥ u ~ ∘ v ~ ∥ 2 = r k uv ≤ r w u ≤ τ .
Domination by independent summands. For x ∈ { u , v } x\in\{u,v\} x ∈ { u , v } , let S x S_x S x denote the sum of independent variables W ∈ [ 0 , w x / r ] W\in[0,w_x/r] W ∈ [ 0 , w x / r ] constructed in Lemma 28(v) (with E S ∗ = 1 \mathbb{E}S_*=1 E S ∗ = 1 and E W 2 = k x / r \mathbb{E}W^2=k_x/r E W 2 = k x / r ). Because t ↦ ( t − 1 ) 4 t\mapsto(t-1)^4 t ↦ ( t − 1 ) 4 and t ↦ e λ 0 t t\mapsto e^{\lambda_0t} t ↦ e λ 0 t are convex, Lemma 28(v) implies that their expectations under σ x 2 \sigma_x^2 σ x 2 are bounded above by their expectations under S ∗ S_* S ∗ . Writing S ∗ − 1 = ∑ W ~ S_*-1=\sum\widetilde{W} S ∗ − 1 = ∑ W in terms of the independent centered summands W ~ : = W − E W \widetilde{W}:=W-\mathbb{E}W W := W − E W , we have ∣ W ~ ∣ ≤ w x / r ≤ τ |\widetilde{W}|\le w_x/r\le\tau ∣ W ∣ ≤ w x / r ≤ τ and ∑ E W ~ 2 ≤ ∑ E W 2 = k x / r ≤ τ \sum\mathbb{E}\widetilde{W}^2\le\sum\mathbb{E}W^2=k_x/r\le\tau ∑ E W 2 ≤ ∑ E W 2 = k x / r ≤ τ .
(b) Taking x = u x=u x = u and expanding ( S ∗ − 1 ) 4 = ( ∑ W ~ ) 4 (S_*-1)^4=(\sum\widetilde{W})^4 ( S ∗ − 1 ) 4 = ( ∑ W ) 4 , only products in which no factor W ~ \widetilde{W} W appears with exponent 1 1 1 survive in expectation. Using W ~ 4 ≤ τ 2 W ~ 2 \widetilde{W}^4\le\tau^2\widetilde{W}^2 W 4 ≤ τ 2 W 2 , we obtain
E ( S ∗ − 1 ) 4 ≤ ∑ E W ~ 4 + 3 ( ∑ E W ~ 2 ) 2 ≤ τ 2 ⋅ τ + 3 τ 2 = ( 3 + τ ) τ 2 . \mathbb{E}(S_*-1)^4\le\sum\mathbb{E}\widetilde{W}^4+3\left(\sum\mathbb{E}\widetilde{W}^2\right)^2\le\tau^2\cdot\tau+3\tau^2=(3+\tau)\tau^2. E ( S ∗ − 1 ) 4 ≤ ∑ E W 4 + 3 ( ∑ E W 2 ) 2 ≤ τ 2 ⋅ τ + 3 τ 2 = ( 3 + τ ) τ 2 .
(c) Writing σ u v = σ u 2 ζ S \sigma_{uv}=\sigma_u^2\zeta_S σ uv = σ u 2 ζ S (which holds even when σ u = 0 ) g i v e s t h e i d e n t i t y \sigma_u=0) gives the identity σ u = 0 ) g i v es t h e i d e n t i t y \zeta_S-\rho=(\sigma_{uv}-\rho)-(\sigma_u^2-1)\zeta_S$, where ∣ σ u 2 − 1 ∣ ≤ ∣ η ∣ |\sigma_u^2-1|\le|\eta| ∣ σ u 2 − 1∣ ≤ ∣ η ∣ and ∣ ζ S ∣ ≤ σ v |\zeta_S|\le\sigma_v ∣ ζ S ∣ ≤ σ v (Lemma 33). Since E σ u v = ρ \mathbb{E}\sigma_{uv}=\rho E σ uv = ρ , Minkowski’s inequality yields Var ( ζ S ) ≤ E ( ζ S − ρ ) 2 ≤ Var ( σ u v ) + E η 2 σ v 2 \sqrt{\operatorname{Var}(\zeta_S)} \le\sqrt{\mathbb{E}(\zeta_S-\rho)^2} \le\sqrt{\operatorname{Var}(\sigma_{uv})}+\sqrt{\mathbb{E}\eta^2\sigma_v^2} Var ( ζ S ) ≤ E ( ζ S − ρ ) 2 ≤ Var ( σ uv ) + E η 2 σ v 2 . Applying Cauchy–Schwarz together with parts (a) and (b) bounds the second term via
E η 2 σ v 2 = E η 2 + E η 2 ( σ v 2 − 1 ) ≤ τ + ( E η 4 E ( σ v 2 − 1 ) 2 ) 1 / 2 ≤ τ + τ τ ( 3 + τ ) ≤ 23 16 τ . \mathbb{E}\eta^2\sigma_v^2=\mathbb{E}\eta^2+\mathbb{E}\eta^2(\sigma_v^2-1)\le\tau+\left(\mathbb{E}\eta^4\mathbb{E}(\sigma_v^2-1)^2\right)^{1/2}\le\tau+\tau\sqrt{\tau(3+\tau)}\le\frac{23}{16}\tau. E η 2 σ v 2 = E η 2 + E η 2 ( σ v 2 − 1 ) ≤ τ + ( E η 4 E ( σ v 2 − 1 ) 2 ) 1/2 ≤ τ + τ τ ( 3 + τ ) ≤ 16 23 τ .
since τ ( 3 + τ ) ≤ ( 7 16 ) 2 \tau(3+\tau)\le\left(\frac{7}{16}\right)^2 τ ( 3 + τ ) ≤ ( 16 7 ) 2 for τ ≤ 1 16 \tau\le\frac{1}{16} τ ≤ 16 1 . Combining this with Var ( σ u v ) ≤ τ \operatorname{Var}(\sigma_{uv})\le\tau Var ( σ uv ) ≤ τ gives Var ( ζ S ) ≤ ( 1 + 23 4 ) τ ≤ 2.2 τ \sqrt{\operatorname{Var}(\zeta_S)}\le\left(1+\frac{\sqrt{23}}{4}\right)\sqrt{\tau}\le2.2\sqrt{\tau} Var ( ζ S ) ≤ ( 1 + 4 23 ) τ ≤ 2.2 τ .
(d) Taking x = v x=v x = v , we apply Bernstein’s moment generating function bound (11) to S ∗ − 1 S_*-1 S ∗ − 1 with R = V = τ R=V=\tau R = V = τ and λ = λ 0 = 0.68 / τ \lambda=\lambda_0=0.68/\tau λ = λ 0 = 0.68/ τ (noting λ 0 R = 0.68 < 3 \lambda_0R=0.68<3 λ 0 R = 0.68 < 3 ):
log E e λ 0 ( S ∗ − 1 ) ≤ λ 0 2 τ 2 ( 1 − λ 0 τ / 3 ) = 0.68 2 2 ( 1 − 0.68 / 3 ) ⋅ 1 τ ≤ 0.299 τ . \log\mathbb{E}e^{\lambda_0(S_*-1)}\le\frac{\lambda_0^2\tau}{2(1-\lambda_0\tau/3)}=\frac{0.68^2}{2(1-0.68/3)}\cdot\frac{1}{\tau}\le\frac{0.299}{\tau}. log E e λ 0 ( S ∗ − 1 ) ≤ 2 ( 1 − λ 0 τ /3 ) λ 0 2 τ = 2 ( 1 − 0.68/3 ) 0.6 8 2 ⋅ τ 1 ≤ τ 0.299 .
Multiplying by e − λ 0 e^{-\lambda_0} e − λ 0 gives E e λ 0 ( σ v 2 − 2 ) ≤ e − λ 0 E e λ 0 ( S ∗ − 1 ) ≤ e − ( 0.68 − 0.299 ) / τ ≤ e − 0.38 / τ \mathbb{E}e^{\lambda_0(\sigma_v^2-2)}\le e^{-\lambda_0}\mathbb{E}e^{\lambda_0(S_*-1)}\le e^{-(0.68-0.299)/\tau}\le e^{-0.38/\tau} E e λ 0 ( σ v 2 − 2 ) ≤ e − λ 0 E e λ 0 ( S ∗ − 1 ) ≤ e − ( 0.68 − 0.299 ) / τ ≤ e − 0.38/ τ (where the constant c = 0.68 c=0.68 c = 0.68 is chosen to nearly maximize c − c 2 2 ( 1 − c / 3 ) c-\frac{c^2}{2(1-c/3)} c − 2 ( 1 − c /3 ) c 2 ).
Proposition 38 (BG row moment generating function). Under either support law, fix D D D and a pair ( u , v ) (u,v) ( u , v ) with w u ∨ v ≤ r / 16 w_{u\vee v}\le r/16 w u ∨ v ≤ r /16 , and set ζ ˉ : = E [ Z ∣ D ] \bar{\zeta}:=\mathbb{E}[Z\mid D] ζ ˉ := E [ Z ∣ D ] . Then for all ∣ λ ∣ ≤ 1 / 3 |\lambda|\le1/3 ∣ λ ∣ ≤ 1/3 ,
log E e λ ( Z − ζ ˉ ) ≤ λ 2 2 ( π 2 + 9.25 w u ∨ v r ) . \log\mathbb{E}e^{\lambda(Z-\bar{\zeta})}\le\frac{\lambda^2}{2}\left(\frac{\pi}{2}+9.25\frac{w_{u\vee v}}{r}\right). log E e λ ( Z − ζ ˉ ) ≤ 2 λ 2 ( 2 π + 9.25 r w u ∨ v ) .
Here the additive correction 9.25 w u ∨ v / r 9.25w_{u\vee v}/r 9.25 w u ∨ v / r over the dense variance parameter π / 2 \pi/2 π /2 accounts for the support-to-support fluctuations of ζ S \zeta_S ζ S and σ v 2 \sigma_v^2 σ v 2 . As noted in Remark 16, neither the constant 9.25 nor the dependence on the cap w u ∨ v w_{u\vee v} w u ∨ v (rather than the fourth moment k u ∨ v k_{u\vee v} k u ∨ v ) is sharp: by Lemma 33, the exact unconditional variance is Var ( Z ∣ D ) = π / 2 − ζ ˉ 2 ≤ π / 2 \operatorname{Var}(Z\mid D)=\pi/2-\bar{\zeta}^2\le\pi/2 Var ( Z ∣ D ) = π /2 − ζ ˉ 2 ≤ π /2 , so the true correction to the cumulant generating function is O ( λ 3 ) O(\lambda^3) O ( λ 3 ) rather than O ( λ 2 ) O(\lambda^2) O ( λ 2 ) , and the variances of ζ S \zeta_S ζ S and σ v 2 \sigma_v^2 σ v 2 scale with k u ∨ v / r k_{u\vee v}/r k u ∨ v / r . We bound them via τ = w u ∨ v / r \tau=w_{u\vee v}/r τ = w u ∨ v / r simply because caps are already required to control the fourth moment and exponential tail in Lemma 37 (b) and (d).
Proof of Proposition 38. Set τ : = w u ∨ v / r ≤ 1 16 \tau:=w_{u\vee v}/r\le\frac{1}{16} τ := w u ∨ v / r ≤ 16 1 .
Step 1: Conditioning on S S S . Applying the tower property and Lemma 33 gives
E e λ ( Z − ζ ˉ ) ≤ E e λ ( ζ S − ζ ˉ ) + π λ 2 σ v 2 / 4 = e π λ 2 / 4 E e Ξ , Ξ : = λ ( ζ S − ζ ˉ ) + π 4 λ 2 ( σ v 2 − 1 ) , \mathbb{E}e^{\lambda(Z-\bar{\zeta})}\le\mathbb{E}e^{\lambda(\zeta_S-\bar{\zeta})+\pi\lambda^2\sigma_v^2/4}=e^{\pi\lambda^2/4}\mathbb{E}e^\Xi,\qquad\Xi:=\lambda(\zeta_S-\bar{\zeta})+\frac{\pi}{4}\lambda^2(\sigma_v^2-1), E e λ ( Z − ζ ˉ ) ≤ E e λ ( ζ S − ζ ˉ ) + π λ 2 σ v 2 /4 = e π λ 2 /4 E e Ξ , Ξ := λ ( ζ S − ζ ˉ ) + 4 π λ 2 ( σ v 2 − 1 ) ,
where E Ξ = 0 \mathbb{E}\Xi=0 E Ξ = 0 since E ζ S = ζ ˉ \mathbb{E}\zeta_S=\bar{\zeta} E ζ S = ζ ˉ and E σ v 2 = 1 \mathbb{E}\sigma_v^2=1 E σ v 2 = 1 . It therefore suffices to prove log E e Ξ ≤ λ 2 2 ⋅ 9.25 τ \log\mathbb{E}e^\Xi\le\frac{\lambda^2}{2}\cdot9.25\tau log E e Ξ ≤ 2 λ 2 ⋅ 9.25 τ for ∣ λ ∣ ≤ 1 3 |\lambda|\le\frac{1}{3} ∣ λ ∣ ≤ 3 1 .
Step 2: Typical supports (σ v 2 ≤ 2 \sigma_v^2\le2 σ v 2 ≤ 2 ). By Taylor’s theorem, e s = 1 + s + s 2 I ( s ) e^s=1+s+s^2I(s) e s = 1 + s + s 2 I ( s ) where I ( s ) : = ∫ 0 1 ( 1 − t ) e t s d t I(s):=\int_0^1(1-t)e^{ts}\,dt I ( s ) := ∫ 0 1 ( 1 − t ) e t s d t is increasing and satisfies I ( s ) ≤ 1 2 e ∣ s ∣ I(s)\le\frac{1}{2}e^{|s|} I ( s ) ≤ 2 1 e ∣ s ∣ and I ( 0.893 ) < 0.69 I(0.893)<0.69 I ( 0.893 ) < 0.69 . Since ∣ ζ S ∣ ≤ σ v |\zeta_S|\le\sigma_v ∣ ζ S ∣ ≤ σ v and ∣ ζ ˉ ∣ ≤ E σ v ≤ 1 |\bar{\zeta}|\le\mathbb{E}\sigma_v\le1 ∣ ζ ˉ ∣ ≤ E σ v ≤ 1 , we have
∣ ζ S − ζ ˉ ∣ ≤ σ v + 1. (30) |\zeta_S-\bar{\zeta}|\le\sigma_v+1. \tag*{(30)} ∣ ζ S − ζ ˉ ∣ ≤ σ v + 1. (30)
On the event { σ v 2 ≤ 2 } \{\sigma_v^2\le2\} { σ v 2 ≤ 2 } , this gives ∣ ζ S − ζ ˉ ∣ ≤ 2 + 1 |\zeta_S-\bar{\zeta}|\le\sqrt{2}+1 ∣ ζ S − ζ ˉ ∣ ≤ 2 + 1 and ∣ σ v 2 − 1 ∣ ≤ 1 |\sigma_v^2-1|\le1 ∣ σ v 2 − 1∣ ≤ 1 ; for ∣ λ ∣ ≤ 1 3 |\lambda|\le\frac{1}{3} ∣ λ ∣ ≤ 3 1 , we thus have Ξ ≤ 1 + 2 3 + π 36 < 0.893 \Xi\le\frac{1+\sqrt{2}}{3}+\frac{\pi}{36}<0.893 Ξ ≤ 3 1 + 2 + 36 π < 0.893 and I ( Ξ ) < 0.69 I(\Xi)<0.69 I ( Ξ ) < 0.69 . On { σ v 2 > 2 } \{\sigma_v^2>2\} { σ v 2 > 2 } , we use I ( Ξ ) ≤ 1 2 e ∣ Ξ ∣ I(\Xi)\le\frac{1}{2}e^{|\Xi|} I ( Ξ ) ≤ 2 1 e ∣Ξ∣ . Taking expectations using E Ξ = 0 \mathbb{E}\Xi=0 E Ξ = 0 , Minkowski’s inequality, π 4 λ 2 ≤ π 12 ∣ λ ∣ \frac{\pi}{4}\lambda^2\le\frac{\pi}{12}|\lambda| 4 π λ 2 ≤ 12 π ∣ λ ∣ , and Lemma 37 (a) and (c) yields
E e Ξ = 1 + E [ Ξ 2 I ( Ξ ) ] ≤ 1 + 0.69 E Ξ 2 + 1 2 T , T : = E [ Ξ 2 e ∣ Ξ ∣ ; σ v 2 > 2 ] , \mathbb{E}e^\Xi=1+\mathbb{E}[\Xi^2I(\Xi)]\le1+0.69\mathbb{E}\Xi^2+\frac{1}{2}\mathcal{T},\qquad\mathcal{T}:=\mathbb{E}[\Xi^2e^{|\Xi|};\sigma_v^2>2], E e Ξ = 1 + E [ Ξ 2 I ( Ξ )] ≤ 1 + 0.69 E Ξ 2 + 2 1 T , T := E [ Ξ 2 e ∣Ξ∣ ; σ v 2 > 2 ] ,
E Ξ 2 ≤ ∣ λ ∣ Var ( ζ S ) + π 12 ∣ λ ∣ Var ( σ v 2 ) ≤ ( 2.2 + π 12 ) ∣ λ ∣ τ . \sqrt{\mathbb{E}\Xi^2}\le|\lambda|\sqrt{\operatorname{Var}(\zeta_S)}+\frac{\pi}{12}|\lambda|\sqrt{\operatorname{Var}(\sigma_v^2)}\le\left(2.2+\frac{\pi}{12}\right)|\lambda|\sqrt{\tau}. E Ξ 2 ≤ ∣ λ ∣ Var ( ζ S ) + 12 π ∣ λ ∣ Var ( σ v 2 ) ≤ ( 2.2 + 12 π ) ∣ λ ∣ τ .
Step 3: Atypical supports (σ v 2 > 2 \sigma_v^2>2 σ v 2 > 2 ). When σ v 2 > 2 \sigma_v^2>2 σ v 2 > 2 , we have σ v ≤ σ v 2 / 2 \sigma_v\le\sigma_v^2/\sqrt{2} σ v ≤ σ v 2 / 2 and 1 < σ v 2 / 2 1<\sigma_v^2/2 1 < σ v 2 /2 , so (30) gives ∣ ζ S − ζ ˉ ∣ ≤ ( 1 2 + 1 2 ) σ v 2 |\zeta_S-\bar{\zeta}|\le\left(\frac{1}{\sqrt{2}}+\frac{1}{2}\right)\sigma_v^2 ∣ ζ S − ζ ˉ ∣ ≤ ( 2 1 + 2 1 ) σ v 2 . Combining this with 0 < σ v 2 − 1 < σ v 2 0<\sigma_v^2-1<\sigma_v^2 0 < σ v 2 − 1 < σ v 2 and π 4 λ 2 ≤ π 12 ∣ λ ∣ \frac{\pi}{4}\lambda^2\le\frac{\pi}{12}|\lambda| 4 π λ 2 ≤ 12 π ∣ λ ∣ gives ∣ Ξ ∣ ≤ C ∣ λ ∣ σ v 2 |\Xi|\le C|\lambda|\sigma_v^2 ∣Ξ∣ ≤ C ∣ λ ∣ σ v 2 where C : = 1 2 + 1 2 + π 12 < 3 2 C:=\frac{1}{2}+\frac{1}{\sqrt{2}}+\frac{\pi}{12}<\frac{3}{2} C := 2 1 + 2 1 + 12 π < 2 3 . For ∣ λ ∣ ≤ 1 3 |\lambda|\le\frac{1}{3} ∣ λ ∣ ≤ 3 1 , this implies ∣ Ξ ∣ ≤ 1 2 σ v 2 |\Xi|\le\frac{1}{2}\sigma_v^2 ∣Ξ∣ ≤ 2 1 σ v 2 and Ξ 2 e ∣ Ξ ∣ ≤ C 2 λ 2 σ v 4 e σ v 2 / 2 \Xi^2e^{|\Xi|}\le C^2\lambda^2\sigma_v^4e^{\sigma_v^2/2} Ξ 2 e ∣Ξ∣ ≤ C 2 λ 2 σ v 4 e σ v 2 /2 . Now observe that every s ≥ 2 s\ge2 s ≥ 2 satisfies s 2 e s / 2 ≤ 4 e ⋅ e λ 0 ( s − 2 ) s^2e^{s/2}\le4e\cdot e^{\lambda_0(s-2)} s 2 e s /2 ≤ 4 e ⋅ e λ 0 ( s − 2 ) : the two sides are equal at s = 2 s=2 s = 2 , and the derivative of the logarithm of the left-hand side is 2 / s + 1 2 ≤ 3 2 2/s+\frac{1}{2}\le\frac{3}{2} 2/ s + 2 1 ≤ 2 3 , whereas λ 0 = 0.68 / τ ≥ 0.68 ⋅ 16 > 3 2 \lambda_0=0.68/\tau\ge0.68\cdot16>\frac{3}{2} λ 0 = 0.68/ τ ≥ 0.68 ⋅ 16 > 2 3 . Applying this inequality at s = σ v 2 s=\sigma_v^2 s = σ v 2 and invoking Lemma 37 (d) with 4 e C 2 < 23.6 4eC^2<23.6 4 e C 2 < 23.6 gives
T ≤ 4 e C 2 λ 2 E e λ 0 ( σ v 2 − 2 ) ≤ 23.6 λ 2 e − 0.38 / τ . \mathcal{T}\le4eC^2\lambda^2\mathbb{E}e^{\lambda_0(\sigma_v^2-2)}\le23.6\lambda^2e^{-0.38/\tau}. T ≤ 4 e C 2 λ 2 E e λ 0 ( σ v 2 − 2 ) ≤ 23.6 λ 2 e − 0.38/ τ .
Step 4: Combining the bounds. Using log ( 1 + s ) ≤ s \log(1+s)\le s log ( 1 + s ) ≤ s together with Steps 2 and 3 yields
log E e Ξ ≤ 0.69 E Ξ 2 + 1 2 T ≤ λ 2 2 ( 1.38 ( 2.2 + π 12 ) 2 τ 2 + 23.6 e − 0.38 / τ ) . \log\mathbb{E}e^{\Xi}\le0.69\mathbb{E}\Xi^2+\frac{1}{2}T\le\frac{\lambda^2}{2}\left(1.38\left(2.2+\frac{\pi}{12}\right)^2\tau^2+23.6e^{-0.38/\tau}\right). log E e Ξ ≤ 0.69 E Ξ 2 + 2 1 T ≤ 2 λ 2 ( 1.38 ( 2.2 + 12 π ) 2 τ 2 + 23.6 e − 0.38/ τ ) .
Here 1.38 ( 2.2 + π 12 ) 2 < 8.37 1.38\left(2.2+\frac{\pi}{12}\right)^2<8.37 1.38 ( 2.2 + 12 π ) 2 < 8.37 , while the first inequality of (29) with c = 0.38 c=0.38 c = 0.38 and τ 0 = 1 16 \tau_0=\frac{1}{16} τ 0 = 16 1 bounds the second term by 23.6 ⋅ 16 e − 6.08 τ < 0.88 τ 23.6\cdot16e^{-6.08\tau}<0.88\tau 23.6 ⋅ 16 e − 6.08 τ < 0.88 τ . Summing gives 8.37 + 0.88 = 9.25 8.37+0.88=9.25 8.37 + 0.88 = 9.25 .
Lemma 39 (BG dot-product concentration). Fix D D D and an admissible pair ( u , v ) (u,v) ( u , v ) satisfying w u ∨ v ≤ r / 16 w_{u\vee v}\le r/16 w u ∨ v ≤ r /16 , and set ζ ˉ = E [ Z ∣ D ] \bar{\zeta}=\mathbb{E}[Z\mid D] ζ ˉ = E [ Z ∣ D ] . For every 0 < t ≤ 1 2 0<t\le\frac{1}{2} 0 < t ≤ 2 1 ,
Pr [ ∣ ρ ^ B G − ζ ˉ ∣ ≥ t ∣ D ] ≤ 2 exp { − ℓ t 2 π + 18.5 w u ∨ v / r } . \Pr\left[\left|\hat{\rho}_{\mathrm{BG}}-\bar{\zeta}\right|\ge t\mid D\right]\le2\exp\left\{-\frac{\ell t^2}{\pi+18.5w_{u\vee v}/r}\right\}. Pr [ ρ ^ BG − ζ ˉ ≥ t ∣ D ] ≤ 2 exp { − π + 18.5 w u ∨ v / r ℓ t 2 } .
Proof of Lemma 39. Set ν u v : = π 2 + 9.25 w u ∨ v / r \nu_{uv}:=\frac{\pi}{2}+9.25w_{u\vee v}/r ν uv := 2 π + 9.25 w u ∨ v / r . Because the pair is admissible, conditioned on D D D the estimate ρ ^ B G \hat{\rho}_{\mathrm{BG}} ρ ^ BG is the average of ℓ \ell ℓ i.i.d. copies of Z Z Z . For any 0 ≤ λ ≤ 1 3 0\le\lambda\le\frac{1}{3} 0 ≤ λ ≤ 3 1 , Markov’s inequality and Proposition 38 yield Pr [ ρ ^ B G − ζ ˉ ≥ t ∣ D ] ≤ exp { − ℓ ( λ t − 1 2 λ 2 ν u v ) } \Pr[\hat{\rho}_{\mathrm{BG}}-\bar{\zeta}\ge t\mid D]\le\exp\{-\ell(\lambda t-\frac{1}{2}\lambda^2\nu_{uv})\} Pr [ ρ ^ BG − ζ ˉ ≥ t ∣ D ] ≤ exp { − ℓ ( λ t − 2 1 λ 2 ν uv )} . Optimizing over λ \lambda λ selects λ = t / ν u v \lambda=t/\nu_{uv} λ = t / ν uv , which satisfies λ ≤ 1 π < 1 3 \lambda\le\frac{1}{\pi}<\frac{1}{3} λ ≤ π 1 < 3 1 since t ≤ 1 2 t\le\frac{1}{2} t ≤ 2 1 and ν u v ≥ π 2 \nu_{uv}\ge\frac{\pi}{2} ν uv ≥ 2 π . Substituting this choice gives exp { − ℓ t 2 / ( 2 ν u v ) } \exp\{-\ell t^2/(2\nu_{uv})\} exp { − ℓ t 2 / ( 2 ν uv )} with 2 ν u v = π + 18.5 w u ∨ v / r 2\nu_{uv}=\pi+18.5w_{u\vee v}/r 2 ν uv = π + 18.5 w u ∨ v / r , and repeating the argument with − λ -\lambda − λ bounds the lower tail.
Proofs of Theorem 14 and Corollary 15.
Proof of Theorem 14. By the triangle inequality, each estimator’s error is bounded by its deviation from the conditional mean ζ ˉ = ρ + b u v \bar{\zeta}=\rho+b_{uv} ζ ˉ = ρ + b uv plus ∣ b u v ∣ |b_{uv}| ∣ b uv ∣ . Fix D D D and treat the admissible pairs as deterministic.
(a) Let s u v : = ( π + 18.5 w u ∨ v / r ) L / ℓ s_{uv}:=\sqrt{(\pi+18.5w_{u\vee v}/r)L/\ell} s uv := ( π + 18.5 w u ∨ v / r ) L / ℓ denote the noise term in part (a). The hypothesis ℓ ≥ 4 ( π + 18.5 w u ∨ v / r ) L \ell\ge4(\pi+18.5w_{u\vee v}/r)L ℓ ≥ 4 ( π + 18.5 w u ∨ v / r ) L is equivalent to s u v ≤ 1 2 s_{uv}\le\frac{1}{2} s uv ≤ 2 1 . Because w u ∨ v ≤ r / 64 ≤ r / 16 w_{u\vee v}\le r/64\le r/16 w u ∨ v ≤ r /64 ≤ r /16 , applying Lemma 39 at t = s u v t=s_{uv} t = s uv bounds the failure probability for each pair by 2 e − L = δ / N 2e^{-L}=\delta/N 2 e − L = δ / N , and a union bound over all N N N pairs gives ∣ ρ ^ B G − ζ ˉ ∣ ≤ s u v |\hat{\rho}_{\mathrm{BG}}-\bar{\zeta}|\le s_{uv} ∣ ρ ^ BG − ζ ˉ ∣ ≤ s uv with probability at least 1 − δ 1-\delta 1 − δ . Adding ∣ b u v ∣ ≤ 1.15 w u / r |b_{uv}|\le1.15w_u/r ∣ b uv ∣ ≤ 1.15 w u / r from Proposition 13(i) completes the proof of (a).
(b) Conditioned on D D D , the row scores Z 1 , … , Z ℓ Z_1,\ldots,Z_\ell Z 1 , … , Z ℓ of each pair are i.i.d. with mean ζ ˉ \bar{\zeta} ζ ˉ and variance π 2 − ζ ˉ 2 < π 2 \frac{\pi}{2}-\bar{\zeta}^2<\frac{\pi}{2} 2 π − ζ ˉ 2 < 2 π (Lemma 33). Applying the deviation form of Lemma 24 with σ ∗ 2 = π 2 \sigma_*^2=\frac{\pi}{2} σ ∗ 2 = 2 π guarantees ∣ Cat α ( Z 1 , … , Z ℓ ) − ζ ˉ ∣ ≤ s |\operatorname{Cat}_{\alpha}(Z_1,\ldots,Z_\ell)-\bar{\zeta}|\le s ∣ Cat α ( Z 1 , … , Z ℓ ) − ζ ˉ ∣ ≤ s across all N N N pairs simultaneously with probability at least 1 − δ 1-\delta 1 − δ , and adding ∣ b u v ∣ ≤ 1.15 w u / r |b_{uv}|\le1.15w_u/r ∣ b uv ∣ ≤ 1.15 w u / r proves (b).
Fourth-moment variants (Section 3.4). Because both proofs invoke Proposition 13(i) only in their final step to bound ∣ b u v ∣ |b_{uv}| ∣ b uv ∣ , we may replace 1.15 w u / r 1.15w_u/r 1.15 w u / r directly with the fourth-moment bias bound of Proposition 13(ii), which imposes no cap restriction. With that replacement, part (b) requires no cap condition at all, while part (a) requires only w u ∨ v ≤ r / 16 w_{u\vee v}\le r/16 w u ∨ v ≤ r /16 (from Lemma 39), under which 18.5 w u ∨ v / r ≤ 18.5 / 16 < 1.16 18.5w_{u\vee v}/r\le18.5/16<1.16 18.5 w u ∨ v / r ≤ 18.5/16 < 1.16 .
Proof of Corollary 15. Dense case (r = n r=n r = n ). When r = n r=n r = n , we have S = [ n ] S=[n] S = [ n ] and q = 1 q=1 q = 1 under both support laws, so P = P D \mathbb{P}= \mathbb{P}_D P = P D has the exact distribution of a dense Gaussian matrix G G G for every D D D , and b u v = 0 b_{uv}=0 b uv = 0 . Part (i) then follows from Theorem 2 (since 4 log ( 4 N / δ ) ≥ π log ( 2 N / δ ) 4\log(4N/\delta)\ge\pi\log(2N/\delta) 4 log ( 4 N / δ ) ≥ π log ( 2 N / δ ) ), and part (ii) follows from Lemma 24.
Sparse case (r < n r<n r < n ). Set K : = ∣ U ∣ K:=|\mathcal{U}| K := ∣ U ∣ in (i) and K : = m K:=m K := m in (ii), so r ≥ 16 max { ε − 1 , 4 } μ ( K ) r\ge16\max\{\varepsilon^{-1},4\}\mu(K) r ≥ 16 max { ε − 1 , 4 } μ ( K ) and μ ( K ) / r ≤ min { ε , 1 4 } / 16 ≤ 1 64 \mu(K)/r\le\min\{\varepsilon,\frac{1}{4}\}/16\le\frac{1}{64} μ ( K ) / r ≤ min { ε , 4 1 } /16 ≤ 64 1 . We split the failure budget δ \delta δ equally between D D D and P P P : applying Lemma 6 with δ 0 = δ / 2 \delta_0=\delta/2 δ 0 = δ /2 yields the flatness bound 2 log ( 4 n K / δ ) = μ ( K ) 2\log(4nK/\delta)=\mu(K) 2 log ( 4 n K / δ ) = μ ( K ) , and replacing δ \delta δ with δ / 2 \delta/2 δ /2 in the conditional step replaces L = log ( 2 N / δ ) L=\log(2N/\delta) L = log ( 2 N / δ ) with log ( 4 N / δ ) \log(4N/\delta) log ( 4 N / δ ) .
(i) With probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 over D D D , every vector x ∈ U x\in\mathcal{U} x ∈ U satisfies w x ≤ μ ( ∣ U ∣ ) w_x\le\mu(|\mathcal{U}|) w x ≤ μ ( ∣ U ∣ ) , so every pair satisfies w u ∨ v / r ≤ 1 64 w_{u\vee v}/r\le\frac{1}{64} w u ∨ v / r ≤ 64 1 . Conditioned on such a D D D , Theorem 14(a) (with failure budget δ / 2 \delta/2 δ /2 ) gives noise term s u v ≤ ε ( π + 18.5 / 64 ) / 4 < 0.927 ε < 1 2 s_{uv}\le\varepsilon\sqrt{(\pi+18.5/64)/4}<0.927\varepsilon<\frac{1}{2} s uv ≤ ε ( π + 18.5/64 ) /4 < 0.927 ε < 2 1 and bias term 1.15 μ ( ∣ U ∣ ) / r ≤ 1.15 ε / 16 < 0.072 ε 1.15\mu(|\mathcal{U}|)/r\le1.15\varepsilon/16<0.072\varepsilon 1.15 μ ( ∣ U ∣ ) / r ≤ 1.15 ε /16 < 0.072 ε , whose sum is strictly below ε \varepsilon ε .
(ii) With probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 over D D D , all m m m stored vectors satisfy w u ≤ μ ( m ) w_u\le\mu(m) w u ≤ μ ( m ) , so Proposition 13(i) gives ∣ b u v ∣ ≤ 1.15 ε / 16 < 0.1 ε |b_{uv}|\le1.15\varepsilon/16<0.1\varepsilon ∣ b uv ∣ ≤ 1.15 ε /16 < 0.1 ε for every pair ( u , v ) (u,v) ( u , v ) (allowing v v v to depend on D D D ). For the noise, applying the fixed-accuracy form of Lemma 24 conditioned on D D D with σ ∗ 2 = π 2 \sigma_*^2=\frac{\pi}{2} σ ∗ 2 = 2 π , target accuracy 0.9 ε 0.9\varepsilon 0.9 ε , and failure budget δ / 2 \delta/2 δ /2 requires ℓ ≥ ( π / ( 0.81 ε 2 ) + 2 ) log ( 4 N / δ ) \ell\ge(\pi/(0.81\varepsilon^2)+2)\log(4N/\delta) ℓ ≥ ( π / ( 0.81 ε 2 ) + 2 ) log ( 4 N / δ ) , which holds since π / 0.81 < 3.9 \pi/0.81<3.9 π /0.81 < 3.9 ; the total error is then at most 0.9 ε + 0.1 ε = ε 0.9\varepsilon+0.1\varepsilon=\varepsilon 0.9 ε + 0.1 ε = ε .
Encoding complexity and budget trade-off. Since ε ≤ 1 2 \varepsilon\le\frac{1}{2} ε ≤ 2 1 , we have max { ε − 1 , 4 } ≤ 2 / ε \max\{\varepsilon^{-1},4\}\le2/\varepsilon max { ε − 1 , 4 } ≤ 2/ ε , so the minimum allowed sparsity is at most ⌈ 32 μ ( K ) / ε ⌉ \lceil32\mu(K)/\varepsilon\rceil ⌈ 32 μ ( K ) / ε ⌉ , and multiplying by ℓ = O ( ε − 2 log ( 4 N / δ ) ) \ell=O(\varepsilon^{-2}\log(4N/\delta)) ℓ = O ( ε − 2 log ( 4 N / δ )) gives r ℓ = r\ell= r ℓ = O ( ε − 3 μ ( K ) log ( 4 N / δ ) ) O(\varepsilon^{-3}\mu(K)\log(4N/\delta)) O ( ε − 3 μ ( K ) log ( 4 N / δ )) . Finally, to obtain the general budget split ε = ε s + ε b \varepsilon=\varepsilon_s+\varepsilon_b ε = ε s + ε b in Remark 16, simply replace the conditional bias bound in (ii) with the unconditional bound ∣ b u v ∣ ≤ 4.3 w U / r ≤ 4.3 μ ( m ) / r ≤ ε b |b_{uv}|\le4.3\,w_U/r\le4.3\,\mu(m)/r\le\varepsilon_b ∣ b uv ∣ ≤ 4.3 w U / r ≤ 4.3 μ ( m ) / r ≤ ε b from the proof of Proposition 13 and apply Lemma 24 at accuracy ε s \varepsilon_s ε s .
One bit on both sides (BB)
This section establishes the SimHash (BB) guarantees of § 3.5 . Fix D D D and a pair of unit vectors ( u , v ) (u,v) ( u , v ) at angle θ ∈ [ 0 , π ] \theta\in[0,\pi] θ ∈ [ 0 , π ] . Conditioned on its support S S S , a row produces a sign disagreement with probability θ S / π \theta_S/\pi θ S / π (Lemma 9(iii)), and the ℓ \ell ℓ rows are conditionally independent given D D D . Thus p ^ : = θ ^ / π \hat p:=\hat\theta/\pi p ^ := θ ^ / π is the average of ℓ \ell ℓ independent Bernoulli(p p p ) variables with unconditional success probability p : = E θ S / π p:=\mathbb{E}\theta_S/\pi p := E θ S / π , decomposing the angular error into
θ ^ − θ = π ( p ^ − p ) + E θ S − θ (31) \hat\theta-\theta=\pi(\hat p-p)+\mathbb{E}\theta_S-\theta \tag*{(31)} θ ^ − θ = π ( p ^ − p ) + E θ S − θ (31)
While the sampling noise π ( p ^ − p ) \pi(\hat p-p) π ( p ^ − p ) behaves just like dense SimHash, bounding the support bias E θ S − θ \mathbb{E}\theta_S-\theta E θ S − θ requires expanding the distorted angle θ S = ϑ θ ( M S ) \theta_S=\vartheta_\theta(M_S) θ S = ϑ θ ( M S ) around M = I 2 M=I_2 M = I 2 in powers of the metric sampling error E S : = M S − I 2 E_S:=M_S-I_2 E S := M S − I 2 . Because the first-order derivative is linear in E S E_S E S and E M S = I 2 \mathbb{E}M_S=I_2 E M S = I 2 (Lemma 9(ii)), the first-order bias vanishes in expectation. On the event that M S M_S M S has eigenvalues in [ 1 2 , 2 ] [\frac{1}{2},2] [ 2 1 , 2 ] , we bound the second-order Taylor remainder by 7 8 sin θ ∥ E S ∥ F 2 \frac{7}{8}\sin\theta\lVert E_S\rVert_F^2 8 7 sin θ ∥ E S ∥ F 2 (Lemma 41), where the factor sin θ \sin\theta sin θ makes the bias relative at small angles. Supports whose metric eigenvalues fall outside [ 1 2 , 2 ] [\frac{1}{2},2] [ 2 1 , 2 ] contribute at most π \pi π to the angular error and occur with probability exponentially small in r / w U r/w_U r / w U (Lemma 44), producing the cap-tail term.
Derivatives and second-order expansion of the metric angle. Recall that in the orthonormal basis U = [ u 1 u 2 ] U=[u_1\ u_2] U = [ u 1 u 2 ] of the plane, u u u and v v v have local coordinate vectors e 1 = ( 1 , 0 ) ⊤ e_1=(1,0)^\top e 1 = ( 1 , 0 ) ⊤ and t θ = ( cos θ , sin θ ) ⊤ t_\theta=(\cos\theta,\sin\theta)^\top t θ = ( cos θ , sin θ ) ⊤ (more generally, we write t φ : = ( cos φ , sin φ ) ⊤ t_\varphi:=(\cos\varphi,\sin\varphi)^\top t φ := ( cos φ , sin φ ) ⊤ for any angle φ \varphi φ ). For any positive definite matrix M ≻ 0 M\succ0 M ≻ 0 , the angle ϑ θ ( M ) ∈ [ 0 , π ] \vartheta_\theta(M)\in[0,\pi] ϑ θ ( M ) ∈ [ 0 , π ] between e 1 e_1 e 1 and t θ t_\theta t θ under M M M has cosine e 1 ⊤ M t θ { ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) } 1 / 2 \frac{e_1^\top M t_\theta}{\{(e_1^\top M e_1)(t_\theta^\top M t_\theta)\}^{1/2}} {( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) } 1/2 e 1 ⊤ M t θ and, by the Gram identity of Lemma 9(iv), sine sin θ det M { ( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) } 1 / 2 \frac{\sin\theta\sqrt{\det M}}{\{(e_1^\top M e_1)(t_\theta^\top M t_\theta)\}^{1/2}} {( e 1 ⊤ M e 1 ) ( t θ ⊤ M t θ ) } 1/2 s i n θ d e t M . Clearing the common positive denominator expresses ϑ θ ( M ) \vartheta_\theta(M) ϑ θ ( M ) as a complex argument:
ϑ θ ( M ) = arg ( e 1 ⊤ M t θ + i sin θ det M ) , M ≻ 0. (32) \vartheta_\theta(M)=\arg\left(e_1^\top M t_\theta+i\sin\theta\sqrt{\det M}\right),\qquad M\succ0. \tag*{(32)} ϑ θ ( M ) = arg ( e 1 ⊤ M t θ + i sin θ det M ) , M ≻ 0. (32)
Three immediate properties follow from Eq. (32) : first, ϑ θ ( c M ) = ϑ θ ( M ) \vartheta_\theta(cM)=\vartheta_\theta(M) ϑ θ ( c M ) = ϑ θ ( M ) for all c > 0 c>0 c > 0 (scale invariance); second, when θ ∈ { 0 , π } \theta\in\{0,\pi\} θ ∈ { 0 , π } , we have t θ = ± e 1 t_\theta=\pm e_1 t θ = ± e 1 and sin θ = 0 \sin\theta=0 sin θ = 0 , so ϑ θ ( M ) = θ \vartheta_\theta(M)=\theta ϑ θ ( M ) = θ identically; third, when 0 < θ < π 0<\theta<\pi 0 < θ < π , the imaginary part is strictly positive, so ϑ θ \vartheta_\theta ϑ θ is smooth on the cone of positive definite 2 × 2 2\times2 2 × 2 matrices.
Let b : = t θ / 2 b:=t_{\theta/2} b := t θ /2 denote the unit bisector of e 1 e_1 e 1 and t θ t_\theta t θ , and let b ⊥ : = t θ / 2 + π / 2 b_\perp:=t_{\theta/2+\pi/2} b ⊥ := t θ /2 + π /2 denote its unit normal. For any θ ∈ [ 0 , π ] \theta\in[0,\pi] θ ∈ [ 0 , π ] and any symmetric 2 × 2 2\times2 2 × 2 matrix A A A , define the linear form
ϑ θ ′ [ A ] : = − sin θ 2 ( b ⊤ A b − b ⊥ ⊤ A b ⊥ ) = sin θ 2 { cos θ ( A 22 − A 11 ) − 2 sin θ A 12 } . (33) \vartheta'_\theta[A]:=-\frac{\sin\theta}{2}\left(b^\top A b-b_\perp^\top A b_\perp\right)=\frac{\sin\theta}{2}\left\{\cos\theta(A_{22}-A_{11})-2\sin\theta A_{12}\right\}. \tag*{(33)} ϑ θ ′ [ A ] := − 2 sin θ ( b ⊤ A b − b ⊥ ⊤ A b ⊥ ) = 2 sin θ { cos θ ( A 22 − A 11 ) − 2 sin θ A 12 } . (33)
Because b b b and b ⊥ b_\perp b ⊥ are orthonormal, both Rayleigh quotients b ⊤ A b b^\top A b b ⊤ A b and b ⊥ ⊤ A b ⊥ b_\perp^\top A b_\perp b ⊥ ⊤ A b ⊥ lie in [ λ min ( A ) , λ max ( A ) ] [\lambda_{\min}(A),\lambda_{\max}(A)] [ λ m i n ( A ) , λ m a x ( A )] , which immediately gives the eigenvalue-spread bound
∣ ϑ θ ′ [ A ] ∣ ≤ sin θ 2 { λ max ( A ) − λ min ( A ) } for all θ ∈ [ 0 , π ] . (34) |\vartheta'_\theta[A]|\le\frac{\sin\theta}{2}\left\{\lambda_{\max}(A)-\lambda_{\min}(A)\right\}\qquad\text{for all }\theta\in[0,\pi]. \tag*{(34)} ∣ ϑ θ ′ [ A ] ∣ ≤ 2 sin θ { λ m a x ( A ) − λ m i n ( A ) } for all θ ∈ [ 0 , π ] . (34)
The next lemma identifies ϑ θ ′ \vartheta'_\theta ϑ θ ′ as the Fréchet derivative of ϑ θ \vartheta_\theta ϑ θ at I 2 I_2 I 2 and bounds the second directional derivative at an arbitrary metric M ≻ 0 M\succ0 M ≻ 0 in terms of the whitened perturbation K = M − 1 / 2 A M − 1 / 2 K=M^{-1/2}AM^{-1/2} K = M − 1/2 A M − 1/2 .
Lemma 40 (Whitened derivatives of the angle). Let 0 < θ < π 0<\theta<\pi 0 < θ < π , M ≻ 0 M\succ0 M ≻ 0 , and A A A be symmetric, and set ϕ : = ϑ θ ( M ) \phi:=\vartheta_\theta(M) ϕ := ϑ θ ( M ) , K : = M − 1 / 2 A M − 1 / 2 K:=M^{-1/2}AM^{-1/2} K := M − 1/2 A M − 1/2 , and f ( t ) : = ϑ θ ( M + t A ) f(t):=\vartheta_\theta(M+tA) f ( t ) := ϑ θ ( M + t A ) for small ∣ t ∣ |t| ∣ t ∣ .
(i) ∣ ϑ θ ′ [ A ] ∣ ≤ sin θ 2 { λ max ( A ) − λ min ( A ) } |\vartheta'_\theta[A]|\le\frac{\sin\theta}{2}\{\lambda_{\max}(A)-\lambda_{\min}(A)\} ∣ ϑ θ ′ [ A ] ∣ ≤ 2 s i n θ { λ m a x ( A ) − λ m i n ( A )} , and f ′ ( 0 ) = ϑ θ ′ [ A ] f'(0)=\vartheta'_\theta[A] f ′ ( 0 ) = ϑ θ ′ [ A ] when M = I 2 M=I_2 M = I 2 .
(ii) ∣ f ′ ′ ( 0 ) ∣ ≤ 1 + 5 4 sin ϕ ∥ K ∥ F 2 |f''(0)|\le\frac{1+\sqrt{5}}{4}\sin\phi\lVert K\rVert_F^2 ∣ f ′′ ( 0 ) ∣ ≤ 4 1 + 5 sin ϕ ∥ K ∥ F 2 .
Proof of Lemma 40. Step 1: Reduction to M = I 2 M=I_2 M = I 2 . For any invertible matrix B B B , the angle between x x x and y y y under the metric B ⊤ N B B^\top N B B ⊤ N B equals the angle between B x Bx B x and B y By B y under N N N , since x ⊤ B ⊤ N B y = ( B x ) ⊤ N ( B y ) x^\top B^\top N B y=(Bx)^\top N(By) x ⊤ B ⊤ N B y = ( B x ) ⊤ N ( B y ) . Factoring M + t A = M 1 / 2 ( I 2 + t K ) M 1 / 2 M+tA=M^{1/2}(I_2+tK)M^{1/2} M + t A = M 1/2 ( I 2 + t K ) M 1/2 with B = M 1 / 2 B=M^{1/2} B = M 1/2 shows that f ( t ) f(t) f ( t ) is the angle between $M^{1/2}e_1 and M 1 / 2 t θ M^{1/2}t_\theta M 1/2 t θ under the metric I 2 + t K I_2+tK I 2 + t K . At t = 0 t=0 t = 0 , their Euclidean angle is f ( 0 ) = ϕ ∈ ( 0 , π ) f(0)=\phi\in(0,\pi) f ( 0 ) = ϕ ∈ ( 0 , π ) . Rotating the plane by an orthogonal matrix O O O that aligns the directions of M 1 / 2 e 1 M^{1/2}e_1 M 1/2 e 1 and M 1 / 2 t θ M^{1/2}t_\theta M 1/2 t θ with e 1 e_1 e 1 and t ϕ t_\phi t ϕ (and using the fact that angles are invariant to vector lengths) gives f ( t ) = ϑ ϕ ( I 2 + t O K O T ) f(t)=\vartheta_\phi(I_2+tOKO^\mathsf{T}) f ( t ) = ϑ ϕ ( I 2 + tO K O T ) for small ∣ t ∣ |t| ∣ t ∣ . Since ∥ O K O T ∥ F = ∥ K ∥ F \lVert OKO^\mathsf{T}\rVert_F=\lVert K\rVert_F ∥ O K O T ∥ F = ∥ K ∥ F (and M = I 2 M=I_2 M = I 2 gives ϕ = θ \phi=\theta ϕ = θ , O = I 2 O=I_2 O = I 2 , K = A K=A K = A ), it suffices to show that for any ϕ ∈ ( 0 , π ) \phi\in(0,\pi) ϕ ∈ ( 0 , π ) and symmetric K K K , the function g ( t ) : = ϑ ϕ ( I 2 + t K ) g(t):=\vartheta_\phi(I_2+tK) g ( t ) := ϑ ϕ ( I 2 + t K ) satisfies g ′ ( 0 ) = ϑ ϕ ′ [ K ] g'(0)=\vartheta'_\phi[K] g ′ ( 0 ) = ϑ ϕ ′ [ K ] and ∣ g ′ ′ ( 0 ) ∣ ≤ 1 + 5 4 sin ϕ ∥ K ∥ F 2 |g''(0)|\leq\frac{1+\sqrt{5}}{4}\sin\phi\lVert K\rVert_F^2 ∣ g ′′ ( 0 ) ∣ ≤ 4 1 + 5 sin ϕ ∥ K ∥ F 2 .
Step 2: Complex logarithm differentiation. For small ∣ t ∣ |t| ∣ t ∣ , the matrix I 2 + t K I_2+tK I 2 + t K is positive definite, and (33) gives g ( t ) = arg ξ ( t ) = Im log ξ ( t ) g(t)=\arg\xi(t)=\operatorname{Im}\log\xi(t) g ( t ) = arg ξ ( t ) = Im log ξ ( t ) where
ξ ( t ) = cos ϕ + t e 1 T K t ϕ + i sin ϕ d ( t ) , d ( t ) : = ( 1 + t tr K + t 2 det K ) 1 / 2 . \xi(t)=\cos\phi+t e_1^\mathsf{T}Kt_\phi+i\sin\phi\,d(t),\qquad d(t):=(1+t\operatorname{tr}K+t^2\det K)^{1/2}. ξ ( t ) = cos ϕ + t e 1 T K t ϕ + i sin ϕ d ( t ) , d ( t ) := ( 1 + t tr K + t 2 det K ) 1/2 .
Differentiating twice yields g ′ = Im ( ξ ′ / ξ ) g'=\operatorname{Im}(\xi'/\xi) g ′ = Im ( ξ ′ / ξ ) and g ′ ′ = Im ( ξ ′ ′ / ξ ) − Im { ( ξ ′ / ξ ) 2 } g''=\operatorname{Im}(\xi''/\xi)-\operatorname{Im}\{(\xi'/\xi)^2\} g ′′ = Im ( ξ ′′ / ξ ) − Im {( ξ ′ / ξ ) 2 } .
Step 3: Orthogonal reflection basis. Let R R R be the reflection across the bisector t ϕ / 2 t_{\phi/2} t ϕ /2 of e 1 e_1 e 1 and t ϕ t_\phi t ϕ , and let R ′ R' R ′ be the reflection across the line at angle π / 4 \pi/4 π /4 to the bisector. We expand K K K in the orthogonal basis { I 2 , R , R ′ } \{I_2,R,R'\} { I 2 , R , R ′ } :
K = κ 0 I 2 + κ 1 R + κ 2 R ′ 2 , R = ( cos ϕ sin ϕ sin ϕ − cos ϕ ) , R ′ = ( − sin ϕ cos ϕ cos ϕ sin ϕ ) . K=\frac{\kappa_0I_2+\kappa_1R+\kappa_2R'}{\sqrt{2}},\qquad R=\begin{pmatrix}\cos\phi&\sin\phi\\ \sin\phi&-\cos\phi\end{pmatrix},\qquad R'=\begin{pmatrix}-\sin\phi&\cos\phi\\ \cos\phi&\sin\phi\end{pmatrix}. K = 2 κ 0 I 2 + κ 1 R + κ 2 R ′ , R = ( cos ϕ sin ϕ sin ϕ − cos ϕ ) , R ′ = ( − sin ϕ cos ϕ cos ϕ sin ϕ ) .
Because R R R and R ′ R' R ′ are symmetric, traceless, and anticommuting (R R ′ = − R ′ R RR'=-R'R R R ′ = − R ′ R ) with ∥ I 2 ∥ F 2 = ∥ R ∥ F 2 = ∥ R ′ ∥ F 2 = 2 \lVert I_2\rVert_F^2=\lVert R\rVert_F^2=\lVert R'\rVert_F^2=2 ∥ I 2 ∥ F 2 = ∥ R ∥ F 2 = ∥ R ′ ∥ F 2 = 2 , we have ∥ K ∥ F 2 = κ 0 2 + κ 1 2 + κ 2 2 \lVert K\rVert_F^2=\kappa_0^2+\kappa_1^2+\kappa_2^2 ∥ K ∥ F 2 = κ 0 2 + κ 1 2 + κ 2 2 and tr K = 2 κ 0 \operatorname{tr}K=\sqrt{2}\kappa_0 tr K = 2 κ 0 . Moreover, the traceless part T : = ( κ 1 R + κ 2 R ′ ) / 2 T:=(\kappa_1R+\kappa_2R')/\sqrt{2} T := ( κ 1 R + κ 2 R ′ ) / 2 satisfies T 2 = 1 2 ( κ 1 2 + κ 2 2 ) I 2 T^2=\frac{1}{2}(\kappa_1^2+\kappa_2^2)I_2 T 2 = 2 1 ( κ 1 2 + κ 2 2 ) I 2 , so det T = − 1 2 ( κ 1 2 + κ 2 2 ) \det T=-\frac{1}{2}(\kappa_1^2+\kappa_2^2) det T = − 2 1 ( κ 1 2 + κ 2 2 ) and det K = 1 2 ( κ 0 2 − κ 1 2 − κ 2 2 ) \det K=\frac{1}{2}(\kappa_0^2-\kappa_1^2-\kappa_2^2) det K = 2 1 ( κ 0 2 − κ 1 2 − κ 2 2 ) . Differentiating d ( t ) d(t) d ( t ) twice at t = 0 t=0 t = 0 gives d ′ ( 0 ) = 1 2 tr K = κ 0 / 2 d'(0)=\frac{1}{2}\operatorname{tr}K=\kappa_0/\sqrt{2} d ′ ( 0 ) = 2 1 tr K = κ 0 / 2 and d ′ ′ ( 0 ) = det K − 1 4 ( tr K ) 2 = − 1 2 ( κ 1 2 + κ 2 2 ) d''(0)=\det K-\frac{1}{4}(\operatorname{tr}K)^2=-\frac{1}{2}(\kappa_1^2+\kappa_2^2) d ′′ ( 0 ) = det K − 4 1 ( tr K ) 2 = − 2 1 ( κ 1 2 + κ 2 2 ) . Finally, since R t ϕ = e 1 Rt_\phi=e_1 R t ϕ = e 1 and R ′ t ϕ = ( 0 , 1 ) T R't_\phi=(0,1)^\mathsf{T} R ′ t ϕ = ( 0 , 1 ) T , we have e 1 T K t ϕ = ( κ 0 cos ϕ + κ 1 ) / 2 e_1^\mathsf{T}Kt_\phi=(\kappa_0\cos\phi+\kappa_1)/\sqrt{2} e 1 T K t ϕ = ( κ 0 cos ϕ + κ 1 ) / 2 . Evaluating ξ \xi ξ , ξ ′ \xi' ξ ′ , and ξ ′ ′ \xi'' ξ ′′ at t = 0 t=0 t = 0 therefore gives ξ ( 0 ) = e i ϕ \xi(0)=e^{i\phi} ξ ( 0 ) = e i ϕ , ξ ′ ( 0 ) = ( κ 0 e i ϕ + κ 1 ) / 2 \xi'(0)=(\kappa_0e^{i\phi}+\kappa_1)/\sqrt{2} ξ ′ ( 0 ) = ( κ 0 e i ϕ + κ 1 ) / 2 , and ξ ′ ′ ( 0 ) = − i sin ϕ 2 ( κ 1 2 + κ 2 2 ) \xi''(0)=-\frac{i\sin\phi}{2}(\kappa_1^2+\kappa_2^2) ξ ′′ ( 0 ) = − 2 i s i n ϕ ( κ 1 2 + κ 2 2 ) .
Step 4: Evaluating g ′ ( 0 ) g'(0) g ′ ( 0 ) and g ′ ′ ( 0 ) g''(0) g ′′ ( 0 ) . Dividing by ξ ( 0 ) = e i ϕ \xi(0)=e^{i\phi} ξ ( 0 ) = e i ϕ gives ξ ′ ( 0 ) / ξ ( 0 ) = ( κ 0 + κ 1 e − i ϕ ) / 2 \xi'(0)/\xi(0)=(\kappa_0+\kappa_1e^{-i\phi})/\sqrt{2} ξ ′ ( 0 ) / ξ ( 0 ) = ( κ 0 + κ 1 e − i ϕ ) / 2 , whose square has imaginary part − sin ϕ ( κ 0 κ 1 + κ 1 2 cos ϕ ) -\sin\phi(\kappa_0\kappa_1+\kappa_1^2\cos\phi) − sin ϕ ( κ 0 κ 1 + κ 1 2 cos ϕ ) , while ξ ′ ′ ( 0 ) / ξ ( 0 ) \xi''(0)/\xi(0) ξ ′′ ( 0 ) / ξ ( 0 ) has imaginary part − 1 2 sin ϕ cos ϕ ( κ 1 2 + κ 2 2 ) -\frac{1}{2}\sin\phi\cos\phi(\kappa_1^2+\kappa_2^2) − 2 1 sin ϕ cos ϕ ( κ 1 2 + κ 2 2 ) . Substituting these into Step 2 yields
g ′ ( 0 ) = − sin ϕ 2 κ 1 , g ′ ′ ( 0 ) = sin ϕ [ κ 0 κ 1 + cos ϕ 2 ( κ 1 2 − κ 2 2 ) ] . (35) g'(0)=-\frac{\sin\phi}{\sqrt{2}}\kappa_1,\qquad g''(0)=\sin\phi\left[\kappa_0\kappa_1+\frac{\cos\phi}{2}(\kappa_1^2-\kappa_2^2)\right]. \tag*{(35)} g ′ ( 0 ) = − 2 sin ϕ κ 1 , g ′′ ( 0 ) = sin ϕ [ κ 0 κ 1 + 2 cos ϕ ( κ 1 2 − κ 2 2 ) ] . (35)
Because R = b b T − b ⊥ b ⊥ T R=bb^\mathsf{T}-b_\perp b_\perp^\mathsf{T} R = b b T − b ⊥ b ⊥ T for b = t ϕ / 2 b=t_{\phi/2} b = t ϕ /2 , we have 2 κ 1 = tr ( K R ) = b T K b − b ⊥ T K b ⊥ \sqrt{2}\kappa_1=\operatorname{tr}(KR)=b^\mathsf{T}Kb-b_\perp^\mathsf{T}Kb_\perp 2 κ 1 = tr ( K R ) = b T K b − b ⊥ T K b ⊥ , so g ′ ( 0 ) = ϑ ϕ ′ [ K ] g'(0)=\vartheta'_\phi[K] g ′ ( 0 ) = ϑ ϕ ′ [ K ] by (34). In the expression for g ′ ′ ( 0 ) g''(0) g ′′ ( 0 ) , the quadratic form inside the brackets has eigenvalue − 1 2 cos ϕ -\frac{1}{2}\cos\phi − 2 1 cos ϕ along κ 2 \kappa_2 κ 2 and eigenvalues 1 4 ( cos ϕ ± 4 + cos 2 ϕ ) \frac{1}{4}\left(\cos\phi\pm\sqrt{4+\cos^2\phi}\right) 4 1 ( cos ϕ ± 4 + cos 2 ϕ ) (the roots of x 2 − 1 2 x cos ϕ − 1 4 = 0 x^2-\frac{1}{2}x\cos\phi-\frac{1}{4}=0 x 2 − 2 1 x cos ϕ − 4 1 = 0 ) on the ( κ 0 , κ 1 ) (\kappa_0,\kappa_1) ( κ 0 , κ 1 ) -plane. All three eigenvalues are bounded in magnitude by 1 4 ( ∣ cos ϕ ∣ + 4 + cos 2 ϕ ) ≤ 1 + 5 4 \frac{1}{4}(|\cos\phi|+\sqrt{4+\cos^2\phi})\leq\frac{1+\sqrt{5}}{4} 4 1 ( ∣ cos ϕ ∣ + 4 + cos 2 ϕ ) ≤ 4 1 + 5 , proving (ii). □
Integrating the second-derivative bound of Lemma 40(ii) along the line segment from I 2 I_2 I 2 to M M M yields our key deterministic Taylor expansion for well-conditioned metrics.
Lemma 41 (Second-order expansion of the angle). Let θ ∈ [ 0 , π ] \theta\in[0,\pi] θ ∈ [ 0 , π ] , let M M M be a symmetric 2 × 2 2\times2 2 × 2 matrix satisfying 1 2 I 2 ≤ M ≤ 2 I 2 \frac{1}{2}I_2\leq M\leq2I_2 2 1 I 2 ≤ M ≤ 2 I 2 , and set E : = M − I 2 E:=M-I_2 E := M − I 2 . Then
∣ ϑ θ ( M ) − θ − ϑ θ ′ [ E ] ∣ ≤ 7 8 sin θ ∥ E ∥ F 2 . \left|\vartheta_\theta(M)-\theta-\vartheta'_\theta[E]\right|\leq\frac{7}{8}\sin\theta\lVert E\rVert_F^2. ∣ ϑ θ ( M ) − θ − ϑ θ ′ [ E ] ∣ ≤ 8 7 sin θ ∥ E ∥ F 2 . Proof of Lemma 41. When θ ∈ { 0 , π } \theta\in\{0,\pi\} θ ∈ { 0 , π } , both sides vanish identically by (33) and (34). For 0 < θ < π 0<\theta<\pi 0 < θ < π , define M ( t ) : = I 2 + t E M(t):=I_2+tE M ( t ) := I 2 + tE and ϕ ( t ) : = ϑ θ ( M ( t ) ) \phi(t):=\vartheta_\theta(M(t)) ϕ ( t ) := ϑ θ ( M ( t )) for t ∈ [ 0 , 1 ] t\in[0,1] t ∈ [ 0 , 1 ] . Because the eigenvalues of E E E lie in [ − 1 2 , 1 ] [-\frac{1}{2},1] [ − 2 1 , 1 ] , those of M ( t ) M(t) M ( t ) lie in [ 1 − t 2 , 1 + t ] [1-\frac{t}{2},1+t] [ 1 − 2 t , 1 + t ] , so ϕ ( t ) \phi(t) ϕ ( t ) is smooth on [ 0 , 1 ] [0,1] [ 0 , 1 ] with ϕ ( 0 ) = θ \phi(0)=\theta ϕ ( 0 ) = θ , ϕ ( 1 ) = ϑ θ ( M ) \phi(1)=\vartheta_\theta(M) ϕ ( 1 ) = ϑ θ ( M ) , and ϕ ′ ( 0 ) = ϑ θ ′ [ E ] \phi'(0)=\vartheta'_\theta[E] ϕ ′ ( 0 ) = ϑ θ ′ [ E ] . By Taylor’s theorem with integral remainder, ϑ θ ( M ) − θ − ϑ θ ′ [ E ] = ∫ 0 1 ( 1 − t ) ϕ ′ ′ ( t ) d t \vartheta_\theta(M)-\theta-\vartheta'_\theta[E]=\int_0^1(1-t)\phi''(t)\,dt ϑ θ ( M ) − θ − ϑ θ ′ [ E ] = ∫ 0 1 ( 1 − t ) ϕ ′′ ( t ) d t . Applying Lemma 40(ii) at M ( t ) M(t) M ( t ) in direction E E E gives ∣ ϕ ′ ′ ( t ) ∣ ≤ 1 + 5 4 sin ϕ ( t ) ∥ K ( t ) ∥ F 2 |\phi''(t)|\leq\frac{1+\sqrt{5}}{4}\sin\phi(t)\lVert K(t)\rVert_F^2 ∣ ϕ ′′ ( t ) ∣ ≤ 4 1 + 5 sin ϕ ( t ) ∥ K ( t ) ∥ F 2 where K ( t ) : = M ( t ) − 1 / 2 E M ( t ) − 1 / 2 K(t):=M(t)^{-1/2}EM(t)^{-1/2} K ( t ) := M ( t ) − 1/2 E M ( t ) − 1/2 . Because M ( t ) M(t) M ( t ) and E E E commute, each eigenvalue λ ≥ − 1 2 \lambda\geq-\frac{1}{2} λ ≥ − 2 1 of E E E maps to λ / ( 1 + t λ ) \lambda/(1+t\lambda) λ / ( 1 + t λ ) in K ( t ) K(t) K ( t ) , so ∥ K ( t ) ∥ F ≤ ∥ E ∥ F / ( 1 − t 2 ) \lVert K(t)\rVert_F\leq\lVert E\rVert_F/(1-\frac{t}{2}) ∥ K ( t ) ∥ F ≤ ∥ E ∥ F / ( 1 − 2 t ) , while the Gram identity (Lemma 9(iv)) gives sin ϕ ( t ) ≤ sin θ { ( 1 + t ) / ( 1 − t 2 ) } 1 / 2 \sin\phi(t)\leq\sin\theta\{(1+t)/(1-\frac{t}{2})\}^{1/2} sin ϕ ( t ) ≤ sin θ {( 1 + t ) / ( 1 − 2 t ) } 1/2 . Using ( 1 + t ) ( 1 − t 2 ) ≤ 9 8 (1+t)(1-\frac{t}{2})\leq\frac{9}{8} ( 1 + t ) ( 1 − 2 t ) ≤ 8 9 on [ 0 , 1 ] [0,1] [ 0 , 1 ] , we obtain
∣ ϕ ′ ′ ( t ) ∣ ≤ 1 + 5 4 sin θ ∥ E ∥ F 2 { ( 1 + t ) ( 1 − t 2 ) } 1 / 2 ( 1 − t 2 ) 3 ≤ 3 ( 1 + 5 ) 8 2 sin θ ∥ E ∥ F 2 ( 1 − t 2 ) − 3 . |\phi''(t)|\leq\frac{1+\sqrt{5}}{4}\sin\theta\lVert E\rVert_F^2\frac{\{(1+t)(1-\frac{t}{2})\}^{1/2}}{(1-\frac{t}{2})^3}\leq\frac{3(1+\sqrt{5})}{8\sqrt{2}}\sin\theta\lVert E\rVert_F^2\left(1-\frac{t}{2}\right)^{-3}. ∣ ϕ ′′ ( t ) ∣ ≤ 4 1 + 5 sin θ ∥ E ∥ F 2 ( 1 − 2 t ) 3 {( 1 + t ) ( 1 − 2 t ) } 1/2 ≤ 8 2 3 ( 1 + 5 ) sin θ ∥ E ∥ F 2 ( 1 − 2 t ) − 3 . Since ∫ 0 1 ( 1 − t ) ( 1 − t 2 ) − 3 d t = 1 \int_0^1(1-t)(1-\frac{t}{2})^{-3}\,dt=1 ∫ 0 1 ( 1 − t ) ( 1 − 2 t ) − 3 d t = 1 and 3 ( 1 + 5 ) 8 2 < 0.86 < 7 8 \frac{3(1+\sqrt{5})}{8\sqrt{2}}<0.86<\frac{7}{8} 8 2 3 ( 1 + 5 ) < 0.86 < 8 7 , integrating over t ∈ [ 0 , 1 ] t\in[0,1] t ∈ [ 0 , 1 ] completes the proof. □
Bounding the support bias. Taking expectations of the expansion in Lemma 41 over the random support S S S yields the coordinatewise pair certificate for SimHash.
Proposition 42 (BB support bias, certificate form). Fix D D D and a pair ( u , v ) (u,v) ( u , v ) at angle θ ∈ [ 0 , π ] \theta\in[0,\pi] θ ∈ [ 0 , π ] , and set
p : = Pr [ sign X ≠ sign Y ∣ D ] , E S : = M S − I 2 , and p := \Pr[\operatorname{sign} X \ne\operatorname{sign} Y \mid D],\quad E_S := M_S-I_2,\quad\text{and} p := Pr [ sign X = sign Y ∣ D ] , E S := M S − I 2 , and V M : = E ∥ E S ∥ F 2 = f q ( k U − 21 b a l ) r ≤ 2 w U r , G : = { 1 2 I 2 ⪯ M S ⪯ 2 I 2 } . V_M := \mathbb{E}\lVert E_S\rVert_F^2 = \frac{f_q(k_U-2\mathbf{1}_{\mathrm{bal}})}{r} \le\frac{2w_U}{r},\qquad\mathcal{G}:=\left\{\tfrac12 I_2\preceq M_S\preceq2I_2\right\}. V M := E ∥ E S ∥ F 2 = r f q ( k U − 2 1 bal ) ≤ r 2 w U , G := { 2 1 I 2 ⪯ M S ⪯ 2 I 2 } . Then
∣ π p − θ ∣ ≤ 7 8 sin θ V M + ( max { θ , π − θ } + 1 8 sin θ ) Pr [ G c ] , \lvert\pi p-\theta\rvert\le\frac{7}{8}\sin\theta\,V_M+\left(\max\{\theta,\pi-\theta\}+\frac18\sin\theta\right)\Pr[\mathcal{G}^{c}], ∣ π p − θ ∣ ≤ 8 7 sin θ V M + ( max { θ , π − θ } + 8 1 sin θ ) Pr [ G c ] , where the tail coefficient multiplying Pr [ G c ] \Pr[\mathcal{G}^{c}] Pr [ G c ] is at most π \pi π .
Proof of Proposition 42. By Lemma 9(ii) and (iii), π p = E θ S \pi p=\mathbb{E}\theta_S π p = E θ S and E E S = 0 \mathbb{E}E_S=0 E E S = 0 . Because ϑ θ ′ \vartheta_\theta' ϑ θ ′ is linear, E ϑ θ ′ [ E S ] = 0 \mathbb{E}\vartheta_\theta'[E_S]=0 E ϑ θ ′ [ E S ] = 0 , so π p − θ = E [ θ S − θ − ϑ θ ′ [ E S ] ] \pi p-\theta=\mathbb{E}[\theta_S-\theta-\vartheta_\theta'[E_S]] π p − θ = E [ θ S − θ − ϑ θ ′ [ E S ]] . We claim that every support S S S satisfies the pointwise bound
∣ θ S − θ − ϑ θ ′ [ E S ] ∣ ≤ 7 8 sin θ ∥ E S ∥ F 2 + ( max { θ , π − θ } + 1 8 sin θ ) 1 G c . \left\lvert\theta_S-\theta-\vartheta_\theta'[E_S]\right\rvert\le\frac{7}{8}\sin\theta\lVert E_S\rVert_F^2+\left(\max\{\theta,\pi-\theta\}+\frac18\sin\theta\right)\mathbf{1}_{\mathcal{G}^{c}}. ∣ θ S − θ − ϑ θ ′ [ E S ] ∣ ≤ 8 7 sin θ ∥ E S ∥ F 2 + ( max { θ , π − θ } + 8 1 sin θ ) 1 G c .
Taking expectations then yields the stated bias bound (noting that max { θ , π − θ } + 1 8 sin θ ≤ π \max\{\theta,\pi-\theta\}+\frac18\sin\theta\le\pi max { θ , π − θ } + 8 1 sin θ ≤ π since sin θ ≤ min { θ , π − θ } \sin\theta\le\min\{\theta,\pi-\theta\} sin θ ≤ min { θ , π − θ } ).
Supports in G \mathcal{G} G . * On G \mathcal{G} G , we have M S ≻ 0 M_S\succ0 M S ≻ 0 and θ S = ϑ θ ( M S ) \theta_S=\vartheta_\theta(M_S) θ S = ϑ θ ( M S ) , so the pointwise inequality holds by Lemma 41.
Supports in G c \mathcal{G}^{c} G c . * Because θ S , θ ∈ [ 0 , π ] \theta_S,\theta\in[0,\pi] θ S , θ ∈ [ 0 , π ] always, ∣ θ S − θ ∣ ≤ max { θ , π − θ } \lvert\theta_S-\theta\rvert\le\max\{\theta,\pi-\theta\} ∣ θ S − θ ∣ ≤ max { θ , π − θ } . Let λ 1 , λ 2 \lambda_1,\lambda_2 λ 1 , λ 2 be the eigenvalues of E S E_S E S ordered so that ∣ λ 1 ∣ ≥ ∣ λ 2 ∣ \lvert\lambda_1\rvert\ge\lvert\lambda_2\rvert ∣ λ 1 ∣ ≥ ∣ λ 2 ∣ . By (34) , ∣ ϑ θ ′ [ E S ] ∣ ≤ sin θ 2 ( ∣ λ 1 ∣ + ∣ λ 2 ∣ ) \lvert\vartheta_\theta'[E_S]\rvert\le\frac{\sin\theta}{2}(\lvert\lambda_1\rvert+\lvert\lambda_2\rvert) ∣ ϑ θ ′ [ E S ]∣ ≤ 2 s i n θ (∣ λ 1 ∣ + ∣ λ 2 ∣) . On G c \mathcal{G}^{c} G c , at least one eigenvalue of E S E_S E S lies outside [ − 1 2 , 1 ] [-\frac12,1] [ − 2 1 , 1 ] , forcing ∣ λ 1 ∣ > 1 2 \lvert\lambda_1\rvert>\frac12 ∣ λ 1 ∣ > 2 1 . Because the quadratic x ↦ x 2 − 7 8 x 2 x\mapsto\frac{x}{2}-\frac{7}{8}x^2 x ↦ 2 x − 8 7 x 2 attains its global maximum 1 14 \frac{1}{14} 14 1 at x = 2 7 x=\frac{2}{7} x = 7 2 and is decreasing on [ 1 2 , ∞ ) [\frac12,\infty) [ 2 1 , ∞ ) with value 1 32 \frac{1}{32} 32 1 at x = 1 2 x=\frac12 x = 2 1 , we have 1 2 ∣ λ 2 ∣ ≤ 7 8 λ 2 2 + 1 32 \frac12\lvert\lambda_2\rvert\le\frac78\lambda_2^2+\frac{1}{32} 2 1 ∣ λ 2 ∣ ≤ 8 7 λ 2 2 + 32 1 and 1 2 ∣ λ 1 ∣ ≤ 7 8 λ 1 2 + 1 32 \frac12\lvert\lambda_1\rvert\le\frac78\lambda_1^2+\frac{1}{32} 2 1 ∣ λ 1 ∣ ≤ 8 7 λ 1 2 + 32 1 . Since 1 14 + 1 32 < 1 8 \frac{1}{14}+\frac{1}{32}<\frac18 14 1 + 32 1 < 8 1 and λ 1 2 + λ 2 2 = ∥ E S ∥ F 2 \lambda_1^2+\lambda_2^2=\lVert E_S\rVert_F^2 λ 1 2 + λ 2 2 = ∥ E S ∥ F 2 , summing gives ∣ ϑ θ ′ [ E S ] ∣ ≤ sin θ ( 7 8 ∥ E S ∥ F 2 + 1 8 ) \lvert\vartheta_\theta'[E_S]\rvert\le\sin\theta\left(\frac78\lVert E_S\rVert_F^2+\frac18\right) ∣ ϑ θ ′ [ E S ]∣ ≤ sin θ ( 8 7 ∥ E S ∥ F 2 + 8 1 ) , establishing the pointwise bound on G c \mathcal{G}^{c} G c .
Expected squared Frobenius error V M V_M V M . * Each of the four entries of M S M_S M S is a captured sum q − 1 ∑ j ∈ S y j q^{-1}\sum_{j\in S}y_j q − 1 ∑ j ∈ S y j of the corresponding entry of c j c j T c_jc_j^\mathsf{T} c j c j T , with expectation equal to the corresponding entry of I 2 I_2 I 2 . Summing the variance formula of Lemma 28 across all four entries gives
V M = f q q ( ∑ j ∥ c j c j T ∥ F 2 − 1 b a l n ∥ I 2 ∥ F 2 ) = f q q ( ∑ j ∥ c j ∥ 4 − 21 b a l n ) = f q ( k U − 21 b a l ) r , V_M=\frac{f_q}{q}\left(\sum_j\lVert c_jc_j^\mathsf{T}\rVert_F^2-\frac{\mathbf{1}_{\mathrm{bal}}}{n}\lVert I_2\rVert_F^2\right)=\frac{f_q}{q}\left(\sum_j\lVert c_j\rVert^4-\frac{2\mathbf{1}_{\mathrm{bal}}}{n}\right)=\frac{f_q(k_U-2\mathbf{1}_{\mathrm{bal}})}{r}, V M = q f q ( j ∑ ∥ c j c j T ∥ F 2 − n 1 bal ∥ I 2 ∥ F 2 ) = q f q ( j ∑ ∥ c j ∥ 4 − n 2 1 bal ) = r f q ( k U − 2 1 bal ) ,
since q = r / n q=r/n q = r / n and k U = n ∑ j ∥ c j ∥ 4 k_U=n\sum_j\lVert c_j\rVert^4 k U = n ∑ j ∥ c j ∥ 4 . Finally, V M ≤ 2 w U / r V_M\le2w_U/r V M ≤ 2 w U / r follows from f q ≤ 1 f_q\le1 f q ≤ 1 and k U ≤ 2 w U k_U\le2w_U k U ≤ 2 w U (Lemma 27 (c)).
Notice why the − 21 b a l -2\mathbf{1}_{\mathrm{bal}} − 2 1 bal reduction appears in V M V_M V M under balanced supports: under Bernoulli supports, the support size ∣ S ∣ ∼ Binomial ( n , q ) \lvert S\rvert\sim\operatorname{Binomial}(n,q) ∣ S ∣ ∼ Binomial ( n , q ) has variance r ( 1 − q ) = r f q r(1-q)=rf_q r ( 1 − q ) = r f q , so the conditional mean metric ( ∣ S ∣ / r ) I 2 (\lvert S\rvert/r)I_2 (∣ S ∣ / r ) I 2 fluctuates in trace, adding ∥ I 2 ∥ F 2 Var ( ∣ S ∣ / r ) = 2 f q / r \lVert I_2\rVert_F^2\operatorname{Var}(\lvert S\rvert/r)=2f_q/r ∥ I 2 ∥ F 2 Var (∣ S ∣ / r ) = 2 f q / r to V M V_M V M . Although rescaling M S M_S M S does not alter the angle ϑ θ ( M S ) \vartheta_\theta(M_S) ϑ θ ( M S ) , Lemma 40 (ii) bounds the second derivative via the full Frobenius norm ∥ K ∥ F 2 \lVert K\rVert_F^2 ∥ K ∥ F 2 (including the trace component κ 0 2 \kappa_0^2 κ 0 2 ).
Remark 43 (Coordinate cancellation in the leading BB bias term). For 0 < θ < π 0<\theta<\pi 0 < θ < π , let ϑ θ ′ ′ [ A ] \vartheta_\theta''[A] ϑ θ ′′ [ A ] denote the second directional derivative of t ↦ ϑ θ ( I 2 + t A ) t\mapsto\vartheta_\theta(I_2+tA) t ↦ ϑ θ ( I 2 + t A ) at t = 0 t=0 t = 0 (given by (35) with ϕ = θ \phi=\theta ϕ = θ and K = A K=A K = A ), so that the leading second-order term of the BB support bias is b 2 : = 1 2 E ϑ θ ′ ′ [ E S ] b_2:=\frac12\mathbb{E}\vartheta_\theta''[E_S] b 2 := 2 1 E ϑ θ ′′ [ E S ] . Applying the covariance formula of Lemma 28 to the quadratic form ϑ θ ′ ′ \vartheta_\theta'' ϑ θ ′′ (and noting ϑ θ ′ ′ [ I 2 ] = 0 \vartheta_\theta''[I_2]=0 ϑ θ ′′ [ I 2 ] = 0 by scale invariance) gives E ϑ θ ′ ′ [ E S ] = f q q ∑ j ϑ θ ′ ′ [ c j c j T ] \mathbb{E}\vartheta_\theta''[E_S]=\frac{f_q}{q}\sum_j\vartheta_\theta''[c_jc_j^\mathsf{T}] E ϑ θ ′′ [ E S ] = q f q ∑ j ϑ θ ′′ [ c j c j T ] under both support laws. Writing each row vector c j = ∥ c j ∥ ( cos χ j , sin χ j ) c_j=\lVert c_j\rVert(\cos\chi_j,\sin\chi_j) c j = ∥ c j ∥ ( cos χ j , sin χ j ) in polar coordinates relative to the bisector θ / 2 \theta/2 θ /2 , the rank-one matrix c j c j T c_jc_j^\mathsf{T} c j c j T has coordinates 2 − 1 / 2 ∥ c j ∥ 2 ( 1 , cos 2 χ j , sin 2 χ j ) 2^{-1/2}\lVert c_j\rVert^2(1,\cos2\chi_j,\sin2\chi_j) 2 − 1/2 ∥ c j ∥ 2 ( 1 , cos 2 χ j , sin 2 χ j ) in the basis { I 2 , R , R ′ } \{I_2,R,R'\} { I 2 , R , R ′ } of Lemma 40 , so (35) yields the exact expression
b 2 = f q sin θ 4 q ∑ j ∥ c j ∥ 4 { cos 2 χ j + 1 2 cos θ cos 4 χ j } . b_2=\frac{f_q\sin\theta}{4q}\sum_j\lVert c_j\rVert^4\left\{\cos2\chi_j+\frac12\cos\theta\cos4\chi_j\right\}. b 2 = 4 q f q sin θ j ∑ ∥ c j ∥ 4 { cos 2 χ j + 2 1 cos θ cos 4 χ j } . Crucially, this sum is signed: when the angles χ j \chi_j χ j are distributed nearly uniformly around the circle (as occurs for a generic Gaussian plane), the trigonometric factors cos 2 χ j \cos2\chi_j cos 2 χ j and cos 4 χ j \cos4\chi_j cos 4 χ j oscillate in sign and nearly cancel, making ∣ b 2 ∣ \lvert b_2\rvert ∣ b 2 ∣ orders of magnitude smaller than the Frobenius bound of Proposition 42 (Section 4.3).
In the worst case, however, where all χ j \chi_j χ j align with the extremal eigendirections of ϑ θ ′ ′ \vartheta_\theta'' ϑ θ ′′ , the constant 7 8 \frac78 8 7 in Proposition 42 is within a small factor of the sharp second-order constant. Specifically, under Bernoulli
supports (V M = f q q ∑ j ∥ c j ∥ 4 V_M = \frac{f_q}{q}\sum_j \lVert c_j\rVert^4 V M = q f q ∑ j ∥ c j ∥ 4 ), bounding the trigonometric bracket by 1 + 1 2 ∣ cos θ ∣ 1 + \frac{1}{2}|\cos\theta| 1 + 2 1 ∣ cos θ ∣ gives ∣ b 2 ∣ ≤ 1 4 ( 1 + 1 2 ∣ cos θ ∣ ) sin θ V M |b_2| \le\frac{1}{4}(1 + \frac{1}{2}|\cos\theta|)\sin\theta V_M ∣ b 2 ∣ ≤ 4 1 ( 1 + 2 1 ∣ cos θ ∣ ) sin θ V M , which is attained in the limit n 0 / n → 0 n_0/n \to0 n 0 / n → 0 by planes with c j = n 0 − 1 / 2 t θ / 2 c_j = n_0^{-1/2}t_{\theta/2} c j = n 0 − 1/2 t θ /2 on n 0 n_0 n 0 coordinates and c j = ( n − n 0 ) − 1 / 2 t θ / 2 + π / 2 c_j = (n-n_0)^{-1/2}t_{\theta/2+\pi/2} c j = ( n − n 0 ) − 1/2 t θ /2 + π /2 on the remaining n − n 0 n-n_0 n − n 0 coordinates (swapping the two directions when θ > π 2 \theta> \frac{\pi}{2} θ > 2 π ). Under balanced supports (V M = 1 q ( ∑ j ∥ c j ∥ 4 − 2 n ) V_M = \frac{1}{q}(\sum_j \lVert c_j\rVert^4 - \frac{2}{n}) V M = q 1 ( ∑ j ∥ c j ∥ 4 − n 2 ) ), the eigenvalue bound of Lemma 40 gives ∣ b 2 ∣ ≤ 1 8 ( ∣ cos θ ∣ + 4 + cos 2 θ ) sin θ V M |b_2| \le\frac{1}{8}(|\cos\theta| + \sqrt{4+\cos^2\theta})\sin\theta V_M ∣ b 2 ∣ ≤ 8 1 ( ∣ cos θ ∣ + 4 + cos 2 θ ) sin θ V M , which is attained by the same two-direction construction when n 0 / n → 1 4 ( 2 + ∣ cos θ ∣ − 4 + cos 2 θ ) n_0/n \to\frac{1}{4}(2+|\cos\theta|-\sqrt{4+\cos^2\theta}) n 0 / n → 4 1 ( 2 + ∣ cos θ ∣ − 4 + cos 2 θ ) (≈ 0.19 \approx0.19 ≈ 0.19 as θ → 0 \theta\to0 θ → 0 or π \pi π ). Thus the coefficient 7 8 \frac{7}{8} 8 7 exceeds the sharp second-order worst-case constant by a factor of at most 7 3 ≈ 2.33 \frac{7}{3}\approx2.33 3 7 ≈ 2.33 (Bernoulli) or 7 1 + 5 ≈ 2.16 \frac{7}{1+\sqrt{5}}\approx2.16 1 + 5 7 ≈ 2.16 (balanced) as θ → 0 , π \theta\to0,\pi θ → 0 , π , and 7 2 = 3.5 \frac{7}{2}=3.5 2 7 = 3.5 at θ = π 2 \theta=\frac{\pi}{2} θ = 2 π .
To complete the BB bias bound, we bound the atypical-metric probability Pr [ G c ] \Pr[\mathcal{G}^c] Pr [ G c ] in two ways: first in terms of the plane cap w U w_U w U via matrix Chernoff (used in Theorem 18 ), and second in terms of coordinate variance and range parameters ( V U , R U ) (V_U,R_U) ( V U , R U ) via matrix Bernstein (used in the coordinatewise BB pair certificate of Section 4.3).
Lemma 44 (Metric tail). Fix D D D and a pair ( u , v ) (u,v) ( u , v ) . Under either support law, Pr [ G c ] ≤ 4 exp { − ( 1 − log 2 ) r / ( 2 w U ) } \Pr[\mathcal{G}^c] \le4\exp\{-(1-\log2)r/(2w_U)\} Pr [ G c ] ≤ 4 exp { − ( 1 − log 2 ) r / ( 2 w U )} . In addition, Pr [ G c ] ≤ 4 exp { − 1 / ( 8 V U + 4 R U / 3 ) } \Pr[\mathcal{G}^c] \le4\exp\{-1/(8V_U+4R_U/3)\} Pr [ G c ] ≤ 4 exp { − 1/ ( 8 V U + 4 R U /3 )} , where, setting C j : = n c j c j T − I 2 C_j := nc_jc_j^\mathsf{T}-I_2 C j := n c j c j T − I 2 ,
Bernoulli: V U = f q q ∥ ∑ j ∥ c j ∥ 2 c j c j T ∥ o p , R U = max { 1 , f q q } max j ∥ c j ∥ 2 , balanced: V U = 1 r n ∥ ∑ j C j 2 ∥ o p , R U = 1 r max j ∥ C j ∥ o p . \begin{aligned}
\text{Bernoulli:}\quad&V_U=\frac{f_q}{q}\left\|\sum_j\|c_j\|^2c_jc_j^\mathsf{T}\right\|_{\mathrm{op}}, \qquad R_U=\max\left\{1,\frac{f_q}{q}\right\}\max_j\|c_j\|^2,\\
\text{balanced:}\quad&V_U=\frac{1}{rn}\left\|\sum_j C_j^2\right\|_{\mathrm{op}}, \qquad R_U=\frac{1}{r}\max_j\|C_j\|_{\mathrm{op}}.
\end{aligned} Bernoulli: balanced: V U = q f q j ∑ ∥ c j ∥ 2 c j c j T op , R U = max { 1 , q f q } j max ∥ c j ∥ 2 , V U = r n 1 j ∑ C j 2 op , R U = r 1 j max ∥ C j ∥ op .
Proof of Lemma 44. We apply the matrix Chernoff bound (15) to M S M_S M S and the matrix Bernstein bound (16) to E S E_S E S . Writing ξ j : = 1 { j ∈ S } \xi_j:=1\{j\in S\} ξ j := 1 { j ∈ S } , we have M S = ∑ j = 1 n ξ j q c j c j T M_S=\sum_{j=1}^n\frac{\xi_j}{q}c_jc_j^\mathsf{T} M S = ∑ j = 1 n q ξ j c j c j T and E S = ∑ j = 1 n ( ξ j q − 1 ) c j c j T E_S=\sum_{j=1}^n(\frac{\xi_j}{q}-1)c_jc_j^\mathsf{T} E S = ∑ j = 1 n ( q ξ j − 1 ) c j c j T , whose summands are independent under Bernoulli supports. Under balanced supports, M S = ∑ j ∈ S n r c j c j T M_S=\sum_{j\in S}\frac{n}{r}c_jc_j^\mathsf{T} M S = ∑ j ∈ S r n c j c j T and E S = ∑ j ∈ S 1 r C j E_S=\sum_{j\in S}\frac{1}{r}C_j E S = ∑ j ∈ S r 1 C j ; by the transfer principle of Appendix § 6 .§ 1 , both matrix concentration inequalities apply with the parameters of r r r independent draws n r c J c J T \frac{n}{r}c_Jc_J^\mathsf{T} r n c J c J T and 1 r C J \frac{1}{r}C_J r 1 C J for J J J uniform on [ n ] [n] [ n ] .
Matrix Chernoff bound. Under both laws, each summand of M S M_S M S is positive semidefinite with maximum eigenvalue at most n max j ∥ c j ∥ 2 / r = w U / r n\max_j\|c_j\|^2/r=w_U/r n max j ∥ c j ∥ 2 / r = w U / r , and the summand expectations sum to I 2 I_2 I 2 . Because G c = { λ min ( M S ) < 1 2 } ∪ { λ max ( M S ) > 2 } \mathcal{G}^c=\{\lambda_{\min}(M_S)<\frac{1}{2}\}\cup\{\lambda_{\max}(M_S)>2\} G c = { λ m i n ( M S ) < 2 1 } ∪ { λ m a x ( M S ) > 2 } , applying (15) with R = w U / r R=w_U/r R = w U / r bounds the two tail probabilities by 2 exp { − h ( − 1 2 ) r / w U } 2\exp\{-h(-\frac{1}{2})r/w_U\} 2 exp { − h ( − 2 1 ) r / w U } and 2 exp { − h ( 1 ) r / w U } 2\exp\{-h(1)r/w_U\} 2 exp { − h ( 1 ) r / w U } ; since h ( − 1 2 ) = 1 2 ( 1 − log 2 ) < h ( 1 ) = 2 log 2 − 1 h(-\frac{1}{2})=\frac{1}{2}(1-\log2)<h(1)=2\log2-1 h ( − 2 1 ) = 2 1 ( 1 − log 2 ) < h ( 1 ) = 2 log 2 − 1 , summing gives 4 exp { − ( 1 − log 2 ) r / ( 2 w U ) } 4\exp\{-(1-\log2)r/(2w_U)\} 4 exp { − ( 1 − log 2 ) r / ( 2 w U )} .
Matrix Bernstein bound. On G c \mathcal{G}^c G c , at least one eigenvalue of E S E_S E S lies outside [ − 1 2 , 1 ] [-\frac{1}{2},1] [ − 2 1 , 1 ] , so ∥ E S ∥ o p > 1 2 \|E_S\|_{\mathrm{op}}>\frac{1}{2} ∥ E S ∥ op > 2 1 . Under Bernoulli supports, ξ j / q − 1 \xi_j/q-1 ξ j / q − 1 has mean zero, range [ − 1 , f q / q ] [-1,f_q/q] [ − 1 , f q / q ] , and second moment f q / q f_q/q f q / q , so each summand of E S E_S E S has operator norm at most R U R_U R U and their expected squares sum to f q q ∑ j ∥ c j ∥ 2 c j c j T \frac{f_q}{q}\sum_j\|c_j\|^2c_jc_j^\mathsf{T} q f q ∑ j ∥ c j ∥ 2 c j c j T (of operator norm V U V_U V U ). Under balanced supports, each independent draw 1 r C J \frac{1}{r}C_J r 1 C J is centered (as ∑ j C j = 0 \sum_j C_j=0 ∑ j C j = 0 ) and has operator norm at most R U R_U R U , and the sum of expected squares over r r r draws is 1 r n ∑ j C j 2 \frac{1}{rn}\sum_j C_j^2 r n 1 ∑ j C j 2 (of operator norm V U V_U V U ). Applying (16) at t = 1 2 t=\frac{1}{2} t = 2 1 yields Pr [ ∥ E S ∥ o p ≥ 1 2 ] ≤ 4 exp { − 1 / ( 8 V U + 4 R U / 3 ) } \Pr[\|E_S\|_{\mathrm{op}}\ge\frac{1}{2}]\le4\exp\{-1/(8V_U+4R_U/3)\} Pr [ ∥ E S ∥ op ≥ 2 1 ] ≤ 4 exp { − 1/ ( 8 V U + 4 R U /3 )} .
Row concentration and proofs of Theorem 18 and Corollary 19. Conditioned on D D D , for any admissible pair, the empirical disagreement fraction p ^ = θ ^ / π \hat p=\hat\theta/\pi p ^ = θ ^ / π is the average of ℓ \ell ℓ i.i.d. Bernoulli(p p p ) variables. Consequently, for every τ > 0 \tau>0 τ > 0 and every V ≥ p ( 1 − p ) V\ge p(1-p) V ≥ p ( 1 − p ) , Hoeffding’s inequality (14) and Bernstein’s inequality (12) yield
Pr [ ∣ p ^ − p ∣ ≥ τ ∣ D ] ≤ 2 e − 2 ℓ τ 2 and Pr [ ∣ p ^ − p ∣ ≥ τ ∣ D ] ≤ 2 exp { − ℓ τ 2 2 ( V + τ / 3 ) } . (36) \Pr\left[|\hat p-p|\ge\tau\mid D\right]\le2e^{-2\ell\tau^2}
\qquad\text{and}\qquad
\Pr\left[|\hat p-p|\ge\tau\mid D\right]\le2\exp\left\{-\frac{\ell\tau^2}{2(V+\tau/3)}\right\}. \tag*{(36)} Pr [ ∣ p ^ − p ∣ ≥ τ ∣ D ] ≤ 2 e − 2 ℓ τ 2 and Pr [ ∣ p ^ − p ∣ ≥ τ ∣ D ] ≤ 2 exp { − 2 ( V + τ /3 ) ℓ τ 2 } . (36)
Proof of Theorem 18. By (32), ∣ θ ^ − θ ∣ ≤ ∣ π p − θ ∣ + π ∣ p ^ − p ∣ |\hat\theta-\theta|\le|\pi p-\theta|+\pi|\hat p-p| ∣ θ ^ − θ ∣ ≤ ∣ π p − θ ∣ + π ∣ p ^ − p ∣ . Set L : = log ( 2 N / δ ) L:=\log(2N/\delta) L := log ( 2 N / δ ) . Combining Proposition 42 (with tail coefficient bounded by π \pi π ) and the Chernoff bound of Lemma 44 gives
∣ π p − θ ∣ ≤ 7 8 sin θ f q r ( k U − 2 l b a l ) + 4 π exp ( − ( 1 − log 2 ) r 2 w U ) . (37) |\pi p-\theta|\le\frac{7}{8}\sin\theta\frac{f_q}{r}(k_U-2l_{\mathrm{bal}})+4\pi\exp\left(-\frac{(1-\log2)r}{2w_U}\right). \tag*{(37)} ∣ π p − θ ∣ ≤ 8 7 sin θ r f q ( k U − 2 l bal ) + 4 π exp ( − 2 w U ( 1 − log 2 ) r ) . (37)
(a) Evaluating the Hoeffding bound in (36) at τ = L / ( 2 ℓ ) \tau=\sqrt{L/(2\ell)} τ = L / ( 2 ℓ ) bounds each pair’s failure probability by 2 e − L = δ / N 2e^{-L}=\delta/N 2 e − L = δ / N . Taking a union bound over all N N N pairs and adding (37) establishes the additive bound for ∣ θ ^ − θ ∣ |\hat\theta-\theta| ∣ θ ^ − θ ∣ (which transfers to ∣ ρ ^ B B − ρ ∣ |\hat\rho_{\mathrm{BB}}-\rho| ∣ ρ ^ BB − ρ ∣ since cosine is 1-Lipschitz). When w U ≤ r / 64 w_U\le r/64 w U ≤ r /64 , using f q ≤ 1 f_q\le1 f q ≤ 1 and k U ≤ 2 w U k_U\le2w_U k U ≤ 2 w U bounds the first term of (37) by 1.75 w U / r 1.75w_U/r 1.75 w U / r , while setting y : = r / w U ≥ 64 y := r/w_U \ge64 y := r / w U ≥ 64 and noting that y ↦ y e − ( 1 − log 2 ) y / 2 y \mapsto ye^{-(1-\log2)y/2} y ↦ y e − ( 1 − l o g 2 ) y /2 is decreasing for y ≥ 2 / ( 1 − log 2 ) ≈ 6.52 y \ge2/(1-\log2) \approx6.52 y ≥ 2/ ( 1 − log 2 ) ≈ 6.52 bounds the second term by 4 π ⋅ 64 e − 32 ( 1 − log 2 ) w U / r ≤ 0.0438 w U / r 4\pi\cdot64e^{-32(1-\log2)}w_U/r \le0.0438w_U/r 4 π ⋅ 64 e − 32 ( 1 − l o g 2 ) w U / r ≤ 0.0438 w U / r ; summing gives ( 1.75 + 0.0438 ) w U / r ≤ 1.8 w U / r (1.75+0.0438)w_U/r \le1.8w_U/r ( 1.75 + 0.0438 ) w U / r ≤ 1.8 w U / r .
(b) Fix any pair with θ ≥ θ 0 \theta\ge\theta_0 θ ≥ θ 0 , and split the target error ε θ \varepsilon\theta εθ equally between bias and sampling noise.
Bias. Using sin θ ≤ θ \sin\theta\le\theta sin θ ≤ θ , f q ≤ 1 f_q \le1 f q ≤ 1 , and r ≥ 3.5 k U / ε r \ge3.5\,k_U/\varepsilon r ≥ 3.5 k U / ε , the first term of (37) is at most 7 8 θ k U / r ≤ ε θ / 4 \frac{7}{8}\theta k_U/r \le\varepsilon\theta/4 8 7 θ k U / r ≤ εθ /4 . Since 2 / ( 1 − log 2 ) < 6.52 2/(1-\log2)<6.52 2/ ( 1 − log 2 ) < 6.52 , the condition r ≥ 6.52 w U log ( 16 π / ( ε θ 0 ) ) r \ge6.52\,w_U\log(16\pi/(\varepsilon\theta_0)) r ≥ 6.52 w U log ( 16 π / ( ε θ 0 )) ensures that the second term of (37) is at most 4 π ⋅ ε θ 0 / ( 16 π ) ≤ ε θ / 4 4\pi\cdot\varepsilon\theta_0/(16\pi)\le\varepsilon\theta/4 4 π ⋅ ε θ 0 / ( 16 π ) ≤ εθ /4 . Thus ∣ π p − θ ∣ ≤ ε θ / 2 |\pi p-\theta|\le\varepsilon\theta/2 ∣ π p − θ ∣ ≤ εθ /2 , which in particular implies p ≤ ( 1 + ε ) θ / π p\le(1+\varepsilon)\theta/\pi p ≤ ( 1 + ε ) θ / π .
Noise. Applying the Bernstein bound in (36) with τ = ε θ / ( 2 π ) \tau=\varepsilon\theta/(2\pi) τ = εθ / ( 2 π ) and V = ( 1 + ε ) θ / π ≥ p ( 1 − p ) V=(1+\varepsilon)\theta/\pi\ge p(1-p) V = ( 1 + ε ) θ / π ≥ p ( 1 − p ) gives exponent
ℓ τ 2 2 ( V + τ / 3 ) = ℓ ε 2 θ 8 π ( 1 + 2 3 ε ) ≥ ℓ ε 2 θ 0 42 ≥ L , \frac{\ell\tau^2}{2(V+\tau/3)}
=\frac{\ell\varepsilon^2\theta}{8\pi(1+\frac{2}{3}\varepsilon)}
\ge\frac{\ell\varepsilon^2\theta_0}{42}\ge L, 2 ( V + τ /3 ) ℓ τ 2 = 8 π ( 1 + 3 2 ε ) ℓ ε 2 θ ≥ 42 ℓ ε 2 θ 0 ≥ L ,
since ε ≤ 1 \varepsilon\le1 ε ≤ 1 and 8 π ⋅ 5 3 ≤ 42 8\pi\cdot\frac{5}{3}\le42 8 π ⋅ 3 5 ≤ 42 . Consequently, π ∣ p ^ − p ∣ < ε θ / 2 \pi|\hat p-p|<\varepsilon\theta/2 π ∣ p ^ − p ∣ < εθ /2 except with probability at most 2 e − L = δ / N 2e^{-L}=\delta/N 2 e − L = δ / N .
Pairs with θ = 0 \theta=0 θ = 0 have v = u v=u v = u , so Y i = X i Y_i=X_i Y i = X i in every row and θ ^ = 0 \hat\theta=0 θ ^ = 0 deterministically. A union bound over the pairs with θ ≥ θ 0 \theta\ge\theta_0 θ ≥ θ 0 completes the proof. □
Proof of Corollary 19. Dense case (r = n r=n r = n ). When r = n r=n r = n , Φ = P H D \Phi=PHD Φ = P H D has the exact law of G G G , so Theorem 3 applies directly (as its sketch-length constants π 2 2 ≤ 2 π \frac{\pi^2}{2}\le2\pi 2 π 2 ≤ 2 π and 8.4 ≤ 42 8.4\le42 8.4 ≤ 42 are smaller than ours, including in the general η \eta η -split of Remark 20).
Sparse case (r < n r<n r < n ). Applying Lemma 6 with δ 0 = δ / 2 \delta_0=\delta/2 δ 0 = δ /2 to the at most 2 N 2N 2 N basis vectors ( u 1 , u 2 ) (u_1,u_2) ( u 1 , u 2 ) ensures that, with probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 over D D D , all of them satisfy w x ≤ 2 log ( 8 n N / δ ) = μ ( 2 N ) w_x\le2\log(8nN/\delta)=\mu(2N) w x ≤ 2 log ( 8 n N / δ ) = μ ( 2 N ) , which implies w U ≤ w u 1 + w u 2 ≤ 2 μ ( 2 N ) w_U\le w_{u_1}+w_{u_2}\le2\mu(2N) w U ≤ w u 1 + w u 2 ≤ 2 μ ( 2 N ) and k U ≤ 2 w U ≤ 4 μ ( 2 N ) k_U\le2w_U\le4\mu(2N) k U ≤ 2 w U ≤ 4 μ ( 2 N ) for every pair (Lemma 27(c)). Conditioned on such a D D D , we apply Theorem 18 with failure budget δ / 2 \delta/2 δ /2 (so L = log ( 4 N / δ ) L=\log(4N/\delta) L = log ( 4 N / δ ) ). Part (ii) follows immediately from Theorem 18(b) since 3.5 k U / ε ≤ 14 μ ( 2 N ) / ε 3.5\,k_U/\varepsilon\le14\mu(2N)/\varepsilon 3.5 k U / ε ≤ 14 μ ( 2 N ) / ε and 6.52 w U ≤ 13.04 μ ( 2 N ) ≤ 13.5 μ ( 2 N ) 6.52\,w_U\le13.04\mu(2N)\le13.5\mu(2N) 6.52 w U ≤ 13.04 μ ( 2 N ) ≤ 13.5 μ ( 2 N ) . For part (i) and the general budget split η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) of Remark 20, substituting k U ≤ 4 μ ( 2 N ) k_U\le4\mu(2N) k U ≤ 4 μ ( 2 N ) and 2 1 − log 2 w U ≤ 4 1 − log 2 μ ( 2 N ) < 13.04 μ ( 2 N ) \frac{2}{1-\log2}w_U\le\frac{4}{1-\log2}\mu(2N)<13.04\mu(2N) 1 − l o g 2 2 w U ≤ 1 − l o g 2 4 μ ( 2 N ) < 13.04 μ ( 2 N ) into Theorem 18(a) bounds its three terms by
7 8 ⋅ 4 μ ( 2 N ) r , 4 π exp ( − r 13.04 μ ( 2 N ) ) , π log ( 4 N / δ ) 2 ℓ . \frac{7}{8}\cdot\frac{4\mu(2N)}{r},\qquad
4\pi\exp\left(-\frac{r}{13.04\mu(2N)}\right),\qquad
\pi\sqrt{\frac{\log(4N/\delta)}{2\ell}}. 8 7 ⋅ r 4 μ ( 2 N ) , 4 π exp ( − 13.04 μ ( 2 N ) r ) , π 2 ℓ log ( 4 N / δ ) .
The first two terms are each at most η ε / 2 \eta\varepsilon/2 η ε /2 once r ≥ 7 μ ( 2 N ) / ( η ε ) r\ge7\mu(2N)/(\eta\varepsilon) r ≥ 7 μ ( 2 N ) / ( η ε ) and r ≥ 13.04 μ ( 2 N ) ⋅ log ( 8 π / ( η ε ) ) r\ge13.04\mu(2N)\cdot\log(8\pi/(\eta\varepsilon)) r ≥ 13.04 μ ( 2 N ) ⋅ log ( 8 π / ( η ε )) , while the third is at most ( 1 − η ) ε (1-\eta)\varepsilon ( 1 − η ) ε once ℓ ≥ π 2 2 ( 1 − η ) − 2 ε − 2 log ( 4 N / δ ) \ell\ge\frac{\pi^2}{2}(1-\eta)^{-2}\varepsilon^{-2}\log(4N/\delta) ℓ ≥ 2 π 2 ( 1 − η ) − 2 ε − 2 log ( 4 N / δ ) ; setting η = 1 2 \eta=\frac12 η = 2 1 gives part (i).
Encoding complexity. Because ε ↦ ε log ( 16 π / ε ) \varepsilon\mapsto\varepsilon\log(16\pi/\varepsilon) ε ↦ ε log ( 16 π / ε ) is increasing on ( 0 , π ] (0,\pi] ( 0 , π ] (with derivative log ( 16 π / ε ) − 1 > 0 \log(16\pi/\varepsilon)-1>0 log ( 16 π / ε ) − 1 > 0 ), we have log ( 16 π / ε ) ≤ π log ( 16 / ε ) \log(16\pi/\varepsilon)\le\pi\log(16/\varepsilon) log ( 16 π / ε ) ≤ π log ( 16/ ε ) , so the minimum allowed sparsity in (i) scales as r = O ( μ ( 2 N ) / ε ) r=O(\mu(2N)/\varepsilon) r = O ( μ ( 2 N ) / ε ) and multiplying by ℓ \ell ℓ gives r ℓ = O ( ε − 3 μ ( 2 N ) log ( 4 N / δ ) ) r\ell=O(\varepsilon^{-3}\mu(2N)\log(4N/\delta)) r ℓ = O ( ε − 3 μ ( 2 N ) log ( 4 N / δ )) . □
Lower bounds
In this section, we prove Theorem 21 using the normalized Walsh blocks introduced in Section 3.6. Lemma 45 characterizes the structure of a Walsh block of size s s s when the random signs D D D align with a Walsh function on its support (a “hit” block), and Proposition 46 computes the resulting support biases for BG and BB. Scored against itself, if a hit block of size s s s has expected BG score 1 − Δ s 1-\Delta_s 1 − Δ s , where the deficit Δ s \Delta_s Δ s is roughly one eighth of the variance V s V_s V s of its captured energy. General pairs constructed by combining a hit block with a standard basis vector inherit this exact deficit because the off-diagonal cross term σ 12 \sigma_{12} σ 12 changes sign under a measure-preserving involution of the supports. Finally, Lemma 47 selects the largest block size s s s for which D D D hits at least one block in a family of size N N N with probability exceeding δ \delta δ , and the proof of Theorem 21 converts the resulting conditional bias into a high-probability estimation failure via Cantelli’s inequality.
Setup and Kronecker structure of the Hadamard matrix. Throughout this section, let n ≥ 4 n\ge4 n ≥ 4 and 2 ≤ r ≤ n / 2 2\le r\le n/2 2 ≤ r ≤ n /2 (so q = r / n ≤ 1 / 2 q=r/n\le1/2 q = r / n ≤ 1/2 ), and let s s s be a power of two satisfying 2 ≤ s ≤ n / 2 2\le s\le n/2 2 ≤ s ≤ n /2 . By Definition 8, f q ≥ 1 − q ≥ 1 / 2 f_q\ge1-q\ge1/2 f q ≥ 1 − q ≥ 1/2 under both support laws, so the energy variance V s : = f q ( s − 1 b a l ) / r V_s:=f_q(s-1_{\mathrm{bal}})/r V s := f q ( s − 1 bal ) / r on a hit block satisfies
V s ≥ s − 1 2 r ≥ s 4 r and f q ( s − 1 ) ≥ s − 1 2 ≥ s 4 . (38) V_s\ge\frac{s-1}{2r}\ge\frac{s}{4r}
\qquad\text{and}\qquad
f_q(s-1)\ge\frac{s-1}{2}\ge\frac{s}{4}. \tag*{(38)} V s ≥ 2 r s − 1 ≥ 4 r s and f q ( s − 1 ) ≥ 2 s − 1 ≥ 4 s . (38)
We index the coordinates of R n \mathbb{R}^n R n from 0 0 0 to n − 1 n-1 n − 1 and write each index uniquely as i = m s + y i=ms+y i = m s + y with 0 ≤ m < n / s 0\le m<n/s 0 ≤ m < n / s and 0 ≤ y < s 0\le y<s 0 ≤ y < s . For any power of two, d d d , let H d H_d H d denote the normalized d × d d\times d d × d Walsh–Hadamard matrix in standard Sylvester order (H 1 = ( 1 ) H_1=(1) H 1 = ( 1 ) and H 2 d = 2 − 1 / 2 ( H d H d H d − H d ) H_{2d}=2^{-1/2}\begin{pmatrix}H_d&H_d\\H_d&-H_d\end{pmatrix} H 2 d = 2 − 1/2 ( H d H d H d − H d ) ), which is symmetric and orthogonal with entries ± d − 1 / 2 \pm d^{-1/2} ± d − 1/2 . By recursion, H = H n H=H_n H = H n factors as the Kronecker product H n / s ⊗ H s H_{n/s}\otimes H_s H n / s ⊗ H s :
H m s + y , m ′ s + y ′ = ( H n / s ) m m ′ ( H s ) y y ′ . (39) H_{ms+y,m's+y'}=(H_{n/s})_{mm'}(H_s)_{yy'}. \tag*{(39)} H m s + y , m ′ s + y ′ = ( H n / s ) m m ′ ( H s ) y y ′ . (39)
(We may assume Sylvester ordering without loss of generality, since permuting the rows of H H H simply permutes the columns of P P P , whose distribution is permutation-invariant under both support laws.)
For each 0 ≤ b < n / s 0\le b<n/s 0 ≤ b < n / s , let B b : = { b s , … , b s + s − 1 } B_b:=\{bs,\ldots,bs+s-1\} B b := { b s , … , b s + s − 1 } denote the b b b th dyadic block of size s s s , let x b : = s − 1 / 2 1 B b x_b:=s^{-1/2}1_{B_b} x b := s − 1/2 1 B b be its normalized Walsh block vector, and let d b ∈ { ± 1 } s d_b\in\{\pm1\}^s d b ∈ { ± 1 } s with entries ( d b ) y : = D b s + y (d_b)_y:=D_{bs+y} ( d b ) y := D b s + y collect the signs of D D D restricted to B b B_b B b . By (39) , the preconditioned vector x ~ b = H D x b \widetilde{x}_b=HDx_b x b = H D x b has entries x ~ b , m s + y = ( H n / s ) m b s − 1 / 2 ( H s d b ) y \widetilde{x}_{b,ms+y}=(H_{n/s})_{mb}s^{-1/2}(H_sd_b)_y x b , m s + y = ( H n / s ) mb s − 1/2 ( H s d b ) y . We say that D D D hits block B b B_b B b —and write E b E_b E b for this event—if d b d_b d b coincides up to a global sign ς b ∈ { ± 1 } \varsigma_b\in\{\pm1\} ς b ∈ { ± 1 } with a column of s H s \sqrt{s}H_s s H s , meaning d b = ς b s ( H s ) ⋅ , y b d_b=\varsigma_b\sqrt{s}(H_s)_{\cdot,y_b} d b = ς b s ( H s ) ⋅ , y b for some y b ∈ { 0 , … , s − 1 } y_b\in\{0,\ldots,s-1\} y b ∈ { 0 , … , s − 1 } . By orthogonality of H s H_s H s , the vector H s d b H_sd_b H s d b then equals ς b s \varsigma_b\sqrt{s} ς b s in coordinate y b y_b y b and vanishes everywhere else, so that
x ~ b , m s + y = ς b ( H n / s ) m b 1 { y = y b } . (40) \widetilde{x}_{b,ms+y}=\varsigma_b(H_{n/s})_{mb}1\{y=y_b\}. \tag*{(40)} x b , m s + y = ς b ( H n / s ) mb 1 { y = y b } . (40)
Geometrically, on the hit event E b E_b E b , the preconditioner H D HD H D maps a contiguous block of s s s coordinates into a regular “comb” of n / s n/s n / s coordinates spaced by s s s , with one nonzero in each block (Figure 3 in § 3.6 ). Meanwhile, for any standard basis vector e j e_j e j , its preconditioned image e ~ j : = H D e j \widetilde{e}_j:=HDe_j e j := H D e j is simply D j D_j D j times column j j j of H H H , whose entries all have magnitude n − 1 / 2 n^{-1/2} n − 1/2 .
Lemma 45 (Hit blocks). In the setup above, every block B b B_b B b (0 ≤ b < n / s 0\le b<n/s 0 ≤ b < n / s ) satisfies the following properties:
(i) Hit probability and independence. Pr [ E b ] = 2 s 2 − s \Pr[E_b]=2s2^{-s} Pr [ E b ] = 2 s 2 − s , and the hit events E 0 , … , E n / s − 1 E_0,\ldots,E_{n/s-1} E 0 , … , E n / s − 1 are mutually independent (for s = 2 s=2 s = 2 , E b E_b E b holds deterministically for every D D D ).
(ii) Comb profile. On E b E_b E b , ∣ x ~ b , i ∣ = s / n 1 { i ∈ C b } |\widetilde{x}_{b,i}|=\sqrt{s/n}\,1\{i\in C_b\} ∣ x b , i ∣ = s / n 1 { i ∈ C b } , where C b : = { m s + y b : 0 ≤ m < n / s } C_b:=\{ms+y_b:0\le m<n/s\} C b := { m s + y b : 0 ≤ m < n / s } is the comb of n / s n/s n / s coordinates congruent to y b y_b y b modulo s s s . Consequently, w x b = k x b = s w_{x_b}=k_{x_b}=s w x b = k x b = s , and a row with support S S S captures from x b x_b x b the energy σ b 2 : = ∥ x ~ b , S ∥ 2 = s J b / r \sigma_b^2:=\|\widetilde{x}_{b,S}\|^2=sJ_b/r σ b 2 := ∥ x b , S ∥ 2 = s J b / r , where J b : = ∣ S ∩ C b ∣ J_b:=|S\cap C_b| J b := ∣ S ∩ C b ∣ counts the sampled comb coordinates.
(iii) Antisymmetry of the cross term. On E b E_b E b , fix any j ∉ B b j\notin B_b j ∈ / B b . The entrywise products e ~ j , i x ~ b , i \widetilde{e}_{j,i}\widetilde{x}_{b,i} e j , i x b , i vanish outside C b C_b C b , equal ± s / n \pm\sqrt{s/n} ± s / n on C b C_b C b , and sum to zero over i ∈ C b i\in C_b i ∈ C b . Thus C b C_b C b partitions into two equal halves C b + C_b^+ C b + and C b − C_b^- C b − of size n / ( 2 s ) n/(2s) n / ( 2 s ) according to the sign of e ~ j , i x ~ b , i \widetilde{e}_{j,i}\widetilde{x}_{b,i} e j , i x b , i . Writing J b ± : = ∣ S ∩ C b ± ∣ J_b^\pm:=|S\cap C_b^\pm| J b ± := ∣ S ∩ C b ± ∣ , we have σ b 2 = ( s / r ) ( J b + + J b − ) \sigma_b^2=(s/r)(J_b^++J_b^-) σ b 2 = ( s / r ) ( J b + + J b − ) and σ 12 : = q − 1 ∑ i ∈ S e ~ j , i x ~ b , i = ( s / r ) ( J b + − J b − ) \sigma_{12}:=q^{-1}\sum_{i\in S}\widetilde{e}_{j,i}\widetilde{x}_{b,i}=(\sqrt{s}/r)(J_b^+-J_b^-) σ 12 := q − 1 ∑ i ∈ S e j , i x b , i = ( s / r ) ( J b + − J b − ) . Moreover, under either support law, there is a probability-preserving involution S ↦ S ∗ S\mapsto S^* S ↦ S ∗ on the space of supports that swaps J b + J_b^+ J b + and J b − J_b^- J b − , so that the mirror support S ∗ S^* S ∗ has the same captured energy σ b 2 \sigma_b^2 σ b 2 as S S S and negated cross term − σ 12 -\sigma_{12} − σ 12 .
(iv) Plane parameters. On E b E_b E b , fix j ∉ B b j\notin B_b j ∈ / B b and 0 < θ < π / 2 0<\theta<\pi/2 0 < θ < π /2 . The pair u = e j u=e_j u = e j , v = cos θ e j + sin θ x b v=\cos\theta\,e_j+\sin\theta\,x_b v = cos θ e j + sin θ x b has orthonormal basis u = e j u=e_j u = e j , v = e j v=e_j v = e j , k u = 1 k_u=1 k u = 1 , w v = s + 3 w_v=s+3 w v = s + 3 , and k v = 1 + 4 cos 2 θ sin 2 θ + ( s − 1 ) sin 4 θ k_v=1+4\cos^2\theta\sin^2\theta+(s-1)\sin^4\theta k v = 1 + 4 cos 2 θ sin 2 θ + ( s − 1 ) sin 4 θ , which is strictly below 1.01 1.01 1.01 whenever tan θ ≤ 1 / ( 33 s ) \tan\theta\le1/(33\sqrt{s}) tan θ ≤ 1/ ( 33 s ) .
Proof of Lemma 45. (i) The sign subvector d b d_b d b is uniformly distributed on { ± 1 } s \{\pm1\}^s { ± 1 } s , and the 2 s 2s 2 s vectors ± s ( H s ) ⋅ , y \pm\sqrt{s}(H_s)_{\cdot,y} ± s ( H s ) ⋅ , y (0 ≤ y < s 0\le y<s 0 ≤ y < s ) are distinct by column orthogonality of H s H_s H s (exchanging all 4 4 4 vectors when s = 2 s=2 s = 2 ). Independence across b b b follows because disjoint blocks B b B_b B b depend on disjoint subsets of the diagonal entries of D D D .
(ii) Since every entry of H n / s H_{n/s} H n / s has magnitude s / n \sqrt{s/n} s / n , equation (40) shows that x ~ b , i 2 = s / n \widetilde{x}_{b,i}^2=s/n x b , i 2 = s / n for i ∈ C b i\in C_b i ∈ C b and 0 0 0 otherwise. Thus w x b = n ( s / n ) = s w_{x_b}=n(s/n)=s w x b = n ( s / n ) = s , k x b = n ( n / s ) ( s / n ) 2 = s k_{x_b}=n(n/s)(s/n)^2=s k x b = n ( n / s ) ( s / n ) 2 = s , and σ b 2 = q − 1 ( s / n ) J b = s J b / r \sigma_b^2=q^{-1}(s/n)J_b=sJ_b/r σ b 2 = q − 1 ( s / n ) J b = s J b / r .
(iii) Since ∣ e ~ j , i ∣ = n − 1 / 2 |\widetilde{e}_{j,i}|=n^{-1/2} ∣ e j , i ∣ = n − 1/2 everywhere, part (ii) implies that e ~ j , i x ~ b , i = ± s / n \widetilde{e}_{j,i}\widetilde{x}_{b,i}=\pm\sqrt{s/n} e j , i x b , i = ± s / n on C b C_b C b and 0 0 0 outside C b C_b C b . Because H D HD H D is orthogonal and j ∉ B b j\notin B_b j ∈ / B b , the sum of these products is ⟨ e ~ j , x ~ b ⟩ = ⟨ e j , x b ⟩ = 0 \langle\widetilde{e}_j,\widetilde{x}_b\rangle=\langle e_j,x_b\rangle=0 ⟨ e j , x b ⟩ = ⟨ e j , x b ⟩ = 0 , so exactly half of the n / s n/s n / s coordinates of C b C_b C b have positive product (C b + C_b^+ C b + ) and half have negative product (C b − C_b^- C b − ). Fixing a bijection between C b + C_b^+ C b + and C b − C_b^- C b − and letting S ∗ S^* S ∗ be the image of S S S under the coordinate involution that swaps paired elements of C b ± C_b^\pm C b ± while fixing all coordinates outside C b C_b C b defines a probability-preserving involution on supports that exchanges J b + J_b^+ J b + and J b − J_b^- J b − .
(iv) Since e j ⊥ x b e_j\perp x_b e j ⊥ x b , we have ρ = cos θ \rho=\cos\theta ρ = cos θ , u 1 = e j u_1=e_j u 1 = e j , u 2 = x b u_2=x_b u 2 = x b , and k u = 1 k_u=1 k u = 1 (as e ~ j \widetilde{e}_j e j is flat). By (ii), the plane leverage score ∥ c i ∥ 2 = e ~ j , i 2 + x ~ b , i 2 \|c_i\|^2=\widetilde{e}_{j,i}^2+\widetilde{x}_{b,i}^2 ∥ c i ∥ 2 = e j , i 2 + x b , i 2 equals ( s + 1 ) / n (s+1)/n ( s + 1 ) / n on the n / s n/s n / s coordinates of C b C_b C b and 1 / n 1/n 1/ n on the remaining n − n / s n-n/s n − n / s coordinates, so (7) gives w U = s + 1 w_U=s+1 w U = s + 1 and k U = ( s + 1 ) 2 / s + ( 1 − 1 / s ) = s + 3 k_U=(s+1)^2/s+(1-1/s)=s+3 k U = ( s + 1 ) 2 / s + ( 1 − 1/ s ) = s + 3 . By (iii), ∣ v ~ i ∣ = n − 1 / 2 ∣ cos θ ± s sin θ ∣ |\tilde v_i| = n^{-1/2}|\cos\theta\pm\sqrt{s}\sin\theta| ∣ v ~ i ∣ = n − 1/2 ∣ cos θ ± s sin θ ∣ on C b ± C_b^{\pm} C b ± and n − 1 / 2 cos θ n^{-1/2}\cos\theta n − 1/2 cos θ outside C b C_b C b . Summing n v ~ i 4 n\tilde v_i^4 n v ~ i 4 cancels the odd powers of s sin θ \sqrt{s}\sin\theta s sin θ between C b + C_b^{+} C b + and C b − C_b^{-} C b − , giving
k v = cos 4 θ + 6 cos 2 θ sin 2 θ + s sin 4 θ = 1 + 4 cos 2 θ sin 2 θ + ( s − 1 ) sin 4 θ ≤ 1 + 4 tan 2 θ + s tan 4 θ . k_v=\cos^4\theta+6\cos^2\theta\sin^2\theta+s\sin^4\theta=1+4\cos^2\theta\sin^2\theta+(s-1)\sin^4\theta\le1+4\tan^2\theta+s\tan^4\theta. k v = cos 4 θ + 6 cos 2 θ sin 2 θ + s sin 4 θ = 1 + 4 cos 2 θ sin 2 θ + ( s − 1 ) sin 4 θ ≤ 1 + 4 tan 2 θ + s tan 4 θ .
When s tan 2 θ ≤ 33 − 2 = 1 / 1089 s\tan^2\theta\le33^{-2}=1/1089 s tan 2 θ ≤ 3 3 − 2 = 1/1089 , we have s tan 4 θ ≤ tan 2 θ ≤ 1 / 1089 s\tan^4\theta\le\tan^2\theta\le1/1089 s tan 4 θ ≤ tan 2 θ ≤ 1/1089 (as s ≥ 2 s\ge2 s ≥ 2 ), so k v ≤ 1 + 5 / 1089 < 1.01 k_v\le1+5/1089<1.01 k v ≤ 1 + 5/1089 < 1.01 . □
Proposition 46 (Attained biases). In the setup above (with r ≤ n / 2 r\le n/2 r ≤ n /2 ), fix D D D and use either support law unless specified otherwise.
(i) Self-pairs. For any unit vector u u u , E [ ρ ^ B G ( u , u ) ∣ D ] = E σ u = 1 − Δ ( u ) \mathbb{E}[\hat\rho_{\mathrm{BG}}(u,u)\mid D]=\mathbb{E}\sigma_u=1-\Delta(u) E [ ρ ^ BG ( u , u ) ∣ D ] = E σ u = 1 − Δ ( u ) , where the deficit Δ ( u ) : = 1 2 E ( σ u − 1 ) 2 \Delta(u):=\frac{1}{2}\mathbb{E}(\sigma_u-1)^2 Δ ( u ) := 2 1 E ( σ u − 1 ) 2 satisfies the exact identity
Δ ( u ) = Var ( σ u 2 ) 8 − E ( σ u 2 − 1 ) 3 16 + 1 16 E [ ( σ u − 1 ) 4 ( σ u 2 + 4 σ u + 5 ) ] . \Delta(u)=\frac{\operatorname{Var}(\sigma_u^2)}{8}-\frac{\mathbb{E}(\sigma_u^2-1)^3}{16}+\frac{1}{16}\mathbb{E}\left[(\sigma_u-1)^4(\sigma_u^2+4\sigma_u+5)\right]. Δ ( u ) = 8 Var ( σ u 2 ) − 16 E ( σ u 2 − 1 ) 3 + 16 1 E [ ( σ u − 1 ) 4 ( σ u 2 + 4 σ u + 5 ) ] . In particular, Δ ( u ) ≥ Var ( σ u 2 ) / 8 − E ( σ u 2 − 1 ) 3 / 16 \Delta(u)\ge\operatorname{Var}(\sigma_u^2)/8-\mathbb{E}(\sigma_u^2-1)^3/16 Δ ( u ) ≥ Var ( σ u 2 ) /8 − E ( σ u 2 − 1 ) 3 /16 and Δ ( u ) ≤ Var ( σ u 2 ) / 8 + 3 8 E ( 1 − σ u 2 ) + 3 \Delta(u)\le\operatorname{Var}(\sigma_u^2)/8+\frac{3}{8}\mathbb{E}(1-\sigma_u^2)_+^3 Δ ( u ) ≤ Var ( σ u 2 ) /8 + 8 3 E ( 1 − σ u 2 ) + 3 .
(ii) Hit blocks. On E b E_b E b , the captured energy σ b 2 \sigma_b^2 σ b 2 has variance V s = f q ( s − 1 b a l ) / r V_s=f_q(s-1_{\mathrm{bal}})/r V s = f q ( s − 1 bal ) / r , and Δ s : = Δ ( x b ) \Delta_s:=\Delta(x_b) Δ s := Δ ( x b ) depends only on n n n , r r r , s s s , and the support law, satisfying
V s 8 ( 1 − s 2 r ) ≤ Δ s ≤ V s 8 ( 1 + 46 s / r ) . \frac{V_s}{8}\left(1-\frac{s}{2r}\right)\le\Delta_s\le\frac{V_s}{8}\left(1+46\sqrt{s/r}\right). 8 V s ( 1 − 2 r s ) ≤ Δ s ≤ 8 V s ( 1 + 46 s / r ) . Consequently, Δ s ≥ V s / 16 \Delta_s\ge V_s/16 Δ s ≥ V s /16 whenever s ≤ r s\le r s ≤ r , and Δ s = ( 1 + o ( 1 ) ) V s / 8 \Delta_s=(1+o(1))V_s/8 Δ s = ( 1 + o ( 1 )) V s /8 as s / r → 0 s/r\to0 s / r → 0 .
(iii) Attained BG bias. On E b E_b E b , for any j ∉ B b j\notin B_b j ∈ / B b , ρ ∈ [ − 1 , 1 ] \rho\in[-1,1] ρ ∈ [ − 1 , 1 ] , and v = ρ x b + 1 − ρ 2 e j v=\rho x_b+\sqrt{1-\rho^2}\,e_j v = ρ x b + 1 − ρ 2 e j , we have
E [ ρ ^ B G ( x b , v ) ∣ D ] − ρ = − ρ Δ s . \mathbb{E}[\hat\rho_{\mathrm{BG}}(x_b,v)\mid D]-\rho=-\rho\Delta_s. E [ ρ ^ BG ( x b , v ) ∣ D ] − ρ = − ρ Δ s . (iv) Attained BB bias. Under balanced supports with s ≤ r s\le r s ≤ r , on E b E_b E b , for any j ∉ B b j\notin B_b j ∈ / B b , 0 < θ < π / 2 0<\theta<\pi/2 0 < θ < π /2 with tan θ ≤ 1 / 10 \tan\theta\le1/10 tan θ ≤ 1/10 , u = e j u=e_j u = e j , and v = cos θ e j + sin θ x b v=\cos\theta\,e_j+\sin\theta\,x_b v = cos θ e j + sin θ x b ,
E [ θ ^ ∣ D ] − θ ≤ − sin θ cos θ Δ s + π 4 Pr [ σ 2 2 ≥ cot 2 θ ] ≤ − θ f q ( s − 1 ) 17 r , \mathbb{E}[\hat\theta\mid D]-\theta\le-\sin\theta\cos\theta\,\Delta_s+\frac{\pi}{4}\Pr[\sigma_2^2\ge\cot^2\theta]\le-\theta\frac{f_q(s-1)}{17r}, E [ θ ^ ∣ D ] − θ ≤ − sin θ cos θ Δ s + 4 π Pr [ σ 2 2 ≥ cot 2 θ ] ≤ − θ 17 r f q ( s − 1 ) , where σ 2 2 = σ b 2 \sigma_2^2=\sigma_b^2 σ 2 2 = σ b 2 is the energy captured from u 2 = x b u_2=x_b u 2 = x b (and Pr [ σ 2 2 ≥ cot 2 θ ] = 0 \Pr[\sigma_2^2\ge\cot^2\theta]=0 Pr [ σ 2 2 ≥ cot 2 θ ] = 0 whenever s tan 2 θ < 1 s\tan^2\theta<1 s tan 2 θ < 1 , since σ b 2 ≤ s \sigma_b^2\le s σ b 2 ≤ s ).
Proof of Proposition 46. (i) When v = u v=u v = u , we have σ u v = σ u 2 \sigma_{uv}=\sigma_u^2 σ uv = σ u 2 and E [ Z ∣ S ] = σ u \mathbb{E}[Z\mid S]=\sigma_u E [ Z ∣ S ] = σ u (Lemma 9(iii)), so E [ ρ ^ B G ( u , u ) ∣ D ] = E σ u \mathbb{E}[\hat\rho_{\mathrm{BG}}(u,u)\mid D]=\mathbb{E}\sigma_u E [ ρ ^ BG ( u , u ) ∣ D ] = E σ u . Using E σ u 2 = 1 \mathbb{E}\sigma_u^2=1 E σ u 2 = 1 gives 1 − E σ u = E [ 1 2 ( σ u 2 + 1 ) − σ u ] = 1 2 E ( σ u − 1 ) 2 = Δ ( u ) 1-\mathbb{E}\sigma_u=\mathbb{E}[\frac{1}{2}(\sigma_u^2+1)-\sigma_u]=\frac{1}{2}\mathbb{E}(\sigma_u-1)^2=\Delta(u) 1 − E σ u = E [ 2 1 ( σ u 2 + 1 ) − σ u ] = 2 1 E ( σ u − 1 ) 2 = Δ ( u ) . Using σ u 2 − 1 = ( σ u − 1 ) ( σ u + 1 ) \sigma_u^2-1=(\sigma_u-1)(\sigma_u+1) σ u 2 − 1 = ( σ u − 1 ) ( σ u + 1 ) , direct algebraic expansion verifies the polynomial identity
( σ u − 1 ) 2 = ( σ u 2 − 1 ) 2 4 − ( σ u 2 − 1 ) 3 8 + ( σ u − 1 ) 4 ( σ u 2 + 4 σ u + 5 ) 8 . (\sigma_u-1)^2=\frac{(\sigma_u^2-1)^2}{4}-\frac{(\sigma_u^2-1)^3}{8}+\frac{(\sigma_u-1)^4(\sigma_u^2+4\sigma_u+5)}{8}. ( σ u − 1 ) 2 = 4 ( σ u 2 − 1 ) 2 − 8 ( σ u 2 − 1 ) 3 + 8 ( σ u − 1 ) 4 ( σ u 2 + 4 σ u + 5 ) .
Taking expectations and dividing by 2 yields the exact identity for Δ ( u ) \Delta(u) Δ ( u ) , and dropping the nonnegative last term gives the lower bound. For the upper bound, write ( σ u − 1 ) 2 = ( σ u 2 − 1 ) 2 / ( 1 + σ u ) 2 (\sigma_u-1)^2=(\sigma_u^2-1)^2/(1+\sigma_u)^2 ( σ u − 1 ) 2 = ( σ u 2 − 1 ) 2 / ( 1 + σ u ) 2 : when σ u ≥ 1 \sigma_u\ge1 σ u ≥ 1 , we have ( 1 + σ u ) 2 ≥ 4 (1+\sigma_u)^2\ge4 ( 1 + σ u ) 2 ≥ 4 , so ( σ u − 1 ) 2 ≤ 1 4 ( σ u 2 − 1 ) 2 (\sigma_u-1)^2\le\frac{1}{4}(\sigma_u^2-1)^2 ( σ u − 1 ) 2 ≤ 4 1 ( σ u 2 − 1 ) 2 ; when 0 ≤ σ u ≤ 1 0\le\sigma_u\le1 0 ≤ σ u ≤ 1 , using 4 − ( 1 + σ u ) 2 = ( 1 − σ u ) ( 3 + σ u ) 4-(1+\sigma_u)^2=(1-\sigma_u)(3+\sigma_u) 4 − ( 1 + σ u ) 2 = ( 1 − σ u ) ( 3 + σ u ) and 1 − σ u 2 = ( 1 − σ u ) ( 1 + σ u ) 1-\sigma_u^2=(1-\sigma_u)(1+\sigma_u) 1 − σ u 2 = ( 1 − σ u ) ( 1 + σ u ) gives
( σ u − 1 ) 2 − ( σ u 2 − 1 ) 2 4 = ( σ u 2 − 1 ) 2 4 ⋅ ( 1 − σ u ) ( 3 + σ u ) ( 1 + σ u ) 2 = ( 1 − σ u 2 ) 3 4 ⋅ 3 + σ u ( 1 + σ u ) 3 ≤ 3 4 ( 1 − σ u 2 ) + 3 , (\sigma_u-1)^2-\frac{(\sigma_u^2-1)^2}{4}=\frac{(\sigma_u^2-1)^2}{4}\cdot\frac{(1-\sigma_u)(3+\sigma_u)}{(1+\sigma_u)^2}=\frac{(1-\sigma_u^2)^3}{4}\cdot\frac{3+\sigma_u}{(1+\sigma_u)^3}\le\frac{3}{4}(1-\sigma_u^2)_+^3, ( σ u − 1 ) 2 − 4 ( σ u 2 − 1 ) 2 = 4 ( σ u 2 − 1 ) 2 ⋅ ( 1 + σ u ) 2 ( 1 − σ u ) ( 3 + σ u ) = 4 ( 1 − σ u 2 ) 3 ⋅ ( 1 + σ u ) 3 3 + σ u ≤ 4 3 ( 1 − σ u 2 ) + 3 ,
since ( 3 + σ u ) / ( 1 + σ u ) 3 ≤ 3 (3+\sigma_u)/(1+\sigma_u)^3\le3 ( 3 + σ u ) / ( 1 + σ u ) 3 ≤ 3 for σ u ≥ 0 \sigma_u\ge0 σ u ≥ 0 . Combining both cases gives ( σ u − 1 ) 2 ≤ 1 4 ( σ u 2 − 1 ) 2 + 3 4 ( 1 − σ u 2 ) + 3 (\sigma_u-1)^2\le\frac{1}{4}(\sigma_u^2-1)^2+\frac{3}{4}(1-\sigma_u^2)_+^3 ( σ u − 1 ) 2 ≤ 4 1 ( σ u 2 − 1 ) 2 + 4 3 ( 1 − σ u 2 ) + 3 , and taking half the expectation proves the upper bound.
(ii) By Lemma 45(ii), σ b 2 = s J b / r \sigma_b^2=sJ_b/r σ b 2 = s J b / r , where J b ∼ Binomial ( n / s , q ) J_b\sim\operatorname{Binomial}(n/s,q) J b ∼ Binomial ( n / s , q ) under Bernoulli supports and J b ∼ Hypergeometric ( n , n / s , r ) J_b\sim\operatorname{Hypergeometric}(n,n/s,r) J b ∼ Hypergeometric ( n , n / s , r ) under balanced supports. Neither distribution depends on D D D , and Var ( σ b 2 ) = V s \operatorname{Var}(\sigma_b^2)=V_s Var ( σ b 2 ) = V s by Lemma 28(i).
Lower bound. The third central moment of J b J_b J b equals Var ( J b ) ( 1 − 2 q ) \operatorname{Var}(J_b)(1-2q) Var ( J b ) ( 1 − 2 q ) in the binomial case and
E ( J b − E J b ) 3 = Var ( J b ) ( 1 − 2 s ) n − 2 r n − 2 \mathbb{E}(J_b-\mathbb{E}J_b)^3=\operatorname{Var}(J_b)\left(1-\frac{2}{s}\right)\frac{n-2r}{n-2} E ( J b − E J b ) 3 = Var ( J b ) ( 1 − s 2 ) n − 2 n − 2 r
in the hypergeometric case (see Chapter 6 of Johnson, Kemp, and Kotz, Univariate Discrete Distributions ). Because r ≤ n / 2 r \le n/2 r ≤ n /2 and s ≥ 2 s \ge2 s ≥ 2 , we have E ( J b − E J b ) 3 ≤ Var ( J b ) \mathbb{E}(J_b-\mathbb{E}J_b)^3 \le\operatorname{Var}(J_b) E ( J b − E J b ) 3 ≤ Var ( J b ) under both laws. Scaling by ( s / r ) 3 (s/r)^3 ( s / r ) 3 gives E ( σ b 2 − 1 ) 3 ≤ ( s / r ) 3 Var ( J b ) = ( s / r ) V s \mathbb{E}(\sigma_b^2-1)^3 \le(s/r)^3\operatorname{Var}(J_b)=(s/r)V_s E ( σ b 2 − 1 ) 3 ≤ ( s / r ) 3 Var ( J b ) = ( s / r ) V s , so part (i) yields Δ s ≥ V s / 8 − ( s / r ) V s / 16 \Delta_s \ge V_s/8-(s/r)V_s/16 Δ s ≥ V s /8 − ( s / r ) V s /16 .
Upper bound. Applying Maurer’s lower-tail bound Pr [ σ b 2 < t ] ≤ e − ( 1 − t ) 2 r / ( 2 s ) \Pr[\sigma_b^2<t]\le e^{-(1-t)^2r/(2s)} Pr [ σ b 2 < t ] ≤ e − ( 1 − t ) 2 r / ( 2 s ) (Lemma 28(ii) with k x b = s k_{x_b}=s k x b = s ) gives
E ( 1 − σ b 2 ) + 3 = ∫ − ∞ 1 3 ( 1 − t ) 2 Pr [ σ b 2 < t ] d t ≤ 3 ∫ − ∞ 1 ( 1 − t ) 2 e − ( 1 − t ) 2 r / ( 2 s ) d t = 3 π 2 ( s r ) 3 / 2 . \mathbb{E}(1-\sigma_b^2)_+^3=\int_{-\infty}^{1}3(1-t)^2\Pr[\sigma_b^2<t]\,dt\le3\int_{-\infty}^{1}(1-t)^2e^{-(1-t)^2r/(2s)}\,dt=3\sqrt{\frac{\pi}{2}}\left(\frac{s}{r}\right)^{3/2}. E ( 1 − σ b 2 ) + 3 = ∫ − ∞ 1 3 ( 1 − t ) 2 Pr [ σ b 2 < t ] d t ≤ 3 ∫ − ∞ 1 ( 1 − t ) 2 e − ( 1 − t ) 2 r / ( 2 s ) d t = 3 2 π ( r s ) 3/2 .
Since 3 2 ⋅ π 2 < 1.41 \frac{3}{2}\cdot\sqrt{\frac{\pi}{2}}<1.41 2 3 ⋅ 2 π < 1.41 and s / r < 4 V s s/r<4V_s s / r < 4 V s by (38) , part (i) yields Δ s ≤ V s / 8 + 1.41 ( s / r ) 3 / 2 ≤ V s / 8 + 5.64 V s s / r ≤ ( V s / 8 ) ( 1 + 46 s / r ) \Delta_s\le V_s/8+1.41(s/r)^{3/2}\le V_s/8+5.64V_s\sqrt{s/r}\le(V_s/8)(1+46\sqrt{s/r}) Δ s ≤ V s /8 + 1.41 ( s / r ) 3/2 ≤ V s /8 + 5.64 V s s / r ≤ ( V s /8 ) ( 1 + 46 s / r ) .
(iii) Here u = x b u=x_b u = x b is the stored vector, so σ u = σ b \sigma_u=\sigma_b σ u = σ b and σ u v = ρ σ b 2 + 1 − ρ 2 σ 12 \sigma_{uv}=\rho\sigma_b^2+\sqrt{1-\rho^2}\,\sigma_{12} σ uv = ρ σ b 2 + 1 − ρ 2 σ 12 (with σ 12 \sigma_{12} σ 12 defined in Lemma 45(iii)). By Lemma 9(iii), E [ Z ∣ S ] = ρ σ b + 1 − ρ 2 σ 12 σ b − 1 1 { σ b > 0 } \mathbb{E}[Z\mid S]=\rho\sigma_b+\sqrt{1-\rho^2}\,\sigma_{12}\sigma_b^{-1}\mathbf{1}\{\sigma_b>0\} E [ Z ∣ S ] = ρ σ b + 1 − ρ 2 σ 12 σ b − 1 1 { σ b > 0 } (noting that σ b = 0 ⟹ σ 12 = 0 \sigma_b=0\mathrel{\Longrightarrow}\sigma_{12}=0 σ b = 0 ⟹ σ 12 = 0 ). Because replacing S S S with its mirror support S ∗ S^* S ∗ (Lemma 45(iii)) preserves σ b \sigma_b σ b and negates σ 12 \sigma_{12} σ 12 , the second term has expectation zero, leaving E [ ρ ^ B G ∣ D ] = ρ E σ b = ρ ( 1 − Δ s ) \mathbb{E}[\hat{\rho}_{\mathrm{BG}}\mid D]=\rho\,\mathbb{E}\sigma_b=\rho(1-\Delta_s) E [ ρ ^ BG ∣ D ] = ρ E σ b = ρ ( 1 − Δ s ) .
(iv) Set T : = tan θ T:=\tan\theta T := tan θ . For the pair u = e j u=e_j u = e j and v = cos θ e j + sin θ x b v=\cos\theta\,e_j+\sin\theta\,x_b v = cos θ e j + sin θ x b , we have u 1 = e j u_1=e_j u 1 = e j and u 2 = x b u_2=x_b u 2 = x b , so the random metric (6) has diagonal entries σ 1 2 = 1 \sigma_1^2=1 σ 1 2 = 1 (deterministically on every balanced support since e ~ j \tilde e_j e ~ j is flat) and σ 2 2 = σ b 2 \sigma_2^2=\sigma_b^2 σ 2 2 = σ b 2 , and off-diagonal entry σ 12 \sigma_{12} σ 12 from Lemma 45(iii).
Complex representation of θ S \theta_S θ S . Using t θ = cos θ ( 1 , T ) ⊤ t_\theta=\cos\theta(1,T)^\top t θ = cos θ ( 1 , T ) ⊤ , we have σ u v = cos θ ( 1 + T σ 12 ) \sigma_{uv}=\cos\theta(1+T\sigma_{12}) σ uv = cos θ ( 1 + T σ 12 ) and σ v 2 = cos 2 θ ( 1 + 2 T σ 12 + T 2 σ 2 2 ) \sigma_v^2=\cos^2\theta(1+2T\sigma_{12}+T^2\sigma_2^2) σ v 2 = cos 2 θ ( 1 + 2 T σ 12 + T 2 σ 2 2 ) . Because σ 2 2 ≥ σ 12 2 \sigma_2^2\ge\sigma_{12}^2 σ 2 2 ≥ σ 12 2 (as M S ⪰ 0 M_S\succeq0 M S ⪰ 0 ), we may define the upper half-plane complex number ξ S : = 1 + T σ 12 + i T σ 2 2 − σ 12 2 \xi_S:=1+T\sigma_{12}+iT\sqrt{\sigma_2^2-\sigma_{12}^2} ξ S := 1 + T σ 12 + i T σ 2 2 − σ 12 2 , which satisfies Re ξ S = σ u v / cos θ \operatorname{Re}\xi_S=\sigma_{uv}/\cos\theta Re ξ S = σ uv / cos θ and ∣ ξ S ∣ = σ v / cos θ |\xi_S|=\sigma_v/\cos\theta ∣ ξ S ∣ = σ v / cos θ . Defining arg ξ ∈ [ 0 , π ] \arg\xi\in[0,\pi] arg ξ ∈ [ 0 , π ] for ξ ≠ 0 \xi\ne0 ξ = 0 in the closed upper half-plane and arg 0 : = π / 2 \arg0:=\pi/2 arg 0 := π /2 , Lemma 9(iii) (with σ u = σ 1 = 1 \sigma_u=\sigma_1=1 σ u = σ 1 = 1 ) implies θ S = arg ξ S \theta_S=\arg\xi_S θ S = arg ξ S for every support S S S .
Averaging a support and its mirror. Because the mirror support S ∗ S^* S ∗ has the same σ 2 2 \sigma_2^2 σ 2 2 and negated cross term − σ 12 -\sigma_{12} − σ 12 , multiplying ξ S \xi_S ξ S and ξ S ∗ \xi_{S^*} ξ S ∗ gives
ξ S ξ S ∗ = ( 1 + i T σ 2 2 − σ 12 2 ) 2 − T 2 σ 12 2 = 1 − T 2 σ 2 2 + 2 i T σ 2 2 − σ 12 2 . \xi_S\xi_{S^*}=(1+iT\sqrt{\sigma_2^2-\sigma_{12}^2})^2-T^2\sigma_{12}^2=1-T^2\sigma_2^2+2iT\sqrt{\sigma_2^2-\sigma_{12}^2}. ξ S ξ S ∗ = ( 1 + i T σ 2 2 − σ 12 2 ) 2 − T 2 σ 12 2 = 1 − T 2 σ 2 2 + 2 i T σ 2 2 − σ 12 2 .
We claim that every support satisfies
1 2 ( θ S + θ S ∗ ) ≤ arctan ( T σ 2 ) + π 4 1 { T 2 σ 2 2 ≥ 1 } . (41) \frac{1}{2}(\theta_S+\theta_{S^*})\le\arctan(T\sigma_2)+\frac{\pi}{4}\mathbf{1}\{T^2\sigma_2^2\ge1\}. \tag*{(41)} 2 1 ( θ S + θ S ∗ ) ≤ arctan ( T σ 2 ) + 4 π 1 { T 2 σ 2 2 ≥ 1 } . (41)
Indeed, if ξ S = 0 \xi_S=0 ξ S = 0 (or ξ S ∗ = 0 \xi_{S^*}=0 ξ S ∗ = 0 ), then T σ 12 = − 1 T\sigma_{12}=-1 T σ 12 = − 1 and σ 2 2 = σ 12 2 \sigma_2^2=\sigma_{12}^2 σ 2 2 = σ 12 2 , so T 2 σ 2 2 = 1 T^2\sigma_2^2=1 T 2 σ 2 2 = 1 and the two angles are π / 2 \pi/2 π /2 and 0 0 0 , satisfying (41) . Otherwise, Re ξ S + Re ξ S ∗ = 2 > 0 \operatorname{Re}\xi_S+\operatorname{Re}\xi_{S^*}=2>0 Re ξ S + Re ξ S ∗ = 2 > 0 , so at least one of θ S , θ S ∗ \theta_S,\theta_{S^*} θ S , θ S ∗ is strictly below π / 2 \pi/2 π /2 , implying θ S + θ S ∗ < 3 π / 2 \theta_S+\theta_{S^*}<3\pi/2 θ S + θ S ∗ < 3 π /2 . Because ξ S ξ S ∗ \xi_S\xi_{S^*} ξ S ξ S ∗ lies in the closed upper half-plane, its unique argument in [ 0 , 3 π / 2 ) [0,3\pi/2) [ 0 , 3 π /2 ) is arg ( ξ S ξ S ∗ ) ∈ [ 0 , π ] \arg(\xi_S\xi_{S^*})\in[0,\pi] arg ( ξ S ξ S ∗ ) ∈ [ 0 , π ] , so θ S + θ S ∗ = arg ( ξ S ξ S ∗ ) ≤ π \theta_S+\theta_{S^*}=\arg(\xi_S\xi_{S^*})\le\pi θ S + θ S ∗ = arg ( ξ S ξ S ∗ ) ≤ π . When T 2 σ 2 2 ≥ 1 T^2\sigma_2^2\ge1 T 2 σ 2 2 ≥ 1 , we have arctan ( T σ 2 ) ≥ π / 4 \arctan(T\sigma_2)\ge\pi/4 arctan ( T σ 2 ) ≥ π /4 , so (41) holds. When T 2 σ 2 2 < 1 T^2\sigma_2^2<1 T 2 σ 2 2 < 1 , the product ξ S ξ S ∗ \xi_S\xi_{S^*} ξ S ξ S ∗ has positive real part 1 − T 2 σ 2 2 1-T^2\sigma_2^2 1 − T 2 σ 2 2 , and the tangent double-angle identity gives
θ S + θ S ∗ = arctan 2 T σ 2 2 − σ 12 2 1 − T 2 σ 2 2 ≤ arctan 2 T σ 2 1 − T 2 σ 2 2 = 2 arctan ( T σ 2 ) , \theta_S+\theta_{S^*}=\arctan\frac{2T\sqrt{\sigma_2^2-\sigma_{12}^2}}{1-T^2\sigma_2^2}\le\arctan\frac{2T\sigma_2}{1-T^2\sigma_2^2}=2\arctan(T\sigma_2), θ S + θ S ∗ = arctan 1 − T 2 σ 2 2 2 T σ 2 2 − σ 12 2 ≤ arctan 1 − T 2 σ 2 2 2 T σ 2 = 2 arctan ( T σ 2 ) ,
establishing (41) .
Expectation and constants. Taking expectations of (41) over S S S and using concavity of x ↦ arctan ( T x ) x\mapsto\arctan(Tx) x ↦ arctan ( T x ) on [ 0 , ∞ ) [0,\infty) [ 0 , ∞ ) (bounding it by its tangent line at x = 1 x=1 x = 1 , which has slope T / ( 1 + T 2 ) = sin θ cos θ T/(1+T^2)=\sin\theta\cos\theta T / ( 1 + T 2 ) = sin θ cos θ ) yields
E [ θ ^ ∣ D ] = E 1 2 ( θ S + θ S ∗ ) ≤ E arctan ( T σ 2 ) + π 4 Pr [ σ 2 2 ≥ T − 2 ] ≤ θ + sin θ cos θ ( E σ 2 − 1 ) + π 4 Pr [ σ 2 2 ≥ cot 2 θ ] , \begin{aligned}
\mathbb{E}[\hat{\theta}\mid D]=\mathbb{E}\,\frac{1}{2}(\theta_S+\theta_{S^*})\le\mathbb{E}\arctan(T\sigma_2)+\frac{\pi}{4}\Pr[\sigma_2^2\ge T^{-2}] \\
&\le\theta+\sin\theta\cos\theta(\mathbb{E}\sigma_2-1)+\frac{\pi}{4}\Pr[\sigma_2^2\ge\cot^2\theta],
\end{aligned} E [ θ ^ ∣ D ] = E 2 1 ( θ S + θ S ∗ ) ≤ E arctan ( T σ 2 ) + 4 π Pr [ σ 2 2 ≥ T − 2 ] ≤ θ + sin θ cos θ ( E σ 2 − 1 ) + 4 π Pr [ σ 2 2 ≥ cot 2 θ ] ,
proving the first inequality in (iv) since E σ 2 = E σ b = 1 − Δ s \mathbb{E}\sigma_2=\mathbb{E}\sigma_b=1-\Delta_s E σ 2 = E σ b = 1 − Δ s . Finally, using Δ s ≥ V s / 16 \Delta_s\ge V_s/16 Δ s ≥ V s /16 (from (ii) as s ≤ r s\le r s ≤ r ), Chebyshev’s inequality Pr [ σ 2 2 ≥ T − 2 ] ≤ V s / ( T − 2 − 1 ) 2 = V s T 4 / ( 1 − T 2 ) 2 \Pr[\sigma_2^2\ge T^{-2}]\le V_s/(T^{-2}-1)^2=V_sT^4/(1-T^2)^2 Pr [ σ 2 2 ≥ T − 2 ] ≤ V s / ( T − 2 − 1 ) 2 = V s T 4 / ( 1 − T 2 ) 2 , and sin θ cos θ = T / ( 1 + T 2 ) \sin\theta\cos\theta=T/(1+T^2) sin θ cos θ = T / ( 1 + T 2 ) bounds the bias by
− T V s ( 1 16 ( 1 + T 2 ) − π 4 T 3 ( 1 − T 2 ) 2 ) ≤ − θ f q ( s − 1 ) 17 r , -TV_s\left(\frac{1}{16(1+T^2)}-\frac{\pi}{4}\frac{T^3}{(1-T^2)^2}\right)\le-\theta\frac{f_q(s-1)}{17r}, − T V s ( 16 ( 1 + T 2 ) 1 − 4 π ( 1 − T 2 ) 2 T 3 ) ≤ − θ 17 r f q ( s − 1 ) ,
since T ≥ θ T\ge\theta T ≥ θ , V s = f q ( s − 1 ) / r V_s=f_q(s-1)/r V s = f q ( s − 1 ) / r under balanced supports, and the parenthetical factor is decreasing in T T T with value > 0.061 > 1 17 >0.061>\frac{1}{17} > 0.061 > 17 1 at T = 1 10 T=\frac{1}{10} T = 10 1 .
□ \square □
To prove parts (b)–(d) of Theorem 21 , we pack disjoint blocks B 1 , … , B N ′ B_1,\ldots,B_{N'} B 1 , … , B N ′ of size s s s (reserving B 0 B_0 B 0 for the basis vector e 0 e_0 e 0 in part (c)) and choose s s s so that D D D hits at least one block with probability exceeding δ \delta δ .
Lemma 47 (A likely hit). Let N ≥ 1 N \ge1 N ≥ 1 , δ ∈ ( 0 , 1 2 ] \delta\in(0,\frac{1}{2}] δ ∈ ( 0 , 2 1 ] , and Λ = log ( min { N , n / 2 } / δ ) \Lambda= \log(\min\{N,n/2\}/\delta) Λ = log ( min { N , n /2 } / δ ) , and let 2 ≤ s max ≤ n / 2 2 \le s_{\max} \le n/2 2 ≤ s m a x ≤ n /2 . Let s s s be the largest power of two satisfying
s ≤ s max and 2 s ≤ min { s N , n / 2 } / δ , s \le s_{\max} \qquad\text{and}\qquad2^s \le\min\{sN,n/2\}/\delta, s ≤ s m a x and 2 s ≤ min { s N , n /2 } / δ , and set N ′ : = min { N , n / s − 1 } N' := \min\{N,n/s-1\} N ′ := min { N , n / s − 1 } . Then N ′ ≥ 1 N' \ge1 N ′ ≥ 1 , the union event E h i t : = E 1 ∪ ⋯ ∪ E N ′ E_{\mathrm{hit}} := E_1 \cup\cdots\cup E_{N'} E hit := E 1 ∪ ⋯ ∪ E N ′ has probability Pr [ E h i t ] > δ \Pr[E_{\mathrm{hit}}] > \delta Pr [ E hit ] > δ , and
s > 1 2 min { s max , Λ / log 2 } . (42) s > \frac{1}{2}\min\{s_{\max},\Lambda/\log2\}. \tag*{(42)} s > 2 1 min { s m a x , Λ/ log 2 } . (42)
Proof of Lemma 47. Because s = 2 s=2 s = 2 satisfies 2 2 = 4 ≤ 2 / δ ≤ min { 2 N , n / 2 } / δ 2^2=4\le2/\delta\le\min\{2N,n/2\}/\delta 2 2 = 4 ≤ 2/ δ ≤ min { 2 N , n /2 } / δ , the dyadic integer s ≥ 2 s\ge2 s ≥ 2 is well defined, and s ≤ n / 2 s\le n/2 s ≤ n /2 implies N ′ ≥ 1 N'\ge1 N ′ ≥ 1 . The second condition ensures s N ′ = min { s N , n − s } ≥ min { s N , n / 2 } ≥ δ 2 s sN'=\min\{sN,n-s\}\ge\min\{sN,n/2\}\ge\delta2^s s N ′ = min { s N , n − s } ≥ min { s N , n /2 } ≥ δ 2 s , so Lemma 45(i) gives
Pr [ E h i t ] = 1 − ( 1 − 2 s 2 − s ) N ′ ≥ 1 − e − 2 s N ′ 2 − s ≥ 1 − e − 2 δ > δ , \Pr[E_{\mathrm{hit}}] = 1-\left(1-2s2^{-s}\right)^{N'} \ge1-e^{-2sN'2^{-s}} \ge1-e^{-2\delta}>\delta, Pr [ E hit ] = 1 − ( 1 − 2 s 2 − s ) N ′ ≥ 1 − e − 2 s N ′ 2 − s ≥ 1 − e − 2 δ > δ ,
where the final inequality uses the concavity of δ ↦ 1 − e − 2 δ − δ \delta\mapsto1-e^{-2\delta}-\delta δ ↦ 1 − e − 2 δ − δ on [ 0 , 1 2 ] [0,\frac{1}{2}] [ 0 , 2 1 ] . Finally, by maximality of s s s , the next power of two 2 s 2s 2 s must violate one of the two defining constraints: either 2 s > s max 2s>s_{\max} 2 s > s m a x , or 2 s > min { 2 s N , n / 2 } / δ ≥ min { N , n / 2 } / δ = e Λ 2^s>\min\{2sN,n/2\}/\delta\ge\min\{N,n/2\}/\delta=e^\Lambda 2 s > min { 2 s N , n /2 } / δ ≥ min { N , n /2 } / δ = e Λ (so 2 s > Λ / log 2 2s>\Lambda/\log2 2 s > Λ/ log 2 ), which proves (43). ∎
Proof of Theorem 21. (a) Setting x : = x 0 x:=x_0 x := x 0 and E : = E 0 \mathcal{E}:=\mathcal{E}_0 E := E 0 , Lemma 45 and Proposition 46 (i)–(iv) immediately yield all claims in part (a).
Reduction via block selection and Cantelli’s inequality. For parts (b) and (c), invoke Lemma 47 with s max = r s_{\max}=r s m a x = r to obtain s s s , N ′ ≤ N N'\le N N ′ ≤ N , and E h i t E_{\mathrm{hit}} E hit . On E h i t E_{\mathrm{hit}} E hit , let b ∗ ∈ { 1 , … , N ′ } b^*\in\{1,\ldots,N'\} b ∗ ∈ { 1 , … , N ′ } be the smallest block index for which E b ∗ E_{b^*} E b ∗ holds (note that b ∗ b^* b ∗ is measurable with respect to D D D ).
Suppose a family of N ′ N' N ′ pairs indexed by b = 1 , … , N ′ b=1,\ldots,N' b = 1 , … , N ′ satisfies the following conditional miss property with constant c > 0 c>0 c > 0 for ε ≤ 1 / ( 2 c ) \varepsilon\le1/(2c) ε ≤ 1/ ( 2 c ) : whenever r < s / ( c ε ) r<s/(c\varepsilon) r < s / ( c ε ) and D ∈ E h i t D\in E_{\mathrm{hit}} D ∈ E hit , the estimator for pair b ∗ b^* b ∗ fails to achieve its target accuracy with conditional probability at least 1 2 \frac{1}{2} 2 1 over P P P . Then any sketch that succeeds simultaneously across all N ′ N' N ′ pairs with overall probability at least 1 − δ / 2 1-\delta/2 1 − δ /2 must satisfy r ≥ s / ( c ε ) r\ge s/(c\varepsilon) r ≥ s / ( c ε ) (otherwise its failure probability would be at least 1 2 Pr [ E h i t ] > δ / 2 \frac{1}{2}\Pr[E_{\mathrm{hit}}]>\delta/2 2 1 Pr [ E hit ] > δ /2 ). Moreover, r ≥ s / ( c ε ) r\ge s/(c\varepsilon) r ≥ s / ( c ε ) and ε ≤ 1 / ( 2 c ) \varepsilon\le1/(2c) ε ≤ 1/ ( 2 c ) imply s ≤ r / 2 < s max s\le r/2<s_{\max} s ≤ r /2 < s m a x , so the active branch in (43) is Λ / log 2 \Lambda/\log2 Λ/ log 2 , yielding r ≥ s / ( c ε ) > Λ / ( 2 c log 2 ⋅ ε ) r\ge s/(c\varepsilon)>\Lambda/(2c\log2\cdot\varepsilon) r ≥ s / ( c ε ) > Λ/ ( 2 c log 2 ⋅ ε ) . Establishing the conditional miss property with c = 128 c=128 c = 128 for BG and c = 136 c=136 c = 136 for BB therefore proves parts (b) and (c), since 256 log 2 < 178 256\log2<178 256 log 2 < 178 and 272 log 2 < 189 272\log2<189 272 log 2 < 189 .
To establish the conditional miss property from a bias, we use Cantelli’s inequality: if, conditioned on D D D , an estimator W W W of a target parameter τ \tau τ has expectation E [ W ∣ D ] = τ − t \mathbb{E}[W\mid D]=\tau-t E [ W ∣ D ] = τ − t (t > 0 t>0 t > 0 ) and variance Var ( W ∣ D ) < t 2 / 4 \operatorname{Var}(W\mid D)<t^2/4 Var ( W ∣ D ) < t 2 /4 , then
Pr [ W − E [ W ∣ D ] ≥ t / 2 ∣ D ] ≤ Var ( W ∣ D ) Var ( W ∣ D ) + t 2 / 4 < 1 2 , \Pr\left[W-\mathbb{E}[W\mid D]\ge t/2\mid D\right]\le\frac{\operatorname{Var}(W\mid D)}{\operatorname{Var}(W\mid D)+t^2/4}<\frac{1}{2}, Pr [ W − E [ W ∣ D ] ≥ t /2 ∣ D ] ≤ Var ( W ∣ D ) + t 2 /4 Var ( W ∣ D ) < 2 1 ,
so W < τ − t / 2 W<\tau-t/2 W < τ − t /2 with conditional probability strictly exceeding 1 2 \frac{1}{2} 2 1 .
(b) Consider the family of N ′ N' N ′ self-pairs ( x b , x b ) (x_b,x_b) ( x b , x b ) (1 ≤ b ≤ N ′ 1\le b\le N' 1 ≤ b ≤ N ′ ), where ρ = 1 \rho=1 ρ = 1 . Suppose r < s / ( 128 ε ) r<s/(128\varepsilon) r < s / ( 128 ε ) and D ∈ E h i t D\in E_{\mathrm{hit}} D ∈ E hit . Since s ≤ r s\le r s ≤ r , Proposition 46 (ii) and (39) give Δ s ≥ V s / 16 ≥ s / ( 64 r ) > 2 ε \Delta_s\ge V_s/16\ge s/(64r)>2\varepsilon Δ s ≥ V s /16 ≥ s / ( 64 r ) > 2 ε , and Proposition 46 (i) gives E [ Z 1 ∣ D ] = 1 − Δ s \mathbb{E}[Z_1\mid D]=1-\Delta_s E [ Z 1 ∣ D ] = 1 − Δ s for pair b ∗ b^* b ∗ . For the dot-product decoder with ℓ ≥ π / ( 2 ε 2 ) \ell\ge\pi/(2\varepsilon^2) ℓ ≥ π / ( 2 ε 2 ) , Lemma 33 gives Var ( ρ ^ B G ∣ D ) ≤ π / ( ℓ 2 ) ≤ ε 2 / 2 \operatorname{Var}(\hat{\rho}_{\mathrm{BG}}\mid D)\le\pi/(\ell^2)\le\varepsilon^2/2 Var ( ρ ^ BG ∣ D ) ≤ π / ( ℓ 2 ) ≤ ε 2 /2 , so Cantelli’s inequality with t = 1 t=1 t = 1 and Δ s \Delta_s Δ s implies ∣ ρ ^ B G − 1 ∣ > Δ s / 2 > ε |\hat{\rho}_{\mathrm{BG}}-1|>\Delta_s/2>\varepsilon ∣ ρ ^ BG − 1∣ > Δ s /2 > ε with conditional probability > 1 2 >\frac{1}{2} > 2 1 . Likewise, any decoder ρ ~ \tilde{\rho} ρ ~ that concentrates within ε \varepsilon ε of E [ Z 1 ∣ D ] = 1 − Δ s \mathbb{E}[Z_1\mid D]=1-\Delta_s E [ Z 1 ∣ D ] = 1 − Δ s with conditional probability at least 1 2 \frac{1}{2} 2 1 satisfies ∣ ρ ~ − 1 ∣ ≥ Δ s − ε > ε |\tilde{\rho}-1|\ge\Delta_s-\varepsilon>\varepsilon ∣ ρ ~ − 1∣ ≥ Δ s − ε > ε on that event (in particular, by Lemma 24 with N = 1 N=1 N = 1 , δ = 1 2 \delta=\frac{1}{2} δ = 2 1 , and σ 2 = π / 2 \sigma^2=\pi/2 σ 2 = π /2 , Catoni’s decoder satisfies this condition once ℓ ≥ 2 ( π / 2 + ε 2 ) ε − 2 log 4 \ell\ge2(\pi/2+\varepsilon^2)\varepsilon^{-2}\log4 ℓ ≥ 2 ( π /2 + ε 2 ) ε − 2 log 4 ). Thus the conditional miss property holds with c = 128 c=128 c = 128 .
(c) Consider the family of N ′ N' N ′ pairs ( e 0 , cos θ e 0 + sin θ x b ) (e_0,\cos\theta\,e_0+\sin\theta\,x_b) ( e 0 , cos θ e 0 + sin θ x b ) (1 ≤ b ≤ N ′ 1\le b\le N' 1 ≤ b ≤ N ′ ) at angle θ ≤ arctan ( 1 / 10 ) \theta\le\arctan(1/10) θ ≤ arctan ( 1/10 ) . Suppose r < s / ( 136 ε ) r<s/(136\varepsilon) r < s / ( 136 ε ) and D ∈ E h i t D\in E_{\mathrm{hit}} D ∈ E hit . For pair b ∗ b^* b ∗ , Proposition 46 (iv) and (39) give downward bias at θ \theta θ :
θ − E [ θ ^ ∣ D ] ≥ θ f q ( s − 1 ) / ( 17 r ) ≥ θ s / ( 68 r ) > 2 ε θ . \theta-\mathbb{E}[\hat{\theta}\mid D]\ge\theta f_q(s-1)/(17r)\ge\theta s/(68r)>2\varepsilon\theta. θ − E [ θ ^ ∣ D ] ≥ θ f q ( s − 1 ) / ( 17 r ) ≥ θ s / ( 68 r ) > 2 εθ .
Conditioned on D D D , ℓ θ ^ / π ∼ Binomial ( ℓ , p ) \ell\hat{\theta}/\pi\sim\operatorname{Binomial}(\ell,p) ℓ θ ^ / π ∼ Binomial ( ℓ , p ) with π p = θ − t ≤ θ \pi p=\theta-t\le\theta π p = θ − t ≤ θ , so for ℓ ≥ π / ( ε 2 θ ) \ell\ge\pi/(\varepsilon^2\theta) ℓ ≥ π / ( ε 2 θ ) , we have Var ( θ ^ ∣ D ) ≤ π 2 p / ℓ ≤ π θ / ℓ ≤ ε 2 θ 2 < ( t / 2 ) 2 \operatorname{Var}(\hat{\theta}\mid D)\le\pi^2p/\ell\le\pi\theta/\ell\le\varepsilon^2\theta^2<(t/2)^2 Var ( θ ^ ∣ D ) ≤ π 2 p / ℓ ≤ π θ / ℓ ≤ ε 2 θ 2 < ( t /2 ) 2 . Cantelli’s inequality with τ = θ \tau=\theta τ = θ then gives ∣ θ ^ − θ ∣ > t / 2 > ε θ |\hat{\theta}-\theta|>t/2>\varepsilon\theta ∣ θ ^ − θ ∣ > t /2 > εθ with conditional probability > 1 2 >\frac{1}{2} > 2 1 , establishing the conditional miss property with c = 136 c=136 c = 136 .
(d) Applying Lemma 47 with s max = n / 2 s_{\max}=n/2 s m a x = n /2 to the family x 1 , … , x N ′ x_1,\ldots,x_{N'} x 1 , … , x N ′ , with probability exceeding δ \delta δ over D D D at least one block x b x_b x b is hit, giving w x b = k x b = s > 1 2 min { n / 2 , Λ / log 2 } ≥ 1 2 min { Λ , n / 2 } w_{x_b}=k_{x_b}=s>\frac{1}{2}\min\{n/2,\Lambda/\log2\}\geq\frac{1}{2}\min\{\Lambda,n/2\} w x b = k x b = s > 2 1 min { n /2 , Λ/ log 2 } ≥ 2 1 min { Λ , n /2 } by Lemma 45(ii) and (42) .
Asymptotic exactness of the BG pair certificate on self-pairs. On a hit self-pair ( x b , x b ) (x_b,x_b) ( x b , x b ) , the true BG bias is − Δ s = − ( 1 + o ( 1 ) ) V s / 8 -\Delta_s=-(1+o(1))V_s/8 − Δ s = − ( 1 + o ( 1 )) V s /8 as s / r → 0 s/r\to0 s / r → 0 (Proposition 46 (i) and (ii)). Notably, the coordinatewise pair certificate (26) recovers this exact asymptotic constant: since ρ = 1 \rho=1 ρ = 1 , V u = V s V_u=V_s V u = V s , and V u v = 0 V_{uv}=0 V uv = 0 , (26) simplifies to V s 2 ( 1 + t ) 2 + p t 2 \frac{V_s}{2(1+\sqrt{t})^2}+\frac{p_t}{2} 2 ( 1 + t ) 2 V s + 2 p t ; choosing the threshold t : = 1 − ( s / r ) 1 / 3 → 1 t:=1-(s/r)^{1/3}\to1 t := 1 − ( s / r ) 1/3 → 1 makes the first term converge to V s / 8 V_s/8 V s /8 while Lemma 28(ii) bounds the second term by 1 2 e − ( r / s ) 1 / 3 / 2 = o ( V s ) \frac{1}{2}e^{-(r/s)^{1/3}/2}=o(V_s) 2 1 e − ( r / s ) 1/3 /2 = o ( V s ) . By contrast, the closed-form cap bound 1.15 w x b / r = 1.15 s / r 1.15\,w_{x_b}/r=1.15\,s/r 1.15 w x b / r = 1.15 s / r of Proposition 13 (i) (valid for s ≤ r / 64 s\leq r/64 s ≤ r /64 , where Δ s ≥ 127 s / ( 32 r ) \Delta_s\geq127s/(32r) Δ s ≥ 127 s / ( 32 r ) ) overestimates the self-pair bias by a factor between ≈ 9 \approx9 ≈ 9 (for small q q q and s / r s/r s / r under Bernoulli supports, where Δ s ≈ s / ( 8 r ) \Delta_s\approx s/(8r) Δ s ≈ s / ( 8 r ) ) and ≈ 37 \approx37 ≈ 37 .
Experimental details
This appendix collects the supplementary tables referenced in Sections 1.4, 3.7, and 4. Full experimental protocols—including random seeds, sample sizes, control variates, pair-certificate optimization details, term-by-term script outputs for Table 2 , and the automated verification scripts (check_A1-tools.py–check_A6-lower.py) checking every numerical constant in Appendix A—are documented in code/README.md in the supplementary material.
Benchmark parameters and two-stage cost comparison
Tables 5–7 document the retrieval benchmark of Section 1.4 and Table 2 (n = 65,536 n=65{,}536 n = 65 , 536 , m = N = 10 9 m=N=10^9 m = N = 1 0 9 , ε = δ = 0.1 \varepsilon=\delta=0.1 ε = δ = 0.1 ). Table 5 reports the empirical flatness parameters of Gaussian-like unit vectors and planes used in the certified columns of Table 2 (sample medians across 3000 simulated realizations for a typical pair, and extreme-value extrapolations across 10 9 10^9 1 0 9 vectors for the database maximum). Fixing the sketch length ℓ \ell ℓ at its worst-case corollary value, Table 6 shows how the error budget ε = 0.1 \varepsilon=0.1 ε = 0.1 splits between sampling noise and support bias on a typical pair under balanced supports (L = log ( 2 N / δ ) = 23.7 L=\log(2N/\delta)=23.7 L = log ( 2 N / δ ) = 23.7 ). Notice that for BG with the dot-product decoder, the cap correction 18.5 w u ∨ v / r 18.5\,w_{u\vee v}/r 18.5 w u ∨ v / r in Theorem 14 (a) consumes half of the bias budget available to Catoni’s query-independent decoder, nearly doubling its certified sparsity (r = 758 r=758 r = 758 vs. 398 398 398 ). For SimHash (BB), the certified sparsity r = 842 r=842 r = 842 is governed almost entirely by the matrix Chernoff cap-tail threshold (r = 104 r=104 r = 104 suffices for the leading fourth-moment bias term alone, and r ≈ 300 r\approx300 r ≈ 300 suffices under the matrix Bernstein pair certificate of Lemma 44).
tbl:7 reports the multiply–add counts underlying the two-stage comparison in Section 3.7. Even when the first stage is granted a zero-cost exact Gaussian projection to dimension n ′ n' n ′ (with the error budget split optimally at roughly ε / 2 \varepsilon/2 ε /2 per stage), preserving N = 10 9 N=10^9 N = 1 0 9 pairwise cosines to within ε / 2 \varepsilon/2 ε /2 requires n ′ ≈ 17,250 n'\approx17{,}250 n ′ ≈ 17 , 250 and ℓ 2 ≈ 4 ℓ d e n s e \ell_2\approx4\ell_{\mathrm{dense}} ℓ 2 ≈ 4 ℓ dense second-stage rows, costing 8% more multiply–adds than a single-stage dense projection in R n \mathbb{R}^n R n . Directly signing sparse FJLT rows reduces this projection cost by 1.7 × 1.7\times 1.7 × to 4.8 × 4.8\times 4.8 × in the worst case and by 20 × 20\times 20 × to 71 × 71\times 71 × on a typical pair.
caption: Table 7: Two-stage dimension reduction followed by dense signing requires slightly more multiply–adds per vector than a single-stage dense projection, whereas signing sparse FJLT rows directly is substantially faster. Operation counts are evaluated in the benchmark regime of Table 2 (n = 65,536 n = 65{,}536 n = 65 , 536 , N = 10 9 N = 10^9 N = 1 0 9 , ε = δ = 0.1 \varepsilon= \delta= 0.1 ε = δ = 0.1 ), omitting the shared n log 2 n ≈ 10 6 n \log_2 n \approx10^6 n log 2 n ≈ 1 0 6 Hadamard additions. Here “composition” grants the first stage a zero-cost, exact Gaussian projection to dimension n ′ n' n ′ followed by ℓ 2 \ell_2 ℓ 2 dense signed rows, while the remaining columns use the dense ℓ \ell ℓ and balanced FJLT ( ℓ , r ) (\ell,r) ( ℓ , r ) from Table 2 .
:::
End-to-end error on the flat one-hot pair
Table 8 repeats the end-to-end sketch-length sweep of Figure 4 on the perfectly flat one-hot pair (k u = w u = 1 k_u = w_u = 1 k u = w u = 1 ) discussed in Sections 4.2 and 4.4. Under balanced supports, the BG bias vanishes identically (Proposition 13 (iii)), allowing the BG RMSE to follow the dense curve σ / ℓ \sigma/\sqrt{\ell} σ / ℓ all the way to ℓ = 2 15 \ell= 2^{15} ℓ = 2 15 , whereas under Bernoulli supports BG saturates at a bias floor of − 4.1 ⋅ 10 − 3 -4.1 \cdot10^{-3} − 4.1 ⋅ 1 0 − 3 . By contrast, the BB bias (+ 1.6 ⋅ 10 − 3 +1.6 \cdot10^{-3} + 1.6 ⋅ 1 0 − 3 for Bernoulli and + 1.8 ⋅ 10 − 3 +1.8 \cdot10^{-3} + 1.8 ⋅ 1 0 − 3 for balanced supports, five to six standard errors above zero) persists under both support laws: even though a balanced row captures the individual energies σ 1 2 = σ 2 2 = 1 \sigma_1^2 = \sigma_2^2 = 1 σ 1 2 = σ 2 2 = 1 without error, the off-diagonal inner product σ 12 \sigma_{12} σ 12 still fluctuates across supports because the plane fourth moment is k U = 4 k_U = 4 k U = 4 , giving a nonzero metric variance V M = f q ( k U − 21 b a l ) / r ≥ 2 f q / r V_M = f_q(k_U - 2\mathbf{1}_{\mathrm{bal}})/r \geq2f_q/r V M = f q ( k U − 2 1 bal ) / r ≥ 2 f q / r .