Introduction
A network computes in superposition when many decisions read a vector that stores more features than it has dimensions ([18 , 23 , 1 ] ). Each feature has a direction in R d \mathbb{R}^{d} R d , and a threshold unit reads a weighted sum of these directions. If only k k k of m m m features are active, a unit probe sees interference of order k / d \sqrt{k/d} k / d . This controls one decision. What dimension is needed when a whole family of decisions shares the same stored vector? We count the width d d d of that vector; each gate has its own readout unit.
Pairwise conjunction gives a concrete example. Store m m m binary features in a Gaussian dictionary and read all ( m 2 ) \binom{m}{2} ( 2 m ) products x i x j x_i x_j x i x j with probes e i + e j e_i+e_j e i + e j . There are two choices: require the expected number of wrong outputs to vanish, or require every output to be correct with probability tending to one. The bias can be fixed at the midpoint 3 / 2 3/2 3/2 or optimized. These choices give four sharp thresholds (Table 1). When log k = o ( log m ) \log k=o(\log m) log k = o ( log m ) , the constants are 16, 8, 4 and 2 in units of k log m k\log m k log m . When log m ∼ log k \log m\sim\log k log m ∼ log k , all four thresholds equal 32 k log k 32k\log k 32 k log k to first order.
Reliability retains dependence between gate errors. Group gates by their active-input pattern z ∈ { 0 , 1 } r z\in\{0,1\}^{r} z ∈ { 0 , 1 } r . A gate in this class has weights a a a and margin s z s_z s z ; it fails when its interference crosses the margin. Counting errors uses only the law of each gate. Its answer is unchanged if the N z N_z N z interference vectors are independent Gaussian points, whose extreme projections have the support function of a ball of radius 2 log N z \sqrt{2\log N_z} 2 log N z . Reliability uses the actual joint law. In the family of all gates, every interference vector is assembled from the same active and inactive feature reads. Their extremes form a box (Figure 1 ), with half-sides λ 1 = 2 log k \lambda_1=\sqrt{2\log k} λ 1 = 2 log k and λ 0 = 2 log ( m − k ) \lambda_0=\sqrt{2\log(m-k)} λ 0 = 2 log ( m − k ) according to the input state. In either case, a class costs
Figure 1. Two geometries for the one-active class of pairwise conjunction. Left: independent vectors have the extreme projections of a disc of radius 2 log N \sqrt{2\log N} 2 log N , where N = k ( m − k ) N = k(m-k) N = k ( m − k ) . Right: shared active and inactive reads form a grid in [ − λ 1 , λ 1 ] × [ − λ 0 , λ 0 ] [-\lambda_1,\lambda_1] \times[-\lambda_0,\lambda_0] [ − λ 1 , λ 1 ] × [ − λ 0 , λ 0 ] . A gate fails beyond the line normal to a = ( 1 , 1 ) a = (1,1) a = ( 1 , 1 ) at distance s z / ( σ d ∥ a ∥ ) s_z/(\sigma_d\lVert a\rVert) s z / ( σ d ∥ a ∥) . The expected count must clear the disc; reliability must clear the rectangle. Here λ 0 = 3 λ 1 \lambda_0 = 3\lambda_1 λ 0 = 3 λ 1 ; points are illustrative.
d ≈ k h ( a ) 2 s z 2 , (1) d\approx k\frac{h(a)^2}{s_z^2}, \tag*{(1)} d ≈ k s z 2 h ( a ) 2 , (1)
where h ( a ) = ∥ a ∥ 2 log N z h(a)=\lVert a\rVert\sqrt{2\log N_z} h ( a ) = ∥ a ∥ 2 log N z for the ball and h ( a ) = ∑ l ∣ a l ∣ λ z l h(a)=\sum_l\lvert a_l\rvert\lambda_{z_l} h ( a ) = ∑ l ∣ a l ∣ λ z l for the box. The box lies inside the ball to first order. The Cauchy–Schwarz inequality between their support functions explains why the expected count can require more dimensions than reliability. Optimizing the bias produces a separate reduction by assigning more margin to classes with larger extremes.
Results The exact read law gives a common probabilistic reduction (Theorem 3.1 ). Expected-count thresholds depend on class sizes; reliability depends on Gaussian suprema (Theorems 4.1 and 5.1 ). The optimized count is a second-order cone program with a converse over all gate-local readouts (Theorem 4.2 ). For the universal family, the box program has a converse over common representations, even if chosen after observing the reads (Theorem 5.4 ). Symmetric threshold gates have closed forms (Theorem 6.1 ). Pairwise conjunction has explicit Gumbel–Poisson windows, tested by exact simulation (Theorem 7.1 ).
Previous work Superposition explains polysemantic neurons in models of sparse features ([32 , 18 ] ). Hänni et al. [23 ] and Adler and Shavit [1 ] study neural computation with superposed hidden activations. Here we ask which Boolean functions a single threshold layer can read from one stored code. Newgas [31 ] studies learned universal-AND circuits; Bhagat et al. [6 ] distinguish compressed computation from computation in superposition. Garg et al. [22 ] distinguish linear storage from threshold accessibility, and
Table 1. Sharp first-order thresholds for pairwise conjunction, with λ 1 = 2 log k \lambda_1=\sqrt{2\log k} λ 1 = 2 log k and λ 0 = 2 log ( m − k ) \lambda_0=\sqrt{2\log(m-k)} λ 0 = 2 log ( m − k ) . Second lines give the limit when log k = o ( log m ) \log k=o(\log m) log k = o ( log m ) . All entries are 32 k log k 32k\log k 32 k log k to first order when log m ∼ log k \log m\sim\log k log m ∼ log k .
Ivanitskiy et al. (2026) analyze feature recovery from superposition. Our comparison with recovery uses the same dictionary, input law and error criterion.
Sharp thresholds also appear in compressed sensing and support recovery [11 , 15 , 16 , 21 , 44 ] . Sparse superposition codes supply the Gaussian conditioning identity used here [4 , 26 ] ; vector-symbolic architectures also store superposed random vectors [34 , 40 ] . Different error criteria change capacity constants in associative memories [29 ] . The present geometry identifies that difference for threshold gate families. The proofs use Gaussian concentration and comparison [7 , 41 , 37 ] and Gaussian extreme-value theory [28 , 35 ] . The gap between the expected and typical error counts is an annealed–quenched distinction [13 ] .
Model and criteria
Let E = [ e 1 ∣ ⋯ ∣ e m ] ∈ R d × m E=[e_1|\cdots|e_m]\in\mathbb{R}^{d\times m} E = [ e 1 ∣ ⋯ ∣ e m ] ∈ R d × m have independent columns e i ∼ N ( 0 , I d / d ) e_i\sim N(0,I_d/d) e i ∼ N ( 0 , I d / d ) . Independently choose S S S uniformly among the k k k -subsets of [ m ] [m] [ m ] . Write x = 1 S x=\mathbf{1}_S x = 1 S , n = m − k n=m-k n = m − k and
u = E x = ∑ i ∈ S e i , R = E T u . (2) u=Ex=\sum_{i\in S}e_i,\qquad R=E^\mathsf{T}u. \tag*{(2)} u = E x = i ∈ S ∑ e i , R = E T u . (2)
The feature read is R i = ⟨ e i , u ⟩ R_i=\langle e_i,u\rangle R i = ⟨ e i , u ⟩ . Throughout, k → ∞ k\to\infty k → ∞ and m / k → ∞ m/k\to\infty m / k → ∞ ; other restrictions are stated where needed.
Gates and classes A gate is an ordered tuple I = ( I 1 , … , I r ) I=(I_1,\ldots,I_r) I = ( I 1 , … , I r ) of distinct features and a nonconstant threshold function g : { 0 , 1 } r → { 0 , 1 } g:\{0,1\}^r\to\{0,1\} g : { 0 , 1 } r → { 0 , 1 } . Its target is g ( x I ) g(x_I) g ( x I ) . A family F \mathcal{F} F has common arity r r r and function g g g . Finitely many types can be treated separately. The class of a gate is its input pattern z = x I z=x_I z = x I , and F z ( S ) \mathcal{F}_z(S) F z ( S ) contains the gates of that class. With falling factorials ( a ) j (a)_j ( a ) j and ∣ z ∣ = ∑ l z l |z|=\sum_l z_l ∣ z ∣ = ∑ l z l ,
N z = E ∣ F z ( S ) ∣ = ∣ F ∣ ( k ) ∣ z ∣ ( n ) r − ∣ z ∣ ( m ) r . (3) N_z=\mathbb{E}|\mathcal{F}_z(S)|=|\mathcal{F}|\frac{(k)_{|z|}(n)_{r-|z|}}{(m)_r}. \tag*{(3)} N z = E ∣ F z ( S ) ∣ = ∣ F ∣ ( m ) r ( k ) ∣ z ∣ ( n ) r − ∣ z ∣ . (3)
The universal family U r ( g ) \mathcal{U}_r(g) U r ( g ) contains all ( m ) r (m)_r ( m ) r tuples. Its class sizes are deterministic: N z = ( k ) ∣ z ∣ ( n ) r − ∣ z ∣ N_z=(k)_{|z|}(n)_{r-|z|} N z = ( k ) ∣ z ∣ ( n ) r − ∣ z ∣ . For symmetric gates, unordered subsets change these counts only by constant factors and leave first-order thresholds unchanged.
Readouts and margins Gate γ \gamma γ outputs 1 { ⟨ w γ , u ⟩ > θ γ } \mathbf{1}\{\langle w_\gamma,u\rangle> \theta_\gamma\} 1 {⟨ w γ , u ⟩ > θ γ } . A gate-local rule chooses ( w γ , θ γ ) (w_\gamma,\theta_\gamma) ( w γ , θ γ ) from its own columns E I E_I E I and independent randomness, before drawing the input. Rules may differ between gates. They can use their own column lengths and angles, but cannot use the support or other columns. A canonical rule uses w γ = ∑ l a l e I l w_\gamma= \sum_l a_l e_{Il} w γ = ∑ l a l e I l and a common bias θ \theta θ . The pair ( a , θ ) (a,\theta) ( a , θ ) represents g g g when
s z ( a , θ ) = ( 2 g ( z ) − 1 ) ( ⟨ a , z ⟩ − θ ) > 0 for all z . (4) s_z(a,\theta) = (2g(z)-1)(\langle a,z\rangle-\theta) > 0 \quad\text{for all } z. \tag*{(4)} s z ( a , θ ) = ( 2 g ( z ) − 1 ) (⟨ a , z ⟩ − θ ) > 0 for all z . (4)
Write Rep ( g ) \operatorname{Rep}(g) Rep ( g ) for these representations and ζ z = ( − 1 ) g ( z ) \zeta_z = (-1)^{g(z)} ζ z = ( − 1 ) g ( z ) for the error direction. Pairwise conjunction with a = ( 1 , 1 ) a=(1,1) a = ( 1 , 1 ) has clean scores 0 , 1 , 2 0,1,2 0 , 1 , 2 and margins θ , θ − 1 , 2 − θ \theta,\theta-1,2-\theta θ , θ − 1 , 2 − θ .
Error criteria Let X X X count wrong outputs on a draw of ( E , S ) (E,S) ( E , S ) . We study
E X → 0 and P ( X = 0 ) → 1. (5) \mathbb{E}X \to0 \qquad\text{and} \qquad\mathbb{P}(X=0)\to1. \tag*{(5)} E X → 0 and P ( X = 0 ) → 1. (5)
The first implies the second by Markov’s inequality. The converse can fail: one rare draw can produce many errors. A sharp threshold D ( k , m ) D(k,m) D ( k , m ) has a multiplicative 1 ± ε 1\pm\varepsilon 1 ± ε transition for every fixed ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) . Below it, failure means E X → ∞ \mathbb{E}X\to\infty E X → ∞ for the count and P ( X = 0 ) → 0 \mathbb{P}(X=0)\to0 P ( X = 0 ) → 0 for reliability.
Levels and prices Set
λ 1 = 2 log k , λ 0 = 2 log n , β = λ 0 / λ 1 . (6) \lambda_1=\sqrt{2\log k}, \qquad\lambda_0=\sqrt{2\log n}, \qquad\beta=\lambda_0/\lambda_1. \tag*{(6)} λ 1 = 2 log k , λ 0 = 2 log n , β = λ 0 / λ 1 . (6)
For class z z z , let λ z = ( λ z 1 , … , λ z r ) \lambda_z=(\lambda_{z1},\ldots,\lambda_{zr}) λ z = ( λ z 1 , … , λ z r ) . Eventually β ≥ 1 \beta\ge1 β ≥ 1 , and for the universal family 2 log N z = ∥ λ z ∥ 2 ( 1 + o ( 1 ) ) 2\log N_z=\lVert\lambda_z\rVert^2(1+o(1)) 2 log N z = ∥ λ z ∥ 2 ( 1 + o ( 1 )) . Finite-size calculations use λ ^ 1 = Φ ‾ − 1 ( 1 / k ) \widehat{\lambda}_1=\overline{\Phi}^{-1}(1/k) λ 1 = Φ − 1 ( 1/ k ) and λ ^ 0 = Φ ‾ − 1 ( 1 / n ) \widehat{\lambda}_0=\overline{\Phi}^{-1}(1/n) λ 0 = Φ − 1 ( 1/ n ) ; λ ^ p = λ p ( 1 + o ( 1 ) ) \widehat{\lambda}_p=\lambda_p(1+o(1)) λ p = λ p ( 1 + o ( 1 )) .
Definition 2.1 (Ball, box and prices). For a class z z z let ρ z = 2 log N z \rho_z = \sqrt{2\log N_z} ρ z = 2 log N z and
Ball z = { v ∈ R r : ∥ v ∥ ≤ ρ z } , \operatorname{Ball}_z = \{v \in\mathbb{R}^r : \lVert v\rVert\le\rho_z\}, Ball z = { v ∈ R r : ∥ v ∥ ≤ ρ z } , Box z = ∏ l = 1 r [ − λ z l , λ z l ] , \operatorname{Box}_z = \prod_{l=1}^{r}[-\lambda_{zl},\lambda_{zl}], Box z = l = 1 ∏ r [ − λ z l , λ z l ] , with support functions h Ball z ( a ) = ρ z ∥ a ∥ h_{\operatorname{Ball}_z}(a)=\rho_z\lVert a\rVert h Ball z ( a ) = ρ z ∥ a ∥ and h Box z ( a ) = ∑ l ∣ a l ∣ λ z l h_{\operatorname{Box}_z}(a)=\sum_l |a_l|\lambda_{zl} h Box z ( a ) = ∑ l ∣ a l ∣ λ z l . For ( a , θ ) ∈ Rep ( G ) (a,\theta)\in\operatorname{Rep}(\mathcal{G}) ( a , θ ) ∈ Rep ( G ) define the ball price and the box price
D b a l l ( a , θ ) = k max z h Ball z ( a ) 2 s z ( a , θ ) 2 , D_{\mathrm{ball}}(a,\theta)=k\max_z\frac{h_{\operatorname{Ball}_z}(a)^2}{s_z(a,\theta)^2}, D ball ( a , θ ) = k z max s z ( a , θ ) 2 h Ball z ( a ) 2 , {#eq:7}
D_{\mathrm{box}}(a,\theta)=k\max_z\frac{h_{\operatorname{Box}_z}(a)^2}{s_z(a,\theta)^2},
and the optimal values V b a l l = inf Rep ( G ) D b a l l / k V_{\mathrm{ball}}=\inf_{\operatorname{Rep}(\mathcal{G})}D_{\mathrm{ball}}/k V ball = inf Rep ( G ) D ball / k and V b o x = inf Rep ( G ) D b o x / k V_{\mathrm{box}}=\inf_{\operatorname{Rep}(\mathcal{G})}D_{\mathrm{box}}/k V box = inf Rep ( G ) D box / k .
Both prices are invariant under positive rescaling of ( a , θ ) (a,\theta) ( a , θ ) . The box corners have norm ∥ λ z ∥ \lVert\lambda_z\rVert ∥ λ z ∥ , so the box lies inside the ball to first order for the universal family.
The exact read law
All canonical gates use the same read vector R R R . Conditioning on u u u gives an exact law, the noiseless case of the lemmas for sparse superposition codes in Barron and Joseph [4 ] and Joseph and Barron [26 ] . By symmetry fix S = [ k ] S=[k] S = [ k ] , and write A i = R i A_i=R_i A i = R i for i ≤ k i\le k i ≤ k and B j = R k + j B_j=R_{k+j} B j = R k + j for j ≤ n j\le n j ≤ n .
Theorem 3.1 (Exact conditional law). Let H ∼ χ d 2 / d H\sim\chi_d^2/d H ∼ χ d 2 / d , Z 1 , … , Z k ∼ N ( 0 , 1 ) Z_1,\ldots,Z_k\sim N(0,1) Z 1 , … , Z k ∼ N ( 0 , 1 ) and W 1 , … , W n ∼ N ( 0 , 1 ) W_1,\ldots,W_n\sim N(0,1) W 1 , … , W n ∼ N ( 0 , 1 ) be mutually independent. Write Z ˉ = k − 1 ∑ i Z i \bar Z=k^{-1}\sum_i Z_i Z ˉ = k − 1 ∑ i Z i and σ = k H / d \sigma=\sqrt{kH/d} σ = k H / d . Then, jointly in i ≤ k i\le k i ≤ k and j ≤ n j\le n j ≤ n ,
( A i , B j ) = d ( H + σ ( Z i − Z ˉ ) , σ W j ) . (7) (A_i,B_j)\mathrel{\overset{d}{=}}(H+\sigma(Z_i-\bar Z),\sigma W_j). \tag*{(7)} ( A i , B j ) = d ( H + σ ( Z i − Z ˉ ) , σ W j ) . (7) The identity holds for all d , k , n ≥ 1 d,k,n\ge1 d , k , n ≥ 1 .
Proof. Condition on u = ∑ i ≤ k e i u=\sum_{i\le k}e_i u = ∑ i ≤ k e i . Gaussian conditioning gives e i = u / k + η i e_i=u/k+\eta_i e i = u / k + η i for i ≤ k i\le k i ≤ k , where ( η i ) i ≤ k (\eta_i)_{i\le k} ( η i ) i ≤ k is independent of u u u and jointly Gaussian with Cov ( η i , η l ) = d − 1 ( 1 { i = l } − 1 / k ) I d \operatorname{Cov}(\eta_i,\eta_l)=d^{-1}(\mathbf{1}\{i=l\}-1/k)I_d Cov ( η i , η l ) = d − 1 ( 1 { i = l } − 1/ k ) I d . Hence A i = ∥ u ∥ 2 / k + ⟨ η i , u ⟩ A_i=\lVert u\rVert^2/k+\langle\eta_i,u\rangle A i = ∥ u ∥ 2 / k + ⟨ η i , u ⟩ . Given u u u , the vector ( ⟨ η i , u ⟩ ) i ≤ k (\langle\eta_i,u\rangle)_{i\le k} (⟨ η i , u ⟩ ) i ≤ k is centered Gaussian with covariance ( ∥ u ∥ 2 / d ) ( I k − 11 T / k ) (\lVert u\rVert^2/d)(I_k-\mathbf{1}\mathbf{1}^{\mathsf T}/k) (∥ u ∥ 2 / d ) ( I k − 1 1 T / k ) , which is the covariance of ( ∥ u ∥ / d ) ( Z i − Z ˉ ) i ≤ k (\lVert u\rVert/\sqrt d)(Z_i-\bar Z)_{i\le k} (∥ u ∥ / d ) ( Z i − Z ˉ ) i ≤ k . The inactive columns are independent of ( u , η ) (u,\eta) ( u , η ) , so given u u u the reads B j B_j B j are independent N ( 0 , ∥ u ∥ 2 / d ) N(0,\lVert u\rVert^2/d) N ( 0 , ∥ u ∥ 2 / d ) variables, independent of the active ones. The conditional law depends on u u u only through ∥ u ∥ \lVert u\rVert ∥ u ∥ , and H = ∥ u ∥ 2 / k ∼ χ d 2 / d H=\lVert u\rVert^2/k\sim\chi_d^2/d H = ∥ u ∥ 2 / k ∼ χ d 2 / d ; since ∥ u ∥ / d = σ \lVert u\rVert/\sqrt d=\sigma ∥ u ∥ / d = σ , this is (8).
The active sample is centered at its own mean and shifted by H H H ; the inactive sample is independent. Both share the scale σ \sigma σ . Without conditioning on H H H , the reads are not jointly Gaussian: E A i = 1 \mathbb{E}A_i=1 E A i = 1 , Var A i = ( k + 1 ) / d \operatorname{Var}A_i=(k+1)/d Var A i = ( k + 1 ) / d and Cov ( A i , A l ) = 1 / d \operatorname{Cov}(A_i,A_l)=1/d Cov ( A i , A l ) = 1/ d for i ≠ l i\ne l i = l . We use the conditional representation throughout.
Put ξ i = Z i − Z ˉ \xi_i = Z_i-\bar{Z} ξ i = Z i − Z ˉ on S S S and ξ k + j = W j \xi_{k+j} = W_j ξ k + j = W j off S S S . A gate of class z z z has score H ⟨ a , z ⟩ + σ ⟨ a , ξ I ⟩ H\langle a,z\rangle+\sigma\langle a,\xi_I\rangle H ⟨ a , z ⟩ + σ ⟨ a , ξ I ⟩ . Let M z = max I ∈ F z ( S ) ⟨ ζ z a , ξ I ⟩ M_z = \max_{I\in\mathcal{F}_z(S)}\langle\zeta_z a,\xi_I\rangle M z = max I ∈ F z ( S ) ⟨ ζ z a , ξ I ⟩ , with max ∅ = − ∞ \max\varnothing=-\infty max ∅ = − ∞ . For a fixed representation, the whole network is correct almost surely exactly when every class satisfies σ M z < s z H \sigma M_z < s_z^H σ M z < s z H , where s z H = ( 2 g ( z ) − 1 ) ( H ⟨ a , z ⟩ − θ ) s_z^H=(2g(z)-1)(H\langle a,z\rangle-\theta) s z H = ( 2 g ( z ) − 1 ) ( H ⟨ a , z ⟩ − θ ) (proposition B.1). Counting errors instead uses the following marginal law.
Proposition 3.2 (Exact one-gate law). Let a ≠ 0 a\ne0 a = 0 . The score of a canonical gate of class z z z has the law of
Y z = ⟨ a , z ⟩ J + ( k ∥ a ∥ 2 − ⟨ a , z ⟩ 2 ) J / d ζ , (8) Y_z=\langle a,z\rangle J+\sqrt{\left(k\lVert a\rVert^2-\langle a,z\rangle^2\right)J/d}\,\zeta, \tag*{(8)} Y z = ⟨ a , z ⟩ J + ( k ∥ a ∥ 2 − ⟨ a , z ⟩ 2 ) J / d ζ , (8) where J ∼ χ d 2 / d J\sim\chi_d^2/d J ∼ χ d 2 / d and ζ ∼ N ( 0 , 1 ) \zeta\sim N(0,1) ζ ∼ N ( 0 , 1 ) are independent. Consequently E X = ∑ z N z p z \mathbb{E}X=\sum_z N_zp_z E X = ∑ z N z p z with p z = P ( ζ z ( Y z − θ ) ≥ 0 ) p_z=\mathbb{P}\bigl(\zeta_z(Y_z-\theta)\ge0\bigr) p z = P ( ζ z ( Y z − θ ) ≥ 0 ) .
The proof is in Appendix § 14 . For pairwise conjunction, a = ( 1 , 1 ) a=(1,1) a = ( 1 , 1 ) gives Y j = j J + ( 2 k − j 2 ) J / d ζ Y_j=jJ+\sqrt{(2k-j^2)J/d}\,\zeta Y j = j J + ( 2 k − j 2 ) J / d ζ , j ∈ { 0 , 1 , 2 } j\in\{0,1,2\} j ∈ { 0 , 1 , 2 } . Thus each class error probability is a one-dimensional chi-square integral of a normal tail.
Counting errors: the ball
Linearity of expectation removes dependence between gates. At the exponential scale, a class with margin y σ d ∥ a ∥ y\sigma_d\lVert a\rVert y σ d ∥ a ∥ contributes N z exp ( − y 2 / 2 ) N_z\exp(-y^2/2) N z exp ( − y 2 /2 ) errors. The class size sets the Gaussian tail level.
Theorem 4.1 (Ball law). Let F \mathcal{F} F be a gate family of fixed arity r r r with N z → ∞ N_z\to\infty N z → ∞ for every z z z , and let ( a , θ ) ∈ Rep ( g ) (a,\theta)\in\operatorname{Rep}(g) ( a , θ ) ∈ Rep ( g ) be any sequence of representations for the canonical rule. For each fixed ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) ,
d ≥ ( 1 + ε ) D b a l l ( a , θ ) ⟹ E X → 0 , d\ge(1+\varepsilon)D_{\mathrm{ball}}(a,\theta)\Longrightarrow\mathbb{E}X\to0, d ≥ ( 1 + ε ) D ball ( a , θ ) ⟹ E X → 0 , d ≤ ( 1 − ε ) D b a l l ( a , θ ) ⟹ E X → ∞ . d\le(1-\varepsilon)D_{\mathrm{ball}}(a,\theta)\Longrightarrow\mathbb{E}X\to\infty. d ≤ ( 1 − ε ) D ball ( a , θ ) ⟹ E X → ∞.
Proof sketch. Concentrate J J J in (9) in a window proportional to the margin. This keeps the bound uniform when margins shrink. Gaussian upper tails control every class above the threshold; Mills’ lower bound gives divergence in a binding class below it. See Appendix § 15 .
Optimizing the price also gives a converse over all local readouts.
Theorem 4.2 (Weighted margin law). Let F \mathcal{F} F be as in Theorem 4.1 , and let
V b a l l = min ( a , θ ) ∈ Rep ( g ) max z 2 log N z ∥ a ∥ 2 s z ( a , θ ) 2 . (9) V_{\mathrm{ball}}=\min_{(a,\theta)\in\operatorname{Rep}(g)}\max_z\frac{2\log N_z\lVert a\rVert^2}{s_z(a,\theta)^2}. \tag*{(9)} V ball = ( a , θ ) ∈ Rep ( g ) min z max s z ( a , θ ) 2 2 log N z ∥ a ∥ 2 . (9) Fix ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) . If d ≥ ( 1 + ε ) k V b a l l d\ge(1+\varepsilon)kV_{\mathrm{ball}} d ≥ ( 1 + ε ) k V ball , the canonical rule with a minimizing representation has E X → 0 \mathbb{E}X\to0 E X → 0 . If d ≤ ( 1 − ε ) k V b a l l d\le(1-\varepsilon)kV_{\mathrm{ball}} d ≤ ( 1 − ε ) k V ball , every gate-local readout rule satisfies
E X ≥ ( min z N z ) ε − o ( 1 ) → ∞ . \mathbb{E}X\ge\left(\min_z N_z\right)^{\varepsilon-o(1)}\to\infty. E X ≥ ( z min N z ) ε − o ( 1 ) → ∞.
Proof sketch. Normalize a local probe to unit length. Conditional on its own columns and class z z z , its interference is N ( 0 , ( k − ∣ z ∣ ) / d ) N(0,(k-|z|)/d) N ( 0 , ( k − ∣ z ∣ ) / d ) . On a high-probability Gram-matrix event, its clean weights have norm at most 1 + o ( 1 ) 1+o(1) 1 + o ( 1 ) . The program forces a small margin in some class; a Gaussian lower tail then bounds that gate’s error. Summing these marginal bounds needs no independence between errors. Bounded d d d uses a separate two-class argument (Appendix § 15 ).
For computation, maximize κ \kappa κ over ( a , θ , κ ) (a,\theta,\kappa) ( a , θ , κ ) with ∥ a ∥ ≤ 1 \lVert a\rVert\le1 ∥ a ∥ ≤ 1 and
( 2 g ( z ) − 1 ) ( ⟨ a , z ⟩ − θ ) ≥ κ 2 log N z for all z . (10) (2g(z)-1)(\langle a,z\rangle-\theta)\ge\kappa\sqrt{2\log N_z}\quad\text{for all }z. \tag*{(10)} ( 2 g ( z ) − 1 ) (⟨ a , z ⟩ − θ ) ≥ κ 2 log N z for all z . (10)
Then V b a l l = κ ∗ − 2 V_{\mathrm{ball}}=\kappa_*^{-2} V ball = κ ∗ − 2 . This second-order cone program has r + 2 r+2 r + 2 variables and 2 r 2^r 2 r linear constraints. It maximizes margin relative to class size: a less numerous class can tolerate a smaller margin. Every class remains a constraint.
Reliability: the supremum and the box
Reliability depends on the largest interference in each class. Let G ∼ N ( 0 , I m ) G\sim N(0,I_m) G ∼ N ( 0 , I m ) be independent of S S S , and define
Γ z ( S ) = E [ max I ∈ F z ( S ) ⟨ ζ z a , G I ⟩ ∣ S ] , (11) \Gamma_z(S)=\mathbb{E}\left[\max_{I\in\mathcal{F}_z(S)}\langle\zeta_z a,G_I\rangle\mathrel{\Big|}S\right], \tag*{(11)} Γ z ( S ) = E [ I ∈ F z ( S ) max ⟨ ζ z a , G I ⟩ S ] , (11)
with max ∅ = − ∞ \max\varnothing=-\infty max ∅ = − ∞ .
Theorem 5.1 (Supremum law). Let F \mathcal{F} F be any gate family of fixed arity r r r , let ( a , θ ) ∈ Rep ( g ) (a,\theta)\in\operatorname{Rep}(g) ( a , θ ) ∈ Rep ( g ) be fixed, and assume d / k → ∞ d/k\to\infty d / k → ∞ . Define the random threshold
d ∗ ( S ) = k max z Γ z ( S ) 2 s z ( a , θ ) 2 . d^*(S)=k\max_z\frac{\Gamma_z(S)^2}{s_z(a,\theta)^2}. d ∗ ( S ) = k z max s z ( a , θ ) 2 Γ z ( S ) 2 . Then for each fixed ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) ,
P ( X = 0 , d ≤ ( 1 − ε ) d ∗ ( S ) ) → 0 , \mathbb{P}\left(X=0,\ d\le(1-\varepsilon)d^*(S)\right)\to0, P ( X = 0 , d ≤ ( 1 − ε ) d ∗ ( S ) ) → 0 , P ( X ≠ 0 , d ≥ ( 1 + ε ) d ∗ ( S ) ) → 0. \mathbb{P}\left(X\ne0,\ d\ge(1+\varepsilon)d^*(S)\right)\to0. P ( X = 0 , d ≥ ( 1 + ε ) d ∗ ( S ) ) → 0. In particular, when d ∗ d^* d ∗ is deterministic it is the sharp reliability threshold among sequences with d / k → ∞ d/k\to\infty d / k → ∞ ; for the universal family Theorem 5.4 removes this restriction.
Proof sketch. The class maximum is ∥ a ∥ \lVert a\rVert ∥ a ∥ -Lipschitz in G G G , so Gaussian concentration controls its deviation from Γ z ( S ) \Gamma_z(S) Γ z ( S ) (Borell, [7 ] ; Tsirel’son et al., [41 ] ). The terms from H − 1 H-1 H − 1 and Z ‾ \overline{Z} Z vanish relative to fixed margins when d / k → ∞ d/k\to\infty d / k → ∞ . The two threshold inequalities then give success or failure (Appendix § 14 ).
Corollary 5.2 (Counting is the union bound). In the setting of Theorem 5.1, Γ z ( S ) ≤ ∥ a ∥ 2 log ∣ F z ( S ) ∣ \Gamma_z(S)\le\lVert a\rVert\sqrt{2\log|\mathcal{F}_z(S)|} Γ z ( S ) ≤ ∥ a ∥ 2 log ∣ F z ( S ) ∣ , so
d ∗ ( S ) ≤ k max z 2 log ∣ F z ( S ) ∣ ∥ a ∥ 2 s z ( a , θ ) 2 , d^*(S)\le k\max_z\frac{2\log|\mathcal{F}_z(S)|\lVert a\rVert^2}{s_z(a,\theta)^2}, d ∗ ( S ) ≤ k z max s z ( a , θ ) 2 2 log ∣ F z ( S ) ∣ ∥ a ∥ 2 , and for the universal family the right side is D b a l l ( a , θ ) D_{\mathrm{ball}}(a,\theta) D ball ( a , θ ) . If the tuples in F z ( S ) \mathcal{F}_z(S) F z ( S ) are pairwise
disjoint and ∣ F z ( S ) ∣ → ∞ |\mathcal{F}_z(S)| \to\infty ∣ F z ( S ) ∣ → ∞ , then Γ z ( S ) = ∥ a ∥ 2 log ∣ F z ( S ) ∣ ( 1 + o ( 1 ) ) \Gamma_z(S) = \|a\|\sqrt{2\log|\mathcal{F}_z(S)|}(1+o(1)) Γ z ( S ) = ∥ a ∥ 2 log ∣ F z ( S ) ∣ ( 1 + o ( 1 )) : without shared features, the reliability price of the class equals its ball price.
For nonnegative weights, shared features raise covariances and can lower the expected supremum ([38 , 20 ] ). Disjoint gates attain the ball price. A family with private partner sets shows when sharing first reduces the price.
Proposition 5.3 (Partial sharing). Consider pairwise gates with a = ( 1 , 1 ) a=(1,1) a = ( 1 , 1 ) , and suppose that on the support S S S the gates of the one-active class are the pairs ( i , j ) (i,j) ( i , j ) with i ∈ S i\in S i ∈ S and j ∈ C ( i ) j\in C(i) j ∈ C ( i ) , where the partner sets C ( i ) C(i) C ( i ) , i ∈ S i\in S i ∈ S , are disjoint sets of D = D ( k ) D=D(k) D = D ( k ) inactive features. Then, with λ D = 2 log D \lambda_D=\sqrt{2\log D} λ D = 2 log D ,
Γ 10 ( S ) = ( 1 + o ( 1 ) ) { 2 log ( k D ) if D ≤ k , λ 1 + λ D if D ≥ k . \Gamma_{10}(S)=(1+o(1))\begin{cases}
2\sqrt{\log(kD)} & \text{if }D\le k,\\
\lambda_1+\lambda_D & \text{if }D\ge k.
\end{cases} Γ 10 ( S ) = ( 1 + o ( 1 )) { 2 log ( k D ) λ 1 + λ D if D ≤ k , if D ≥ k . Equivalently, Γ 10 ( S ) = ( 1 + o ( 1 ) ) h K D ( 1 , 1 ) \Gamma_{10}(S)=(1+o(1))h_{K_D}(1,1) Γ 10 ( S ) = ( 1 + o ( 1 )) h K D ( 1 , 1 ) for K D = { v ∈ R 2 : v 1 2 ≤ λ 1 2 , v 1 2 + v 2 2 ≤ 2 log ( k D ) } K_D=\{v\in\mathbb{R}^2:v_1^2\le\lambda_1^2,\ v_1^2+v_2^2\le2\log(kD)\} K D = { v ∈ R 2 : v 1 2 ≤ λ 1 2 , v 1 2 + v 2 2 ≤ 2 log ( k D )} , the ball of the class cut by the slab of its shared coordinate.
The maximum is max i ∈ S ( Z i + M i ) \max_{i\in S}(Z_i+M_i) max i ∈ S ( Z i + M i ) , where M i M_i M i is the largest of D D D independent partner reads. For D ≤ k D\le k D ≤ k , both coordinates can split the extreme-value budget evenly. For D ≥ k D\ge k D ≥ k , the active coordinate saturates at λ 1 \lambda_1 λ 1 and the partner contributes λ D \lambda_D λ D . The expressions agree at D = k D=k D = k ; disjoint partner sets require k D ≤ n kD\le n k D ≤ n . The proof is in Appendix § 16 .§ 2 .
The universal family Every tuple is available, so the largest class projection is a rearranged sum of extreme feature reads (lemma B.2). Each position contributes its weight magnitude times the level of its active or inactive pool. The finitely many relevant order statistics approximate these levels uniformly over weights. This gives the box law.
Theorem 5.4 (Box law). Let F = U r ( g ) \mathcal{F}=\mathcal{U}_r(\mathfrak{g}) F = U r ( g ) with k → ∞ k\to\infty k → ∞ and m / k → ∞ m/k\to\infty m / k → ∞ .
(i) For every sequence ( a , θ ) ∈ Rep ( g ) (a,\theta)\in\operatorname{Rep}(\mathfrak{g}) ( a , θ ) ∈ Rep ( g ) and fixed ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) : P ( X = 0 ) → 1 \mathbb{P}(X=0)\to1 P ( X = 0 ) → 1 if d ≥ ( 1 + ε ) D b o x ( a , θ ) d\ge(1+\varepsilon)D_{\mathrm{box}}(a,\theta) d ≥ ( 1 + ε ) D box ( a , θ ) , and P ( X = 0 ) → 0 \mathbb{P}(X=0)\to0 P ( X = 0 ) → 0 if d ≤ ( 1 − ε ) D b o x ( a , θ ) d\le(1-\varepsilon)D_{\mathrm{box}}(a,\theta) d ≤ ( 1 − ε ) D box ( a , θ ) .
(ii) If d ≤ ( 1 − ε ) k V b o x d\le(1-\varepsilon)kV_{\mathrm{box}} d ≤ ( 1 − ε ) k V box , then with probability tending to one no common representation makes the canonical network correct: P { ∃ ( a , θ ) ∈ Rep ( g ) : X a , θ = 0 } → 0 \mathbb{P}\{\exists(a,\theta)\in\operatorname{Rep}(\mathfrak{g}):X_{a,\theta}=0\}\to0 P { ∃ ( a , θ ) ∈ Rep ( g ) : X a , θ = 0 } → 0 , where X a , θ X_{a,\theta} X a , θ is the error count of the rule ( a , θ ) (a,\theta) ( a , θ ) on the same draw.
(iii) Γ z = h B o x z ( a ) ( 1 + o ( 1 ) ) \Gamma_z=h_{\mathrm{Box}_z}(a)(1+o(1)) Γ z = h Box z ( a ) ( 1 + o ( 1 )) uniformly in a ≠ 0 a\ne0 a = 0 .
In particular k V b o x kV_{\mathrm{box}} k V box is the sharp reliability threshold over common representations, and it is attained by any sequence of near-minimizers of D b o x D_{\mathrm{box}} D box .
Proof sketch. On one event of probability tending to one, all upper and lower order statistics needed by any gate are within a factor 1 ± δ 1\pm\delta 1 ± δ of their levels. The box identity then gives the support function uniformly over all representations. The common-scale and centering errors are smaller, so correctness reduces to the box-margin inequalities (Appendix § 16 ).
The representation in part (ii) may depend on the reads and is shared by all gates. Extending the reliability converse to all gate-local rules is an open problem.
Corollary 5.5 (Counting overprices reliability). For the universal family, every representation and every class,
h B o x z ( a ) = ⟨ ∣ a ∣ , λ z ⟩ ≤ ∥ a ∥ ∥ λ z ∥ = h B a l l z ( a ) ( 1 + o ( 1 ) ) , h_{\mathrm{Box}_z}(a)=\langle|a|,\lambda_z\rangle\le\lVert a\rVert\lVert\lambda_z\rVert=h_{\mathrm{Ball}_z}(a)(1+o(1)), h Box z ( a ) = ⟨ ∣ a ∣ , λ z ⟩ ≤ ∥ a ∥ ∥ λ z ∥ = h Ball z ( a ) ( 1 + o ( 1 )) , with equality if and only if ∣ a ∣ |a| ∣ a ∣ is parallel to λ z \lambda_z λ z . Hence D b o x ≤ D b a l l ( 1 + o ( 1 ) ) D_{\mathrm{box}}\le D_{\mathrm{ball}}(1+o(1)) D box ≤ D ball ( 1 + o ( 1 )) and V b o x ≤ V b a l l ( 1 + o ( 1 ) ) V_{\mathrm{box}}\le V_{\mathrm{ball}}(1+o(1)) V box ≤ V ball ( 1 + o ( 1 )) , and the ball price of a class exceeds its box price by the factor sec 2 ∠ ( ∣ a ∣ , λ z ) ( 1 + o ( 1 ) ) \sec^2\angle(|a|,\lambda_z)(1+o(1)) sec 2 ∠ ( ∣ a ∣ , λ z ) ( 1 + o ( 1 )) .
Mixed active and inactive classes create the gap: their side lengths need not align with the weights.
For pairwise conjunction, the one-active class gives a concrete calculation. Its weights are ( 1 , 1 ) (1,1) ( 1 , 1 ) and its size is k n kn k n , so the ball support is 2 ( λ 1 2 + λ 0 2 ) ( 1 + o ( 1 ) ) \sqrt{2(\lambda_1^2+\lambda_0^2)}(1+o(1)) 2 ( λ 1 2 + λ 0 2 ) ( 1 + o ( 1 )) , whereas the box support is λ 1 + λ 0 \lambda_1+\lambda_0 λ 1 + λ 0 . Dividing both by the same margin gives the ratio 2 ( 1 + β 2 ) / ( 1 + β ) 2 2(1+\beta^2)/(1+\beta)^2 2 ( 1 + β 2 ) / ( 1 + β ) 2 between the two class prices. This ratio equals one at β = 1 \beta=1 β = 1 and tends to two as β → ∞ \beta\to\infty β → ∞ . The largest inactive read is reused by every active partner. Counting each pair separately charges for k n kn k n opportunities; reliability uses the two shared pools.
Optimizing the box Write
V b o x = λ 1 2 v g ( β ) , V_{\mathrm{box}}=\lambda_1^2v_g(\beta), V box = λ 1 2 v g ( β ) ,
v g ( β ) = inf ( a , θ ) ∈ Rep ( g ) max z ( ∑ l ∣ a l ∣ β 1 − z l s z ( a , θ ) ) 2 . (12) v_g(\beta)=\inf_{(a,\theta)\in\operatorname{Rep}(g)}\max_z\left(\frac{\sum_l|a_l|\beta^{1-z_l}}{s_z(a,\theta)}\right)^2. \tag*{(12)} v g ( β ) = ( a , θ ) ∈ Rep ( g ) inf z max ( s z ( a , θ ) ∑ l ∣ a l ∣ β 1 − z l ) 2 . (12)
For fixed κ \kappa κ , the constraints s z ≥ κ ∑ l ∣ a l ∣ β 1 − z l s_z\ge\kappa\sum_l|a_l|\beta^{1-z_l} s z ≥ κ ∑ l ∣ a l ∣ β 1 − z l form a convex polyhedral cone. Introduce u l ≥ ± a l u_l\ge\pm a_l u l ≥ ± a l , require s z ≥ 1 s_z\ge1 s z ≥ 1 , and use linear feasibility with bisection on κ \kappa κ . This computes v g ( β ) − 1 / 2 v_g(\beta)^{-1/2} v g ( β ) − 1/2 (proposition B.3). For symmetric threshold gates, permutation averaging makes equal weights optimal in both programs.
Threshold gates
For 1 ≤ t ≤ r 1\le t\le r 1 ≤ t ≤ r , let THR t r ( z ) = 1 { ∣ z ∣ ≥ t } \operatorname{THR}_t^r(z)=1\{|z|\ge t\} THR t r ( z ) = 1 { ∣ z ∣ ≥ t } . This includes conjunction AND r \operatorname{AND}_r AND r , disjunction OR r \operatorname{OR}_r OR r , majority MAJ 2 t − 1 \operatorname{MAJ}_{2t-1} MAJ 2 t − 1 and feature recovery THR 1 1 \operatorname{THR}_1^1 THR 1 1 . Equal weights a = 1 a=1 a = 1 are optimal, leaving only the bias. Set ρ j = ( j λ 1 2 + ( r − j ) λ 0 2 ) 1 / 2 \rho_j=(j\lambda_1^2+(r-j)\lambda_0^2)^{1/2} ρ j = ( j λ 1 2 + ( r − j ) λ 0 2 ) 1/2 for 0 ≤ j ≤ r 0\le j\le r 0 ≤ j ≤ r .
Theorem 6.1 (Threshold gates). Let F = U r ( THR t r ) \mathcal{F}=\mathcal{U}_r(\operatorname{THR}_t^r) F = U r ( THR t r ) with k → ∞ k\to\infty k → ∞ and m / k → ∞ m/k\to\infty m / k → ∞ . Only the classes with t − 1 t-1 t − 1 and t t t active inputs can bind; both bind at the optimized biases, and the class t − 1 t-1 t − 1 binds at the midpoint. The following are sharp thresholds.
(a) Forbidding errors, optimized: k V b o x = k ( ( 2 t − 1 ) λ 1 + ( 2 r − 2 t + 1 ) λ 0 ) 2 kV_{\mathrm{box}}=k\bigl((2t-1)\lambda_1+(2r-2t+1)\lambda_0\bigr)^2 k V box = k ( ( 2 t − 1 ) λ 1 + ( 2 r − 2 t + 1 ) λ 0 ) 2 . It is attained by a = 1 a=1 a = 1 with the half-slack bias θ = t − 1 2 + 1 2 σ d ( λ ^ 0 − λ ^ 1 ) \theta=t-\frac{1}{2}+\frac{1}{2}\sigma_d(\widehat{\lambda}_0-\widehat{\lambda}_1) θ = t − 2 1 + 2 1 σ d ( λ 0 − λ 1 ) , which leaves equal slack to the two binding classes (the levels λ p \lambda_p λ p in place of λ ^ p \widehat{\lambda}_p λ p give the same threshold), and below it no common representation succeeds.
(b) Forbidding errors, midpoint a = 1 a=1 a = 1 , θ = t − 1 2 \theta=t-\frac{1}{2} θ = t − 2 1 : 4 k ( ( t − 1 ) λ 1 + ( r − t + 1 ) λ 0 ) 2 4k\bigl((t-1)\lambda_1+(r-t+1)\lambda_0\bigr)^2 4 k ( ( t − 1 ) λ 1 + ( r − t + 1 ) λ 0 ) 2 .
(c) Counting errors, midpoint: 4 r k ρ t − 1 2 ( 1 + o ( 1 ) ) = 8 r k log N t − 1 ( 1 + o ( 1 ) ) 4rk\rho_{t-1}^2(1+o(1))=8rk\log N_{t-1}(1+o(1)) 4 r k ρ t − 1 2 ( 1 + o ( 1 )) = 8 r k log N t − 1 ( 1 + o ( 1 )) .
(d) Counting errors, optimized: k V b a l l = r k ( ρ t + ρ t − 1 ) 2 ( 1 + o ( 1 ) ) kV_{\mathrm{ball}}=rk(\rho_t+\rho_{t-1})^2(1+o(1)) k V ball = r k ( ρ t + ρ t − 1 ) 2 ( 1 + o ( 1 )) . It is attained by a = 1 a=1 a = 1 with θ = t − 1 + ρ t − 1 / ( ρ t − 1 + ρ t ) \theta=t-1+\rho_{t-1}/(\rho_{t-1}+\rho_t) θ = t − 1 + ρ t − 1 / ( ρ t − 1 + ρ t ) , and below it every gate-local rule has EX → ∞ \operatorname{EX}\to\infty EX → ∞ .
The critical window
Proof sketch. With equal weights, class j j j has score j j j , box support j λ 1 + ( r − j ) λ 0 j\lambda_1+(r-j)\lambda_0 j λ 1 + ( r − j ) λ 0 and ball support r ρ j \sqrt{r}\rho_j r ρ j . Add the constraints for j = t − 1 , t j=t-1,t j = t − 1 , t to optimize the bias. Classes farther from the boundary gain enough clean margin to stay slack. The converses follow from Theorems 4.2 and 5.4 ; details are in Appendix § 17 .
At first order, start with the two clean scores beside the decision boundary. They are t − 1 t-1 t − 1 and t t t , so their margins are θ − ( t − 1 ) \theta-(t-1) θ − ( t − 1 ) and t − θ t-\theta t − θ and sum to one. Moving the bias transfers margin from one class to the other. To minimize the largest support-to-margin ratio, assign the margins in proportion to the two supports. For the ball, these are r ρ t − 1 \sqrt{r}\rho_{t-1} r ρ t − 1 and r ρ t \sqrt{r}\rho_t r ρ t ; for the box, they are ( t − 1 ) λ 1 + ( r − t + 1 ) λ 0 (t-1)\lambda_1+(r-t+1)\lambda_0 ( t − 1 ) λ 1 + ( r − t + 1 ) λ 0 and t λ 1 + ( r − t ) λ 0 t\lambda_1+(r-t)\lambda_0 t λ 1 + ( r − t ) λ 0 . Adding the two inequalities gives the dimension, and balancing them gives the bias.
For pairwise conjunction this gives Table 1. The half-slack bias assigns more margin to negative classes because their inactive inputs have larger extremes.
Corollary 6.2 (One point, four limits). If β → 1 \beta\to1 β → 1 , all four thresholds of Theorem 6.1 equal 4 r 2 k λ 1 2 ( 1 + o ( 1 ) ) = 8 r 2 k log k ( 1 + o ( 1 ) ) 4r^2k\lambda_1^2(1+o(1))=8r^2k\log k(1+o(1)) 4 r 2 k λ 1 2 ( 1 + o ( 1 )) = 8 r 2 k log k ( 1 + o ( 1 )) . If β → ∞ \beta\to\infty β → ∞ , in units of 2 k log m 2k\log m 2 k log m they tend to (a) ( 2 r − 2 t + 1 ) 2 (2r-2t+1)^2 ( 2 r − 2 t + 1 ) 2 , (b) 4 ( r − t + 1 ) 2 4(r-t+1)^2 4 ( r − t + 1 ) 2 , (c) 4 r ( r − t + 1 ) 4r(r-t+1) 4 r ( r − t + 1 ) and (d) r ( r − t + r − t + 1 ) 2 r(\sqrt{r-t}+\sqrt{r-t+1})^2 r ( r − t + r − t + 1 ) 2 . For conjunction these are 1 , 4 , 4 r , r 1,4,4r,r 1 , 4 , 4 r , r , so counting overprices reliability by a factor tending to r r r at both biases. For disjunction the midpoint prices (b) and (c) coincide for every β \beta β .
Corollary 6.3 (Computation versus recovery). For feature recovery the two criteria share the threshold k ( λ 1 + λ 0 ) 2 k(\lambda_1+\lambda_0)^2 k ( λ 1 + λ 0 ) 2 , attained by θ = 1 2 + 1 2 σ d ( λ ^ 0 − λ ^ 1 ) \theta=\frac{1}{2}+\frac{1}{2}\sigma_d(\hat{\lambda}_0-\hat{\lambda}_1) θ = 2 1 + 2 1 σ d ( λ ^ 0 − λ ^ 1 ) ; below it the probes e i e_i e i fail with every common bias, and every gate-local recovery rule has a diverging expected number of errors. A decoder that recovers every feature by such threshold probes and then applies exact Boolean conjunctions therefore needs this dimension, while direct canonical r r r -way conjunction needs k ( ( 2 r − 1 ) λ 1 + λ 0 ) 2 k((2r-1)\lambda_1+\lambda_0)^2 k (( 2 r − 1 ) λ 1 + λ 0 ) 2 . Their ratio ( ( 2 r − 1 + β ) / ( 1 + β ) ) 2 ((2r-1+\beta)/(1+\beta))^2 (( 2 r − 1 + β ) / ( 1 + β ) ) 2 decreases from r 2 r^2 r 2 at β = 1 \beta=1 β = 1 to 1 1 1 as β → ∞ \beta\to\infty β → ∞ .
The ratio comes from the readout architecture. A common conjunction bias must separate the r r r smallest active reads from the r − 1 r-1 r − 1 largest active reads plus one inactive read. It therefore pays for 2 r − 1 2r-1 2 r − 1 active levels; recovery pays for one. At m = k 4 m=k^4 m = k 4 , recovery needs 18 k log k 18k\log k 18 k log k dimensions and direct pairwise conjunction needs 50 k log k 50k\log k 50 k log k . The midpoint pairwise rule needs 72 k log k 72k\log k 72 k log k for reliability and 80 k log k 80k\log k 80 k log k for the expected count.
Other decoders have different requirements. The Lasso recovers support from about 2 k log ( m − k ) 2k\log(m-k) 2 k log ( m − k ) measurements [44 ] , and ℓ 1 \ell_1 ℓ 1 minimization recovers a typical nonnegative sparse vector from about 2 k log ( m / k ) 2k\log(m/k) 2 k log ( m / k ) noiseless Gaussian measurements [16 ] . In the skewed regime both match 2 k log m 2k\log m 2 k log m to first order; when log m ∼ log k \log m\sim\log k log m ∼ log k , the latter is o ( k log k ) o(k\log k) o ( k log k ) . The constants here describe one threshold layer reading a fixed random code. Further comparisons, including asymmetric comparator gates, are in Appendix § 22 .
The critical window
Near the threshold, a few extreme reads decide success. Their fluctuations have scales 1 / λ 1 1/\lambda_1 1/ λ 1 and 1 / λ 0 1/\lambda_0 1/ λ 0 in units of σ d \sigma_d σ d . For pairwise conjunction, define the quantile centers
d 0 = 4 k ( λ ^ 1 + λ ^ 0 ) 2 , d 0 o p t = k ( 3 λ ^ 1 + λ ^ 0 ) 2 , (13) \begin{aligned}
d_0 &= 4k(\hat{\lambda}_1+\hat{\lambda}_0)^2,\\
d_0^{\mathrm{opt}} &= k(3\hat{\lambda}_1+\hat{\lambda}_0)^2, \tag*{(13)}
\end{aligned} d 0 d 0 opt = 4 k ( λ ^ 1 + λ ^ 0 ) 2 , = k ( 3 λ ^ 1 + λ ^ 0 ) 2 , (13)
and Ψ β ( x ) = P ( G A + G B / β ≤ x ) \Psi_\beta(x)=\mathbb{P}(G_A+G_B/\beta\le x) Ψ β ( x ) = P ( G A + G B / β ≤ x ) for independent standard Gumbel variables G A , G B G_A,G_B G A , G B .
Theorem 7.1 (Window profiles). Let F \mathcal{F} F be the universal family of pairwise conjunctions, k → ∞ k\to\infty k → ∞ and m / k → ∞ m/k\to\infty m / k → ∞ . Uniformly on compact sets of x x x :
(i) the midpoint rule at d = d 0 + 8 k ( 1 + β ) x d=d_0+8k(1+\beta)x d = d 0 + 8 k ( 1 + β ) x has P ( X = 0 ) = Ψ β ( x ) + o ( 1 ) \mathbb{P}(X=0)=\Psi_\beta(x)+o(1) P ( X = 0 ) = Ψ β ( x ) + o ( 1 ) ;
(ii) at d = d 0 o p t + 2 k ( 3 + β ) x d=d_0^{\mathrm{opt}}+2k(3+\beta)x d = d 0 opt + 2 k ( 3 + β ) x , the best deterministic common bias has
sup θ P ( X = 0 ) = sup y ∈ R Ψ β ( y ) F + ( x − y ) + o ( 1 ) , \sup_\theta\mathbb{P}(X=0)=\sup_{y\in\mathbb{R}}\Psi_\beta(y)F_+(x-y)+o(1), θ sup P ( X = 0 ) = y ∈ R sup Ψ β ( y ) F + ( x − y ) + o ( 1 ) , where F + F_+ F + is the distribution function of − log [ ω 1 ( ω 1 + ω 2 ) ] -\log[\omega_1(\omega_1+\omega_2)] − log [ ω 1 ( ω 1 + ω 2 )] for independent unit exponentials ω 1 , ω 2 \omega_1,\omega_2 ω 1 , ω 2 , and the half-slack bias of Theorem 6.1 (a) has P ( X = 0 ) = Ψ β ( x / 2 ) F + ( x / 2 ) + o ( 1 ) \mathbb{P}(X=0)=\Psi_\beta(x/2)F_+(x/2)+o(1) P ( X = 0 ) = Ψ β ( x /2 ) F + ( x /2 ) + o ( 1 ) .
Proof sketch. The midpoint rule is controlled by the largest active and inactive reads. The optimized bias must also protect the two smallest active reads. Gaussian upper and lower extremes become independent, giving Gumbel variables and the first two points of a unit Poisson process. The bias divides the available slack between these constraints. Common-scale and centering errors vanish in the window units (Appendix § 18 ).
The two factors in the optimized profile have separate roles. The one-active negative class is protected when the sum of the largest active read and the largest inactive read stays below the bias; this gives Ψ β \Psi_\beta Ψ β . The positive class is protected when the sum of the two smallest active reads stays above it; this gives F + F_+ F + . Increasing the bias helps the first event and hurts the second. The variable y y y allocates the window slack between them. The half-slack rule splits it equally; the supremum chooses the allocation that maximizes the product.
The optimized window is narrower by 4 ( 1 + β ) / ( 3 + β ) ∈ [ 2 , 4 ) 4(1+\beta)/(3+\beta)\in[2,4) 4 ( 1 + β ) / ( 3 + β ) ∈ [ 2 , 4 ) . The half-slack bias is optimal to first order; a bias tuned to a finite-size success target can improve its limiting profile. The profiles have explicit integral forms:
Ψ β ( x ) = ∫ 0 ∞ exp ( − τ − τ − β e − β x ) d τ , \Psi_\beta(x)=\int_0^\infty\exp\left(-\tau-\tau^{-\beta}e^{-\beta x}\right)\,d\tau, Ψ β ( x ) = ∫ 0 ∞ exp ( − τ − τ − β e − β x ) d τ ,
and F + ( x ) = e − c + ∫ 0 c e − c / s d s F_+(x)=e^{-\sqrt{c}}+\int_0^{\sqrt{c}}e^{-c/s}\,ds F + ( x ) = e − c + ∫ 0 c e − c / s d s with c = e − x c=e^{-x} c = e − x . For β = 1 \beta=1 β = 1 , Ψ 1 ( x ) = 2 e − x / 2 K 1 ( 2 e − x / 2 ) \Psi_1(x)=2e^{-x/2}K_1(2e^{-x/2}) Ψ 1 ( x ) = 2 e − x /2 K 1 ( 2 e − x /2 ) , where K 1 K_1 K 1 is the modified Bessel function; as β → ∞ \beta\to\infty β → ∞ , Ψ β ( x ) → exp ( − e − x ) \Psi_\beta(x)\to\exp(-e^{-x}) Ψ β ( x ) → exp ( − e − x ) . At the centers, the midpoint profile is Ψ β ( 0 ) \Psi_\beta(0) Ψ β ( 0 ) and the half-slack profile is Ψ β ( 0 ) F + ( 0 ) \Psi_\beta(0)F_+(0) Ψ β ( 0 ) F + ( 0 ) , with F + ( 0 ) = 0.516 F_+(0)=0.516 F + ( 0 ) = 0.516 .
At the midpoint, the number of inactive features that cause an error has a mixed Poisson limit. Along β → β 0 ∈ [ 1 , ∞ ) \beta\to\beta_0\in[1,\infty) β → β 0 ∈ [ 1 , ∞ ) its intensity is Λ ∞ = e β 0 ( G A − x ) \Lambda_\infty=e^{\beta_0(G_A-x)} Λ ∞ = e β 0 ( G A − x ) . Thus P ( X = 0 ) → E e − Λ ∞ = Ψ β 0 ( x ) ∈ ( 0 , 1 ) \mathbb{P}(X=0)\to\mathbb{E}e^{-\Lambda_\infty}=\Psi_{\beta_0}(x)\in(0,1) P ( X = 0 ) → E e − Λ ∞ = Ψ β 0 ( x ) ∈ ( 0 , 1 ) , while E Λ ∞ = ∞ \mathbb{E}\Lambda_\infty=\infty E Λ ∞ = ∞ and E X → ∞ \mathbb{E}X\to\infty E X → ∞ . Rare large active reads make many gates fail together. The full argument is retained in Appendix § 21 .
Extensions
Three variations show how the dimension requirement depends on the model: supports chosen from the dictionary, non-Gaussian entries and multilayer computation. The proofs, circuit statements and encoding constructions are in Appendix § 20 .
Adversarial supports
If the support can depend on the dictionary, the class cloud need not be a product of two samples. An adversary can select k − 1 k - 1 k − 1 columns that align with one probe. The resulting interference grows linearly in k k k , rather than as k \sqrt{k} k .
Proposition 8.1 (Uniform correctness). Let k → ∞ k \to\infty k → ∞ and log k = o ( log m ) \log k = o(\log m) log k = o ( log m ) , and use canonical pairwise probes with bias $3/2$. There are absolute constants 0 < c < C 0 < c < C 0 < c < C such that the network is correct for every support of size at most k k k with probability tending to one if d ≥ C k 2 log m d \ge Ck^2 \log m d ≥ C k 2 log m , and fails on some support of size k k k with probability tending to one if d ≤ c k 2 log m d \le ck^2 \log m d ≤ c k 2 log m and $d \to \infty.
Related bounds for uniform feature recovery appear in [22 ] (Ivanitskiy et al. 2026); random and worst-case supports also differ for sparse regression [10 ] . The detailed comparisons are in Appendix § 19 .
Other entry laws
The ball uses one-gate tails. For the midpoint pairwise network, their leading exponent is universal. Let the entries of d E \sqrt{d}\,E d E be independent with a fixed centered, unit-variance, sub-Gaussian law, and let q k , d q_{k,d} q k , d be the probability that a midpoint pairwise read with one active
Theorem 8.2 (Universality of the one-gate exponent). If k → ∞ k \to\infty k → ∞ and d / k → ∞ d/k \to\infty d / k → ∞ , then
log q k , d = − d 16 k [ 1 + O ( 1 k + k d log k d ) ] . \log q_{k,d}=-\frac{d}{16k}\left[1+O\left(\frac{1}{k}+\frac{k}{d}\log\frac{k}{d}\right)\right]. log q k , d = − 16 k d [ 1 + O ( k 1 + d k log d k ) ] . with constants depending on the entry law. Consequently the midpoint pairwise network has E X → 0 \mathbb{E}X \to0 E X → 0 once d ≥ ( 16 + ε ) k log ( k m ) d \ge(16+\varepsilon)k\log(km) d ≥ ( 16 + ε ) k log ( k m ) .
Exponential tilting of coordinate rows proves the result. Appendix § 20 .§ 2 gives the next term and sparse-entry extensions. The reliability law uses the Gaussian joint identity; its universality remains open.
Composition and unrestricted encodings
A later layer must store the outputs it reads: pairwise conjunction has ( k 2 ) \binom{k}{2} ( 2 k ) active outputs. For a Gaussian stream in which each active output is written once, Theorem H.5 gives the sufficient budget d ≥ ( 1 + ε ) κ min − 1 K log Q d \ge(1+\varepsilon)\kappa_{\min}^{-1}K\log Q d ≥ ( 1 + ε ) κ m i n − 1 K log Q . Here Q Q Q counts reads, K K K is the largest stream activity before a read, and 2 κ min 2\kappa_{\min} 2 κ m i n is the smallest squared clean margin of a unit-norm read. The proof applies a union bound to an ideal execution.
Without the linear dictionary, order k k k dimensions suffice for all pairwise conjunctions. In the skewed regime they are also necessary for polynomially many threshold units, by sign-pattern counting ([12 ] ) (proposition H.6). The coefficients of ∏ ℓ ∈ S ( y − ℓ ) 2 \prod_{\ell\in S}(y-\ell)^2 ∏ ℓ ∈ S ( y − ℓ ) 2 give a 2 k 2k 2 k -dimensional nonlinear code, with large coefficients and small normalized margins ([5 ] , Theorem 15.2) (proposition H.7). Thus the Θ ( k log m ) \Theta(k\log m) Θ ( k log m ) scale describes accessibility from a random linear dictionary.
Exact simulations
The exact law samples a network without constructing E E E . Draw H H H , k k k active Gaussians and the few inactive order statistics required by lemma B.2. These order statistics can be sampled exactly by sequential uniform tail draws and transformed by Φ − 1 \Phi^{-1} Φ − 1 . Each draw costs O ( k log k ) O(k\log k) O ( k log k ) , independent of m m m and d d d .
Each simulation point uses 4096 independent draws and pointwise 95% Wilson intervals. Expected counts use quadrature of proposition 3.2 with exact unordered class sizes: rare draws can dominate the mean. The protocol and complete results are in Appendices § 22 and § 24 .
Bias and gate type At k = 1024 k=1024 k = 1024 , m = 1024 4 m=1024^4 m = 102 4 4 and d = 1.35 k ( 3 λ ^ 1 + λ ^ 0 ) 2 d=1.35k(3\hat{\lambda}_1+\hat{\lambda}_0)^2 d = 1.35 k ( 3 λ ^ 1 + λ ^ 0 ) 2 , the half-slack pairwise rule (Figure 2 (a)) succeeds on 3984 of 4096 draws. The count-optimal bias succeeds on 3912, and the midpoint on 2. At the quantile center, the half-slack success frequencies for k = 64 , 256 , 1024 k=64,256,1024 k = 64 , 256 , 1024 are 0.143, 0.139, 0.155; the predicted limits are 0.155, 0.154, 0.154. For AND2 _2 2 , AND3 _3 3 , OR2 _2 2 and MAJ3 _3 3 at m = k 4 m=k^4 m = k 4 , the transitions cluster near their box centers (Figure 2 (b)). At k = 1024 k=1024 k = 1024 , success is at most 3.8% at ratio 0.9 and between 82.7% and 97.9% at 1.2. The curves steepen as k k k grows (Figure J.3).
Figure 2. Bias, gate type and the separation of reliability from expected errors, all at k = 1024 k = 1024 k = 1024 . (a) Three pairwise biases and feature recovery on shared draws at m = k 4 m = k^4 m = k 4 . (b) Four gates with the half-slack bias at m = k 4 m = k^4 m = k 4 . Here d b o x = k ( ( 2 t − 1 ) λ ^ 1 + ( 2 r − 2 t + 1 ) λ ^ 0 ) d_{\mathrm{box}} = k((2t - 1)\hat{\lambda}_1 + (2r - 2t + 1)\hat{\lambda}_0) d box = k (( 2 t − 1 ) λ ^ 1 + ( 2 r − 2 t + 1 ) λ ^ 0 ) , with ( r , t ) = ( 2 , 2 ) (r,t) = (2,2) ( r , t ) = ( 2 , 2 ) in (a) and each gate’s own ( r , t ) (r,t) ( r , t ) in (b). (c,d) The midpoint pairwise rule at m = k 4 , k 16 , k 64 m = k^4, k^{16}, k^{64} m = k 4 , k 16 , k 64 , normalized by d 0 d_0 d 0 of (13) . Points and bands in (a–c): 4096 exact draws per cell and pointwise 95% Wilson intervals. Dashed curves in (c): Ψ β ^ \Psi_{\hat{\beta}} Ψ β ^ from Theorem 7.1 (i). Panel (d): quadrature of proposition 3.2; dotted lines mark the first-order ball centers.
Separation of the criteria Fix k = 1024 k=1024 k = 1024 and use the midpoint pairwise rule at m = k 4 , k 16 , k 64 m=k^4,k^{16},k^{64} m = k 4 , k 16 , k 64 (Figure 2 (c,Figure 2 d)). At the quantile box center, success frequencies 0.295, 0.324, 0.340 agree with profile values 0.298, 0.326, 0.346. The expected count crosses one at about 1.23, 1.45, 1.67 times d 0 d_0 d 0 , tracking the first-order ball positions 1.11, 1.36, 1.60. At m = k 64 m = k^{64} m = k 64 and d = 1.5 d 0 d = 1.5d_0 d = 1.5 d 0 , all 4096 draws are correct, yet quadrature gives E X ≈ 2.8 × 10 19 \mathbb{E}X \approx2.8 \times10^{19} E X ≈ 2.8 × 1 0 19 . Here the network is correct on every sampled draw while its expected error count remains large. The exact sampler reaches these dictionary sizes by sampling extremes rather than constructing the dictionary.
Discussion
Expected error counts use marginal tails and give a ball. Joint reliability uses shared reads through a Gaussian supremum; for the universal family, its geometry is a box.
The converse for reliability leaves a question about the readout class: can gate-local probes adapted to their own Gram matrices improve on common representations? Structured gate families raise a related geometric problem. The disjoint and partial-sharing examples suggest looking for sharp supremum constants; generic chaining gives the order (Talagrand, 2014), while a variational description may resemble the generalized random energy model [14 ] . Reliability for non-Gaussian, correlated or learned dictionaries is another question. For general gates, a window law would require the relevant extreme order statistics. For circuits, a box law would also need to track the dependence created by earlier writes; the present composition bound controls reads by a union bound.
AI Use Statement
The original research ideas and initial manuscript draft were developed by the authors. AI tools were used to assist with checking mathematical details and the correctness of arguments, filling in routine proof steps, coding assistance, and language polishing. The authors take full responsibility for the content and correctness of the final manuscript.
Guide to the appendix
The article keeps the main threshold statements and the proof of the exact read law. The appendix gives the read-vector reductions, the supremum proof, the box identity and its optimization program (Appendix § 14 ); the remaining ball, box, gate and window proofs (Appendices § 15 to § 18 ); and the full extensions of the model (Appendices § 19 and § 20 ). Additional window formulas, comparisons and experimental results are in Appendices § 21 and § 22 . Appendix § 23 records finite computational checks; Appendix § 24 gives the frozen experimental protocol. Appendix § 25 turns the thresholds into design rules for width, capacity, sizing and evaluation, and states open problems. The notation table and dependency map provide a reading guide.
Figure A.1. Dependency map. An arrow points from a result to one that builds on it. Blue: expected errors (the ball); orange: reliability (the supremum and the box); grey: the exact law and its reduction. Small italic text names the classical tool each proof adds.
Table A.1. Notation.
Read-vector reductions and the supremum
The following statements and proofs give the reductions used in § 3 and § 5 .
Reliability as a support function
Proposition B.1 (Reliability as a support function). For the canonical rule with ( a , θ ) ∈ Rep ( g ) (a,\theta) \in\operatorname{Rep}(g) ( a , θ ) ∈ Rep ( g ) and any gate family, let C z = { ξ I : I ∈ F z ( S ) } C_z = \{\xi_I : I \in\mathcal{F}_z(S)\} C z = { ξ I : I ∈ F z ( S )} and
M z = max I ∈ F z ( S ) ⟨ ζ z a , ξ I ⟩ = h C z ( ζ z a ) , s z H = ( 2 g ( z ) − 1 ) ( H ⟨ a , z ⟩ − θ ) , M_z = \max_{I \in\mathcal{F}_z(S)} \langle\zeta_z a,\xi_I\rangle= h_{C_z}(\zeta_z a), \qquad s_z^H = (2g(z)-1)(H\langle a,z\rangle-\theta), M z = I ∈ F z ( S ) max ⟨ ζ z a , ξ I ⟩ = h C z ( ζ z a ) , s z H = ( 2 g ( z ) − 1 ) ( H ⟨ a , z ⟩ − θ ) , with max ∅ = − ∞ \max\varnothing=-\infty max ∅ = − ∞ . For every realization, ⋂ z { σ M z < s z H } ⊆ { X = 0 } ⊆ ⋂ z { σ M z ≤ s z H } \bigcap_z\{\sigma M_z < s_z^H\} \subseteq\{X=0\} \subseteq\bigcap_z\{\sigma M_z \le s_z^H\} ⋂ z { σ M z < s z H } ⊆ { X = 0 } ⊆ ⋂ z { σ M z ≤ s z H } , and for a fixed representation the two outer events differ by an event of probability zero.
Proof. A gate of class z z z is correct when ( 2 g ( z ) − 1 ) ( ⟨ a , R I ⟩ − θ ) > 0 (2g(z)-1)(\langle a,R_I\rangle-\theta)>0 ( 2 g ( z ) − 1 ) (⟨ a , R I ⟩ − θ ) > 0 , that is, when σ ⟨ ζ z a , ξ I ⟩ < s z H \sigma\langle\zeta_z a,\xi_I\rangle<s_z^H σ ⟨ ζ z a , ξ I ⟩ < s z H , and it may also be correct when its score equals θ \theta θ ; this gives the two inclusions. For a fixed representation such ties have probability zero: given H H H the score is Gaussian, and when its conditional variance vanishes the score equals H ⟨ a , z ⟩ H\langle a,z\rangle H ⟨ a , z ⟩ , which has a density if ⟨ a , z ⟩ ≠ 0 \langle a,z\rangle\ne0 ⟨ a , z ⟩ = 0 and equals 0 ≠ θ 0\ne\theta 0 = θ otherwise, because s z > 0 s_z>0 s z > 0 . Take the maximum over the class and intersect over the finitely many classes. ■
Proof of the exact one-gate law
Proof. The coordinates of ( w , u ) (w,u) ( w , u ) are independent pairs of centered Gaussians with variances ∥ a ∥ 2 / d \lVert a\rVert^2/d ∥ a ∥ 2 / d and k / d k/d k / d and covariance ⟨ a , z ⟩ / d \langle a,z\rangle/d ⟨ a , z ⟩ / d . Hence u = ( ⟨ a , z ⟩ / ∥ a ∥ 2 ) w + v u=(\langle a,z\rangle/\lVert a\rVert^2)w+v u = (⟨ a , z ⟩ / ∥ a ∥ 2 ) w + v with v ∼ N ( 0 , ( k − ⟨ a , z ⟩ 2 / ∥ a ∥ 2 ) I d / d ) v\sim N(0,(k-\langle a,z\rangle^2/\lVert a\rVert^2)I_d/d) v ∼ N ( 0 , ( k − ⟨ a , z ⟩ 2 / ∥ a ∥ 2 ) I d / d ) independent of w w w , and ⟨ w , u ⟩ = ( ⟨ a , z ⟩ / ∥ a ∥ 2 ) ∥ w ∥ 2 + ⟨ w , v ⟩ \langle w,u\rangle=(\langle a,z\rangle/\lVert a\rVert^2)\lVert w\rVert^2+\langle w,v\rangle ⟨ w , u ⟩ = (⟨ a , z ⟩ / ∥ a ∥ 2 ) ∥ w ∥ 2 + ⟨ w , v ⟩ . Given w w w , the last term is centered Gaussian with variance ∥ w ∥ 2 ( k ∥ a ∥ 2 − ⟨ a , z ⟩ 2 ) / ( d ∥ a ∥ 2 ) \lVert w\rVert^2(k\lVert a\rVert^2-\langle a,z\rangle^2)/(d\lVert a\rVert^2) ∥ w ∥ 2 ( k ∥ a ∥ 2 − ⟨ a , z ⟩ 2 ) / ( d ∥ a ∥ 2 ) . Put J = ∥ w ∥ 2 / ∥ a ∥ 2 J=\lVert w\rVert^2/\lVert a\rVert^2 J = ∥ w ∥ 2 / ∥ a ∥ 2 . The formula for E X \mathbb{E}X E X is linearity of expectation over gates, each gate contributing its class error probability with weight P ( z γ ( S ) = z ) \mathbb{P}(z_\gamma(S)=z) P ( z γ ( S ) = z ) . ■
Proof of the supremum law
Proof. Work on the representation of Theorem 3.1 and let G ∈ R m G\in\mathbb{R}^m G ∈ R m collect Z Z Z on S S S and W W W off S S S ; it is N ( 0 , I m ) N(0,I_m) N ( 0 , I m ) and independent of H H H . For a tuple of class z z z , ⟨ a , ξ I ⟩ = ⟨ a , G I ⟩ − Z ‾ ⟨ a , z ⟩ \langle a,\xi_I\rangle=\langle a,G_I\rangle-\overline{Z}\langle a,z\rangle ⟨ a , ξ I ⟩ = ⟨ a , G I ⟩ − Z ⟨ a , z ⟩ , so M z = T z − ζ z Z ‾ ⟨ a , z ⟩ M_z=T_z-\zeta_z\overline{Z}\langle a,z\rangle M z = T z − ζ z Z ⟨ a , z ⟩ with T z = max I ∈ F z ( S ) ⟨ ζ z a , G I ⟩ T_z=\max_{I\in\mathcal{F}_z(S)}\langle\zeta_z a,G_I\rangle T z = max I ∈ F z ( S ) ⟨ ζ z a , G I ⟩ . The map G ↦ T z G\mapsto T_z G ↦ T z is ∥ a ∥ \lVert a\rVert ∥ a ∥ -Lipschitz, because the coordinates of G I G_I G I are distinct coordinates of G G G . By Gaussian concentration ([7 , 41 ] ),
P ( ∣ T z − Γ z ( S ) ∣ ≥ y ∣ S ) ≤ 2 e − y 2 / ( 2 ∥ a ∥ 2 ) ( y > 0 ) . (14) \mathbb{P}(|T_z-\Gamma_z(S)|\ge y\mid S)\le2e^{-y^2/(2\lVert a\rVert^2)}\qquad(y>0). \tag*{(14)} P ( ∣ T z − Γ z ( S ) ∣ ≥ y ∣ S ) ≤ 2 e − y 2 / ( 2 ∥ a ∥ 2 ) ( y > 0 ) . (14)
Moreover ∣ H − 1 ∣ = O P ( d − 1 / 2 ) |H-1|=O_{\mathbb{P}}(d^{-1/2}) ∣ H − 1∣ = O P ( d − 1/2 ) , ∣ Z ‾ ∣ = O P ( k − 1 / 2 ) |\overline{Z}|=O_{\mathbb{P}}(k^{-1/2}) ∣ Z ∣ = O P ( k − 1/2 ) , σ = σ d H \sigma=\sigma_d\sqrt{H} σ = σ d H and s z H = s z + ( 2 g ( z ) − 1 ) ( H − 1 ) ⟨ a , z ⟩ s_z^H=s_z+(2g(z)-1)(H-1)\langle a,z\rangle s z H = s z + ( 2 g ( z ) − 1 ) ( H − 1 ) ⟨ a , z ⟩ with ∣ ⟨ a , z ⟩ ∣ ≤ r ∥ a ∥ |\langle a,z\rangle|\le\sqrt{r}\lVert a\rVert ∣ ⟨ a , z ⟩ ∣ ≤ r ∥ a ∥ . Because ( a , θ ) (a,\theta) ( a , θ ) is fixed and σ d → 0 \sigma_d\to0 σ d → 0 , every margin satisfies s z / ( σ d ∥ a ∥ ) → ∞ s_z/(\sigma_d\lVert a\rVert)\to\infty s z / ( σ d ∥ a ∥) → ∞ . Choose L d → ∞ L_d\to\infty L d → ∞ with σ d L d → 0 \sigma_dL_d\to0 σ d L d → 0 and δ d → 0 \delta_d\to0 δ d → 0 slowly, so that with probability tending to one ∣ H − 1 ∣ ≤ δ d |H-1|\le\delta_d ∣ H − 1∣ ≤ δ d , ∣ Z ‾ ∣ ≤ δ d |\overline{Z}|\le\delta_d ∣ Z ∣ ≤ δ d , and, by (B.1), T z ≤ Γ z ( S ) + L d ∥ a ∥ T_z\le\Gamma_z(S)+L_d\lVert a\rVert T z ≤ Γ z ( S ) + L d ∥ a ∥ for all z z z .
On { d ≥ ( 1 + ε ) d ∗ ( S ) } \{d\ge(1+\varepsilon)d^*(S)\} { d ≥ ( 1 + ε ) d ∗ ( S )} every class has σ d Γ z ( S ) + ≤ s z / 1 + ε \sigma_d\Gamma_z(S)_+\le s_z/\sqrt{1+\varepsilon} σ d Γ z ( S ) + ≤ s z / 1 + ε , and then
σ M z ≤ ( 1 + δ d ) ( s z 1 + ε + σ d ∥ a ∥ ( L d + r δ d ) ) < s z − δ d r ∥ a ∥ ≤ s z H \sigma M_z\le(1+\delta_d)\left(\frac{s_z}{\sqrt{1+\varepsilon}}+\sigma_d\lVert a\rVert(L_d+\sqrt{r}\delta_d)\right)<s_z-\delta_d\sqrt{r}\lVert a\rVert\le s_z^H σ M z ≤ ( 1 + δ d ) ( 1 + ε s z + σ d ∥ a ∥ ( L d + r δ d ) ) < s z − δ d r ∥ a ∥ ≤ s z H
for all large d d d , because σ d ∥ a ∥ ( L d + r δ d ) = o ( s z ) \sigma_d\lVert a\rVert(L_d+\sqrt{r}\delta_d)=o(s_z) σ d ∥ a ∥ ( L d + r δ d ) = o ( s z ) and δ d ∥ a ∥ = o ( s z ) \delta_d\lVert a\rVert=o(s_z) δ d ∥ a ∥ = o ( s z ) . On { d ≤ ( 1 − ε ) d ∗ ( S ) } \{d\le(1-\varepsilon)d^*(S)\} { d ≤ ( 1 − ε ) d ∗ ( S )} some class has σ d Γ z ( S ) ≥ s z / 1 − ε \sigma_d\Gamma_z(S)\ge s_z/\sqrt{1-\varepsilon} σ d Γ z ( S ) ≥ s z / 1 − ε , so Γ z ( S ) / ∥ a ∥ → ∞ \Gamma_z(S)/\lVert a\rVert\to\infty Γ z ( S ) / ∥ a ∥ → ∞ and (B.1) with y = ε 4 Γ z ( S ) y=\frac{\varepsilon}{4}\Gamma_z(S) y = 4 ε Γ z ( S ) gives T z ≥ ( 1 − ε 4 ) Γ z ( S ) T_z\ge(1-\frac{\varepsilon}{4})\Gamma_z(S) T z ≥ ( 1 − 4 ε ) Γ z ( S ) with probability tending to one. For this class
σ M z ≥ ( 1 − δ d ) ( ( 1 − ε / 4 ) s z 1 − ε − σ d r ∥ a ∥ δ d ) > s z + δ d r ∥ a ∥ ≥ s z H , \sigma M_z\ge(1-\delta_d)\left(\frac{(1-\varepsilon/4)s_z}{\sqrt{1-\varepsilon}}-\sigma_d\sqrt{r}\lVert a\rVert\delta_d\right)>s_z+\delta_d\sqrt{r}\lVert a\rVert\ge s_z^H, σ M z ≥ ( 1 − δ d ) ( 1 − ε ( 1 − ε /4 ) s z − σ d r ∥ a ∥ δ d ) > s z + δ d r ∥ a ∥ ≥ s z H ,
since ( 1 − ε / 4 ) / 1 − ε > 1 (1-\varepsilon/4)/\sqrt{1-\varepsilon}>1 ( 1 − ε /4 ) / 1 − ε > 1 . There are 2 r 2^r 2 r classes, so both statements follow. ■
The box identity
For the universal family the maximizing tuple can be written down. Group the positions of a class-z z z gate by the pool they draw from (p = 1 p=1 p = 1 for the active features, p = 0 p=0 p = 0 for the inactive ones) and by the sign of their weight in the direction b = ζ z a b=\zeta_z a b = ζ z a .
Lemma B.2 (Box identity). Let F = U r ( g ) \mathcal{F} = \mathcal{U}_r(g) F = U r ( g ) and assume that each pool p p p has at least as many features as the class has positions with z l = p z_l = p z l = p . For every ξ ∈ R m \xi\in\mathbb{R}^m ξ ∈ R m , S S S , z z z and b ∈ R r b \in\mathbb{R}^r b ∈ R r ,
max I ∈ F z ( S ) ⟨ b , ξ I ⟩ = ∑ p ∈ { 0 , 1 } ∑ ± ∑ j = 1 c p ± ∣ b ∣ [ j ] ( p , ± ) ( ± ξ ) ( j ) ( p ) \max_{I \in\mathcal{F}_z(S)} \langle b, \xi_I \rangle= \sum_{p \in\{0,1\}} \sum_{\pm} \sum_{j=1}^{c_p^\pm} |b|_{[j]}^{(p,\pm)} (\pm\xi)_{(j)}^{(p)} I ∈ F z ( S ) max ⟨ b , ξ I ⟩ = p ∈ { 0 , 1 } ∑ ± ∑ j = 1 ∑ c p ± ∣ b ∣ [ j ] ( p , ± ) ( ± ξ ) ( j ) ( p ) where c p + c_p^+ c p + and c p − c_p^- c p − count the positions l l l with z l = p z_l = p z l = p and b l ≥ 0 b_l \ge0 b l ≥ 0 , respectively b l < 0 b_l < 0 b l < 0 , ∣ b ∣ [ 1 ] ( p , ± ) ≥ ∣ b ∣ [ 2 ] ( p , ± ) ≥ ⋯ |b|_{[1]}^{(p,\pm)} \ge|b|_{[2]}^{(p,\pm)} \ge\cdots ∣ b ∣ [ 1 ] ( p , ± ) ≥ ∣ b ∣ [ 2 ] ( p , ± ) ≥ ⋯ are their absolute weights in decreasing order, and ( ± ξ ) ( 1 ) ( p ) ≥ ( ± ξ ) ( 2 ) ( p ) ≥ ⋯ (\pm\xi)_{(1)}^{(p)} \ge(\pm\xi)_{(2)}^{(p)} \ge\cdots ( ± ξ ) ( 1 ) ( p ) ≥ ( ± ξ ) ( 2 ) ( p ) ≥ ⋯ are the values ± ξ i \pm\xi_i ± ξ i , i i i in pool p p p , in decreasing order.
Proof. For any admissible tuple, split ⟨ b , ξ I ⟩ \langle b, \xi_I\rangle ⟨ b , ξ I ⟩ into the four groups. Within a group the features are distinct members of one pool, so by the rearrangement inequality the group sum is at most the displayed sum of products of decreasing weights with decreasing values of ± ξ \pm\xi ± ξ . The bound is attained by placing, in each pool, the c p + c_p^+ c p + largest values on the positions with b l ≥ 0 b_l \ge0 b l ≥ 0 and the c p − c_p^- c p − smallest on those with b l < 0 b_l < 0 b l < 0 ; these features are distinct because the pool has at least c p + + c p − c_p^+ + c_p^- c p + + c p − elements, which is the assumption. ■
Each group sum involves at most r r r extreme order statistics of one Gaussian sample, and each of these is λ p ( 1 + o P ( 1 ) ) \lambda_p(1 + o_{\mathbb{P}}(1)) λ p ( 1 + o P ( 1 )) . Hence the maximal projection of the class is ∑ l ∣ a l ∣ λ z l = h B o x z ( a ) \sum_l |a_l|\lambda_{z_l} = h_{\mathrm{Box}_z}(a) ∑ l ∣ a l ∣ λ z l = h Box z ( a ) to first order: the cloud fills the box. Because the relative error comes from finitely many order statistics that do not depend on a a a , the approximation is uniform over all representations at once.
Computing the box program
Proposition B.3 (Computing the box). For each κ ≥ 0 \kappa\ge0 κ ≥ 0 the set of ( a , θ ) (a,\theta) ( a , θ ) with s z ( a , θ ) ≥ κ ∑ l ∣ a l ∣ β 1 − z l s_z(a,\theta) \ge\kappa\sum_l |a_l|^{\beta^{1-z_l}} s z ( a , θ ) ≥ κ ∑ l ∣ a l ∣ β 1 − z l for all z z z is a convex polyhedral cone, so v g ( β ) − 1 / 2 v_g(\beta)^{-1/2} v g ( β ) − 1/2 is the largest κ \kappa κ for which this cone contains a point with s z ≥ 1 s_z \ge1 s z ≥ 1 for all z z z ; after introducing u l ≥ ± a l u_l \ge\pm a_l u l ≥ ± a l this is a linear feasibility problem, and κ \kappa κ is found by bisection. If g g g is symmetric, both V b o x V_{\mathrm{box}} V box and V b a l l V_{\mathrm{ball}} V ball are attained at a = 1 a = \mathbf{1} a = 1 when g g g is nondecreasing, as for T H R r \mathrm{THR}_r THR r , and at a = − 1 a = -\mathbf{1} a = − 1 when g g g is nonincreasing; every symmetric threshold function is one of the two.
Proof. Each constraint says that a linear function minus κ \kappa κ times a convex piecewise-linear function is nonnegative, which defines a convex polyhedral set; homogeneity makes it a cone. If g g g is symmetric, permuting the coordinates of a a a permutes the classes and preserves the constraint system of both programs, so averaging a feasible point over all permutations gives a feasible point with equal weights. Its margins are averages of margins over permutation orbits, hence positive, so its common weight c c c is nonzero, with c > 0 c > 0 c > 0 if g g g is nondecreasing and c < 0 c < 0 c < 0 if g g g is nonincreasing; rescale to a = ± 1 a = \pm\mathbf{1} a = ± 1 . ■
Partial sharing
For nonnegative weights, two gates of the same class that share a feature have positively correlated interference, and every additional shared feature raises the correlation. By the
Sudakov–Fernique inequality [38 , 20 ] the expected supremum of a class can only fall below that of independent gates with the same variances, which is the ball. The universal family is the opposite extreme to disjoint gates: every tuple of features is a gate, and the supremum splits into a sum of independent maxima, one for each position. Between the two extremes the supremum depends on how much sharing there is, and a simple family already shows where the supremum leaves the ball.
The partial-sharing statement is given in proposition 5.3.
Proof sketch (details in Appendix § 16 .§ 2 ). The class supremum is max i ∈ S ( Z i + M i ) \max_{i\in S}(Z_i+M_i) max i ∈ S ( Z i + M i ) with M i = max j ∈ C ( i ) W j M_i=\max_{j\in C(i)}W_j M i = max j ∈ C ( i ) W j , a maximum of k k k independent copies of a Gaussian plus a maximum of D D D Gaussians. When D ≤ k D\le k D ≤ k , many active features have moderately large reads, and among them one finds a partner with an equally large read: the two coordinates split the budget 2 log ( k D ) 2\log(kD) 2 log ( k D ) evenly, as in the ball. When D ≥ k D\ge k D ≥ k the shared coordinate saturates at λ 1 \lambda_1 λ 1 and the partner adds λ D \lambda_D λ D .
Sharing therefore lowers the price of a class only once every active feature has more partners than there are active features. The two formulas agree at D = k D=k D = k . Disjoint partner sets require k D ≤ n kD\le n k D ≤ n ; continued formally to D = n D=n D = n , where partner sets overlap as in the universal family, the second formula becomes the box value λ 1 + λ 0 \lambda_1+\lambda_0 λ 1 + λ 0 of Theorem 5.4 (iii). Partner sets drawn at random, as in a random regular graph of gates, satisfy the disjointness hypothesis with probability tending to one when k 2 D 2 = o ( m ) k^2D^2=o(m) k 2 D 2 = o ( m ) .
Proofs for the ball
Throughout, Φ ‾ = 1 − Φ \overline{\Phi}=1-\Phi Φ = 1 − Φ is the standard normal tail, and we use the two Mills bounds
Φ ‾ ( x ) ≤ e − x 2 / 2 ( x ≥ 0 ) , Φ ‾ ( x ) ≥ x 1 + x 2 e − x 2 / 2 2 π ( x > 0 ) , (15) \overline{\Phi}(x)\le e^{-x^2/2}\quad(x\ge0),\qquad\overline{\Phi}(x)\ge\frac{x}{1+x^2}\frac{e^{-x^2/2}}{\sqrt{2\pi}}\quad(x>0), \tag*{(15)} Φ ( x ) ≤ e − x 2 /2 ( x ≥ 0 ) , Φ ( x ) ≥ 1 + x 2 x 2 π e − x 2 /2 ( x > 0 ) , (15)
and the chi-square bounds of Laurent and Massart [27 ] : for J ∼ χ d 2 / d J\sim\chi_d^2/d J ∼ χ d 2 / d and 0 < η ≤ 1 0<\eta\le1 0 < η ≤ 1 ,
P ( ∣ J − 1 ∣ ≥ η ) ≤ 2 e − d η 2 / 8 , Var J = 2 / d . (16) \mathbb{P}(|J-1|\ge\eta)\le2e^{-d\eta^2/8},\qquad\operatorname{Var}J=2/d. \tag*{(16)} P ( ∣ J − 1∣ ≥ η ) ≤ 2 e − d η 2 /8 , Var J = 2/ d . (16)
For a representation ( a , θ ) (a,\theta) ( a , θ ) of g g g , the bias lies strictly between the largest rejected and the smallest accepted clean value, and every clean value has modulus at most ∥ a ∥ 1 ≤ r ∥ a ∥ \lVert a\rVert_1\le\sqrt{r}\lVert a\rVert ∥ a ∥ 1 ≤ r ∥ a ∥ ; hence
0 < s z ( a , θ ) ≤ 2 r ∥ a ∥ for every z . (17) 0<s_z(a,\theta)\le2\sqrt{r}\lVert a\rVert\qquad\text{for every }z. \tag*{(17)} 0 < s z ( a , θ ) ≤ 2 r ∥ a ∥ for every z . (17)
Proof of Theorem 4.1
Fix a class z z z and abbreviate s = s z ( a , θ ) s=s_z(a,\theta) s = s z ( a , θ ) , c = ⟨ a , z ⟩ c=\langle a,z\rangle c = ⟨ a , z ⟩ and v 2 = k ∥ a ∥ 2 − c 2 v^2=k\lVert a\rVert^2-c^2 v 2 = k ∥ a ∥ 2 − c 2 . Since c 2 ≤ ∣ z ∣ ∥ a ∥ 2 ≤ r ∥ a ∥ 2 c^2\le|z|\lVert a\rVert^2\le r\lVert a\rVert^2 c 2 ≤ ∣ z ∣ ∥ a ∥ 2 ≤ r ∥ a ∥ 2 , we have ( k − r ) ∥ a ∥ 2 ≤ v 2 ≤ k ∥ a ∥ 2 (k-r)\lVert a\rVert^2\le v^2\le k\lVert a\rVert^2 ( k − r ) ∥ a ∥ 2 ≤ v 2 ≤ k ∥ a ∥ 2 . By proposition 3.2 and ς z ( c − θ ) = − s \varsigma_z(c-\theta)=-s ς z ( c − θ ) = − s , a gate of class z z z errs exactly when v J / d G ′ ≥ s − ς z c ( J − 1 ) v\sqrt{J/d}\,G'\ge s-\varsigma_zc(J-1) v J / d G ′ ≥ s − ς z c ( J − 1 ) with G ′ = ς z G ∼ N ( 0 , 1 ) G'=\varsigma_zG\sim N(0,1) G ′ = ς z G ∼ N ( 0 , 1 ) independent of J J J , so
p z = E Φ ‾ ( s − ς z c ( J − 1 ) v J / d ) . (18) p_z=\mathbb{E}\overline{\Phi}\left(\frac{s-\varsigma_zc(J-1)}{v\sqrt{J/d}}\right). \tag*{(18)} p z = E Φ ( v J / d s − ς z c ( J − 1 ) ) . (18)
It suffices to prove each claim along a subsequence of an arbitrary subsequence.
Upper bound. Let d ≥ ( 1 + ε ) D b a l l ( a , θ ) d \ge(1+\varepsilon)D_{\mathrm{ball}}(a,\theta) d ≥ ( 1 + ε ) D ball ( a , θ ) , so that d s 2 / ( k ∥ a ∥ 2 ) ≥ ( 1 + ε ) ρ z 2 ds^2/(k\lVert a\rVert^2) \ge(1+\varepsilon)\rho_z^2 d s 2 / ( k ∥ a ∥ 2 ) ≥ ( 1 + ε ) ρ z 2 for every z z z . Put η = s / ( 2 r ∥ a ∥ k 1 / 4 ) \eta=s/(2\sqrt{r}\lVert a\rVert k^{1/4}) η = s / ( 2 r ∥ a ∥ k 1/4 ) , which is at most k − 1 / 4 k^{-1/4} k − 1/4 by (C.3). On { ∣ J − 1 ∣ ≤ η } \{|J-1|\le\eta\} { ∣ J − 1∣ ≤ η } we have ∣ c ( J − 1 ) ∣ ≤ r ∥ a ∥ η = 1 2 s k − 1 / 4 |c(J-1)|\le\sqrt{r}\lVert a\rVert\eta=\frac{1}{2}sk^{-1/4} ∣ c ( J − 1 ) ∣ ≤ r ∥ a ∥ η = 2 1 s k − 1/4 and v J / d ≤ ∥ a ∥ k ( 1 + η ) / d v\sqrt{J}/d\le\lVert a\rVert\sqrt{k(1+\eta)/d} v J / d ≤ ∥ a ∥ k ( 1 + η ) / d , so the argument of Φ ‾ \overline{\Phi} Φ in (C.4) is at least
x z = s ( 1 − 1 2 k − 1 / 4 ) ∥ a ∥ k ( 1 + k − 1 / 4 ) / d , x z 2 ≥ ( 1 + ε ) ( 1 − 3 k − 1 / 4 ) ρ z 2 . x_z=\frac{s(1-\frac{1}{2}k^{-1/4})}{\lVert a\rVert\sqrt{k(1+k^{-1/4})/d}},\qquad x_z^2\ge(1+\varepsilon)(1-3k^{-1/4})\rho_z^2. x z = ∥ a ∥ k ( 1 + k − 1/4 ) / d s ( 1 − 2 1 k − 1/4 ) , x z 2 ≥ ( 1 + ε ) ( 1 − 3 k − 1/4 ) ρ z 2 .
By (C.1) this part contributes at most N z − ( 1 + ε ) ( 1 − 3 k − 1 / 4 ) ≤ N z − 1 − ε / 2 N_z^{-(1+\varepsilon)(1-3k^{-1/4})}\le N_z^{-1-\varepsilon/2} N z − ( 1 + ε ) ( 1 − 3 k − 1/4 ) ≤ N z − 1 − ε /2 for large k k k . By (C.2) the complement has probability at most
2 exp ( − d s 2 32 r ∥ a ∥ 2 k 1 / 2 ) ≤ 2 exp ( − ( 1 + ε ) k 1 / 2 32 r ρ z 2 ) = 2 N z − ( 1 + ε ) k 1 / 2 / ( 16 r ) . 2\exp\left(-\frac{ds^2}{32r\lVert a\rVert^2k^{1/2}}\right)\le2\exp\left(-\frac{(1+\varepsilon)k^{1/2}}{32r}\rho_z^2\right)=2N_z^{-(1+\varepsilon)k^{1/2}/(16r)}. 2 exp ( − 32 r ∥ a ∥ 2 k 1/2 d s 2 ) ≤ 2 exp ( − 32 r ( 1 + ε ) k 1/2 ρ z 2 ) = 2 N z − ( 1 + ε ) k 1/2 / ( 16 r ) .
Hence N z p z ≤ N z − ε / 2 + 2 N z 1 − k 1 / 2 / ( 16 r ) → 0 N_zp_z\le N_z^{-\varepsilon/2}+2N_z^{1-k^{1/2}/(16r)}\to0 N z p z ≤ N z − ε /2 + 2 N z 1 − k 1/2 / ( 16 r ) → 0 for every class, and E X = ∑ z N z p z → 0 \mathbb{E}X=\sum_zN_zp_z\to0 E X = ∑ z N z p z → 0 because there are 2 r 2^r 2 r classes.
Lower bound. Let d ≤ ( 1 − ε ) D b a l l ( a , θ ) d\le(1-\varepsilon)D_{\mathrm{ball}}(a,\theta) d ≤ ( 1 − ε ) D ball ( a , θ ) and pass to a subsequence along which one class z z z attains the maximum in D b a l l D_{\mathrm{ball}} D ball ; then x 0 2 : = d s 2 / ( k ∥ a ∥ 2 ) ≤ ( 1 − ε ) ρ z 2 x_0^2:=ds^2/(k\lVert a\rVert^2)\le(1-\varepsilon)\rho_z^2 x 0 2 := d s 2 / ( k ∥ a ∥ 2 ) ≤ ( 1 − ε ) ρ z 2 . Pass to a further subsequence along which either x 0 → ∞ x_0\to\infty x 0 → ∞ or x 0 x_0 x 0 stays bounded.
If x 0 → ∞ x_0\to\infty x 0 → ∞ , put η = s / ( r ∥ a ∥ log k ) ≤ 2 / log k \eta=s/(\sqrt{r}\lVert a\rVert\log k)\le2/\log k η = s / ( r ∥ a ∥ log k ) ≤ 2/ log k . By (C.3), d ≥ k x 0 2 / ( 4 r ) → ∞ d\ge kx_0^2/(4r)\to\infty d ≥ k x 0 2 / ( 4 r ) → ∞ , and d η 2 / ( r log 2 k ) = k x 0 2 / ( r log 2 k ) → ∞ d\eta^2/(r\log^2 k)=kx_0^2/(r\log^2 k)\to\infty d η 2 / ( r log 2 k ) = k x 0 2 / ( r log 2 k ) → ∞ , so P ( ∣ J − 1 ∣ ≤ η ) → 1 \mathbb{P}(|J-1|\le\eta)\to1 P ( ∣ J − 1∣ ≤ η ) → 1 . On this event ∣ c ( J − 1 ) ∣ ≤ s / log k |c(J-1)|\le s/\log k ∣ c ( J − 1 ) ∣ ≤ s / log k and v J / d ≥ ∥ a ∥ ( k − r ) ( 1 − η ) / d v\sqrt{J}/d\ge\lVert a\rVert\sqrt{(k-r)(1-\eta)/d} v J / d ≥ ∥ a ∥ ( k − r ) ( 1 − η ) / d , so the argument of Φ ‾ \overline{\Phi} Φ is at most x 1 = x 0 ( 1 + 1 / log k ) { ( 1 − r / k ) ( 1 − η ) } − 1 / 2 x_1=x_0(1+1/\log k)\{(1-r/k)(1-\eta)\}^{-1/2} x 1 = x 0 ( 1 + 1/ log k ) {( 1 − r / k ) ( 1 − η ) } − 1/2 , with x 1 2 ≤ ( 1 − ε ) ( 1 + o ( 1 ) ) ρ z 2 x_1^2\le(1-\varepsilon)(1+o(1))\rho_z^2 x 1 2 ≤ ( 1 − ε ) ( 1 + o ( 1 )) ρ z 2 . The lower Mills bound gives p z ≥ ( 1 − o ( 1 ) ) N z − ( 1 − ε ) − o ( 1 ) p_z\ge(1-o(1))N_z^{-(1-\varepsilon)-o(1)} p z ≥ ( 1 − o ( 1 )) N z − ( 1 − ε ) − o ( 1 ) , and N z p z ≥ N z ε − o ( 1 ) → ∞ N_zp_z\ge N_z^{\varepsilon-o(1)}\to\infty N z p z ≥ N z ε − o ( 1 ) → ∞ .
If x 0 x_0 x 0 stays bounded, consider first subsequences with d → ∞ d\to\infty d → ∞ . By Chebyshev’s inequality P ( ∣ J − 1 ∣ ≤ 2 2 / d ) ≥ 3 / 4 \mathbb{P}(|J-1|\le2\sqrt{2/d})\ge3/4 P ( ∣ J − 1∣ ≤ 2 2/ d ) ≥ 3/4 ; on this event ∣ c ( J − 1 ) ∣ ≤ 2 2 r ∥ a ∥ / d |c(J-1)|\le2\sqrt{2r}\lVert a\rVert/\sqrt d ∣ c ( J − 1 ) ∣ ≤ 2 2 r ∥ a ∥ / d and v J / d ≥ ∥ a ∥ ( k − r ) / ( 2 d ) v\sqrt{J}/d\ge\lVert a\rVert\sqrt{(k-r)/(2d)} v J / d ≥ ∥ a ∥ ( k − r ) / ( 2 d ) for d ≥ 32 d\ge32 d ≥ 32 , so the argument of Φ ‾ \overline{\Phi} Φ is at most 2 x 0 k / ( k − r ) + 4 r / ( k − r ) \sqrt{2}x_0\sqrt{k/(k-r)}+4\sqrt{r/(k-r)} 2 x 0 k / ( k − r ) + 4 r / ( k − r ) , which is bounded. Hence p z p_z p z is bounded below and N z p z → ∞ N_zp_z\to\infty N z p z → ∞ . If instead d d d stays bounded, then P ( J ∈ [ 1 / 2 , 2 ] ) \mathbb{P}(J\in[1/2,2]) P ( J ∈ [ 1/2 , 2 ]) is bounded below, and on that event the argument of Φ ‾ \overline{\Phi} Φ is at most ( s + r ∥ a ∥ ) / ( ∥ a ∥ ( k − r ) / ( 2 d ) ) → 0 (s+\sqrt{r}\lVert a\rVert)/(\lVert a\rVert\sqrt{(k-r)/(2d)})\to0 ( s + r ∥ a ∥) / (∥ a ∥ ( k − r ) / ( 2 d ) ) → 0 by (C.3); again p z p_z p z is bounded below. In every case E X ≥ N z p z → ∞ \mathbb{E}X\ge N_zp_z\to\infty E X ≥ N z p z → ∞ . □
Proof of Theorem 4.2
The program. Write L = max z log N z L=\max_z\log N_z L = max z log N z . A fixed nonconstant threshold function has a representation with positive margins, which gives V b a l l ≤ C g L V_{\mathrm{ball}}\le C_gL V ball ≤ C g L . Conversely, by (C.3) every representation with ∥ a ∥ ≤ 1 \lVert a\rVert\le1 ∥ a ∥ ≤ 1 has margins at most 2 r 2\sqrt r 2 r , so V b a l l ≥ L / ( 2 r ) V_{\mathrm{ball}}\ge L/(2r) V ball ≥ L / ( 2 r ) ; thus V b a l l = Θ g ( L ) V_{\mathrm{ball}}=\Theta_g(L) V ball = Θ g ( L ) . In the cone form (10) the bias may be restricted to ∣ θ ∣ ≤ r |\theta|\le\sqrt r ∣ θ ∣ ≤ r and t t t to a bounded interval, so the feasible set is compact and the maximum t ∗ > 0 t_*>0 t ∗ > 0 is attained; at a maximizer all margins are positive. This minimizer of (9) has D b a l l = k V b a l l D_{\mathrm{ball}}=kV_{\mathrm{ball}} D ball = k V ball , and the first claim is Theorem 4.1 .
Converse. Fix a gate γ \gamma γ with tuple I I I and condition on E I E_I E I and on the independent randomness of its rule; these determine ( w , θ γ ) (w,\theta_\gamma) ( w , θ γ ) . Write q z = N z / ∣ F ∣ q_z=N_z/|\mathcal{F}| q z = N z /∣ F ∣ for the probability that γ \gamma γ has class z z z , which is the same for every gate of the family. If w = 0 w=0 w = 0 the output is constant and the gate errs with probability at least min z q z \min_z q_z min z q z . Otherwise rescale ( w , θ γ ) (w,\theta_\gamma) ( w , θ γ ) so that ∥ w ∥ = 1 \lVert w\rVert=1 ∥ w ∥ = 1 , which does not change the output, and put a = E I T w a=E_I^{\mathsf T}w a = E I T w . Given the class z z z , the set S ∖ I S\setminus I S ∖ I is a uniform ( k − ∣ z ∣ ) (k-|z|) ( k − ∣ z ∣ ) -subset of the other features, whose columns are independent of E I E_I E I and w w w ; hence the score is $\langle a,z\rangle+\zeta with ζ ∼ N ( 0 , ( k − ∣ z ∣ ) / d ) \zeta\sim N(0,(k-|z|)/d) ζ ∼ N ( 0 , ( k − ∣ z ∣ ) / d ) given E I E_I E I , w w w and the class. Only the marginal law of the class of one gate enters, so no exchangeability of the rules and no independence between gates is needed. Pass to subsequences along which either d → ∞ d \to\infty d → ∞ or d d d stays bounded, and consider first d → ∞ d \to\infty d → ∞ . Let η d = d − 1 / 4 \eta_d=d^{-1/4} η d = d − 1/4 and let G γ = { ∥ E I T E I − I r ∥ op ≤ η d } \mathcal{G}_\gamma=\{\lVert E_I^{\mathsf{T}}E_I-I_r\rVert_{\operatorname{op}}\le\eta_d\} G γ = {∥ E I T E I − I r ∥ op ≤ η d } . Gram concentration for a fixed number r r r of Gaussian columns (Vershynin, [42 ] ) gives P ( G γ c ) ≤ C r e − c r d η d 2 → 0 \mathbb{P}(\mathcal{G}_\gamma^c)\le C_r e^{-c_r d\eta_d^2}\to0 P ( G γ c ) ≤ C r e − c r d η d 2 → 0 .
On G γ \mathcal{G}_\gamma G γ , ∥ a ∥ 2 ≤ ∥ E I T E I ∥ op ≤ 1 + η d \lVert a\rVert^2\le\lVert E_I^{\mathsf{T}}E_I\rVert_{\operatorname{op}}\le1+\eta_d ∥ a ∥ 2 ≤ ∥ E I T E I ∥ op ≤ 1 + η d ; put c = ( 1 + η d ) 1 / 2 c=(1+\eta_d)^{1/2} c = ( 1 + η d ) 1/2 , so ∥ a / c ∥ ≤ 1 \lVert a/c\rVert\le1 ∥ a / c ∥ ≤ 1 .
If ( a / c , θ γ / c ) (a/c,\theta_\gamma/c) ( a / c , θ γ / c ) does not represent g g g , some class z z z has s z ( a , θ γ ) ≤ 0 s_z(a,\theta_\gamma)\le0 s z ( a , θ γ ) ≤ 0 , and since ζ \zeta ζ is symmetric the gate errs in that class with conditional probability at least 1 / 2 1/2 1/2 ; its error probability is at least min z q z / 2 \min_z q_z/2 min z q z /2 . Otherwise, by the definition of V b a l l V_{\mathrm{ball}} V ball some class z z z has s z ( a / c , θ γ / c ) 2 ≤ 2 log N z / V b a l l s_z(a/c,\theta_\gamma/c)^2\le2\log N_z/V_{\mathrm{ball}} s z ( a / c , θ γ / c ) 2 ≤ 2 log N z / V ball , hence s z ( a , θ γ ) 2 ≤ ( 1 + η d ) 2 log N z / V b a l l s_z(a,\theta_\gamma)^2\le(1+\eta_d)2\log N_z/V_{\mathrm{ball}} s z ( a , θ γ ) 2 ≤ ( 1 + η d ) 2 log N z / V ball . For d ≤ ( 1 − ε ) k V b a l l d\le(1-\varepsilon)kV_{\mathrm{ball}} d ≤ ( 1 − ε ) k V ball the squared margin-to-noise ratio of this class is
d s z ( a , θ γ ) 2 k − ∣ z ∣ ≤ ( 1 − ε ) ( 1 + η d ) k k − r 2 log N z = 2 ( 1 − ε ) ( 1 + o ( 1 ) ) log N z . \frac{d\,s_z(a,\theta_\gamma)^2}{k-|z|}\le(1-\varepsilon)(1+\eta_d)\frac{k}{k-r}2\log N_z=2(1-\varepsilon)(1+o(1))\log N_z. k − ∣ z ∣ d s z ( a , θ γ ) 2 ≤ ( 1 − ε ) ( 1 + η d ) k − r k 2 log N z = 2 ( 1 − ε ) ( 1 + o ( 1 )) log N z .
uniformly in the rule and in the class. By (C.1) its conditional error probability is at least N z − ( 1 − ε ) − o ( 1 ) N_z^{-(1-\varepsilon)-o(1)} N z − ( 1 − ε ) − o ( 1 ) (and at least a constant if the ratio stays bounded), so the gate errs with probability at least q z N z − ( 1 − ε ) − o ( 1 ) = N z ε − o ( 1 ) / ∣ F ∣ q_zN_z^{-(1-\varepsilon)-o(1)}=N_z^{\varepsilon-o(1)}/|\mathcal{F}| q z N z − ( 1 − ε ) − o ( 1 ) = N z ε − o ( 1 ) /∣ F ∣ . In both cases, on G γ \mathcal{G}_\gamma G γ ,
P ( γ errs ∣ E I , rule ) ≥ ( min z N z ) ε − o ( 1 ) ∣ F ∣ . \mathbb{P}(\gamma\text{ errs}\mid E_I,\text{rule})\ge\frac{(\min_zN_z)^{\varepsilon-o(1)}}{|\mathcal{F}|}. P ( γ errs ∣ E I , rule ) ≥ ∣ F ∣ ( min z N z ) ε − o ( 1 ) .
Integrating over G γ \mathcal{G}_\gamma G γ , whose probability tends to one uniformly in γ \gamma γ when d → ∞ d\to\infty d → ∞ , and summing over the ∣ F ∣ |\mathcal{F}| ∣ F ∣ gates gives E X ≥ ( min z N z ) ε − o ( 1 ) \mathbb{E}X\ge(\min_zN_z)^{\varepsilon-o(1)} E X ≥ ( min z N z ) ε − o ( 1 ) . No event simultaneous over all gates is used.
It remains to treat subsequences along which d ≤ D d\le D d ≤ D stays bounded. Let Ω γ = { ∥ E I ∥ op 2 ≤ 2 r } \Omega_\gamma=\{\lVert E_I\rVert_{\operatorname{op}}^2\le2r\} Ω γ = {∥ E I ∥ op 2 ≤ 2 r } ; since E ∥ E I ∥ F 2 = r \mathbb{E}\lVert E_I\rVert_F^2=r E ∥ E I ∥ F 2 = r , Markov’s inequality gives P ( Ω γ ) ≥ 1 / 2 \mathbb{P}(\Omega_\gamma)\ge1/2 P ( Ω γ ) ≥ 1/2 . Because g g g is nonconstant, some edge of the cube joins a class z z z with g ( z ) = 1 g(z)=1 g ( z ) = 1 to a class z ′ z' z ′ with g ( z ′ ) = 0 g(z')=0 g ( z ′ ) = 0 , differing in one position l l l . With ∥ w ∥ = 1 \lVert w\rVert=1 ∥ w ∥ = 1 and a = E I T w a=E_I^{\mathsf{T}}w a = E I T w , on Ω γ \Omega_\gamma Ω γ we have ∣ a l ∣ ≤ 2 r |a_l|\le\sqrt{2r} ∣ a l ∣ ≤ 2 r . Put u = θ γ − ⟨ a , z ⟩ u=\theta_\gamma-\langle a,z\rangle u = θ γ − ⟨ a , z ⟩ . If u ≥ 0 u\ge0 u ≥ 0 , class z z z errs with conditional probability P ( ζ ≤ u ) ≥ 1 / 2 \mathbb{P}(\zeta\le u)\ge1/2 P ( ζ ≤ u ) ≥ 1/2 . If u < 0 u<0 u < 0 , class z ′ z' z ′ errs when its noise exceeds θ γ − ⟨ a , z ′ ⟩ ≤ u + ∣ a l ∣ < 2 r \theta_\gamma-\langle a,z'\rangle\le u+|a_l|<\sqrt{2r} θ γ − ⟨ a , z ′ ⟩ ≤ u + ∣ a l ∣ < 2 r , which has probability at least Φ ( 2 r D / ( k − r ) ) → 1 / 2 \Phi(\sqrt{2rD/(k-r)})\to1/2 Φ ( 2 r D / ( k − r ) ) → 1/2 . Hence each gate errs with probability at least ( 1 4 − o ( 1 ) ) min z q z (\frac14-o(1))\min_zq_z ( 4 1 − o ( 1 )) min z q z , and E X ≥ ( 1 4 − o ( 1 ) ) min z N z → ∞ \mathbb{E}X\ge(\frac14-o(1))\min_zN_z\to\infty E X ≥ ( 4 1 − o ( 1 )) min z N z → ∞ . □ \square □
Remark C.1 (Adapting to the local Gram matrix). A gate-local rule may use the dual frame w = E I ( E I T E I ) − 1 a w=E_I(E_I^{\mathsf{T}}E_I)^{-1}a w = E I ( E I T E I ) − 1 a , whose clean weights equal a a a exactly. By Theorem 4.2 this cannot lower the first-order expected-error threshold below k V b a l l kV_{\mathrm{ball}} k V ball , and by Theorem 4.1 the canonical rule already attains it: the Gram fluctuations of a canonical probe are absorbed exactly by the chi-square variable J J J of Proposition 3.2.
Proofs for the box
Extremes of a Gaussian sample
Lemma D.1. Let Z 1 , … , Z q Z_1,\ldots,Z_q Z 1 , … , Z q be independent standard Gaussians, q → ∞ q\to\infty q → ∞ , and fix j ≥ 1 j\ge1 j ≥ 1 . The j j j largest values divided by 2 log q \sqrt{2\log q} 2 log q converge to 1 in probability, and so do the j j j smallest values divided by − 2 log q -\sqrt{2\log q} − 2 log q . Their expectations, divided by ± 2 log q \pm\sqrt{2\log q} ± 2 log q , also converge to 1.
Proof. Fix δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and put ℓ = 2 log q \ell= \sqrt{2\log q} ℓ = 2 log q . By (C.1), q Φ ‾ ( ( 1 + δ ) ℓ ) ≤ q − 2 δ − δ 2 → 0 q\overline{\Phi}((1+\delta)\ell) \le q^{-2\delta-\delta^2} \to0 q Φ (( 1 + δ ) ℓ ) ≤ q − 2 δ − δ 2 → 0 , so by a union bound no value exceeds ( 1 + δ ) ℓ (1+\delta)\ell ( 1 + δ ) ℓ with probability tending to one. Also q Φ ‾ ( ( 1 − δ ) ℓ ) ≥ q δ / ( C ℓ ) → ∞ q\overline{\Phi}((1-\delta)\ell) \ge q^{\delta}/(C\ell) \to\infty q Φ (( 1 − δ ) ℓ ) ≥ q δ / ( C ℓ ) → ∞ , so the number of values above ( 1 − δ ) ℓ (1-\delta)\ell ( 1 − δ ) ℓ is binomial with a diverging mean and is at least j j j with probability tending to one. Apply the same argument to − Z -Z − Z . For the expectations, each of these order statistics is at most max i ∣ Z i ∣ \max_i |Z_i| max i ∣ Z i ∣ in modulus, and E max i Z i 2 = ( E max i ∣ Z i ∣ ) 2 + Var ( max i ∣ Z i ∣ ) ≤ 2 log ( 2 q ) + 1 \mathbb{E}\max_i Z_i^2 = (\mathbb{E}\max_i |Z_i|)^2 + \operatorname{Var}(\max_i |Z_i|) \le2\log(2q)+1 E max i Z i 2 = ( E max i ∣ Z i ∣ ) 2 + Var ( max i ∣ Z i ∣ ) ≤ 2 log ( 2 q ) + 1 by the maximal inequality [8 Section 2.5] and the Gaussian Poincaré inequality for the 1-Lipschitz function max i ∣ Z i ∣ \max_i |Z_i| max i ∣ Z i ∣ ; so the ratios are bounded in L 2 L^2 L 2 and hence uniformly integrable. ■
Proof of proposition 5.3
Let c c c be the value claimed in the proposition, that is, c = 2 log ( k D ) c = 2\sqrt{\log(kD)} c = 2 log ( k D ) if D ≤ k D \le k D ≤ k and c = λ 1 + λ D c = \lambda_1+\lambda_D c = λ 1 + λ D if D ≥ k D \ge k D ≥ k . In both cases 2 log ( k D ) ≤ c 2 ≤ 4 log ( k D ) 2\log(kD) \le c^2 \le4\log(kD) 2 log ( k D ) ≤ c 2 ≤ 4 log ( k D ) . Since a = ( 1 , 1 ) a=(1,1) a = ( 1 , 1 ) and G G G has the law of − G -G − G , we may take ζ 10 = 1 \zeta_{10}=1 ζ 10 = 1 ; the class supremum is then V ∗ = max i ∈ S V i V^*=\max_{i\in S} V_i V ∗ = max i ∈ S V i with V i = Z i + M i V_i=Z_i+M_i V i = Z i + M i and M i = max j ∈ C ( i ) W j M_i=\max_{j\in C(i)}W_j M i = max j ∈ C ( i ) W j , and Γ 10 ( S ) = E V ∗ \Gamma_{10}(S)=\mathbb{E}V^* Γ 10 ( S ) = E V ∗ ; the 2 k 2k 2 k variables Z i , M i Z_i,M_i Z i , M i are independent, and each M i M_i M i is the maximum of D D D independent standard Gaussians. For x ≥ 0 x\ge0 x ≥ 0 and u ∈ [ 0 , x ] u\in[0,x] u ∈ [ 0 , x ] put
F x ( u ) = u 2 2 + ( ( x − u ) 2 2 − log D ) + . F_x(u)=\frac{u^2}{2}+\left(\frac{(x-u)^2}{2}-\log D\right)_+. F x ( u ) = 2 u 2 + ( 2 ( x − u ) 2 − log D ) + .
The exponent. On { u ≤ x − λ D } \{u\le x-\lambda_D\} { u ≤ x − λ D } , F x ( u ) = u 2 / 2 + ( x − u ) 2 / 2 − log D F_x(u)=u^2/2+(x-u)^2/2-\log D F x ( u ) = u 2 /2 + ( x − u ) 2 /2 − log D , and on { u ≥ x − λ D } \{u\ge x-\lambda_D\} { u ≥ x − λ D } , F x ( u ) = u 2 / 2 F_x(u)=u^2/2 F x ( u ) = u 2 /2 . Hence min u F x ( u ) = x 2 / 4 − log D \min_u F_x(u)=x^2/4-\log D min u F x ( u ) = x 2 /4 − log D if x ≥ 2 λ D x\ge2\lambda_D x ≥ 2 λ D and ( x − λ D ) 2 / 2 (x-\lambda_D)^2/2 ( x − λ D ) 2 /2 if λ D ≤ x ≤ 2 λ D \lambda_D\le x\le2\lambda_D λ D ≤ x ≤ 2 λ D . If D ≤ k D\le k D ≤ k then c ≥ 2 λ D c\ge2\lambda_D c ≥ 2 λ D and c 2 / 4 − log D = log k c^2/4-\log D=\log k c 2 /4 − log D = log k ; if D ≥ k D\ge k D ≥ k then λ D ≤ c ≤ 2 λ D \lambda_D\le c\le2\lambda_D λ D ≤ c ≤ 2 λ D and ( c − λ D ) 2 / 2 = log k (c-\lambda_D)^2/2=\log k ( c − λ D ) 2 /2 = log k . So min u F c ( u ) = log k \min_u F_c(u)=\log k min u F c ( u ) = log k in both cases. For s ≥ 1 s\ge1 s ≥ 1 , substituting u = s u ′ u=su' u = s u ′ and using s 2 log D ≥ log D s^2\log D\ge\log D s 2 log D ≥ log D gives F s x ( s u ′ ) ≥ s 2 F x ( u ′ ) F_{sx}(su')\ge s^2F_x(u') F s x ( s u ′ ) ≥ s 2 F x ( u ′ ) , hence min u F s c ( u ) ≥ s 2 log k \min_u F_{sc}(u)\ge s^2\log k min u F sc ( u ) ≥ s 2 log k . Maximizing v 1 + v 2 v_1+v_2 v 1 + v 2 over the set K D K_D K D of proposition 5.3 gives the same two cases, so h K D ( 1 , 1 ) = c h_{K_D}(1,1)=c h K D ( 1 , 1 ) = c .
Upper bound. Fix δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , let x = ( 1 + δ ) c x=(1+\delta)c x = ( 1 + δ ) c , L = ⌈ 2 ( 1 + δ ) / δ ⌉ L=\lceil2(1+\delta)/\delta\rceil L = ⌈ 2 ( 1 + δ ) / δ ⌉ and u l = l x / L u_l=lx/L u l = l x / L . If V i > x V_i>x V i > x , then M i > x M_i>x M i > x and Z i ≤ 0 Z_i\le0 Z i ≤ 0 , or Z i ∈ ( u l , u l + 1 ] Z_i\in(u_l,u_{l+1}] Z i ∈ ( u l , u l + 1 ] and M i > x − u l + 1 M_i>x-u_{l+1} M i > x − u l + 1 for some l < L l<L l < L , or Z i > x Z_i>x Z i > x . With Φ ‾ ( v ) ≤ e − v 2 / 2 \overline{\Phi}(v)\le e^{-v^2/2} Φ ( v ) ≤ e − v 2 /2 and P ( M i > v ) ≤ min { 1 , D e − v 2 / 2 } \mathbb{P}(M_i>v)\le\min\{1,De^{-v^2/2}\} P ( M i > v ) ≤ min { 1 , D e − v 2 /2 } for v ≥ 0 v\ge0 v ≥ 0 , and u l + 1 = u l + x / L u_{l+1}=u_l+x/L u l + 1 = u l + x / L ,
k P ( V i > x ) ≤ 2 k D e − x 2 / 2 + k ∑ l < L e − F x − x / L ( u l ) ≤ 2 ( k D ) 1 − ( 1 + δ ) 2 + L k 1 − ( 1 + δ / 2 ) 2 . k\mathbb{P}(V_i>x)\le2kD e^{-x^2/2}+k\sum_{l<L}e^{-F_{x-x/L}(u_l)}\le2(kD)^{1-(1+\delta)^2}+Lk^{1-(1+\delta/2)^2}. k P ( V i > x ) ≤ 2 k D e − x 2 /2 + k l < L ∑ e − F x − x / L ( u l ) ≤ 2 ( k D ) 1 − ( 1 + δ ) 2 + L k 1 − ( 1 + δ /2 ) 2 .
because x 2 ≥ 2 ( 1 + δ ) 2 log ( k D ) x^2\ge2(1+\delta)^2\log(kD) x 2 ≥ 2 ( 1 + δ ) 2 log ( k D ) and x − x / L ≥ ( 1 + δ / 2 ) c x-x/L\ge(1+\delta/2)c x − x / L ≥ ( 1 + δ /2 ) c . Both terms tend to zero, so P ( V ∗ > ( 1 + δ ) c ) → 0 \mathbb{P}(V^*>(1+\delta)c)\to0 P ( V ∗ > ( 1 + δ ) c ) → 0 .
Lower bound. If D ≥ k D\ge k D ≥ k , let i ∗ i^* i ∗ maximize Z i Z_i Z i . By lemma D.1, Z i ∗ ≥ ( 1 − δ ) λ 1 Z_{i^*}\ge(1-\delta)\lambda_1 Z i ∗ ≥ ( 1 − δ ) λ 1 with probability tending to one, and M i ∗ M_{i^*} M i ∗ is independent of ( Z i ) (Z_i) ( Z i ) and at least ( 1 − δ ) λ D (1-\delta)\lambda_D ( 1 − δ ) λ D with probability tending to one because D ≥ k → ∞ D\ge k\to\infty D ≥ k → ∞ ; hence V ∗ ≥ ( 1 − δ ) c V^*\ge(1-\delta)c V ∗ ≥ ( 1 − δ ) c . If D ≤ k D\le k D ≤ k , let y = ( 1 − δ ) log ( k D ) y=(1-\delta)\sqrt{\log(kD)} y = ( 1 − δ ) log ( k D ) and let N N N count the i i i with Z i ≥ y Z_i\ge y Z i ≥ y and M i ≥ y M_i\ge y M i ≥ y , a binomial variable with success probability p = Φ ‾ ( y ) P ( M 1 ≥ y ) p=\overline{\Phi}(y)\mathbb{P}(M_1\ge y) p = Φ ( y ) P ( M 1 ≥ y ) . Since P ( M 1 ≥ y ) = 1 − ( 1 − Φ ‾ ( y ) ) D ≥ 1 2 min { 1 , D Φ ‾ ( y ) } \mathbb{P}(M_1\ge y)=1-(1-\overline{\Phi}(y))^D\ge\frac12\min\{1,D\overline{\Phi}(y)\} P ( M 1 ≥ y ) = 1 − ( 1 − Φ ( y ) ) D ≥ 2 1 min { 1 , D Φ ( y )} , Φ ‾ ( y ) ≥ e − y 2 / 2 / ( C ( 1 + y ) ) \overline{\Phi}(y)\ge e^{-y^2/2}/(C(1+y)) Φ ( y ) ≥ e − y 2 /2 / ( C ( 1 + y )) and k D ≤ k 2 kD\le k^2 k D ≤ k 2 ,
k p ≥ 1 2 min { ( k D ) 1 − ( 1 − δ ) 2 C 2 ( 1 + y ) 2 , k 1 − ( 1 − δ ) 2 C ( 1 + y ) } → ∞ , kp\ge\frac12\min\left\{\frac{(kD)^{1-(1-\delta)^2}}{C^2(1+y)^2},\frac{k^{1-(1-\delta)^2}}{C(1+y)}\right\}\to\infty, k p ≥ 2 1 min { C 2 ( 1 + y ) 2 ( k D ) 1 − ( 1 − δ ) 2 , C ( 1 + y ) k 1 − ( 1 − δ ) 2 } → ∞ ,
so P ( N ≥ 1 ) → 1 \mathbb{P}(N\ge1)\to1 P ( N ≥ 1 ) → 1 , and on { N ≥ 1 } \{N\ge1\} { N ≥ 1 } , V ∗ ≥ 2 y = ( 1 − δ ) c V^*\ge2y=(1-\delta)c V ∗ ≥ 2 y = ( 1 − δ ) c .
Expectations. ∣ V ∗ ∣ ≤ max i ∣ Z i ∣ + max j ∣ W j ∣ |V^*| \le\max_i |Z_i| + \max_j |W_j| ∣ V ∗ ∣ ≤ max i ∣ Z i ∣ + max j ∣ W j ∣ , the second maximum over the k D kD k D partner reads, so the bound in the proof of lemma D.1 gives E ( V ∗ ) 2 ≤ 4 log ( 2 k ) + 4 log ( 2 k D ) + 4 = O ( c 2 ) \mathbb{E}(V^*)^2 \le4\log(2k) + 4\log(2kD) + 4 = O(c^2) E ( V ∗ ) 2 ≤ 4 log ( 2 k ) + 4 log ( 2 k D ) + 4 = O ( c 2 ) . By Cauchy–Schwarz, E ( V ∗ − ( 1 + δ ) c ) + \mathbb{E}(V^* - (1+\delta)c)_+ E ( V ∗ − ( 1 + δ ) c ) + and E ( ( 1 − δ ) c − V ∗ ) + \mathbb{E}((1-\delta)c - V^*)_+ E (( 1 − δ ) c − V ∗ ) + are at most O ( c ) O(c) O ( c ) times the square roots of P ( V ∗ > ( 1 + δ ) c ) \mathbb{P}(V^* > (1+\delta)c) P ( V ∗ > ( 1 + δ ) c ) and P ( V ∗ < ( 1 − δ ) c ) \mathbb{P}(V^* < (1-\delta)c) P ( V ∗ < ( 1 − δ ) c ) , which tend to zero. Hence ( 1 − δ ) c − o ( c ) ≤ Γ 10 ( S ) ≤ ( 1 + δ ) c + o ( c ) (1-\delta)c - o(c) \le\Gamma_{10}(S) \le(1+\delta)c + o(c) ( 1 − δ ) c − o ( c ) ≤ Γ 10 ( S ) ≤ ( 1 + δ ) c + o ( c ) for every δ \delta δ .
Proof of Theorem 5.4
Work in the representation of Theorem 3.1 and let G ∈ R m G \in\mathbb{R}^m G ∈ R m collect Z Z Z on S S S and W W W off S S S . By proposition B.1, for every realization and every representation ( a , θ ) (a,\theta) ( a , θ ) the strict criterion
σ d H ( T z ( a ) − ζ z Z ‾ ⟨ a , z ⟩ ) < s z ( a , θ ) + ( 2 g ( z ) − 1 ) ( H − 1 ) ⟨ a , z ⟩ for all z , (19) \sigma_d\sqrt{H}\left(T_z(a)-\zeta_z\overline{Z}\langle a,z\rangle\right)<s_z(a,\theta)+(2g(z)-1)(H-1)\langle a,z\rangle\quad\text{for all }z, \tag*{(19)} σ d H ( T z ( a ) − ζ z Z ⟨ a , z ⟩ ) < s z ( a , θ ) + ( 2 g ( z ) − 1 ) ( H − 1 ) ⟨ a , z ⟩ for all z , (19)
where T z ( a ) = max I ∈ F z ( S ) ⟨ ζ z a , G I ⟩ T_z(a)=\max_{I\in\mathcal{F}_z(S)}\langle\zeta_z a,G_I\rangle T z ( a ) = max I ∈ F z ( S ) ⟨ ζ z a , G I ⟩ , implies X a , θ = 0 X_{a,\theta}=0 X a , θ = 0 , and X a , θ = 0 X_{a,\theta}=0 X a , θ = 0 implies (D.1) with < < < replaced by ≤ \le ≤ . The success statements use the first implication and the failure statements only the second, so no almost-sure qualification over the uncountably many representations is needed. By lemma B.2 applied to ξ = G \xi=G ξ = G and b = ζ z a b=\zeta_z a b = ζ z a , T z ( a ) T_z(a) T z ( a ) is a sum over the positions of ∣ a l ∣ |a_l| ∣ a l ∣ times one of the r r r largest values of G G G or of − G -G − G in the pool of that position, the values being assigned by rearrangement. Both pools have at least r r r elements for large k k k , so lemma B.2 applies to every class.
Fix δ ∈ ( 0 , 1 / 8 ) \delta\in(0,1/8) δ ∈ ( 0 , 1/8 ) and let E δ \mathcal{E}_\delta E δ be the event on which (i) the r r r largest and the r r r smallest values of ( Z i ) i ≤ k (Z_i)_{i\le k} ( Z i ) i ≤ k lie within a factor 1 ± δ 1\pm\delta 1 ± δ of ± λ 1 \pm\lambda_1 ± λ 1 , and those of ( W j ) j ≤ n (W_j)_{j\le n} ( W j ) j ≤ n within a factor 1 ± δ 1\pm\delta 1 ± δ of ± λ 0 \pm\lambda_0 ± λ 0 ; (ii) ∣ Z ‾ ∣ ≤ δ λ 1 |\overline{Z}|\le\delta\lambda_1 ∣ Z ∣ ≤ δ λ 1 ; (iii) ∣ H − 1 ∣ ≤ δ σ d λ 1 |H-1|\le\delta\sigma_d\lambda_1 ∣ H − 1∣ ≤ δ σ d λ 1 ; and (iv) ∣ H − 1 ∣ ≤ δ |\sqrt{H}-1|\le\delta ∣ H − 1∣ ≤ δ . By lemma D.1, (i) and (ii) hold with probability tending to one. For (iii), Chebyshev’s inequality gives P ( ∣ H − 1 ∣ > δ σ d λ 1 ) ≤ ( 2 / d ) / ( δ 2 k λ 1 2 / d ) = 2 / ( δ 2 k λ 1 2 ) → 0 \mathbb{P}(|H-1|>\delta\sigma_d\lambda_1)\le(2/d)/(\delta^2k\lambda_1^2/d)=2/(\delta^2k\lambda_1^2)\to0 P ( ∣ H − 1∣ > δ σ d λ 1 ) ≤ ( 2/ d ) / ( δ 2 k λ 1 2 / d ) = 2/ ( δ 2 k λ 1 2 ) → 0 , for every d d d . Condition (iv) holds with probability tending to one when d → ∞ d\to\infty d → ∞ ; we return to bounded d d d at the end.
On E δ \mathcal{E}_\delta E δ , for every a ≠ 0 a\ne0 a = 0 and every class, (i) gives T z ( a ) ∈ [ 1 − δ , 1 + δ ] h B o x z ( a ) T_z(a)\in[1-\delta,1+\delta]h_{\mathrm{Box}_z}(a) T z ( a ) ∈ [ 1 − δ , 1 + δ ] h Box z ( a ) . Since λ 0 ≥ λ 1 \lambda_0\ge\lambda_1 λ 0 ≥ λ 1 eventually, h B o x z ( a ) ≥ λ 1 ∥ a ∥ 1 ≥ λ 1 ∣ ⟨ a , z ⟩ ∣ h_{\mathrm{Box}_z}(a)\ge\lambda_1\|a\|_1\ge\lambda_1|\langle a,z\rangle| h Box z ( a ) ≥ λ 1 ∥ a ∥ 1 ≥ λ 1 ∣ ⟨ a , z ⟩ ∣ , so by (ii) ∣ Z ‾ ⟨ a , z ⟩ ∣ ≤ δ h B o x z ( a ) |\overline{Z}\langle a,z\rangle|\le\delta h_{\mathrm{Box}_z}(a) ∣ Z ⟨ a , z ⟩ ∣ ≤ δ h Box z ( a ) and by (iii) ∣ ( H − 1 ) ⟨ a , z ⟩ ∣ ≤ δ σ d h B o x z ( a ) |(H-1)\langle a,z\rangle|\le\delta\sigma_d h_{\mathrm{Box}_z}(a) ∣ ( H − 1 ) ⟨ a , z ⟩ ∣ ≤ δ σ d h Box z ( a ) . With (iv), the non-strict form of (D.1) implies s z ≥ ( 1 − δ ) ( 1 − 2 δ ) σ d h B o x z ( a ) − δ σ d h B o x z ( a ) ≥ ( 1 − 4 δ ) σ d h B o x z ( a ) s_z\ge(1-\delta)(1-2\delta)\sigma_d h_{\mathrm{Box}_z}(a)-\delta\sigma_d h_{\mathrm{Box}_z}(a)\ge(1-4\delta)\sigma_d h_{\mathrm{Box}_z}(a) s z ≥ ( 1 − δ ) ( 1 − 2 δ ) σ d h Box z ( a ) − δ σ d h Box z ( a ) ≥ ( 1 − 4 δ ) σ d h Box z ( a ) for all z z z , and it is implied by s z ≥ ( 1 + 5 δ ) σ d h B o x z ( a ) s_z\ge(1+5\delta)\sigma_d h_{\mathrm{Box}_z}(a) s z ≥ ( 1 + 5 δ ) σ d h Box z ( a ) for all z z z , since then the left side is at most ( 1 + δ ) ( 1 + 2 δ ) σ d h B o x z ( a ) (1+\delta)(1+2\delta)\sigma_d h_{\mathrm{Box}_z}(a) ( 1 + δ ) ( 1 + 2 δ ) σ d h Box z ( a ) and the right side at least ( 1 + 4 δ ) σ d h B o x z ( a ) (1+4\delta)\sigma_d h_{\mathrm{Box}_z}(a) ( 1 + 4 δ ) σ d h Box z ( a ) . These two implications hold simultaneously for all representations, because E δ \mathcal{E}_\delta E δ does not depend on ( a , θ ) (a,\theta) ( a , θ ) .
(i) If d ≥ ( 1 + ε ) D b o x ( a , θ ) d\ge(1+\varepsilon)D_{\mathrm{box}}(a,\theta) d ≥ ( 1 + ε ) D box ( a , θ ) , every class has s z ≥ 1 + ε σ d h B o x z ( a ) s_z\ge\sqrt{1+\varepsilon}\,\sigma_d h_{\mathrm{Box}_z}(a) s z ≥ 1 + ε σ d h Box z ( a ) , which exceeds ( 1 + 5 δ ) σ d h B o x z ( a ) (1+5\delta)\sigma_d h_{\mathrm{Box}_z}(a) ( 1 + 5 δ ) σ d h Box z ( a ) once δ \delta δ is small; so X a , θ = 0 X_{a,\theta}=0 X a , θ = 0 on E δ \mathcal{E}_\delta E δ . Here d ≥ D b o x ≥ 4 k λ 1 2 → ∞ d\ge D_{\mathrm{box}}\ge4k\lambda_1^2\to\infty d ≥ D box ≥ 4 k λ 1 2 → ∞ (see below), so (iv) is available. If d ≤ ( 1 − ε ) D b o x ( a , θ ) d\le(1-\varepsilon)D_{\mathrm{box}}(a,\theta) d ≤ ( 1 − ε ) D box ( a , θ ) , some class has s z ≤ 1 − ε σ d h B o x z ( a ) < ( 1 − 4 δ ) σ d h B o x z ( a ) s_z\le\sqrt{1-\varepsilon}\,\sigma_d h_{\mathrm{Box}_z}(a)<(1-4\delta)\sigma_d h_{\mathrm{Box}_z}(a) s z ≤ 1 − ε σ d h Box z ( a ) < ( 1 − 4 δ ) σ d h Box z ( a ) , so X a , θ ≠ 0 X_{a,\theta}\ne0 X a , θ = 0 on E δ \mathcal{E}_\delta E δ .
(ii) If d ≤ ( 1 − ε ) k V b o x d\le(1-\varepsilon)kV_{\mathrm{box}} d ≤ ( 1 − ε ) k V box , every representation has D b o x ( a , θ ) ≥ k V b o x ≥ d / ( 1 − ε ) D_{\mathrm{box}}(a,\theta)\ge kV_{\mathrm{box}}\ge d/(1-\varepsilon) D box ( a , θ ) ≥ k V box ≥ d / ( 1 − ε ) , so the previous argument applies to all of them at once on E δ \mathcal{E}_\delta E δ .
(iii) By lemma B.2, Γ z = E T z ( a ) \Gamma_z=\mathbb{E}T_z(a) Γ z = E T z ( a ) is a combination of expectations of the r r r largest values of ± G \pm G ± G in the two pools with coefficients ∣ a l ∣ |a_l| ∣ a l ∣ , and lemma D.1 gives Γ z = h B o x z ( a ) ( 1 + o ( 1 ) ) \Gamma_z=h_{\mathrm{Box}_z}(a)(1+o(1)) Γ z = h Box z ( a ) ( 1 + o ( 1 )) uniformly in a a a .
Small dimensions. Because g g g is nonconstant, some edge of the cube joins a class z z z with g ( z ) = 1 g(z)=1 g ( z ) = 1 to a class z ′ z' z ′ with g ( z ′ ) = 0 g(z')=0 g ( z ′ ) = 0 ; they differ in one position l l l , so s z + s z ′ = ∣ a l ∣ ≤ ∥ a ∥ 1 s_z+s_{z'}=|a_l|\le\|a\|_1 s z + s z ′ = ∣ a l ∣ ≤ ∥ a ∥ 1 and s z H + s z ′ H = H ⟨ a , z − z ′ ⟩ ≤ H ∥ a ∥ 1 s_z^H+s_{z'}^H=H\langle a,z-z'\rangle\le H\|a\|_1 s z H + s z ′ H = H ⟨ a , z − z ′ ⟩ ≤ H ∥ a ∥ 1 . Since h B o x z ( a ) ≥ λ 1 ∥ a ∥ 1 h_{\mathrm{Box}_z}(a)\ge\lambda_1\|a\|_1 h Box z ( a ) ≥ λ 1 ∥ a ∥ 1 for every class, the first identity gives D b o x ( a , θ ) ≥ 4 k λ 1 2 D_{\mathrm{box}}(a,\theta) \ge4k\lambda_1^2 D box ( a , θ ) ≥ 4 k λ 1 2 for every representation; in particular d → ∞ d \to\infty d → ∞ in the first half of (i). Adding the two non-strict criteria for z z z and z ′ z' z ′ shows that success requires σ d H ( M z + M z ′ ) ≤ H ∥ a ∥ 1 \sigma_d\sqrt{H}(M_z+M_{z'}) \le H\lVert a\rVert_1 σ d H ( M z + M z ′ ) ≤ H ∥ a ∥ 1 , with M z = T z ( a ) − ζ z Z ‾ ⟨ a , z ⟩ M_z=T_z(a)-\zeta_z\overline{Z}\langle a,z\rangle M z = T z ( a ) − ζ z Z ⟨ a , z ⟩ . On the event (i)–(ii), M z + M z ′ ≥ 2 ( 1 − 2 δ ) λ 1 ∥ a ∥ 1 M_z+M_{z'} \ge2(1-2\delta)\lambda_1\lVert a\rVert_1 M z + M z ′ ≥ 2 ( 1 − 2 δ ) λ 1 ∥ a ∥ 1 , so success requires H ≥ 4 ( 1 − 2 δ ) 2 λ 1 2 k / d H \ge4(1-2\delta)^2\lambda_1^2k/d H ≥ 4 ( 1 − 2 δ ) 2 λ 1 2 k / d . Along subsequences with bounded d d d this has probability tending to zero, simultaneously for all representations, which completes the failure statements in (i) and (ii) without (iv). □
Remark D.2 (What the converse covers). The event E δ \mathcal{E}_\delta E δ does not depend on ( a , θ ) (a,\theta) ( a , θ ) , and on it every common representation fails. The converse in Theorem 5.4 (ii) therefore covers any common representation, including one chosen after observing ( A i ) (A_i) ( A i ) and ( B j ) (B_j) ( B j ) , for instance the sample-adaptive bias recorded as an oracle in Appendix § 24 . It does not cover rules in which different gates use different weights; for those, Theorem 4.2 bounds only the expected count from below, and no lower bound on their reliability threshold is known.
Proofs for threshold gates
Proof of Theorem 6.1
By proposition B.3 it suffices, for the optimized thresholds, to consider a = 1 a=1 a = 1 ; for the midpoint thresholds a = 1 a=1 a = 1 by definition. With a = 1 a=1 a = 1 , all classes with j j j active inputs have clean score j j j , box support h j = j λ 1 + ( r − j ) λ 0 h_j=j\lambda_1+(r-j)\lambda_0 h j = j λ 1 + ( r − j ) λ 0 and ball support r ρ z \sqrt{r}\,\rho_z r ρ z with ρ z 2 = 2 log N z = ρ j 2 ( 1 + o ( 1 ) ) \rho_z^2=2\log N_z=\rho_j^2(1+o(1)) ρ z 2 = 2 log N z = ρ j 2 ( 1 + o ( 1 )) , where ρ j 2 = j λ 1 2 + ( r − j ) λ 0 2 \rho_j^2=j\lambda_1^2+(r-j)\lambda_0^2 ρ j 2 = j λ 1 2 + ( r − j ) λ 0 2 . A bias represents T H R r \mathrm{THR}_r THR r if and only if θ ∈ ( t − 1 , t ) \theta\in(t-1,t) θ ∈ ( t − 1 , t ) , and then the margins are s j = θ − j s_j=\theta-j s j = θ − j for j ≤ t − 1 j\le t-1 j ≤ t − 1 and s j = j − θ s_j=j-\theta s j = j − θ for j ≥ t j\ge t j ≥ t . Since λ 0 ≥ λ 1 \lambda_0\ge\lambda_1 λ 0 ≥ λ 1 , both h j h_j h j and ρ j \rho_j ρ j decrease in j j j .
Only the classes t − 1 t-1 t − 1 and t t t bind. For j = t − 1 − i j=t-1-i j = t − 1 − i with i ≥ 1 i\ge1 i ≥ 1 , s j = s t − 1 + i s_j=s_{t-1}+i s j = s t − 1 + i and h j = h t − 1 + i ( λ 0 − λ 1 ) h_j=h_{t-1}+i(\lambda_0-\lambda_1) h j = h t − 1 + i ( λ 0 − λ 1 ) , so h j / s j ≤ max { h t − 1 / s t − 1 , λ 0 − λ 1 } h_j/s_j\le\max\{h_{t-1}/s_{t-1},\lambda_0-\lambda_1\} h j / s j ≤ max { h t − 1 / s t − 1 , λ 0 − λ 1 } . For j = t + i j=t+i j = t + i , s j = s t + i s_j=s_t+i s j = s t + i and h j ≤ h t h_j\le h_t h j ≤ h t , so h j / s j ≤ h t / s t h_j/s_j\le h_t/s_t h j / s j ≤ h t / s t . Since s t − 1 < 1 s_{t-1}<1 s t − 1 < 1 and h t − 1 ≥ λ 0 > λ 0 − λ 1 h_{t-1}\ge\lambda_0>\lambda_0-\lambda_1 h t − 1 ≥ λ 0 > λ 0 − λ 1 , the first maximum is h t − 1 / s t − 1 h_{t-1}/s_{t-1} h t − 1 / s t − 1 : the classes below t − 1 t-1 t − 1 never exceed the ratio of class t − 1 t-1 t − 1 . For the ball the same argument uses ρ j 2 = ρ t − 1 2 + i ( λ 0 2 − λ 1 2 ) ≤ ρ t − 1 2 + i λ 0 2 ≤ ( 1 + i ) ρ t − 1 2 \rho_j^2=\rho_{t-1}^2+i(\lambda_0^2-\lambda_1^2)\le\rho_{t-1}^2+i\lambda_0^2\le(1+i)\rho_{t-1}^2 ρ j 2 = ρ t − 1 2 + i ( λ 0 2 − λ 1 2 ) ≤ ρ t − 1 2 + i λ 0 2 ≤ ( 1 + i ) ρ t − 1 2 , so ρ j / s j ≤ 1 + i ρ t − 1 / ( s t − 1 + i ) ≤ ρ t − 1 / ( 2 s t − 1 ) \rho_j/s_j\le\sqrt{1+i}\,\rho_{t-1}/(s_{t-1}+i)\le\rho_{t-1}/(\sqrt{2}s_{t-1}) ρ j / s j ≤ 1 + i ρ t − 1 / ( s t − 1 + i ) ≤ ρ t − 1 / ( 2 s t − 1 ) because s t − 1 ≤ 1 s_{t-1}\le1 s t − 1 ≤ 1 ; the classes above t t t satisfy ρ j / s j ≤ ρ t / ( 2 s t ) \rho_j/s_j\le\rho_t/(2s_t) ρ j / s j ≤ ρ t / ( 2 s t ) . These strict factors absorb the 1 + o ( 1 ) 1+o(1) 1 + o ( 1 ) difference between ρ z \rho_z ρ z and ρ ∣ z ∣ \rho_{\lvert z\rvert} ρ ∣ z ∣ .
(a) Equalizing h t − 1 / ( θ − t + 1 ) = h t / ( t − θ ) h_{t-1}/(\theta-t+1)=h_t/(t-\theta) h t − 1 / ( θ − t + 1 ) = h t / ( t − θ ) gives θ − t + 1 = h t − 1 / ( h t − 1 + h t ) \theta-t+1=h_{t-1}/(h_{t-1}+h_t) θ − t + 1 = h t − 1 / ( h t − 1 + h t ) and the common value h t − 1 + h t = ( 2 t − 1 ) λ 1 + ( 2 r − 2 t + 1 ) λ 0 h_{t-1}+h_t=(2t-1)\lambda_1+(2r-2t+1)\lambda_0 h t − 1 + h t = ( 2 t − 1 ) λ 1 + ( 2 r − 2 t + 1 ) λ 0 ; any other bias increases one of the two ratios. Hence V b o x = ( ( 2 t − 1 ) λ 1 + ( 2 r − 2 t + 1 ) λ 0 ) 2 V_{\mathrm{box}}=((2t-1)\lambda_1+(2r-2t+1)\lambda_0)^2 V box = (( 2 t − 1 ) λ 1 + ( 2 r − 2 t + 1 ) λ 0 ) 2 exactly. For the half-slack bias θ d = t − 1 2 + 1 2 σ d ( λ ^ 0 − λ ^ 1 ) \theta_d=t-\frac12+\frac12\sigma_d(\widehat{\lambda}_0-\widehat{\lambda}_1) θ d = t − 2 1 + 2 1 σ d ( λ 0 − λ 1 ) put h ^ j = j λ ^ 1 + ( r − j ) λ ^ 0 = h j ( 1 + o ( 1 ) ) \widehat{h}_j=j\widehat{\lambda}_1+(r-j)\widehat{\lambda}_0=h_j(1+o(1)) h j = j λ 1 + ( r − j ) λ 0 = h j ( 1 + o ( 1 )) ; one checks s t − 1 − σ d h ^ t − 1 = s t − σ d h ^ t = 1 2 ( 1 − σ d ( h ^ t − 1 + h ^ t ) ) s_{t-1}-\sigma_d\widehat{h}_{t-1}=s_t-\sigma_d\widehat{h}_t=\frac12(1-\sigma_d(\widehat{h}_{t-1}+\widehat{h}_t)) s t − 1 − σ d h t − 1 = s t − σ d h t = 2 1 ( 1 − σ d ( h t − 1 + h t )) .
If d ≥ ( 1 + ε ) k V b o x d\ge(1+\varepsilon)kV_{\mathrm{box}} d ≥ ( 1 + ε ) k V box , then σ d ( h ^ t − 1 + h ^ t ) ≤ ( 1 + ε ) − 1 / 2 ( 1 + o ( 1 ) ) \sigma_d(\widehat{h}_{t-1}+\widehat{h}_t)\le(1+\varepsilon)^{-1/2}(1+o(1)) σ d ( h t − 1 + h t ) ≤ ( 1 + ε ) − 1/2 ( 1 + o ( 1 )) , so both binding classes, and by the first step all classes, satisfy s j ≥ ( 1 + η ε ) σ d h ^ j s_j\ge(1+\eta_\varepsilon)\sigma_d\widehat{h}_j s j ≥ ( 1 + η ε ) σ d h j for some η ε > 0 \eta_\varepsilon>0 η ε > 0 and all large k k k ; that is, D b o x ( 1 , θ d ) ≤ d / ( 1 + η ε ) 2 D_{\mathrm{box}}(1,\theta_d)\le d/(1+\eta_\varepsilon)^2 D box ( 1 , θ d ) ≤ d / ( 1 + η ε ) 2 , and Theorem 5.4 (i) applies. The same argument applies with λ p \lambda_p λ p in place of λ ^ p \widehat{\lambda}_p λ p . The converse is Theorem 5.4 (ii).
(b) At θ = t − 1 2 \theta=t-\frac12 θ = t − 2 1 both binding margins equal 1 2 \frac12 2 1 and h t − 1 ≥ h t h_{t-1}\ge h_t h t − 1 ≥ h t , so D b o x = k ( 2 h t − 1 ) 2 D_{\mathrm{box}}=k(2h_{t-1})^2 D box = k ( 2 h t − 1 ) 2 , and Theorem 5.4 (i) gives the threshold.
(c) At the midpoint the binding ball ratio is 2 r ρ t − 1 2\sqrt{r}\rho_{t-1} 2 r ρ t − 1 , so D b a l l = 4 r k ρ t − 1 2 ( 1 + o ( 1 ) ) D_{\mathrm{ball}}=4rk\rho_{t-1}^2(1+o(1)) D ball = 4 r k ρ t − 1 2 ( 1 + o ( 1 )) and Theorem 4.1 gives the threshold.
(d) Equalizing r ρ t − 1 / ( θ − t + 1 ) = r ρ t / ( t − θ ) \sqrt{r}\rho_{t-1}/(\theta-t+1)=\sqrt{r}\rho_t/(t-\theta) r ρ t − 1 / ( θ − t + 1 ) = r ρ t / ( t − θ ) gives θ − t + 1 = ρ t − 1 / ( ρ t − 1 + ρ t ) \theta-t+1=\rho_{t-1}/(\rho_{t-1}+\rho_t) θ − t + 1 = ρ t − 1 / ( ρ t − 1 + ρ t ) and V b a l l = r ( ρ t − 1 + ρ t ) 2 ( 1 + o ( 1 ) ) V_{\mathrm{ball}}=r(\rho_{t-1}+\rho_t)^2(1+o(1)) V ball = r ( ρ t − 1 + ρ t ) 2 ( 1 + o ( 1 )) . Theorem 4.1 at this bias and Theorem 4.2 give achievability and the gate-local converse. □
For β → 1 \beta\to1 β → 1 every h j h_j h j equals r λ 1 ( 1 + o ( 1 ) ) r\lambda_1(1+o(1)) r λ 1 ( 1 + o ( 1 )) and every ρ j \rho_j ρ j equals r λ 1 ( 1 + o ( 1 ) ) \sqrt{r}\lambda_1(1+o(1)) r λ 1 ( 1 + o ( 1 )) , which gives the first statement of corollary 6.2; dividing (a)–(d) by λ 0 2 \lambda_0^2 λ 0 2 and letting β → ∞ \beta\to\infty β → ∞ gives the second. For corollary 6.3, r = t = 1 r=t=1 r = t = 1 gives h 0 + h 1 = ρ 0 + ρ 1 = λ 0 + λ 1 h_0+h_1=\rho_0+\rho_1=\lambda_0+\lambda_1 h 0 + h 1 = ρ 0 + ρ 1 = λ 0 + λ 1 , and the ratio ( ( 2 r − 1 + β ) / ( 1 + β ) ) 2 \left((2r-1+\beta)/(1+\beta)\right)^2 ( ( 2 r − 1 + β ) / ( 1 + β ) ) 2 has derivative of the sign of 2 − 2 r ≤ 0 2-2r\le0 2 − 2 r ≤ 0 in β \beta β .
Unweighted margins of symmetric gates
For a representation ( a , θ ) (a,\theta) ( a , θ ) write τ = min z s z ( a , θ ) \tau=\min_z s_z(a,\theta) τ = min z s z ( a , θ ) and κ = τ 2 / ( 2 ∥ a ∥ 2 ) \kappa=\tau^2/(2\lVert a\rVert^2) κ = τ 2 / ( 2 ∥ a ∥ 2 ) , the unweighted margin rate ; its supremum κ ∗ ( g ) \kappa^*(g) κ ∗ ( g ) over representations is the price of g g g when all classes are equally numerous. For THR r t \operatorname{THR}_r^t THR r t , the representation a = 1 a=1 a = 1 , θ = t − 1 2 \theta=t-\frac{1}{2} θ = t − 2 1 has τ = 1 2 \tau=\frac{1}{2} τ = 2 1 and κ = 1 / ( 8 r ) \kappa=1/(8r) κ = 1/ ( 8 r ) . It is optimal: for each position j j j choose a pattern of weight t − 1 t-1 t − 1 that excludes j j j ; turning j j j on changes the output, so a j = s z + s z + e j ≥ 2 τ a_j=s_z+s_{z+e_j}\ge2\tau a j = s z + s z + e j ≥ 2 τ , and ∥ a ∥ 2 ≥ 4 r τ 2 \lVert a\rVert^2\ge4r\tau^2 ∥ a ∥ 2 ≥ 4 r τ 2 . Thus conjunction, disjunction and majority have the same unweighted rate 1 / ( 8 r ) 1/(8r) 1/ ( 8 r ) ; their weighted prices differ because their class sizes differ.
Comparators
The comparator at threshold T ∈ { 1 , … , 2 r − 1 } T\in\{1,\ldots,2^r-1\} T ∈ { 1 , … , 2 r − 1 } is COMP r T ( z ) = 1 { ∑ l = 1 r 2 l − 1 z l ≥ T } \operatorname{COMP}_r^T(z)=1\{\sum_{l=1}^r 2^{l-1}z_l\ge T\} COMP r T ( z ) = 1 { ∑ l = 1 r 2 l − 1 z l ≥ T } . Its unweighted rate depends on T T T , because T T T selects a Boolean function and different functions have different best representations.
Binary weights realize every threshold. With a = ( 1 , 2 , … , 2 r − 1 ) a=(1,2,\ldots,2^{r-1}) a = ( 1 , 2 , … , 2 r − 1 ) , ∥ a ∥ 2 = ( 4 r − 1 ) / 3 \lVert a\rVert^2=(4^r-1)/3 ∥ a ∥ 2 = ( 4 r − 1 ) /3 . The subset sums of distinct powers of two are all integers 0 , … , 2 r − 1 0,\ldots,2^r-1 0 , … , 2 r − 1 , so the bias T − 1 2 T-\frac{1}{2} T − 2 1 has τ = 1 2 \tau=\frac{1}{2} τ = 2 1 , and
κ = ( 1 / 2 ) 2 2 ( 4 r − 1 ) / 3 = 3 8 ( 4 r − 1 ) = Θ ( 4 − r ) . (20) \kappa=\frac{(1/2)^2}{2(4^r-1)/3}=\frac{3}{8(4^r-1)}=\Theta(4^{-r}). \tag*{(20)} κ = 2 ( 4 r − 1 ) /3 ( 1/2 ) 2 = 8 ( 4 r − 1 ) 3 = Θ ( 4 − r ) . (20)
This is the rate of a representation, not of the gate: the dictator T = 2 r − 1 T=2^{r-1} T = 2 r − 1 is the function z r z_r z r of one input, with κ ∗ = 1 / 8 \kappa^*=1/8 κ ∗ = 1/8 , and for the hardest thresholds the best representation is not binary.
The hardest thresholds have Fibonacci weights. Let F 1 = F 2 = 1 F_1=F_2=1 F 1 = F 2 = 1 and F i + 1 = F i + F i − 1 F_{i+1}=F_i+F_{i-1} F i + 1 = F i + F i − 1 . The alternating threshold T r = ( 2 r + 1 + ( − 1 ) r ) / 3 T_r=(2^{r+1}+(-1)^r)/3 T r = ( 2 r + 1 + ( − 1 ) r ) /3 and its Boolean dual attain
κ ∗ ( COMP r T r ) = 1 8 F r F r + 1 = Θ ( ( 3 + 5 2 ) − r ) , (21) \kappa^*(\operatorname{COMP}_r^{T_r})=\frac{1}{8F_rF_{r+1}}=\Theta\left(\left(\frac{3+\sqrt{5}}{2}\right)^{-r}\right), \tag*{(21)} κ ∗ ( COMP r T r ) = 8 F r F r + 1 1 = Θ ( ( 2 3 + 5 ) − r ) , (21)
The representation a i = 2 F i a_i=2F_i a i = 2 F i has minimum margin one and ∥ a ∥ 2 = 4 ∑ i F i 2 = 4 F r F r + 1 \lVert a\rVert^2=4\sum_i F_i^2=4F_rF_{r+1} ∥ a ∥ 2 = 4 ∑ i F i 2 = 4 F r F r + 1 . The following induction proves its optimality and that no other comparator threshold has a smaller optimal rate.
Every comparator has a bounded Fibonacci representation. Trailing zero bits of T T T make the lowest inputs irrelevant, so assume the lowest bit of T T T is one. Starting from the least significant one bit, the comparator is a nested monotone chain h 1 = z 1 h_1=z_1 h 1 = z 1 , h i = z i ∘ i h i − 1 h_i=z_i\mathbin{\circ_i}h_{i-1} h i = z i ∘ i h i − 1 , where ∘ i \circ_i ∘ i is AND for a one bit of T T T and OR for a zero bit. Let P i P_i P i be the minimum accepted weighted sum of the prefix, Q i Q_i Q i the maximum rejected sum, and A i A_i A i the sum of the prefix weights; maintain P i − Q i = 1 P_i-Q_i=1 P i − Q i = 1 and write D i = A i − P i D_i=A_i-P_i D i = A i − P i , E i = Q i E_i=Q_i E i = Q i . Start with a 1 = 1 a_1=1 a 1 = 1 , D 1 = E 1 = 0 D_1=E_1=0 D 1 = E 1 = 0 . An AND step sets a i = D i − 1 + 1 a_i=D_{i-1}+1 a i = D i − 1 + 1 , after which D i = D i − 1 D_i=D_{i-1} D i = D i − 1 and E i = A i − 1 E_i=A_{i-1} E i = A i − 1 ; an OR step sets a i = E i − 1 + 1 a_i=E_{i-1}+1 a i = E i − 1 + 1 , after which D i = A i − 1 D_i=A_{i-1} D i = A i − 1 and E i = E i − 1 E_i=E_{i-1} E i = E i − 1 . These identities follow from the two values of z i z_i z i : AND has P i = a i + P i − 1 P_i=a_i+P_{i-1} P i = a i + P i − 1 and Q i = max { A i − 1 , a i + Q i − 1 } Q_i=\max\{A_{i-1},a_i+Q_{i-1}\} Q i = max { A i − 1 , a i + Q i − 1 } , and OR has P i = min { a i , P i − 1 } P_i=\min\{a_i,P_{i-1}\} P i = min { a i , P i − 1 } and Q i = Q i − 1 Q_i=Q_{i-1} Q i = Q i − 1 . In the coordinates U = D + 1 U=D+1 U = D + 1 , V = E + 1 V=E+1 V = E + 1 each step is ( U , V ) ↦ ( U , U + V ) (U,V)\mapsto(U,U+V) ( U , V ) ↦ ( U , U + V ) or ( U + V , V ) (U+V,V) ( U + V , V ) , and the new weight is the unchanged coordinate. By induction the two sorted coordinates after i − 1 i-1 i − 1 steps are at most ( F i , F i + 1 ) (F_i,F_{i+1}) ( F i , F i + 1 ) ; before the i i i th weight is assigned there have been i − 2 i-2 i − 2 updates, so that weight is at most F i F_i F i . The bias ( P r + Q r ) / 2 (P_r+Q_r)/2 ( P r + Q r ) /2 has margin 1 / 2 1/2 1/2 , giving rate at least 1 / ( 8 ∑ i F i 2 ) = 1 / ( 8 F r F r + 1 ) 1/(8\sum_i F_i^2)=1/(8F_rF_{r+1}) 1/ ( 8 ∑ i F i 2 ) = 1/ ( 8 F r F r + 1 ) for every threshold; discarded irrelevant inputs only decrease the norm.
No representation beats the alternating chain. Take any representation of an alternating chain with minimum margin τ > 0 \tau>0 τ > 0 . Every input is essential and monotone, so fixing the other inputs across an output-changing edge shows that its weight is at least 2 τ 2\tau 2 τ . Fixing the higher inputs to their pass-through values, each prefix inherits a separating threshold with gap at least 2 τ 2\tau 2 τ . With P i , Q i , A i , D i , E i P_i,Q_i,A_i,D_i,E_i P i , Q i , A i , D i , E i as above, an AND step forces a i ≥ D i − 1 + 2 τ a_i\ge D_{i-1}+2\tau a i ≥ D i − 1 + 2 τ and E i ≥ E i − 1 + a i E_i\ge E_{i-1}+a_i E i ≥ E i − 1 + a i while D i = D i − 1 D_i=D_{i-1} D i = D i − 1 ; an OR step forces a i ≥ E i − 1 + 2 τ a_i\ge E_{i-1}+2\tau a i ≥ E i − 1 + 2 τ and D i ≥ D i − 1 + a i D_i\ge D_{i-1}+a_i D i ≥ D i − 1 + a i while E i = E i − 1 E_i=E_{i-1} E i = E i − 1 . Let ψ i \psi_i ψ i be the driver D i − 1 D_{i-1} D i − 1 or E i − 1 E_{i-1} E i − 1 used at step i i i . Alternation gives ψ 2 = 0 \psi_2=0 ψ 2 = 0 , ψ 3 ≥ 2 τ \psi_3\ge2\tau ψ 3 ≥ 2 τ and ψ i ≥ ψ i − 2 + a i − 1 \psi_i\ge\psi_{i-2}+a_{i-1} ψ i ≥ ψ i − 2 + a i − 1 for i ≥ 4 i\ge4 i ≥ 4 , and simultaneous induction yields ψ i ≥ 2 τ ( F i − 1 ) \psi_i\ge2\tau(F_i-1) ψ i ≥ 2 τ ( F i − 1 ) and a i ≥ 2 τ F i a_i\ge2\tau F_i a i ≥ 2 τ F i . Hence ∥ a ∥ 2 ≥ 4 τ 2 F r F r + 1 \lVert a\rVert^2\ge4\tau^2F_rF_{r+1} ∥ a ∥ 2 ≥ 4 τ 2 F r F r + 1 , which is the reverse bound in (E.2). The binary rate Θ ( 4 − r ) \Theta(4^{-r}) Θ ( 4 − r ) is therefore only achievable, and it overstates the dimension cost of the hardest comparators by a factor Θ ( ( 6 − 2 5 ) r ) \Theta((6-2\sqrt{5})^r) Θ (( 6 − 2 5 ) r ) ; the base ( 3 + 5 ) / 2 (3+\sqrt{5})/2 ( 3 + 5 ) /2 is the square of the golden ratio.
These constructions belong to the classical theme of weight geometry in threshold logic [30 , 24 ] ; here they show that for an asymmetric gate the choice of representation, not only of the bias, enters the price. Exhaustive finite checks are recorded in Appendix § 23 .
The critical window
Throughout this section F \mathcal{F} F is the universal family of pairwise conjunctions, k → ∞ k\to\infty k → ∞ , n = m − k n=m-k n = m − k and n / k → ∞ n/k\to\infty n / k → ∞ . We use the representation of Theorem 3.1 , write α i = A i − 1 \alpha_i=A_i-1 α i = A i − 1 for the centered active reads, and use the quantile levels λ ^ 1 = Φ ‾ − 1 ( 1 / k ) \widehat{\lambda}_1=\overline{\Phi}^{-1}(1/k) λ 1 = Φ − 1 ( 1/ k ) and λ ^ 0 = Φ ‾ − 1 ( 1 / n ) \widehat{\lambda}_0=\overline{\Phi}^{-1}(1/n) λ 0 = Φ − 1 ( 1/ n ) with β = log n / log k \beta=\sqrt{\log n/\log k} β = log n / log k . By Mills’ ratio, Φ ‾ − 1 ( 1 / q ) 2 = 2 log q − log ( 4 π log q ) + o ( 1 ) \overline{\Phi}^{-1}(1/q)^2=2\log q-\log(4\pi\log q)+o(1) Φ − 1 ( 1/ q ) 2 = 2 log q − log ( 4 π log q ) + o ( 1 ) as q → ∞ q\to\infty q → ∞ ; applied to q = k q=k q = k and q = n q=n q = n this gives λ ^ 1 = λ 1 ( 1 + o ( 1 ) ) \widehat{\lambda}_1=\lambda_1(1+o(1)) λ 1 = λ 1 ( 1 + o ( 1 )) and λ ^ 0 / λ ^ 1 = β ( 1 + o ( 1 ) ) \widehat{\lambda}_0/\widehat{\lambda}_1=\beta(1+o(1)) λ 0 / λ 1 = β ( 1 + o ( 1 )) .
Normalization
For independent standard Gaussians, Mills’ ratio gives the classical normalization of maxima Leadbetter et al., [28 ] :
k Φ ‾ ( λ ^ 1 + y / λ ^ 1 ) → e − y , n Φ ‾ ( λ ^ 0 + y / λ ^ 0 ) → e − y , k\overline{\Phi}(\widehat{\lambda}_1+y/\widehat{\lambda}_1)\to e^{-y},\qquad n\overline{\Phi}(\widehat{\lambda}_0+y/\widehat{\lambda}_0)\to e^{-y}, k Φ ( λ 1 + y / λ 1 ) → e − y , n Φ ( λ 0 + y / λ 0 ) → e − y ,
so λ ^ 1 ( max i Z i − λ ^ 1 ) ⇒ G A \widehat{\lambda}_1(\max_i Z_i-\widehat{\lambda}_1)\Rightarrow G_A λ 1 ( max i Z i − λ 1 ) ⇒ G A and λ ^ 0 ( max j W j − λ ^ 0 ) ⇒ G B \widehat{\lambda}_0(\max_j W_j-\widehat{\lambda}_0)\Rightarrow G_B λ 0 ( max j W j − λ 0 ) ⇒ G B , independent standard Gumbel variables. On either window of Theorem 7.1 , d ≍ k ( λ ^ 1 + λ ^ 0 ) 2 d\asymp k(\widehat{\lambda}_1+\widehat{\lambda}_0)^2 d ≍ k ( λ 1 + λ 0 ) 2 , and the exact representation contributes only negligible perturbations in units of σ d / λ ^ 1 \sigma_d/\widehat{\lambda}_1 σ d / λ 1 :
λ ^ 1 ( H − 1 ) σ d = O P ( λ ^ 1 k ) , λ ^ 1 Z ‾ = O P ( λ ^ 1 k ) , λ ^ 1 ( λ ^ 1 + λ ^ 0 ) ( H − 1 ) = O P ( λ ^ 1 k ) . (22) \frac{\widehat{\lambda}_1(H-1)}{\sigma_d}=O_{\mathrm{P}}\left(\frac{\widehat{\lambda}_1}{\sqrt{k}}\right),\qquad\widehat{\lambda}_1\overline{Z}=O_{\mathrm{P}}\left(\frac{\widehat{\lambda}_1}{\sqrt{k}}\right),\qquad\widehat{\lambda}_1(\widehat{\lambda}_1+\widehat{\lambda}_0)(\sqrt{H}-1)=O_{\mathrm{P}}\left(\frac{\widehat{\lambda}_1}{\sqrt{k}}\right). \tag*{(22)} σ d λ 1 ( H − 1 ) = O P ( k λ 1 ) , λ 1 Z = O P ( k λ 1 ) , λ 1 ( λ 1 + λ 0 ) ( H − 1 ) = O P ( k λ 1 ) . (22)
The centers (13) use the scale σ d = k / d \sigma_d=\sqrt{k/d} σ d = k / d of the Gaussian part σ Z i \sigma Z_i σ Z i of a read; using the variance ( k + 1 ) / d (k+1)/d ( k + 1 ) / d of an active read instead changes them by O ( λ ^ 1 2 / k ) = o ( 1 ) O(\widehat{\lambda}_1^2/k)=o(1) O ( λ 1 2 / k ) = o ( 1 ) in these units. Since λ ^ 1 2 ∼ 2 log k \hat{\lambda}_1^2 \sim2\log k λ ^ 1 2 ∼ 2 log k , all these errors vanish without any restriction on log n / k \log n/k log n / k , even when λ ^ 0 / λ ^ 1 → ∞ \hat{\lambda}_0/\hat{\lambda}_1 \to\infty λ ^ 0 / λ ^ 1 → ∞ .
The midpoint profile
The one-active class succeeds when max i A i + max j B j ≤ 3 / 2 \max_i A_i+\max_j B_j\le3/2 max i A i + max j B j ≤ 3/2 , that is, when
max i Z i + max j W j ≤ 1 / 2 − ( H − 1 ) σ d H + Z ˉ . \max_i Z_i+\max_j W_j\le\frac{1/2-(H-1)}{\sigma_d\sqrt{H}}+\bar{Z}. i max Z i + j max W j ≤ σ d H 1/2 − ( H − 1 ) + Z ˉ .
At d = d 0 + w x d=d_0+wx d = d 0 + w x with w = 8 k ( λ ^ 1 + λ ^ 0 ) / λ ^ 1 = 8 k ( 1 + β ) ( 1 + o ( 1 ) ) w=8k(\hat{\lambda}_1+\hat{\lambda}_0)/\hat{\lambda}_1=8k(1+\beta)(1+o(1)) w = 8 k ( λ ^ 1 + λ ^ 0 ) / λ ^ 1 = 8 k ( 1 + β ) ( 1 + o ( 1 )) , the right side equals λ ^ 1 + λ ^ 0 + x / λ ^ 1 + o P ( 1 / λ ^ 1 ) \hat{\lambda}_1+\hat{\lambda}_0+x/\hat{\lambda}_1+o_{\mathbb{P}}(1/\hat{\lambda}_1) λ ^ 1 + λ ^ 0 + x / λ ^ 1 + o P ( 1/ λ ^ 1 ) by (F.1). Multiplying the slack by λ ^ 1 \hat{\lambda}_1 λ ^ 1 , the success event of this class becomes
G A + λ ^ 1 λ ^ 0 G B ≤ x + o P ( 1 ) . G_A+\frac{\hat{\lambda}_1}{\hat{\lambda}_0}G_B\le x+o_{\mathbb{P}}(1). G A + λ ^ 0 λ ^ 1 G B ≤ x + o P ( 1 ) .
For β → β 0 < ∞ \beta\to\beta_0<\infty β → β 0 < ∞ its probability tends to P ( G A + G B / β 0 ≤ x ) = E exp ( − e β 0 ( G A − x ) ) \mathbb{P}(G_A+G_B/\beta_0\le x)=\mathbb{E}\exp(-e^{\beta_0(G_A-x)}) P ( G A + G B / β 0 ≤ x ) = E exp ( − e β 0 ( G A − x ) ) ; for β → ∞ \beta\to\infty β → ∞ the second fluctuation vanishes and the limit is the Gumbel distribution function. The convergence is uniform on compact x x x -intervals, because the limits are continuous and the errors in (F.1) do not depend on x x x .
The two other classes do not enter. The smallest both-active score is 2 − 2 σ d λ ^ 1 + O P ( σ d / λ ^ 1 ) 2-2\sigma_d\hat{\lambda}_1+O_{\mathbb{P}}(\sigma_d/\hat{\lambda}_1) 2 − 2 σ d λ ^ 1 + O P ( σ d / λ ^ 1 ) , while the midpoint balance is σ d ( λ ^ 1 + λ ^ 0 ) = 1 / 2 + O ( σ d / λ ^ 1 ) \sigma_d(\hat{\lambda}_1+\hat{\lambda}_0)=1/2+O(\sigma_d/\hat{\lambda}_1) σ d ( λ ^ 1 + λ ^ 0 ) = 1/2 + O ( σ d / λ ^ 1 ) ; so the extra slack of this class, in units of σ d / λ ^ 1 \sigma_d/\hat{\lambda}_1 σ d / λ ^ 1 , is of order λ ^ 1 ( λ ^ 0 − λ ^ 1 ) \hat{\lambda}_1(\hat{\lambda}_0-\hat{\lambda}_1) λ ^ 1 ( λ ^ 0 − λ ^ 1 ) , which tends to infinity because λ ^ 0 2 − λ ^ 1 2 ∼ 2 log ( n / k ) → ∞ \hat{\lambda}_0^2-\hat{\lambda}_1^2\sim2\log(n/k)\to\infty λ ^ 0 2 − λ ^ 1 2 ∼ 2 log ( n / k ) → ∞ when λ ^ 0 / λ ^ 1 → 1 \hat{\lambda}_0/\hat{\lambda}_1\to1 λ ^ 0 / λ ^ 1 → 1 , and trivially otherwise. The largest zero-active score is 2 σ d λ ^ 0 + o P ( 1 ) ≤ 1 + o P ( 1 ) < 3 / 2 2\sigma_d\hat{\lambda}_0+o_{\mathbb{P}}(1)\le1+o_{\mathbb{P}}(1)<3/2 2 σ d λ ^ 0 + o P ( 1 ) ≤ 1 + o P ( 1 ) < 3/2 . This proves Theorem 7.1 (i).
The change of variables τ = e − G A \tau=e^{-G_A} τ = e − G A gives Ψ β ( x ) = ∫ 0 ∞ exp ( − τ − τ − β e − β x ) d τ \Psi_\beta(x)=\int_0^\infty\exp(-\tau-\tau^{-\beta}e^{-\beta x})\,d\tau Ψ β ( x ) = ∫ 0 ∞ exp ( − τ − τ − β e − β x ) d τ . At β = 1 \beta=1 β = 1 the identity ∫ 0 ∞ e − τ − c / τ d τ = 2 c K 1 ( 2 c ) \int_0^\infty e^{-\tau-c/\tau}\,d\tau=2\sqrt{c}K_1(2\sqrt{c}) ∫ 0 ∞ e − τ − c / τ d τ = 2 c K 1 ( 2 c ) gives the Bessel form, dominated convergence gives the Gumbel limit as β → ∞ \beta\to\infty β → ∞ , and minimizing τ + τ − β e − β x \tau+\tau^{-\beta}e^{-\beta x} τ + τ − β e − β x shows log Ψ β ( x ) ≍ − e − β x / ( 1 + β ) \log\Psi_\beta(x)\asymp-e^{-\beta x/(1+\beta)} log Ψ β ( x ) ≍ − e − β x / ( 1 + β ) as x → − ∞ x\to-\infty x → − ∞ for fixed β \beta β .
Conditional firing counts
Given the active columns, the inactive reads are independent N ( 0 , σ 2 ) N(0,\sigma^2) N ( 0 , σ 2 ) variables. Let X a b s X_{\mathrm{abs}} X abs be the number of inactive features that form at least one wrong one-active gate at the midpoint. Then, with M = max i α i M=\max_i\alpha_i M = max i α i ,
X a b s ∣ E S ∼ Bin ( n , q S ) , q S = Φ ‾ ( 1 / 2 − M σ ) , Λ = n q S . X_{\mathrm{abs}}\mid E_S\sim\operatorname{Bin}(n,q_S),\qquad q_S=\overline{\Phi}\left(\frac{1/2-M}{\sigma}\right),\qquad\Lambda=nq_S. X abs ∣ E S ∼ Bin ( n , q S ) , q S = Φ ( σ 1/2 − M ) , Λ = n q S .
An inactive feature can create several gate errors, so X a b s ≤ X X_{\mathrm{abs}}\le X X abs ≤ X and in general X a b s ≠ X X_{\mathrm{abs}}\ne X X abs = X .
Proposition F.1 (Poisson approximation). Along window sequences with x = ( d − d 0 ) / w → x 0 x=(d-d_0)/w\to x_0 x = ( d − d 0 ) / w → x 0 and β → β 0 ∈ [ 1 , ∞ ) \beta\to\beta_0\in[1,\infty) β → β 0 ∈ [ 1 , ∞ ) ,
E d T V ( L ( X a b s ∣ E S ) , Poisson ( Λ ) ) ≤ E min { 1 , n q S 2 } → 0 , \mathbb{E}\,d_{\mathrm{TV}}\bigl(\mathcal{L}(X_{\mathrm{abs}}\mid E_S),\operatorname{Poisson}(\Lambda)\bigr)\le\mathbb{E}\min\{1,nq_S^2\}\to0, E d TV ( L ( X abs ∣ E S ) , Poisson ( Λ ) ) ≤ E min { 1 , n q S 2 } → 0 , and Λ ⇒ e β 0 ( G A − x 0 ) \Lambda\Rightarrow e^{\beta_0(G_A-x_0)} Λ ⇒ e β 0 ( G A − x 0 ) .
Proof. The bound is the binomial–Poisson estimate of Le Cam type [2 , 3 ] . By the computation of the previous subsection, ( 1 / 2 − M ) / σ = λ ^ 0 + β 0 ( x 0 − G A ) / λ ^ 0 + o P ( 1 / λ ^ 0 ) (1/2-M)/\sigma=\hat{\lambda}_0+\beta_0(x_0-G_A)/\hat{\lambda}_0+o_P(1/\hat{\lambda}_0) ( 1/2 − M ) / σ = λ ^ 0 + β 0 ( x 0 − G A ) / λ ^ 0 + o P ( 1/ λ ^ 0 ) , so Λ = n Φ ‾ ( λ ^ 0 + β 0 ( x 0 − G A ) / λ ^ 0 + o P ( 1 / λ ^ 0 ) ) ⇒ e β 0 ( G A − x 0 ) \Lambda=n\overline{\Phi}\left(\hat{\lambda}_0+\beta_0(x_0-G_A)/\hat{\lambda}_0+o_P(1/\hat{\lambda}_0)\right)\Rightarrow e^{\beta_0(G_A-x_0)} Λ = n Φ ( λ ^ 0 + β 0 ( x 0 − G A ) / λ ^ 0 + o P ( 1/ λ ^ 0 ) ) ⇒ e β 0 ( G A − x 0 ) . Since Λ \Lambda Λ is tight and n → ∞ n\to\infty n → ∞ , n q S 2 = Λ 2 / n → 0 nq_S^2=\Lambda^2/n\to0 n q S 2 = Λ 2 / n → 0 in probability, and bounded convergence gives the limit of the expectation. ■
The limit intensity e β 0 ( G A − x 0 ) e^{\beta_0(G_A-x_0)} e β 0 ( G A − x 0 ) has infinite mean for β 0 ≥ 1 \beta_0\ge1 β 0 ≥ 1 , which is the statement used at the end of § 8 .
Two-sided extremes
Standardize the active extremes by T ( y ) = Φ ‾ − 1 ( e − y / k ) T(y)=\overline{\Phi}^{-1}(e^{-y}/k) T ( y ) = Φ − 1 ( e − y / k ) : let max i α i = σ d T ( Y + ) \max_i\alpha_i=\sigma_dT(Y^+) max i α i = σ d T ( Y + ) , and let the two smallest be − σ d T ( Y 1 ) -\sigma_dT(Y_1) − σ d T ( Y 1 ) and − σ d T ( Y 2 ) -\sigma_dT(Y_2) − σ d T ( Y 2 ) with Y 1 ≥ Y 2 Y_1\ge Y_2 Y 1 ≥ Y 2 .
Lemma F.2 (Asymptotic independence of the two tails). Jointly, ( Y + , Y 1 , Y 2 ) ⇒ ( G A , − log ω 1 , − log ( ω 1 + ω 2 ) ) (Y^+,Y_1,Y_2)\Rightarrow(G_A,-\log\omega_1,-\log(\omega_1+\omega_2)) ( Y + , Y 1 , Y 2 ) ⇒ ( G A , − log ω 1 , − log ( ω 1 + ω 2 )) , where G A G_A G A is standard Gumbel, ω 1 , ω 2 \omega_1,\omega_2 ω 1 , ω 2 are unit exponentials, and the three are independent; ω 1 < ω 1 + ω 2 \omega_1<\omega_1+\omega_2 ω 1 < ω 1 + ω 2 are the first two points of a unit Poisson process. In particular Y 1 + Y 2 ⇒ − log [ ω 1 ( ω 1 + ω 2 ) ] Y_1+Y_2\Rightarrow-\log[\omega_1(\omega_1+\omega_2)] Y 1 + Y 2 ⇒ − log [ ω 1 ( ω 1 + ω 2 )] , whose distribution function is
F + ( x ) = e − c + ∫ 0 c e − c / s d s , c = e − x , (23) F_+(x)=e^{-\sqrt{c}}+\int_0^{\sqrt{c}}e^{-c/s}\,ds,\qquad c=e^{-x}, \tag*{(23)} F + ( x ) = e − c + ∫ 0 c e − c / s d s , c = e − x , (23) with right tail $1-F_+(x)=\left(\frac{1}{2}+o(1)\right)xe^{-x}a s as a s x\to\infty.
Proof. For the independent Gaussians ( Z i ) (Z_i) ( Z i ) of Theorem 3.1 , partition the upper and lower tails into finitely many disjoint extreme-level intervals. An observation belongs to at most one interval, and the interval probabilities are ( c j + o ( 1 ) ) / k (c_j+o(1))/k ( c j + o ( 1 )) / k by Mills’ ratio. The joint probability generating function of the counts is [ 1 + ∑ j ( c j + o ( 1 ) ) ( t j − 1 ) / k ] k → exp ( ∑ j c j ( t j − 1 ) ) [1+\sum_j(c_j+o(1))(t_j-1)/k]^k\to\exp(\sum_jc_j(t_j-1)) [ 1 + ∑ j ( c j + o ( 1 )) ( t j − 1 ) / k ] k → exp ( ∑ j c j ( t j − 1 )) , so the upper and lower point processes converge jointly to independent Poisson processes with intensity e − y d y e^{-y}\,dy e − y d y . Their first upper point and first two lower points have the stated laws. The perturbations (F.1) are o P ( 1 ) o_P(1) o P ( 1 ) on both extreme scales, so the convergence transfers to ( α i ) (\alpha_i) ( α i ) , and T ( y ) = λ ^ 1 + y / λ ^ 1 + o ( 1 / λ ^ 1 ) T(y)=\hat{\lambda}_1+y/\hat{\lambda}_1+o(1/\hat{\lambda}_1) T ( y ) = λ ^ 1 + y / λ ^ 1 + o ( 1/ λ ^ 1 ) uniformly on bounded y y y -intervals. Conditionally on ω 1 = s \omega_1=s ω 1 = s , the event s ( s + ω 2 ) ≥ c s(s+\omega_2)\ge c s ( s + ω 2 ) ≥ c has probability e − ( c / s − s ) e^{-(c/s-s)} e − ( c / s − s ) for s < c s<\sqrt{c} s < c and one otherwise, which integrates to (F.2). Finally 1 − F + ( x ) = 1 − e − c − c + ∫ 0 c ( 1 − e − c / s ) d s 1-F_+(x)=1-e^{-\sqrt{c}}-\sqrt{c}+\int_0^{\sqrt{c}}(1-e^{-c/s})\,ds 1 − F + ( x ) = 1 − e − c − c + ∫ 0 c ( 1 − e − c / s ) d s ; the first three terms are O ( c ) O(c) O ( c ) , and splitting the integral at s = c s=c s = c shows that it is 1 2 c log ( 1 / c ) + O ( c ) \frac{1}{2}c\log(1/c)+O(c) 2 1 c log ( 1/ c ) + O ( c ) . Finite-sample upper and lower extremes can be dependent; only their limits are independent. ■
The optimal common bias
At the optimal bias two classes bind, and their extremes come from opposite tails of the same active sample; lemma F.2 decouples them.
Proof of Theorem 7.1 (ii). Use the slack coordinates
x − = λ ^ 1 σ d ( θ − 1 − σ d ( λ ^ 1 + λ ^ 0 ) ) , x + = λ ^ 1 σ d ( 2 − θ − 2 σ d λ ^ 1 ) , x_-=\frac{\hat{\lambda}_1}{\sigma_d}\left(\theta-1-\sigma_d(\hat{\lambda}_1+\hat{\lambda}_0)\right),\qquad
x_+=\frac{\hat{\lambda}_1}{\sigma_d}\left(2-\theta-2\sigma_d\hat{\lambda}_1\right), x − = σ d λ ^ 1 ( θ − 1 − σ d ( λ ^ 1 + λ ^ 0 ) ) , x + = σ d λ ^ 1 ( 2 − θ − 2 σ d λ ^ 1 ) ,
for the one-active and both-active classes. For bounded ( x − , x + ) (x_-,x_+) ( x − , x + ) , lemma F.2 and the previous subsections give the joint success limit Ψ β ( x − ) F + ( x + ) \Psi_\beta(x_-)F_+(x_+) Ψ β ( x − ) F + ( x + ) : the upper active extreme and the bottom pair are independent in the limit, and the inactive sample is independent of both. Their total slack is x − + x + = λ ^ 1 ( d / k − 3 λ ^ 1 − λ ^ 0 ) = x + o ( 1 ) x_-+x_+=\hat{\lambda}_1(\sqrt{d/k}-3\hat{\lambda}_1-\hat{\lambda}_0)=x+o(1) x − + x + = λ ^ 1 ( d / k − 3 λ ^ 1 − λ ^ 0 ) = x + o ( 1 ) at d = d 0 o p t + 2 k ( 3 + β ) x d=d_0^{\mathrm{opt}}+2k(3+\beta)x d = d 0 opt + 2 k ( 3 + β ) x . The zero-active class is negligible by lemma F.3. Maximizing over the deterministic bias is therefore the optimization over y = x − y=x_- y = x − . To pass the supremum through the limit, first restrict x − x_- x − to a compact interval: if x − → − ∞ x_-\to-\infty x − → − ∞ the one-active class fails with probability tending to one, and if x − → + ∞ x_-\to+\infty x − → + ∞ with bounded total slack the both-active class does. Tightness of the limiting extremes makes these bounds uniform, and on compact intervals the continuous joint distribution functions converge uniformly.
Lemma F.3 (The zero-active class stays slack). On the optimal window, for biases with bounded slack coordinates, P ( B ( 1 ) + B ( 2 ) > θ ) → 0 \mathbb{P}(B_{(1)}+B_{(2)}>\theta)\to0 P ( B ( 1 ) + B ( 2 ) > θ ) → 0 , where B ( 1 ) ≥ B ( 2 ) B_{(1)}\ge B_{(2)} B ( 1 ) ≥ B ( 2 ) are the two largest inactive reads.
Proof. At the center, 1 = σ d ( 3 λ ^ 1 + λ ^ 0 ) + o ( σ d / λ ^ 1 ) 1=\sigma_d(3\hat{\lambda}_1+\hat{\lambda}_0)+o(\sigma_d/\hat{\lambda}_1) 1 = σ d ( 3 λ ^ 1 + λ ^ 0 ) + o ( σ d / λ ^ 1 ) and θ = 1 + σ d ( λ ^ 1 + λ ^ 0 ) + O ( σ d / λ ^ 1 ) \theta=1+\sigma_d(\hat{\lambda}_1+\hat{\lambda}_0)+O(\sigma_d/\hat{\lambda}_1) θ = 1 + σ d ( λ ^ 1 + λ ^ 0 ) + O ( σ d / λ ^ 1 ) , so θ − 2 σ d λ ^ 0 = 4 σ d λ ^ 1 + O ( σ d / λ ^ 1 ) \theta-2\sigma_d\hat{\lambda}_0=4\sigma_d\hat{\lambda}_1+O(\sigma_d/\hat{\lambda}_1) θ − 2 σ d λ ^ 0 = 4 σ d λ ^ 1 + O ( σ d / λ ^ 1 ) uniformly on compact windows. The two largest inactive reads sum to 2 σ d λ ^ 0 + O P ( σ d / λ ^ 0 ) + o P ( σ d / λ ^ 1 ) 2\sigma_d\hat{\lambda}_0+O_{\mathbb{P}}(\sigma_d/\hat{\lambda}_0)+o_{\mathbb{P}}(\sigma_d/\hat{\lambda}_1) 2 σ d λ ^ 0 + O P ( σ d / λ ^ 0 ) + o P ( σ d / λ ^ 1 ) . The gap is of order λ ^ 1 2 → ∞ \hat{\lambda}_1^2\to\infty λ ^ 1 2 → ∞ in units of σ d / λ ^ 1 \sigma_d/\hat{\lambda}_1 σ d / λ ^ 1 , also when λ ^ 0 / λ ^ 1 → ∞ \hat{\lambda}_0/\hat{\lambda}_1\to\infty λ ^ 0 / λ ^ 1 → ∞ .
The half-slack bias of Theorem 6.1 (a) is θ = 3 2 + 1 2 σ d ( λ ^ 0 − λ ^ 1 ) \theta=\frac{3}{2}+\frac{1}{2}\sigma_d(\hat{\lambda}_0-\hat{\lambda}_1) θ = 2 3 + 2 1 σ d ( λ ^ 0 − λ ^ 1 ) , which gives x − = x + = x / 2 x_-=x_+=x/2 x − = x + = x /2 and hence Ψ β ( x / 2 ) F + ( x / 2 ) \Psi_\beta(x/2)F_+(x/2) Ψ β ( x /2 ) F + ( x /2 ) ; this need not equal the supremum. With λ p \lambda_p λ p in place of λ ^ p \hat{\lambda}_p λ ^ p the split becomes x − − x + = λ ^ 1 [ ( λ 0 − λ 1 ) − ( λ ^ 0 − λ ^ 1 ) ] = ( log β ) / β − 1 2 ( 1 − 1 / β ) log ( 4 π log k ) + o ( 1 ) x_--x_+=\hat{\lambda}_1[(\lambda_0-\lambda_1)-(\hat{\lambda}_0-\hat{\lambda}_1)]=(\log\beta)/\beta-\frac{1}{2}(1-1/\beta)\log(4\pi\log k)+o(1) x − − x + = λ ^ 1 [( λ 0 − λ 1 ) − ( λ ^ 0 − λ ^ 1 )] = ( log β ) / β − 2 1 ( 1 − 1/ β ) log ( 4 π log k ) + o ( 1 ) , which tends to − ∞ -\infty − ∞ when β → β 0 > 1 \beta\to\beta_0>1 β → β 0 > 1 ; that bias has the same first-order threshold but not this profile. The optimal window is narrower than the midpoint window by w / w o p t = 4 ( 1 + β ) / ( 3 + β ) ∈ [ 2 , 4 ) w/w_{\mathrm{opt}}=4(1+\beta)/(3+\beta)\in[2,4) w / w opt = 4 ( 1 + β ) / ( 3 + β ) ∈ [ 2 , 4 ) for every β ≥ 1 \beta\ge1 β ≥ 1 . The profile concerns a deterministic common bias; it does not optimize gate-specific weights, and it does not determine the law of the full count X X X , which would require the number of active features attached to each firing inactive feature.
Extensions of the model
The box law has three ingredients: the support is random and independent of the dictionary, the dictionary is Gaussian, and one layer of gates reads a stored input. We change each in turn, and then drop the linear dictionary altogether. Proofs and the precise statements of § 9.3 are in Appendix § 20 .
Adversarial supports
If the support may be chosen after the dictionary, the cloud of a class is no longer a product of two samples: an adversary can place k − 1 k-1 k − 1 inactive columns that all align with one probe, and the interference grows linearly in k k k instead of as k \sqrt{k} k . The statement is in proposition 8.1.
For recovery by one threshold layer, Garg et al. [22 ] prove the analogous Ω ( k 2 log ( m / k ) / log k ) \Omega(k^2\log(m/k)/\log k) Ω ( k 2 log ( m / k ) / log k ) bound for arbitrary linear encoders when k < m k<\sqrt{m} k < m , and for Gaussian dictionaries Ivanitskiy et al. (2026, Theorem 8 and Proposition 6) place the largest sparsity that is recoverable on every support between the orders ( d / log m ) 1 / 2 (d/\log m)^{1/2} ( d / log m ) 1/2 and d 1 / 2 d^{1/2} d 1/2 . The factor k k k between typical and uniform correctness is the price of letting the support depend on the dictionary; random and worst-case supports differ in the same way for sparse regression [10 ] .
Other entry laws
The ball needs only one-gate tails, and for the midpoint pairwise network these are universal. Let the entries of d E \sqrt{d}E d E be independent with a fixed centered, unit-variance, sub-Gaussian law, and let q k , d q_{k,d} q k , d be the probability that a midpoint pairwise read with one active input exceeds 3 / 2 3/2 3/2 . The statement is in Theorem 8.2 .
The proof tilts independent coordinate rows exponentially. Appendix § 20 .§ 2 also computes the next term, log ( q k , d / Φ ‾ ( x K ) ) = c ν d / k 2 + ⋯ \log(q_{k,d}/\overline{\Phi}(x_K))=c_{\nu}d/k^2+\cdots log ( q k , d / Φ ( x K )) = c ν d / k 2 + ⋯ with x K = d / [ 8 ( k − 1 ) ] x_K=\sqrt{d/[8(k-1)]} x K = d / [ 8 ( k − 1 )] , in which the entry law enters through its skewness and excess kurtosis, and treats sparse Rademacher entries. The theorem concerns the midpoint pairwise network. The box is different: it rests on the exact joint law of Theorem 3.1 , which has no counterpart for general entries, and whether the reliability threshold is universal is open (§ 11 ).
Composition and unrestricted encodings
Writing outputs for a later layer costs dimensions of its own: pairwise conjunction has ( k 2 ) \binom{k}{2} ( 2 k ) active outputs. For feedforward threshold circuits in which every wire has its own Gaussian direction and every active output is written once into a shared stream, Theorem H.5 shows that d ≥ ( 1 + ε ) κ min − 1 K log Q d\ge(1+\varepsilon)\kappa_{\min}^{-1}K\log Q d ≥ ( 1 + ε ) κ m i n − 1 K log Q suffices, where Q Q Q is the number of reads, K K K the largest number of active directions in the stream before a read and 2 κ min 2\kappa_{\min} 2 κ m i n the smallest squared clean margin of a unit-norm read. Its proof is a union bound over an ideal execution, that is, a ball argument.
Without the linear dictionary, order k k k dimensions suffice for all pairwise conjunctions and, when log k = o ( log m ) \log k=o(\log m) log k = o ( log m ) , are necessary for polynomially many threshold units: counting sign patterns ([12 ] ) gives d ≥ ( k log ( m / k ) + log ( 1 − δ ) ) / ( 1 + log T ) d\ge(k\log(m/k)+\log(1-\delta))/(1+\log T) d ≥ ( k log ( m / k ) + log ( 1 − δ )) / ( 1 + log T ) for T T T units correct on a fraction 1 − δ 1-\delta 1 − δ of supports (proposition H.6), and the coefficients of ∏ ℓ ≠ s ( y − ℓ ) 2 \prod_{\ell\ne s}(y-\ell)^2 ∏ ℓ = s ( y − ℓ ) 2 , the polynomial behind the neighborliness of cyclic polytopes ([5 ] , Theorem 15.2), form a 2 k 2k 2 k -dimensional code with large coefficients and small normalized margins (proposition H.7). The Θ ( k log m ) \Theta(k\log m) Θ ( k log m ) scale of this paper therefore belongs to accessible computation from a random linear dictionary rather than to the task itself.
Statements and proofs for Section 8
Proof of proposition 8.1. For the upper bound, chi-square tail bounds and a union bound give max i ∣ ∥ e i ∥ 2 − 1 ∣ ≤ δ \max_i\lvert\lVert e_i\rVert^2-1\rvert\le\delta max i ∣∥ e i ∥ 2 − 1 ∣ ≤ δ with probability tending to one for fixed small δ > 0 \delta>0 δ > 0 , since d ≥ C k 2 log m d\ge Ck^2\log m d ≥ C k 2 log m . Conditionally on one column and its norm bound, the inner product with another column is Gaussian, so a second union bound gives max i ≠ j ∣ ⟨ e i , e j ⟩ ∣ ≤ C 0 log m / d \max_{i\ne j}\lvert\langle e_i,e_j\rangle\rvert\le C_0\sqrt{\log m/d} max i = j ∣⟨ e i , e j ⟩∣ ≤ C 0 log m / d . For any support of size at most k k k , the score of any gate differs from its clean value 0 0 0 , 1 1 1 or 2 2 2 by at most 2 δ + 2 k C 0 log m / d 2\delta+2kC_0\sqrt{\log m/d} 2 δ + 2 k C 0 log m / d . Choosing δ < 1 / 8 \delta<1/8 δ < 1/8 and then C C C large makes this less than 1 / 2 1/2 1/2 on one dictionary event that controls every support and every gate. For the lower bound fix the gate ( 1 , 2 ) (1,2) ( 1 , 2 ) and let w = e 1 + e 2 w=e_1+e_2 w = e 1 + e 2 . As d → ∞ d\to\infty d → ∞ , ∥ w ∥ 2 → 2 \lVert w\rVert^2\to2 ∥ w ∥ 2 → 2 and ⟨ w , e 1 ⟩ → 1 \langle w,e_1\rangle\to1 ⟨ w , e 1 ⟩ → 1 in probability. Conditionally on these two columns, the alignments ⟨ w , e j ⟩ \langle w,e_j\rangle ⟨ w , e j ⟩ , j ≥ 3 j\ge3 j ≥ 3 , are independent N ( 0 , ∥ w ∥ 2 / d ) N(0,\lVert w\rVert^2/d) N ( 0 , ∥ w ∥ 2 / d ) variables. At the level ( 1 − δ ) 2 log ( m / k ) (1-\delta)\sqrt{2\log(m/k)} ( 1 − δ ) 2 log ( m / k ) in standard units, Mills’ bound makes the expected number of exceedances among the m − 2 m-2 m − 2 alignments much larger than k k k , and Chernoff’s inequality makes fewer than k − 1 k-1 k − 1 exceedances unlikely. Let the support consist of feature 1 and the k − 1 k-1 k − 1 best aligned features other than feature 2. The gate ( 1 , 2 ) (1,2) ( 1 , 2 ) then has one active input and score at least
1 + o P ( 1 ) + ( 1 − o P ( 1 ) ) ( k − 1 ) ∥ w ∥ 2 log ( m / k ) / d . 1+o_{\mathrm{P}}(1)+(1-o_{\mathrm{P}}(1))(k-1)\lVert w\rVert\sqrt{2\log(m/k)/d}. 1 + o P ( 1 ) + ( 1 − o P ( 1 )) ( k − 1 ) ∥ w ∥ 2 log ( m / k ) / d .
Since log ( m / k ) ∼ log m \log(m/k)\sim\log m log ( m / k ) ∼ log m , a sufficiently small c c c makes this exceed 3 / 2 3/2 3/2 with probability tending to one when d ≤ c k 2 log m d\le ck^2\log m d ≤ c k 2 log m . The support is allowed to depend on the dictionary because the claim is uniform over supports.
The upper bound is an existence statement for the canonical network and the lower bound concerns canonical probes; neither is a statement about all decoders.
Other entry laws
Let the columns be e i = y i / d e_i=y_i/\sqrt{d} e i = y i / d , where all entries of all y i y_i y i are independent with a fixed centered, variance-one, sub-Gaussian law ν \nu ν , and write γ 1 = E Z 3 \gamma_1=\mathbb{E}Z^3 γ 1 = E Z 3 and γ 2 = E Z 4 − 3 \gamma_2=\mathbb{E}Z^4-3 γ 2 = E Z 4 − 3 for the skewness and excess kurtosis of Z ∼ ν Z\sim\nu Z ∼ ν ; in this subsection Z Z Z and Z l Z_l Z l denote entries, not the active sample of Theorem 3.1 . Examples are Gaussian ( 0 , 0 ) (0,0) ( 0 , 0 ) , Rademacher ( 0 , − 2 ) (0,-2) ( 0 , − 2 ) and uniform on [ − 3 , 3 ] [-\sqrt{3},\sqrt{3}] [ − 3 , 3 ] ( 0 , − 6 / 5 ) (0,-6/5) ( 0 , − 6/5 ) . Constants written O ν O_\nu O ν may depend on ν \nu ν . Let q k , d q_{k,d} q k , d be the probability that a midpoint pairwise read with one active and one inactive input exceeds 3 / 2 3/2 3/2 ; it includes the fluctuation of the signal, not only the centered interference.
Proposition H.1 (Second-order term). For a fixed law ν \nu ν and d / k → ∞ d/k\to\infty d / k → ∞ , put x K = d / [ 8 ( k − 1 ) ] . x_K=\sqrt{d/[8(k-1)]}. x K = d / [ 8 ( k − 1 )] .
Then
log q k , d Φ ‾ ( x K ) = c ν d k 2 + O ν ( d k 3 + 1 k + k d ) , c ν = 132 + 41 γ 2 1024 + γ 1 2 192 . \log\frac{q_{k,d}}{\overline{\Phi}(x_K)}
=c_\nu\frac{d}{k^2}+O_\nu\left(\frac{d}{k^3}+\frac{1}{\sqrt{k}}+\frac{k}{d}\right),\qquad
c_\nu=\frac{132+41\gamma_2}{1024}+\frac{\gamma_1^2}{192}. log Φ ( x K ) q k , d = c ν k 2 d + O ν ( k 3 d + k 1 + d k ) , c ν = 1024 132 + 41 γ 2 + 192 γ 1 2 . In particular q k , d / Φ ‾ ( x K ) → 1 q_{k,d}/\overline{\Phi}(x_K)\to1 q k , d / Φ ( x K ) → 1 when k ≪ d ≪ k 2 k\ll d\ll k^2 k ≪ d ≪ k 2 , and c ν ≥ 50 / 1024 c_\nu\ge50/1024 c ν ≥ 50/1024 , with equality for Rademacher entries.
The correction dominates the remainder when d ≫ k 3 / 2 d\gg k^{3/2} d ≫ k 3/2 . Even for Gaussian entries c ν = 132 / 1024 ≠ 0 c_\nu=132/1024\ne0 c ν = 132/1024 = 0 : the term corrects the Gaussian tail Φ ‾ ( x K ) \overline{\Phi}(x_K) Φ ( x K ) of a read, and the entry law enters only through γ 1 2 \gamma_1^2 γ 1 2 and γ 2 \gamma_2 γ 2 , the skewness appearing squared by invariance under a global sign change of the entries.
Corollary H.2 (Sparse entries). Let Z = ϵ χ / q Z=\epsilon\chi/\sqrt{q} Z = ϵχ / q with χ ∼ Ber ( q ) \chi\sim\operatorname{Ber}(q) χ ∼ Ber ( q ) and an independent Rademacher sign ϵ \epsilon ϵ , where q = q ( k ) ∈ ( 0 , 1 ] q=q(k)\in(0,1] q = q ( k ) ∈ ( 0 , 1 ] . If q k → ∞ qk\to\infty q k → ∞ and d / k → ∞ d/k\to\infty d / k → ∞ , then log q k , d = − d 16 k [ 1 + O ( ( q k ) − 1 + ( k / d ) log ( d / k ) ) ] \log q_{k,d}=-\frac{d}{16k}[1+O((qk)^{-1}+(k/d)\log(d/k))] log q k , d = − 16 k d [ 1 + O (( q k ) − 1 + ( k / d ) log ( d / k ))] . If also d / ( q k 2 ) → 0 d/(qk^2)\to0 d / ( q k 2 ) → 0 , then q k , d / Φ ‾ ( x K ) → 1 q_{k,d}/\overline{\Phi}(x_K)\to1 q k , d / Φ ( x K ) → 1 .
At d = Θ ( k log ( k m ) ) d=\Theta(k\log(km)) d = Θ ( k log ( k m )) the first condition corresponds to d q / log m → ∞ dq/\log m\to\infty d q / log m → ∞ expected nonzeros per column, and the second to d q / log 2 m → ∞ dq/\log^2m\to\infty d q / log 2 m → ∞ ; both are sufficient conditions, not sparsity thresholds.
An independent-row proof Let A A A , B B B , Z 1 , … , Z k − 1 Z_1,\ldots,Z_{k-1} Z 1 , … , Z k − 1 be independent with law ν \nu ν , S = ∑ l < k Z l S=\sum_{l<k}Z_l S = ∑ l < k Z l , and
T = ( A + B ) ( A + S ) , C = A + B , P = A 2 + A B − 1. T=(A+B)(A+S),\qquad C=A+B,\qquad P=A^2+AB-1. T = ( A + B ) ( A + S ) , C = A + B , P = A 2 + A B − 1.
The one-active score is d − 1 ∑ h = 1 d T h d^{-1}\sum_{h=1}^{d}T_h d − 1 ∑ h = 1 d T h with independent copies T h T_h T h , and T − 1 = P + C S T-1=P+CS T − 1 = P + C S . Write K k ( t ) = log E e t ( T − 1 ) K_k(t)=\log\mathbb{E}e^{t(T-1)} K k ( t ) = log E e t ( T − 1 ) .
Lemma H.3 (Row cumulants and tilting). For a fixed law ν \nu ν , uniformly on ∣ t ∣ ≤ C 0 / k |t|\le C_0/k ∣ t ∣ ≤ C 0 / k for any fixed C 0 C_0 C 0 ,
K k ( t ) = 2 k + γ 2 + 1 2 t 2 + k ( 12 + 3 γ 2 + 2 γ 1 2 ) + O ν ( 1 ) 6 t 3 + k 2 ( 24 + 6 γ 2 ) + O ν ( k ) 24 t 4 + O ν ( k − 3 ) . K_k(t)=\frac{2k+\gamma_2+1}{2}t^2+\frac{k(12+3\gamma_2+2\gamma_1^2)+O_\nu(1)}{6}t^3+\frac{k^2(24+6\gamma_2)+O_\nu(k)}{24}t^4+O_\nu(k^{-3}). K k ( t ) = 2 2 k + γ 2 + 1 t 2 + 6 k ( 12 + 3 γ 2 + 2 γ 1 2 ) + O ν ( 1 ) t 3 + 24 k 2 ( 24 + 6 γ 2 ) + O ν ( k ) t 4 + O ν ( k − 3 ) . The rate at displacement 1 / 2 1/2 1/2 is
I k = sup t { t / 2 − K k ( t ) } = 1 16 k − ( 68 + 41 γ 2 1024 + γ 1 2 192 ) 1 k 2 + O ν ( k − 3 ) . I_k=\sup_t\{t/2-K_k(t)\}=\frac{1}{16k}-\left(\frac{68+41\gamma_2}{1024}+\frac{\gamma_1^2}{192}\right)\frac{1}{k^2}+O_\nu(k^{-3}). I k = t sup { t /2 − K k ( t )} = 16 k 1 − ( 1024 68 + 41 γ 2 + 192 γ 1 2 ) k 2 1 + O ν ( k − 3 ) . If t k t_k t k solves K k ′ ( t k ) = 1 / 2 K_k'(t_k)=1/2 K k ′ ( t k ) = 1/2 and η k = t k d K k ′ ′ ( t k ) \eta_k=t_k\sqrt{dK_k''(t_k)} η k = t k d K k ′′ ( t k ) , then
log q k , d = − d I k − log η k − 1 2 log ( 2 π ) + O ν ( k / d + k − 1 / 2 ) , \log q_{k,d}=-dI_k-\log\eta_k-\frac{1}{2}\log(2\pi)+O_\nu(k/d+k^{-1/2}), log q k , d = − d I k − log η k − 2 1 log ( 2 π ) + O ν ( k / d + k − 1/2 ) , with η k = d / ( 8 k ) [ 1 + O ν ( k − 1 ) ] \eta_k=\sqrt{d/(8k)}[1+O_\nu(k^{-1})] η k = d / ( 8 k ) [ 1 + O ν ( k − 1 )] .
Proof. The variables A A A , B B B and S / k S/\sqrt{k} S / k have uniformly bounded sub-Gaussian norms, so ( T − 1 ) / k (T-1)/\sqrt{k} ( T − 1 ) / k has a uniform exponential moment near zero; this also bounds its tilted absolute third moment uniformly for t = O ( 1 / k ) t=O(1/k) t = O ( 1/ k ) . Expanding P + C S P+CS P + C S with E S 2 = k − 1 \mathbb{E}S^2=k-1 E S 2 = k − 1 , E S 3 = ( k − 1 ) γ 1 \mathbb{E}S^3=(k-1)\gamma_1 E S 3 = ( k − 1 ) γ 1 and E S 4 = 3 ( k − 1 ) 2 + ( k − 1 ) γ 2 \mathbb{E}S^4=3(k-1)^2+(k-1)\gamma_2 E S 4 = 3 ( k − 1 ) 2 + ( k − 1 ) γ 2 gives
κ 2 ( T ) = 2 k + γ 2 + 1 , κ 3 ( T ) = k ( 12 + 3 γ 2 + 2 γ 1 2 ) + O ν ( 1 ) , \kappa_2(T)=2k+\gamma_2+1,\qquad\kappa_3(T)=k(12+3\gamma_2+2\gamma_1^2)+O_\nu(1), κ 2 ( T ) = 2 k + γ 2 + 1 , κ 3 ( T ) = k ( 12 + 3 γ 2 + 2 γ 1 2 ) + O ν ( 1 ) ,
κ 4 ( T ) = k 2 ( 24 + 6 γ 2 ) + O ν ( k ) . \kappa_4(T)=k^2(24+6\gamma_2)+O_\nu(k). κ 4 ( T ) = k 2 ( 24 + 6 γ 2 ) + O ν ( k ) .
The fifth cumulant is O ν ( k 2 ) O_\nu(k^2) O ν ( k 2 ) , since odd moments of S S S through order five are O ν ( k 2 ) O_\nu(k^2) O ν ( k 2 ) and the remaining terms contain at most four copies of S S S . The exponential-moment bound controls the Taylor remainder from order six by O ν ( k 3 t 6 ) O_\nu(k^3t^6) O ν ( k 3 t 6 ) on this interval, with the same bounds for the derivatives. Since K k ′ ′ ( t ) = 2 k + O ν ( 1 ) K_k''(t)=2k+O_\nu(1) K k ′′ ( t ) = 2 k + O ν ( 1 ) , the saddle point is t k = 1 / ( 4 k ) + O ν ( k − 2 ) t_k=1/(4k)+O_\nu(k^{-2}) t k = 1/ ( 4 k ) + O ν ( k − 2 ) , and substituting 1 / ( 4 k ) 1/(4k) 1/ ( 4 k ) into t / 2 − K k ( t ) t/2-K_k(t) t /2 − K k ( t ) costs only O ν ( k − 3 ) O_\nu(k^{-3}) O ν ( k − 3 ) , which gives I k I_k I k .
Under the tilted measure with density exp ( t k ∑ h ( T h − 1 ) − d K k ( t k ) ) \exp(t_k\sum_h(T_h-1)-dK_k(t_k)) exp ( t k ∑ h ( T h − 1 ) − d K k ( t k )) , let U U U be the centered sum divided by d K k ′ ′ ( t k ) \sqrt{dK_k''(t_k)} d K k ′′ ( t k ) . The Berry–Esseen theorem gives Kolmogorov distance O ν ( d − 1 / 2 ) O_\nu(d^{-1/2}) O ν ( d − 1/2 ) from a standard Gaussian. The function e − η k u 1 { u > 0 } e^{-\eta_k u}1\{u>0\} e − η k u 1 { u > 0 } has total variation at most two, so
q k , d = e − d I k [ e η k 2 / 2 Φ ‾ ( η k ) + O ν ( d − 1 / 2 ) ] ; q_{k,d}=e^{-dI_k}\left[e^{\eta_k^2/2}\overline{\Phi}(\eta_k)+O_\nu(d^{-1/2})\right]; q k , d = e − d I k [ e η k 2 /2 Φ ( η k ) + O ν ( d − 1/2 ) ] ;
this applies to lattice laws as well, with the strict threshold. Since e η 2 / 2 Φ ‾ ( η ) = ( 2 π η ) − 1 [ 1 + O ( η − 2 ) ] e^{\eta^2/2}\overline{\Phi}(\eta) = (\sqrt{2\pi}\eta)^{-1}[1 + O(\eta^{-2})] e η 2 /2 Φ ( η ) = ( 2 π η ) − 1 [ 1 + O ( η − 2 )] , the relative Berry–Esseen error is O ν ( η k / d ) = O ν ( k − 1 / 2 ) O_{\nu}(\eta_k/\sqrt{d}) = O_{\nu}(k^{-1/2}) O ν ( η k / d ) = O ν ( k − 1/2 ) . This is the exponential-tilting argument behind the Cramér–Petrov theory [33 , 17 ] . ■
Proof of Theorem 8.2 . By lemma H.3, the leading terms give the exponent. For proposition H.1, use log Φ ‾ ( x K ) = − d / [ 16 ( k − 1 ) ] − log x K − 1 2 log ( 2 π ) + O ( k / d ) \log\overline{\Phi}(x_K) = -d/[16(k-1)] - \log x_K - \frac{1}{2}\log(2\pi) + O(k/d) log Φ ( x K ) = − d / [ 16 ( k − 1 )] − log x K − 2 1 log ( 2 π ) + O ( k / d ) , log ( η k / x K ) = O ν ( k − 1 ) \log(\eta_k/x_K) = O_{\nu}(k^{-1}) log ( η k / x K ) = O ν ( k − 1 ) and d / [ 16 ( k − 1 ) ] = d / ( 16 k ) + d / ( 16 k 2 ) + O ( d / k 3 ) d/[16(k-1)] = d/(16k) + d/(16k^2) + O(d/k^3) d / [ 16 ( k − 1 )] = d / ( 16 k ) + d / ( 16 k 2 ) + O ( d / k 3 ) ; the extra 64 / 1024 64/1024 64/1024 turns 68 + 41 γ 2 68 + 41\gamma_2 68 + 41 γ 2 into 132 + 41 γ 2 132 + 41\gamma_2 132 + 41 γ 2 . Pearson’s moment inequality γ 2 ≥ γ 1 2 − 2 \gamma_2 \ge\gamma_1^2 - 2 γ 2 ≥ γ 1 2 − 2 , from the positive semidefiniteness of the covariance matrix of ( Z , Z 2 ) (Z, Z^2) ( Z , Z 2 ) , gives c ν ≥ 50 / 1024 c_{\nu} \ge50/1024 c ν ≥ 50/1024 . For the expected count of the midpoint network, the both-active lower tail has the same leading exponent and the zero-active upper tail has exponent ( 9 + o ( 1 ) ) d / ( 16 k ) (9 + o(1))d/(16k) ( 9 + o ( 1 )) d / ( 16 k ) by the same row argument; union bounds over O ( k m ) O(km) O ( k m ) and O ( m 2 ) O(m^2) O ( m 2 ) gates give the sufficient dimension ( 16 + ε ) k log ( k m ) (16+\varepsilon)k\log(km) ( 16 + ε ) k log ( k m ) . ■
Proof of corollary H.2. For the sparse law the row moment generating function has the exact finite form
E e t T = E A , B [ e t ( A + B ) A { 1 − q + q cosh ( t ( A + B ) / q ) } k − 1 ] , \mathbb{E}e^{tT} = \mathbb{E}_{A,B}\left[e^{t(A+B)A}\left\{1-q+q\cosh\left(t(A+B)/\sqrt{q}\right)\right\}^{k-1}\right], E e tT = E A , B [ e t ( A + B ) A { 1 − q + q cosh ( t ( A + B ) / q ) } k − 1 ] ,
with A , B ∈ { 0 , ± q − 1 / 2 } A,B \in\{0,\pm q^{-1/2}\} A , B ∈ { 0 , ± q − 1/2 } of probabilities 1 − q 1-q 1 − q , q / 2 q/2 q /2 , q / 2 q/2 q /2 . For ∣ t ∣ ≤ C 0 / k |t| \le C_0/k ∣ t ∣ ≤ C 0 / k every exponential or hyperbolic argument is O ( ( q k ) − 1 ) O((qk)^{-1}) O (( q k ) − 1 ) , and Taylor expansion inside the braces and then over the nine cases gives, uniformly, K k ( t ) = k t 2 [ 1 + O ( ( q k ) − 1 ) ] K_k(t) = kt^2[1+O((qk)^{-1})] K k ( t ) = k t 2 [ 1 + O (( q k ) − 1 )] , K k ′ ( t ) = 2 k t [ 1 + O ( ( q k ) − 1 ) ] K'_k(t) = 2kt[1+O((qk)^{-1})] K k ′ ( t ) = 2 k t [ 1 + O (( q k ) − 1 )] and K k ′ ′ ( t ) = 2 k [ 1 + O ( ( q k ) − 1 ) ] K''_k(t) = 2k[1+O((qk)^{-1})] K k ′′ ( t ) = 2 k [ 1 + O (( q k ) − 1 )] . The leading k t 2 kt^2 k t 2 comes from E ( A + B ) 2 = 2 \mathbb{E}(A+B)^2=2 E ( A + B ) 2 = 2 and E S 2 = k − 1 \mathbb{E}S^2=k-1 E S 2 = k − 1 ; the remaining quadratic term is O ( t 2 / q ) O(t^2/q) O ( t 2 / q ) . Hence t k = ( 4 k ) − 1 [ 1 + O ( ( q k ) − 1 ) ] t_k=(4k)^{-1}[1+O((qk)^{-1})] t k = ( 4 k ) − 1 [ 1 + O (( q k ) − 1 )] and I k = ( 16 k ) − 1 [ 1 + O ( ( q k ) − 1 ) ] I_k=(16k)^{-1}[1+O((qk)^{-1})] I k = ( 16 k ) − 1 [ 1 + O (( q k ) − 1 )] . The standardized tilted third absolute moment is O ( q − 1 / 2 ) O(q^{-1/2}) O ( q − 1/2 ) : E ∣ A + B ∣ 3 = O ( q − 1 / 2 ) \mathbb{E}|A+B|^3=O(q^{-1/2}) E ∣ A + B ∣ 3 = O ( q − 1/2 ) , E ∣ S ∣ 3 = O ( k 3 / 2 + k q − 1 / 2 ) \mathbb{E}|S|^3=O(k^{3/2}+kq^{-1/2}) E ∣ S ∣ 3 = O ( k 3/2 + k q − 1/2 ) and E ∣ P ∣ 3 = O ( q − 2 ) \mathbb{E}|P|^3=O(q^{-2}) E ∣ P ∣ 3 = O ( q − 2 ) , divided by k 3 / 2 k^{3/2} k 3/2 with q k → ∞ qk\to\infty q k → ∞ . The Berry–Esseen step therefore has relative error O ( ( q k ) − 1 / 2 ) O((qk)^{-1/2}) O (( q k ) − 1/2 ) , and
log q k , d = − d I k − log d / ( 8 k ) − 1 2 log ( 2 π ) + O ( ( q k ) − 1 / 2 + k / d ) , \log q_{k,d}=-dI_k-\log\sqrt{d/(8k)}-\frac{1}{2}\log(2\pi)+O((qk)^{-1/2}+k/d), log q k , d = − d I k − log d / ( 8 k ) − 2 1 log ( 2 π ) + O (( q k ) − 1/2 + k / d ) ,
which proves the first claim; comparison with Mills’ formula gives log ( q k , d / Φ ‾ ( x K ) ) = O ( d / ( q k 2 ) + ( q k ) − 1 / 2 + k / d ) \log(q_{k,d}/\overline{\Phi}(x_K))=O(d/(qk^2)+(qk)^{-1/2}+k/d) log ( q k , d / Φ ( x K )) = O ( d / ( q k 2 ) + ( q k ) − 1/2 + k / d ) and the second. ■
These results concern one gate and hence the ball. They do not extend the reliability thresholds of Theorem 5.4 or the window profiles to non-Gaussian dictionaries, because the exact law of Theorem 3.1 is Gaussian. For correlated columns, isotropy and marginal coherence tails alone do not provide the joint moment control used here, and below q k ≍ 1 qk\asymp1 q k ≍ 1 the sparse expansion no longer applies.
Composition
Reading a superposed output vector Let N = ( m 2 ) N=\binom{m}{2} N = ( 2 m ) , K ′ = ( k 2 ) K'=\binom{k}{2} K ′ = ( 2 k ) and J ( S ) J(S) J ( S ) the set of active pairs. Draw independent output directions f γ ∼ N ( 0 , I p / p ) f_{\gamma}\sim N(0,I_p/p) f γ ∼ N ( 0 , I p / p ) for the N N N gates, independent of the input dictionary, and let v ∗ = ∑ γ ∈ J ( S ) f γ v^*=\sum_{\gamma\in J(S)}f_{\gamma} v ∗ = ∑ γ ∈ J ( S ) f γ be the ideal output stream. The set J ( S ) J(S) J ( S ) is independent of the output dictionary, although its indicators are dependent across gates.
Proposition H.4 (Output channel). Suppose K ′ → ∞ K'\to\infty K ′ → ∞ , N / K ′ → ∞ N/K'\to\infty N / K ′ → ∞ , log N = o ( K ′ ) \log N=o(K') log N = o ( K ′ ) and p / K ′ → ∞ p/K'\to\infty p / K ′ → ∞ . The matched-filter reads 1 { ⟨ f γ , v ∗ ⟩ > 1 / 2 } 1\{\langle f_{\gamma},v^*\rangle>1/2\} 1 {⟨ f γ , v ∗ ⟩ > 1/2 } have a vanishing expected number of errors if
p ≥ ( 8 + ε ) K ′ log N p \ge(8+\varepsilon)K' \log N p ≥ ( 8 + ε ) K ′ log N . Optimizing their common bias gives the expected-error threshold
P o u t = 2 K ′ ( log ( N − K ′ ) + log K ′ ) 2 , θ o u t = log ( N − K ′ ) log ( N − K ′ ) + log K ′ P_{\mathrm{out}} = 2K'\left(\sqrt{\log(N-K')}+\sqrt{\log K'}\right)^2,\qquad\theta_{\mathrm{out}} = \frac{\sqrt{\log(N-K')}}{\sqrt{\log(N-K')}+\sqrt{\log K'}} P out = 2 K ′ ( log ( N − K ′ ) + log K ′ ) 2 , θ out = log ( N − K ′ ) + log K ′ log ( N − K ′ )
and below ( 1 − ε ) P o u t (1-\varepsilon)P_{\mathrm{out}} ( 1 − ε ) P out every assignment of local output probes has a diverging expected number of read errors.
Proof. Condition on the input. For an inactive wire, f γ f_\gamma f γ is independent of v ∗ v^* v ∗ , and the read has mean zero and variance K ′ / p K'/p K ′ / p . For an active wire, ⟨ f γ , v ∗ ⟩ − 1 \langle f_\gamma,v^*\rangle-1 ⟨ f γ , v ∗ ⟩ − 1 has variance ( K ′ + 1 ) / p (K'+1)/p ( K ′ + 1 ) / p , the extra term coming from the random self-norm. An inactive coordinate row has the law of A S AS A S with A ∼ N ( 0 , 1 ) A\sim N(0,1) A ∼ N ( 0 , 1 ) and S ∼ N ( 0 , K ′ ) S\sim N(0,K') S ∼ N ( 0 , K ′ ) independent, and an active row the law of A ( A + S ) A(A+S) A ( A + S ) with Var S = K ′ − 1 \operatorname{Var} S=K'-1 Var S = K ′ − 1 ; their moment generating functions are ( 1 − K ′ t 2 ) − 1 / 2 (1-K't^2)^{-1/2} ( 1 − K ′ t 2 ) − 1/2 and ( 1 − 2 t − ( K ′ − 1 ) t 2 ) − 1 / 2 (1-2t-(K'-1)t^2)^{-1/2} ( 1 − 2 t − ( K ′ − 1 ) t 2 ) − 1/2 . Expanding the centered logarithms at displacement μ \mu μ gives the rate μ 2 / ( 2 K ′ ) [ 1 + O ( 1 / K ′ ) ] \mu^2/(2K')[1+O(1/K')] μ 2 / ( 2 K ′ ) [ 1 + O ( 1/ K ′ )] , and the tilting argument of lemma H.3 gives the matching lower bound. At the midpoint both displacements are 1 / 2 1/2 1/2 , and summing over the N N N reads gives the first claim. At a free bias the constraints are p θ 2 / ( 2 K ′ ) > log ( N − K ′ ) p\theta^2/(2K')>\log(N-K') p θ 2 / ( 2 K ′ ) > log ( N − K ′ ) and p ( 1 − θ ) 2 / ( 2 K ′ ) > log K ′ p(1-\theta)^2/(2K')>\log K' p ( 1 − θ ) 2 / ( 2 K ′ ) > log K ′ , and balancing them gives P o u t P_{\mathrm{out}} P out and θ o u t \theta_{\mathrm{out}} θ out . For the local converse, each wire is active with probability K ′ / N K'/N K ′ / N . Normalize its probe and condition on its own direction; the clean signals are 0 0 0 and ⟨ w γ , f γ ⟩ \langle w_\gamma,f_\gamma\rangle ⟨ w γ , f γ ⟩ , of modulus at most 1 + o ( 1 ) 1+o(1) 1 + o ( 1 ) on a high-probability norm event, and the other active directions stay independent Gaussians given any input, with projection variance ( K ′ − t ) / p (K'-t)/p ( K ′ − t ) / p for local state t ∈ { 0 , 1 } t\in\{0,1\} t ∈ { 0 , 1 } . The two-class argument of Appendix § 15 applies with expected class counts N − K ′ N-K' N − K ′ and K ′ K' K ′ , using only one-wire marginals. ■
For pairwise conjunction K ′ = Θ ( k 2 ) K'=\Theta(k^2) K ′ = Θ ( k 2 ) , so the output stage can dominate the input dimension even though it reads one wire at a time. The hypotheses hold at the output threshold, for example, when log m = o ( k ) \log m=o(k) log m = o ( k ) ; they must be imposed separately when combining with the input thresholds of the main text.
Comparison with an ideal execution Suppose an input stage produces bits y ^ γ \hat{y}_\gamma y ^ γ and writes v ^ = ∑ γ y ^ γ f γ \hat{v}=\sum_\gamma\hat{y}_\gamma f_\gamma v ^ = ∑ γ y ^ γ f γ . Let B i n B_{\mathrm{in}} B in be the event that some input-stage gate is wrong and B o u t B_{\mathrm{out}} B out the event that some read of the ideal stream v ∗ v^* v ∗ is wrong. Deterministically,
{ some final read is wrong } ⊆ B i n ∪ B o u t , (24) \{\text{some final read is wrong}\}\subseteq B_{\mathrm{in}}\cup B_{\mathrm{out}}, \tag*{(24)} { some final read is wrong } ⊆ B in ∪ B out , (24)
because outside B i n B_{\mathrm{in}} B in the actual stream equals v ∗ v^* v ∗ . An input budget with failure probability δ i n \delta_{\mathrm{in}} δ in and an output budget with δ o u t \delta_{\mathrm{out}} δ out therefore compose with failure at most δ i n + δ o u t \delta_{\mathrm{in}}+\delta_{\mathrm{out}} δ in + δ out , without conditioning on earlier success and without independence of the two events. In particular the box threshold of Theorem 5.4 composes with proposition H.4.
The fresh-write circuit class Fix a feedforward Boolean threshold circuit and an input, independent of all dictionaries. Each input wire and each gate output has its own independent direction f ∼ N ( 0 , I d / d ) f\sim N(0,I_d/d) f ∼ N ( 0 , I d / d ) , and every active output is written once into the shared stream. A gate γ \gamma γ of arity r γ ≤ r 0 r_\gamma\le r_0 r γ ≤ r 0 reads previously written wires with w γ = ∑ j a γ , j f w γ w_\gamma=\sum_j a_{\gamma,j}f_{w_\gamma} w γ = ∑ j a γ , j f w γ and bias θ γ \theta_\gamma θ γ , where the coefficients represent its clean threshold function, are fixed before the dictionary is drawn, satisfy ∥ a γ ∥ = 1 \lVert a_\gamma\rVert=1 ∥ a γ ∥ = 1 , and have margin τ γ = min z ( 2 g γ ( z ) − 1 ) ( ⟨ a γ , z ⟩ − θ γ ) ≥ τ 0 > 0 \tau_\gamma=\min_z(2g_\gamma(z)-1)(\langle a_\gamma,z\rangle-\theta_\gamma)\ge\tau_0>0 τ γ = min z ( 2 g γ ( z ) − 1 ) (⟨ a γ , z ⟩ − θ γ ) ≥ τ 0 > 0 . Let Q Q Q be the number of reads, k k k the initial activity and K K K the largest number of active directions in the ideal stream before a read; without erasure K K K is the input activity plus all earlier ideal active writes. Put κ min = min γ τ γ 2 / 2 \kappa_{\min} = \min_{\gamma} \tau_{\gamma}^{2}/2 κ m i n = min γ τ γ 2 /2 .
Theorem H.5 (Write budget). Assume k → ∞ k \to\infty k → ∞ , Q → ∞ Q \to\infty Q → ∞ and log Q = o ( k ) \log Q = o(k) log Q = o ( k ) . For fixed ε > 0 \varepsilon> 0 ε > 0 , if d ≥ ( 1 + ε ) κ min − 1 K log Q d \ge(1+\varepsilon)\kappa_{\min}^{-1}K\log Q d ≥ ( 1 + ε ) κ m i n − 1 K log Q , every gate of the circuit is evaluated correctly with probability at least 1 − Q − ε + o ( 1 ) 1-Q^{-\varepsilon+o(1)} 1 − Q − ε + o ( 1 ) . If a fixed schedule exactly erases wires that are no longer needed, K K K may be replaced by the peak number of live active wires.
Proof of Theorem H.5. Let the ideal stream before layer ℓ \ell ℓ contain the true values of all earlier gates. Given the input, its active set is deterministic and independent of the dictionary. For gate γ \gamma γ , condition on its at most r 0 r_0 r 0 queried directions; the ideal interference from the other active wires is exactly Gaussian with variance at most K ∥ w γ ∥ 2 / d K\lVert w_\gamma\rVert^2/d K ∥ w γ ∥ 2 / d . On the local Gram event ∥ G γ − I ∥ ≤ η \lVert G_\gamma-I\rVert\le\eta ∥ G γ − I ∥ ≤ η the probe norm is 1 + O ( η ) 1+O(\eta) 1 + O ( η ) and the clean score differs from ⟨ a γ , z ⟩ \langle a_\gamma,z\rangle ⟨ a γ , z ⟩ by O ( η ) O(\eta) O ( η ) , uniformly because the arity is bounded. Since τ γ ≥ τ 0 \tau_\gamma\ge\tau_0 τ γ ≥ τ 0 , the Gaussian tail is at most exp { − ( 1 − o ( 1 ) ) κ min d / K } ≤ Q − ( 1 + ε ) + o ( 1 ) \exp\{-(1-o(1))\kappa_{\min}d/K\}\le Q^{-(1+\varepsilon)+o(1)} exp { − ( 1 − o ( 1 )) κ m i n d / K } ≤ Q − ( 1 + ε ) + o ( 1 ) . Choose η = ( log Q / k ) 1 / 4 → 0 \eta=(\log Q/k)^{1/4}\to0 η = ( log Q / k ) 1/4 → 0 ; Gram concentration bounds the bad event by C e − c η 2 d Ce^{-c\eta^2d} C e − c η 2 d , and η 2 d / log Q ≳ η 2 k → ∞ \eta^2d/\log Q\gtrsim\eta^2k\to\infty η 2 d / log Q ≳ η 2 k → ∞ makes even its union over all Q Q Q reads negligible. Let B γ B_\gamma B γ be a wrong read of the ideal stream. Outside ⋃ γ B γ \bigcup_\gamma B_\gamma ⋃ γ B γ , induction over layers shows that the actual and ideal streams agree before every read, so actual failure is contained in the union, and summing the marginal bounds gives Q − ε + o ( 1 ) Q^{-\varepsilon+o(1)} Q − ε + o ( 1 ) . Under exact erasure by a fixed schedule the live active set at each ideal read is still determined by the input and the schedule and has at most K K K elements, and the induction preserves equality through erasure, because the subtracted actual and ideal contributions agree whenever all earlier reads do. ■
The theorem counts every read. Replacing Q Q Q by the number of near-boundary gates is valid only if the remaining gates have a separately controlled sum of error probabilities. Non-local reads, error correction, reuse of directions, learned correlations and growing arity need further analysis. The connection to reliable computation from unreliable components [43 , 19 ] is at the level of composing error bounds; here the errors come from shared geometry rather than independent faults.
Unrestricted encodings
Let X k \mathcal{X}_k X k be the k k k -subsets of [ m ] [m] [ m ] , 2 ≤ k ≤ m − 1 2\le k\le m-1 2 ≤ k ≤ m − 1 , and for S ∈ X k S\in\mathcal{X}_k S ∈ X k let the target be the indicator vector of its pairs; distinct supports have distinct targets. Let φ : X ′ → R d \varphi:X'\to\mathbb{R}^d φ : X ′ → R d be any map on some X ′ ⊆ X k X'\subseteq\mathcal{X}_k X ′ ⊆ X k .
Proposition H.6 (Counting floor). Let φ \varphi φ be any map from the k k k -subsets of [ m ] [m] [ m ] to R d \mathbb{R}^d R d , read by T T T affine threshold units followed by arbitrary Boolean processing. If the outputs of all pairwise conjunctions are correct on a fraction 1 − δ > 0 1-\delta>0 1 − δ > 0 of supports, then d ≥ ( k log ( m / k ) + log ( 1 − δ ) ) / ( 1 + log T ) d\ge(k\log(m/k)+\log(1-\delta))/(1+\log T) d ≥ ( k log ( m / k ) + log ( 1 − δ )) / ( 1 + log T ) . For polynomial T T T and log k = o ( log m ) \log k=o(\log m) log k = o ( log m ) this is Ω ( k ) \Omega(k) Ω ( k ) .
Proposition H.7 (A 2 k 2k 2 k -dimensional code). Encode a support S S S by the 2 k 2k 2 k nonleading coefficients of p S ( y ) = ∏ ℓ ∈ S ( y − ℓ ) 2 p_S(y)=\prod_{\ell\in S}(y-\ell)^2 p S ( y ) = ∏ ℓ ∈ S ( y − ℓ ) 2 . Then x i x j = 1 { p S ( i ) + p S ( j ) < 1 / 2 } x_i x_j=1\{p_S(i)+p_S(j)<1/2\} x i x j = 1 { p S ( i ) + p S ( j ) < 1/2 } is an affine threshold of the code for every pair, so all pairwise conjunctions on k k k -sparse inputs have sign-rank at most 2 k + 1 2k+1 2 k + 1 .
Proof of proposition H.6. If T T T affine threshold units followed by arbitrary Boolean processing are correct on X ′ X' X ′ , their sign vectors are distinct on X ′ X' X ′ . On the finite set φ ( X ′ ) \varphi(X') φ ( X ′ ) , ties can be removed without changing any output by moving each bias slightly upward, less than the smallest positive slack. Distinct sign vectors then occupy distinct open cells of an arrangement of T T T affine hyperplanes in R d \mathbb{R}^d R d , whose number C ( T , d ) C(T,d) C ( T , d ) satisfies C ( T , d ) ≤ C ( T − 1 , d ) + C ( T − 1 , d − 1 ) C(T,d)\le C(T-1,d)+C(T-1,d-1) C ( T , d ) ≤ C ( T − 1 , d ) + C ( T − 1 , d − 1 ) with C ( 0 , d ) = C ( T , 0 ) = 1 C(0,d)=C(T,0)=1 C ( 0 , d ) = C ( T , 0 ) = 1 , hence C ( T , d ) ≤ ∑ i ≤ d ( T i ) C(T,d)\le\sum_{i\le d}\binom{T}{i} C ( T , d ) ≤ ∑ i ≤ d ( i T ) [9 , 12 , 45 ] . For 1 ≤ d ≤ T 1\le d\le T 1 ≤ d ≤ T , with ϑ = d / T \vartheta=d/T ϑ = d / T , ϑ d ∑ i ≤ d ( T i ) ≤ ( 1 + ϑ ) T ≤ e d \vartheta^d\sum_{i\le d}\binom{T}{i}\le(1+\vartheta)^T\le e^d ϑ d ∑ i ≤ d ( i T ) ≤ ( 1 + ϑ ) T ≤ e d , so the sum is at most ( e T / d ) d ≤ ( e T ) d (eT/d)^d\le(eT)^d ( e T / d ) d ≤ ( e T ) d ; for d > T d>T d > T use 2 T ≤ ( e T ) d 2^T\le(eT)^d 2 T ≤ ( e T ) d . Hence ∣ X ′ ∣ ≤ ( e T ) d |X'|\le(eT)^d ∣ X ′ ∣ ≤ ( e T ) d , and ∣ X ′ ∣ ≥ ( 1 − δ ) ( m k ) ≥ ( 1 − δ ) ( m / k ) k |X'|\ge(1-\delta)\binom{m}{k}\ge(1-\delta)(m/k)^k ∣ X ′ ∣ ≥ ( 1 − δ ) ( k m ) ≥ ( 1 − δ ) ( m / k ) k gives the bound. ■
The guarantee concerns whole output vectors and cannot be replaced by a small average fraction of wrong gates: changing one support element changes only 2 ( k − 1 ) 2(k-1) 2 ( k − 1 ) pairs. The same count covers L − 1 L-1 L − 1 hidden ReLU layers of widths T 1 , … , T L − 1 T_1,\ldots,T_{L-1} T 1 , … , T L − 1 followed by T L T_L T L threshold units: after removing ties, each layer is affine on every region cut out by the earlier activation patterns, so ∣ X ′ ∣ ≤ ∏ ℓ ∑ i ≤ d ( T ℓ i ) |X'|\le\prod_\ell\sum_{i\le d}\binom{T_\ell}{i} ∣ X ′ ∣ ≤ ∏ ℓ ∑ i ≤ d ( i T ℓ ) and d ≥ log ∣ X ′ ∣ / ∑ ℓ log ( e T ℓ ) d\ge\log|X'|/\sum_\ell\log(eT_\ell) d ≥ log ∣ X ′ ∣/ ∑ ℓ log ( e T ℓ ) . Constant depth and polynomial width still need Ω ( k ) \Omega(k) Ω ( k ) dimensions in the skewed regime.
Proof of proposition H.7. Write p S ( y ) = ∏ ℓ ∈ S ( y − ℓ ) 2 = y 2 k + ∑ j < 2 k c j ( S ) y j p_S(y)=\prod_{\ell\in S}(y-\ell)^2=y^{2k}+\sum_{j<2k}c_j(S)y^j p S ( y ) = ∏ ℓ ∈ S ( y − ℓ ) 2 = y 2 k + ∑ j < 2 k c j ( S ) y j and φ ( S ) = ( c 0 ( S ) , … , c 2 k − 1 ( S ) ) \varphi(S)=(c_0(S),\ldots,c_{2k-1}(S)) φ ( S ) = ( c 0 ( S ) , … , c 2 k − 1 ( S )) . At an integer i ∈ [ m ] i\in[m] i ∈ [ m ] , p S ( i ) = 0 p_S(i)=0 p S ( i ) = 0 if i ∈ S i\in S i ∈ S and p S ( i ) ≥ 1 p_S(i)\ge1 p S ( i ) ≥ 1 otherwise, so x i x j = 1 { p S ( i ) + p S ( j ) < 1 / 2 } x_i x_j=1\{p_S(i)+p_S(j)<1/2\} x i x j = 1 { p S ( i ) + p S ( j ) < 1/2 } . For fixed ( i , j ) (i,j) ( i , j ) the right side is an affine threshold of the 2 k 2k 2 k coefficients, the leading terms being absorbed into the bias; lifting the bias adds one coordinate, so the sign matrix has sign-rank at most 2 k + 1 2k+1 2 k + 1 . ■
With proposition H.6, Θ ( k ) \Theta(k) Θ ( k ) dimensions are necessary and sufficient for arbitrary encodings with one threshold per pair in the skewed regime. The code is nonlinear in the input bits, its coefficients are large and its normalized margins small. Unrestricted readout complexity alone would make dimension vacuous, since a single real number can encode a finite binary input to arbitrary precision; both the encoding and the readout must be specified when a dimension lower bound is interpreted.
Window formulas and the expected-count gap
The profiles are explicit: Ψ β ( x ) = ∫ 0 ∞ exp ( − τ − τ − β e − β x ) d τ \Psi_\beta(x)=\int_0^\infty\exp(-\tau-\tau^{-\beta}e^{-\beta x})\,d\tau Ψ β ( x ) = ∫ 0 ∞ exp ( − τ − τ − β e − β x ) d τ , with Ψ 1 ( x ) = 2 e − x / 2 K 1 ( 2 e − x / 2 ) \Psi_1(x)=2e^{-x/2}K_1(2e^{-x/2}) Ψ 1 ( x ) = 2 e − x /2 K 1 ( 2 e − x /2 ) for the modified Bessel function K 1 K_1 K 1 and Ψ β ( x ) → exp ( − e − x ) \Psi_\beta(x)\to\exp(-e^{-x}) Ψ β ( x ) → exp ( − e − x ) as β → ∞ \beta\to\infty β → ∞ ; and F + ( x ) = e c + ∫ 0 c e − c / s d s F_+(x)=e^{\sqrt{c}}+\int_0^{\sqrt{c}}e^{-c/s}\,ds F + ( x ) = e c + ∫ 0 c e − c / s d s with c = e − x c=e^{-x} c = e − x . The optimized window is narrower than the midpoint window by the factor 4 ( 1 + β ) / ( 3 + β ) ∈ [ 2 , 4 ) 4(1+\beta)/(3+\beta)\in[2,4) 4 ( 1 + β ) / ( 3 + β ) ∈ [ 2 , 4 ) . The half-slack bias is optimal to first order, but its profile Ψ β ( x / 2 ) F + ( x / 2 ) \Psi_\beta(x/2)F_+(x/2) Ψ β ( x /2 ) F + ( x /2 ) is in general smaller than the supremum; a bias tuned to a target finite-size success level allocates the slack differently. At the centers the limits are Ψ β ( 0 ) \Psi_\beta(0) Ψ β ( 0 ) for the midpoint and Ψ β ( 0 ) F + ( 0 ) \Psi_\beta(0)F_+(0) Ψ β ( 0 ) F + ( 0 ) for the half-slack bias, with F + ( 0 ) = 0.516 F_+(0)=0.516 F + ( 0 ) = 0.516 ; § 10 compares both with simulation.
Figure J.1. The four first-order thresholds of pairwise conjunction and the threshold of feature recovery, in units of k log m k\log m k log m , as functions of log m / log k \log m/\log k log m / log k . All four conjunction thresholds equal 32 k log k 32k\log k 32 k log k when log m ∼ log k \log m\sim\log k log m ∼ log k ; they separate toward 16, 8, 4 and 2 (dotted). The vertical lines mark the regimes of the simulations in § 10 .
The Markov gap inside the window Conditionally on the active reads, the inactive reads are independent, so the number of inactive features that create at least one wrong one-active gate is binomial, and it is asymptotically Poisson with a random intensity Λ \Lambda Λ (Appendix § 18 ). At the midpoint, inside the window and along sequences with β → β 0 ∈ [ 1 , ∞ ) \beta\to\beta_0\in[1,\infty) β → β 0 ∈ [ 1 , ∞ ) , Λ \Lambda Λ converges in law to Λ ∞ = e β 0 ( G A − x ) \Lambda_\infty=e^{\beta_0(G_A-x)} Λ ∞ = e β 0 ( G A − x ) . Hence
P ( X = 0 ) → E e − Λ ∞ = Ψ β 0 ( x ) ∈ ( 0 , 1 ) , \mathbb{P}(X=0)\to\mathbb{E}\,e^{-\Lambda_\infty}=\Psi_{\beta_0}(x)\in(0,1), P ( X = 0 ) → E e − Λ ∞ = Ψ β 0 ( x ) ∈ ( 0 , 1 ) ,
while
E Λ ∞ = e − β 0 x ∫ 0 ∞ τ − β 0 e − τ d τ = ∞ , \mathbb{E}\Lambda_\infty=e^{-\beta_0x}\int_0^\infty\tau^{-\beta_0}e^{-\tau}\,\mathrm{d}\tau=\infty, E Λ ∞ = e − β 0 x ∫ 0 ∞ τ − β 0 e − τ d τ = ∞ ,
and by Fatou’s lemma the expected number of firing inactive features, and with it E X \mathbb{E}X E X , tends to infinity throughout the window. The limiting intensity is heavy-tailed: an unusually large active read lets an unusually large number of inactive features fire together. A typical draw has no error with probability Ψ β 0 ( x ) \Psi_{\beta_0}(x) Ψ β 0 ( x ) , while the mean is carried by rare draws. This is the second-order form of the gap between the ball and the box.
Further comparisons and experiments
The four pairwise thresholds
Comparison with other decoders
The ratio reflects the architecture rather than the task. A common bias for r r r -way conjunction must separate the sum of the r r r smallest active reads from the sum of the r − 1 r-1 r − 1 largest active reads and the largest inactive read, so its box support contains 2 r − 1 2r-1 2 r − 1 active levels, whereas that of recovery contains one. For m = k 4 m=k^4 m = k 4 , where β = 2 \beta=2 β = 2 , recovery needs 18 k log k 18k\log k 18 k log k dimensions and direct pairwise conjunction 50 k log k 50k\log k 50 k log k ; the midpoint pairwise network needs 72 k log k 72k\log k 72 k log k to be reliable and 80 k log k 80k\log k 80 k log k for a vanishing expected count. Decoders that are not a single threshold layer can do better. The Lasso recovers the support from about 2 k log ( m − k ) 2k\log(m-k) 2 k log ( m − k ) measurements. [44 ] , and ℓ 1 \ell_1 ℓ 1 minimization recovers a typical nonnegative k k k -sparse vector from about 2 k log ( m / k ) 2k\log(m/k) 2 k log ( m / k ) noiseless Gaussian measurements [16 ] . When log k = o ( log m ) \log k = o(\log m) log k = o ( log m ) both are 2 k log m 2k\log m 2 k log m to first order, the optimized reliability threshold of direct pairwise conjunction; when log m ∼ log k \log m \sim\log k log m ∼ log k the second is o ( k log k ) o(k\log k) o ( k log k ) , far below 32 k log k 32k\log k 32 k log k . The constants of this paper are therefore those of one layer of threshold readouts of a fixed random code.
Figure J.2. Pairwise conjunction, 4096 exact draws per point, pointwise 95% Wilson bands. (a) Three deterministic biases and feature recovery evaluated on the same draws; the count-optimal and half-slack curves nearly coincide, and recovery switches on near ratio 0.39, left of the plotted range. (b) The half-slack bias of Theorem 6.1 (a) as k k k grows; dashed curves are the profiles Ψ β ^ ( x / 2 ) F + ( x / 2 ) \Psi_{\hat{\beta}}(x/2)F_+(x/2) Ψ β ^ ( x /2 ) F + ( x /2 ) of Theorem 7.1 (ii) at the slack x = λ ^ 1 ( d / k − 3 λ ^ 1 − λ ^ 0 ) x = \hat{\lambda}_1(\sqrt{d/k} - 3\hat{\lambda}_1 - \hat{\lambda}_0) x = λ ^ 1 ( d / k − 3 λ ^ 1 − λ ^ 0 ) .
For asymmetric gates the weights matter as well as the bias: at the alternating threshold of the comparator 1 { ∑ i 2 l − 1 z l ≥ T } 1\{\sum_i 2^{l-1}z_l \ge T\} 1 { ∑ i 2 l − 1 z l ≥ T } the optimal weights are Fibonacci numbers, and when all classes count equally binary weights overstate the price by a factor exponential in r r r (Appendix § 17 ).
Additional experimental figures
The first two panels of Figure 2 show the k = 1024 k = 1024 k = 1024 comparisons. The figures below add the other activities, window profiles and bias rules.
Full campaign results
The bias matters before the limit The first campaign (Figure J.2) evaluates three deterministic biases for pairwise conjunction on shared draws, together with feature recovery, at k = 64 , 256 , 1024 k = 64, 256, 1024 k = 64 , 256 , 1024 with m = k 4 m = k^4 m = k 4 and at k = 1024 k = 1024 k = 1024 with m = k 2 m = k^2 m = k 2 , with 13 dimensions per case and 4096 draws per cell. At k = 1024 k = 1024 k = 1024 , m = 1024 4 m = 1024^4 m = 102 4 4 and d = 1.35 k ( 3 λ ^ 1 + λ ^ 0 ) 2 d = 1.35\,k(3\hat{\lambda}_1 + \hat{\lambda}_0)^2 d = 1.35 k ( 3 λ ^ 1 + λ ^ 0 ) 2 , the half-slack bias of Theorem 6.1 (a) succeeds on 3984 of 4096 draws, the bias optimized for counting on 3912, and the midpoint on 2. At the smallest dimension of the grid feature recovery succeeds on 4056 draws and every conjunction rule on none, as corollary 6.3 predicts. At the quantile center the three cases with m = k 4 m = k^4 m = k 4 succeed with frequencies 0.143, 0.139 and 0.155, and Theorem 7.1 (ii) predicts Ψ β ^ ( 0 ) F + ( 0 ) = 0.155 \Psi_{\hat{\beta}}(0)F_+(0) = 0.155 Ψ β ^ ( 0 ) F + ( 0 ) = 0.155 , 0.154 and 0.154 for the half-slack bias, with β ^ = λ ^ 0 / λ ^ 1 \hat{\beta} = \hat{\lambda}_0/\hat{\lambda}_1 β ^ = λ ^ 0 / λ ^ 1 ; the dashed curves in Figure J.2(b) are the whole predicted profiles, and Table L.4 adds the case m = k 2 m = k^2 m = k 2 and an independent replication.
Figure J.3. Reliability of four threshold gates at m = k 4 m = k^4 m = k 4 with the half-slack bias of Theorem 6.1 (a) for k = 64 , 256 , 1024 k = 64, 256, 1024 k = 64 , 256 , 1024 , and with the midpoint bias and the sample-adaptive oracle bias for k = 1024 k = 1024 k = 1024 . The horizontal axis is the dimension in units of the quantile box center of each gate. Dashed line: that center; dotted line: the midpoint box threshold of Theorem 6.1 (b) in the same units.
The box beyond conjunction The second campaign tests Theorem 6.1 (a) for AND2 _2 2 , AND3 _3 3 , OR2 _2 2 and MAJ3 _3 3 at m = k 4 m = k^4 m = k 4 (Figure J.3). In units of the quantile box center k ( ( 2 t − 1 ) λ ^ 1 + ( 2 r − 2 t + 1 ) λ ^ 0 ) 2 k((2t-1)\hat{\lambda}_1 + (2r-2t+1)\hat{\lambda}_0)^2 k (( 2 t − 1 ) λ ^ 1 + ( 2 r − 2 t + 1 ) λ ^ 0 ) 2 , all four gates show the same picture at k = 1024 k = 1024 k = 1024 : success is at most 3.8% at 0.9, between 15.6% and 30.7% at 1, and between 82.7% and 97.9% at 1.2, and the curves steepen with k k k . The oracle, which chooses the bias after seeing the reads, reaches 50% success between 0.98 and 1.03 times the center, 2% to 7% earlier in dimension than the half-slack rule and consistent with Theorem 5.4 (ii). The midpoint rule of each gate switches on near its own box threshold, marked by a dotted line; for AND2 _2 2 it succeeds on none of the 4096 draws at 1.2.
Separation of the two thresholds The third campaign fixes the midpoint pairwise network at k = 1024 k = 1024 k = 1024 and increases log m / log k \log m/\log k log m / log k from 4 to 16 to 64, so that β = 2 , 4 , 8 \beta= 2, 4, 8 β = 2 , 4 , 8 (Figure 2 ). Reliability switches on at the box: at the center the success frequencies 0.295, 0.324 and 0.340 match the limits Ψ β ^ ( 0 ) = 0.298 , 0.326 \Psi_{\hat{\beta}}(0) = 0.298, 0.326 Ψ β ^ ( 0 ) = 0.298 , 0.326 and 0.346 of Theorem 7.1 (i). The expected number of wrong outputs crosses one at about 1.23, 1.45 and 1.67 times the center d 0 d_0 d 0 of (13) , tracking the first-order ball positions 2 ( 1 + β 2 ) / ( 1 + β ) 2 = 1.11 2(1+\beta^2)/(1+\beta)^2 = 1.11 2 ( 1 + β 2 ) / ( 1 + β ) 2 = 1.11 , 1.36 and 1.60 with offsets 0.12, 0.09 and 0.06 that shrink as β \beta β grows. At m = k 64 m=k^{64} m = k 64 and d = 1.5 d 0 d=1.5d_0 d = 1.5 d 0 all 4096 draws are correct, while E X ≈ 2.8 × 10 19 \mathbb{E}X \approx2.8 \times10^{19} E X ≈ 2.8 × 1 0 19 . Values of m m m this large are a mathematical stress test of the first-order theory, reachable because the exact law never builds the dictionary.
Finite checks
The checks below test identities, closed forms and implementations on finite instances. The code-and-data archive contains the scripts and outputs.
The box identity The script check_box_identity.py draws 400 random instances with r ∈ { 1 , 2 , 3 } r \in\{1,2,3\} r ∈ { 1 , 2 , 3 } , pools of sizes between 2 r 2r 2 r and 2 r + 2 2r+2 2 r + 2 , Gaussian reads and Gaussian weights (every third instance with nonnegative weights). For every class z z z and both error directions it enumerates all ordered tuples of distinct features and compares the maximum of ⟨ b , ξ I ⟩ \langle b,\xi_I\rangle ⟨ b , ξ I ⟩ with the rearrangement formula of lemma B.2. All 3720 class–direction pairs agree to within 1.8 × 10 − 15 1.8 \times10^{-15} 1.8 × 1 0 − 15 .
The two programs The script check_programs.py solves the ball program (10) , with the radii ∥ λ z ∥ \lVert\lambda_z\rVert ∥ λ z ∥ in units λ 1 = 1 \lambda_1=1 λ 1 = 1 , λ 0 = β \lambda_0=\beta λ 0 = β , as a second-order cone program, and the box program of proposition B.3 by bisection over linear programs, in both cases over all representations ( a , θ ) (a,\theta) ( a , θ ) without imposing symmetry. For every T H R t r \mathrm{THR}_t^r THR t r with r ≤ 4 r \le4 r ≤ 4 and every β ∈ { 1 , 1.5 , 2 , 4 , 10 } \beta\in\{1,1.5,2,4,10\} β ∈ { 1 , 1.5 , 2 , 4 , 10 } , the optimal values agree with (a) and (d) of Theorem 6.1 , and the midpoint prices with (b) and (c), to relative accuracy 8 × 10 − 7 8 \times10^{-7} 8 × 1 0 − 7 . The optimal box weights returned by the solver are equal across positions up to solver tolerance. At β = 1 \beta=1 β = 1 all four values equal 4 r 2 4r^2 4 r 2 in these units.
The reduced sampler The script check_thr_direct.py compares the exact reduced sampler with direct simulation: for each draw it generates a Gaussian dictionary, forms u u u , and enumerates every r r r -subset. For the largest negative and the smallest positive score, the two-sample Kolmogorov–Smirnov statistics over 4000 draws per method are as follows.
Table 1 (PDF p. 43).
For pairwise conjunction the frozen campaign of Appendix § 24 used an independent direct-matrix implementation at ( k , m , d ) = ( 8 , 40 , 100 ) (k,m,d)=(8,40,100) ( k , m , d ) = ( 8 , 40 , 100 ) with 12000 draws per method: the Kolmogorov–Smirnov distances for the largest active read, the sum of the two smallest active reads, the largest inactive read and the largest negative score are 0.0121, 0.0112, 0.0075 and 0.0117. A separate enumeration confirms the all-pairs success identity of proposition B.1 and lemma B.2 at five biases.
Algebra The script verify_algebra_v2.py checks all 1013 nonconstant comparator thresholds of arities 1 to 9 against their 348502 truth-table entries: the unit-gap construction, the Fibonacci bound on every weight, and attainment by the alternating threshold. It evaluates the polynomial code of proposition H.7 in integer arithmetic on 2427 supports (3 ≤ m ≤ 11 3 \le m \le11 3 ≤ m ≤ 11 , $2 \le k \le min ( 5 , m − 1 ) \min(5,m-1) min ( 5 , m − 1 ) , checking 106658 pair outputs, and verifies the row cumulants and the coefficient c ν c_\nu c ν of proposition H.1 symbolically.
Experimental protocol and additional results
Sampling
Each draw samples H ∼ χ d 2 / d H \sim\chi_d^2/d H ∼ χ d 2 / d and k k k standard Gaussians, forms the active reads of (7) , and sorts them. For the inactive sample only its j j j smallest and j j j largest values are needed (j = 2 j=2 j = 2 for pairwise conjunction, j = r j=r j = r in general). Writing each inactive value through its distribution function, the smallest of n n n uniforms is 1 − U 1 / n 1-U^{1/n} 1 − U 1/ n ; conditionally on the smallest j j j values, the other points are uniform above the j j j th, and their largest values follow by the same rule on the shorter interval. The 2 j 2j 2 j uniforms are mapped through Φ − 1 \Phi^{-1} Φ − 1 in the upper-tail parametrization, using expm1 and logarithms to keep precision when n n n is as large as k 64 k^{64} k 64 . Success is checked by proposition B.1 and lemma B.2 with the strictness of the readout; ties have probability zero. A draw costs O ( k log k ) O(k\log k) O ( k log k ) time and O ( k ) O(k) O ( k ) memory, independent of m m m and d d d , while direct simulation needs O ( d m ) O(dm) O ( d m ) memory.
Expected error counts are computed by one-dimensional quadrature of proposition 3.2, E X = ∑ j C j p j \mathbb{E}X=\sum_j C_jp_j E X = ∑ j C j p j with the exact class sizes C j = ( k j ) ( n r − j ) C_j=\binom{k}{j}\binom{n}{r-j} C j = ( j k ) ( r − j n ) of the unordered family, integrating over J J J in the logarithmic domain between chi-square quantiles of probability 10 − 15 10^{-15} 1 0 − 15 with relative tolerance 10 − 10 10^{-10} 1 0 − 10 . For pairwise conjunction this reproduces the frozen values of the first campaign, for example 6.7416 and 0.32739 at ratios 1.2 and 1.35 below.
Campaign E1: pairwise conjunction (frozen 22 September 2026)
The grid uses m = k 4 m=k^4 m = k 4 with k = 64 , 256 , 1024 k=64,256,1024 k = 64 , 256 , 1024 and m = k 2 m=k^2 m = k 2 with k = 1024 k=1024 k = 1024 , the dimension ratios { 0.6 , 0.7 , 0.8 , 0.9 , 1 , 1.1 , 1.2 , 1.35 , 1.5 , 1.75 , 2 , 2.5 , 3 } \{0.6,0.7,0.8,0.9,1,1.1,1.2,1.35,1.5,1.75,2,2.5,3\} { 0.6 , 0.7 , 0.8 , 0.9 , 1 , 1.1 , 1.2 , 1.35 , 1.5 , 1.75 , 2 , 2.5 , 3 } relative to k ( 3 λ ^ 1 + λ ^ 0 ) 2 k(3\hat{\lambda}_1+\hat{\lambda}_0)^2 k ( 3 λ ^ 1 + λ ^ 0 ) 2 , rounded to integers, and 4096 draws per cell: 52 cells and 212992 independent draws. Seed 20260922 generates one SeedSequence per cell. The three biases, fixed before sampling, are the midpoint 3 / 2 3/2 3/2 , the bias optimized for counting 1 + log N − / ( log N − + log N + ) 1+\sqrt{\log N_-}/(\sqrt{\log N_-}+\sqrt{\log N_+}) 1 + log N − / ( log N − + log N + ) with N − = k n N_-=kn N − = k n and N + = ( k 2 ) N_+=\binom{k}{2} N + = ( 2 k ) , and the half-slack bias 3 / 2 + 1 2 σ d ( λ ^ 0 − λ ^ 1 ) 3/2+\frac{1}{2}\sigma_d(\hat{\lambda}_0-\hat{\lambda}_1) 3/2 + 2 1 σ d ( λ ^ 0 − λ ^ 1 ) of Theorem 6.1 (a); feature recovery uses 1 2 + 1 2 σ d ( λ ^ 0 − λ ^ 1 ) \frac{1}{2}+\frac{1}{2}\sigma_d(\hat{\lambda}_0-\hat{\lambda}_1) 2 1 + 2 1 σ d ( λ ^ 0 − λ ^ 1 ) . All rules share the draws of a cell. The sample-adaptive event that the largest negative score lies below the smallest positive score is stored as a feasibility bound and is not counted as a rule. No cell or draw was excluded. The run used Python 3.11.3, NumPy 1.26.4 and SciPy 1.16.3 on one CPU node with one BLAS thread, 81 seconds of CPU time and about 221 MiB of memory; runner and configuration hashes match the recorded run.
Estimating the mean is harder than estimating reliability. The mean count is carried by rare draws, so Monte Carlo estimates of it can mislead even when their standard errors are small. At k = 1024 k=1024 k = 1024 , m = 1024 4 m=1024^4 m = 102 4 4 and ratio 1.35, the Rao–Blackwellized sample mean of X X X is 0.063 with standard error 0.011, while quadrature of the exact one-gate law gives 0.327 (Table L.1). The main text therefore reports quadrature values of E X \mathbb{E}X E X and uses simulation only for P ( X = 0 ) \mathbb{P}(X=0) P ( X = 0 ) .
Figure L.1. All four cases of campaign E1. Each point uses 4096 independent draws; bands are pointwise 95% Wilson intervals. The three bias rules and feature recovery share each cell’s draws.
Campaigns E2 and E3 (frozen 27 September 2026)
The configuration box-v1.json was written before any run. Campaign E2 covers AND2 _2 2 , AND3 _3 3 , OR2 _2 2 and MAJ3 _3 3 with k = 64 k = 64 k = 64 , 256, 1024 and m = k 4 m = k^4 m = k 4 , the same 13 dimension ratios relative to the quantile box center k ( ( 2 t − 1 ) λ ^ 1 + ( 2 r − 2 t + 1 ) λ ^ 0 ) 2 k((2t - 1)\hat{\lambda}_1 + (2r - 2t + 1)\hat{\lambda}_0)^2 k (( 2 t − 1 ) λ ^ 1 + ( 2 r − 2 t + 1 ) λ ^ 0 ) 2 , and 4096 draws per cell; the rules are the half-slack bias t − 1 2 + 1 2 σ d ( λ ^ 0 − λ ^ 1 ) t - \frac{1}{2} + \frac{1}{2}\sigma_d(\hat{\lambda}_0 - \hat{\lambda}_1) t − 2 1 + 2 1 σ d ( λ ^ 0 − λ ^ 1 ) , the midpoint t − 1 2 t - \frac{1}{2} t − 2 1 , and the oracle, which succeeds on a draw when some common bias separates its largest negative score from its smallest positive score; by Theorem 5.4 (ii) even this sample-adaptive rule fails below the box threshold. Campaign E3 fixes the midpoint AND2 _2 2 network at k = 1024 k = 1024 k = 1024 with m = k 4 m = k^4 m = k 4 , k 16 k^{16} k 16 , k 64 k^{64} k 64 and 11 ratios relative to 4 k ( λ ^ 1 + λ ^ 0 ) 2 4k(\hat{\lambda}_1 + \hat{\lambda}_0)^2 4 k ( λ ^ 1 + λ ^ 0 ) 2 . Seed 20260927 generates one SeedSequence per cell. The run used Python 3.13.9, NumPy 1.26.4 and SciPy 1.16.3 on a laptop CPU and took 188 seconds; all per-draw extremes are stored.
Window profiles at the center
Table L.4 compares the success frequencies at the quantile centers with the limits of Theorem 7.1 , evaluated at β ^ = λ ^ 0 / λ ^ 1 \hat{\beta} = \hat{\lambda}_0/\hat{\lambda}_1 β ^ = λ ^ 0 / λ ^ 1 : Ψ β ^ ( 0 ) F + ( 0 ) \Psi_{\hat{\beta}}(0)F_+(0) Ψ β ^ ( 0 ) F + ( 0 ) for the half-slack bias, whose slack splits evenly, and Ψ β ^ ( 0 ) \Psi_{\hat{\beta}}(0) Ψ β ^ ( 0 ) for the midpoint. The pairwise rows of campaign E2 use the same rule as E1 with independent seeds. At k = 1024 k = 1024 k = 1024 all six limits lie inside the 95% intervals; at k = 64 k = 64 k = 64 and 256 the frequencies lie between 0.006 and 0.015 below the limits, a finite-size lag that disappears by k = 1024 k = 1024 k = 1024 .
Table L.1. The half-slack bias at k = 1024 k = 1024 k = 1024 , m = 1024 4 m = 1024^4 m = 102 4 4 (campaign E1). Mean error is the Rao–Blackwellized sample mean over the inactive reads with its Monte Carlo standard error; the last column is the quadrature of proposition 3.2. Rare draws carry the mean, so the sample mean and its standard error can both be misleading, as at ratio 1.35.
Table L.2. Campaign E2 at k = 1024 k = 1024 k = 1024 , m = k 4 m = k^4 m = k 4 : success frequency of the half-slack rule (out of 4096) and of the oracle at selected dimension ratios to the quantile box center.
Table L.3. Campaign E3, the midpoint pairwise network at k = 1024 k = 1024 k = 1024 : success frequency (out of 4096) and exact expected number of wrong outputs at selected dimension ratios to d 0 = 4 k ( λ ^ 1 + λ ^ 0 ) 2 d_0 = 4k(\hat{\lambda}_1 + \hat{\lambda}_0)^2 d 0 = 4 k ( λ ^ 1 + λ ^ 0 ) 2 .
Table L.4. Success frequency at the quantile center (dimension ratio 1, 4096 draws) against the limit of Theorem 7.1 .
Applications, implications and open problems
A threshold in this paper answers a design question: how wide must a shared stored vector be before a family of logical reads becomes dependable? The answer depends on what “dependable” means, on the bias, and on what else the vector carries. This section turns the results into five rules that make these dependencies explicit. Appendix § 25 .§ 1 orders the error criteria by the width they need. Appendix § 25 .§ 2 inverts the thresholds into a feature capacity at fixed width. Appendix § 25 .§ 3 converts the window profiles into the width for a prescribed success probability. Appendix § 25 .§ 4 checks every gate of a universal layer on any realized representation from a few extreme reads. Appendix § 25 .§ 5 separates the part of a threshold paid for activity from the part paid for the read family. Appendices § 25 .§ 6 and § 25 .§ 8 draw the consequences for evaluation and for claims about superposition, and Appendix § 25 .§ 9 states open problems. The corollaries and propositions below are proved from the results of the paper. Numbers new to this section are computed by check_sizing_rule.py from the window profiles and the frozen campaigns of Appendix § 24 , without new sampling; the others are quoted from Appendices § 22 and § 24 .
Which failure, which width
A layer of ∣ F ∣ |\mathcal{F}| ∣ F ∣ gates can be judged by the fraction of wrong outputs, by the expected number of wrong outputs, by the probability that some output is wrong, or by correctness on every input. The four criteria protect different objects: a typical gate, an additive loss, a typical input and every input. The widths they require differ by more than constants, and the first criterion carries no logarithm at all.
Corollary M.1 (Average accuracy carries no logarithm). Let F \mathcal{F} F be any gate family of fixed arity r r r , let ( a , θ ) ∈ Rep ( g ) (a,\theta) \in\operatorname{Rep}(\mathfrak{g}) ( a , θ ) ∈ Rep ( g ) be fixed, and use the canonical rule. Then EX / ∣ F ∣ → 0 \operatorname{EX}/|\mathcal{F}| \to0 EX /∣ F ∣ → 0 if and only if d / k → ∞ d/k \to\infty d / k → ∞ . No further condition on m m m and no condition on the structure of F \mathcal{F} F is needed.
Proof. A fixed gate has class z z z with probability N z / ∣ F ∣ N_z/|\mathcal{F}| N z /∣ F ∣ , so EX / ∣ F ∣ = ∑ z ( N z / ∣ F ∣ ) p z \operatorname{EX}/|\mathcal{F}| = \sum_z (N_z/|\mathcal{F}|)p_z EX /∣ F ∣ = ∑ z ( N z /∣ F ∣ ) p z is a convex combination of the 2 r 2^r 2 r class error probabilities. By (C.4), p z = E Φ ( T z ) p_z = \mathbb{E}\Phi(T_z) p z = E Φ ( T z ) with T z = T_z = T z = ( s z − ζ z ⟨ a , z ⟩ ( J − 1 ) ) / ( v z J / d ) (s_z-\zeta_z\langle a,z\rangle(J-1))/(v_z\sqrt{J/d}) ( s z − ζ z ⟨ a , z ⟩ ( J − 1 )) / ( v z J / d ) and ( k − r ) ∥ a ∥ 2 ≤ v z 2 ≤ k ∥ a ∥ 2 (k-r)\lVert a\rVert^2\le v_z^2\le k\lVert a\rVert^2 ( k − r ) ∥ a ∥ 2 ≤ v z 2 ≤ k ∥ a ∥ 2 . If d / k → ∞ d/k\to\infty d / k → ∞ , then J → 1 J\to1 J → 1 in probability, and s z d / ( ∥ a ∥ k ) → ∞ s_z\sqrt{d}/(\lVert a\rVert\sqrt{k})\to\infty s z d / (∥ a ∥ k ) → ∞ because s z s_z s z and a a a are fixed. Hence T z → ∞ T_z\to\infty T z → ∞ in probability, p z → 0 p_z\to0 p z → 0 for every class by bounded convergence, and so does the convex combination. If instead d ≤ C k d\le Ck d ≤ C k along a subsequence, then on { 1 / 2 ≤ J ≤ 2 } \{1/2\le J\le2\} { 1/2 ≤ J ≤ 2 } the bound (C.3) gives a numerator at most 3 r ∥ a ∥ 3\sqrt{r}\lVert a\rVert 3 r ∥ a ∥ and a denominator at least ∥ a ∥ ( k − r ) / ( 2 d ) \lVert a\rVert\sqrt{(k-r)/(2d)} ∥ a ∥ ( k − r ) / ( 2 d ) , so T z ≤ 6 r C T_z\le6\sqrt{rC} T z ≤ 6 r C once k ≥ 2 r k\ge2r k ≥ 2 r . The probability of this event is positive for every d d d and tends to one, so it is at least some c 0 > 0 c_0>0 c 0 > 0 . Thus p z ≥ c 0 Φ ‾ ( 6 r C ) p_z\ge c_0\overline{\Phi}(6\sqrt{rC}) p z ≥ c 0 Φ ( 6 r C ) for every class, and the convex combination stays bounded away from zero. ■
The average is dominated by the most numerous class. For sparse inputs that class has no active input, and its gates fail only when a Gaussian interference of scale σ d \sigma_d σ d crosses a fixed margin; no extreme value enters. Campaign E1 shows the size of this blind spot. At k = 1024 k=1024 k = 1024 , m = 10 24 m=10^{24} m = 1 0 24 and the quantile box centre, the half-slack network has a wrong output on 85% of draws and an expected count of 427, while the expected fraction of wrong outputs is 7.1 × 10 − 22 7.1\times10^{-22} 7.1 × 1 0 − 22 . At 0.6 times the centre no draw is correct, and the fraction is 4.1 × 10 − 18 4.1\times10^{-18} 4.1 × 1 0 − 18 . The zero-active class contains all but about a fraction 2 k / m 2k/m 2 k / m of the gates, and at the centre it contributes 10 − 54 10^{-54} 1 0 − 54 expected errors.
Table M.1. Four error criteria for the universal family of pairwise conjunctions when log k = o ( log m ) \log k=o(\log m) log k = o ( log m ) , in order of the width they require. The first row is a condition on d / k d/k d / k , the middle rows are sharp first-order thresholds, and the last row is sharp up to constants. With optimized biases, the reliability threshold holds against every common representation and the expected-count threshold against every gate-local rule.
Table M.1 is a specification checklist. A sentence such as “the layer computes every pairwise conjunction in superposition at width d d d ” becomes checkable once it names a row. At width of order k log m k\log m k log m the first row holds, the last row fails, and the middle rows are decided by constants that range over a factor of eight. The row follows from how the outputs are consumed. A batch of answers that is discarded after one error needs the second row. A cost that accrues per wrong answer needs the third. Inputs that may be chosen with knowledge of the dictionary need the fourth, and for midpoint probes the widths of the middle rows do not buy it: by proposition 8.1, a midpoint network whose width is of order k log m k\log m k log m fails on some support with probability tending to one, since such a width is eventually below c k 2 log m ck^2\log m c k 2 log m .
Feature capacity at fixed width
Superposition is usually measured by how many features fit into d d d dimensions. The thresholds can be read the same way: fix d d d and k k k , and ask for the largest dictionary under which a criterion still holds. When d / ( k log k ) → ∞ d/(k\log k)\to\infty d / ( k log k ) → ∞ this capacity is exponential in d / k d/k d / k , and the criterion and the bias change the constant in the exponent.
Corollary M.2 (Capacity at fixed width). Let F = U r ( T H R r ) \mathcal{F}=\mathcal{U}_r(\mathrm{THR}_r) F = U r ( THR r ) , let k → ∞ k\to\infty k → ∞ with d / ( k log k ) → ∞ d/(k\log k)\to\infty d / ( k log k ) → ∞ , and fix ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) . For the four parts of Theorem 6.1 put
c a = ( 2 r − 2 t + 1 ) 2 , c b = 4 ( r − t + 1 ) 2 , c c = 4 r ( r − t + 1 ) , c d = r ( r − t + r − t + 1 ) 2 . c_a=(2r-2t+1)^2,\qquad c_b=4(r-t+1)^2,\qquad c_c=4r(r-t+1),\qquad c_d=r\left(\sqrt{r-t}+\sqrt{r-t+1}\right)^2. c a = ( 2 r − 2 t + 1 ) 2 , c b = 4 ( r − t + 1 ) 2 , c c = 4 r ( r − t + 1 ) , c d = r ( r − t + r − t + 1 ) 2 . $
For each part ∙ ∈ { a , b , c , d } \bullet\in\{a,b,c,d\} ∙ ∈ { a , b , c , d } : if m / k → ∞ m/k\to\infty m / k → ∞ and log m ≤ ( 1 − ϵ ) d / ( 2 c ∙ k ) \log m\leq(1-\epsilon)d/(2c_\bullet k) log m ≤ ( 1 − ϵ ) d / ( 2 c ∙ k ) , its criterion holds for the representation named there; if log m ≥ ( 1 + ϵ ) d / ( 2 c ∙ k ) \log m\geq(1+\epsilon)d/(2c_\bullet k) log m ≥ ( 1 + ϵ ) d / ( 2 c ∙ k ) , its criterion fails, in part (a) for every common representation and in part (d) for every gate-local rule.
Proof. Each threshold of Theorem 6.1 has the form k Q ( λ 1 , λ 0 ) ( 1 + o ( 1 ) ) kQ(\lambda_1,\lambda_0)(1+o(1)) k Q ( λ 1 , λ 0 ) ( 1 + o ( 1 )) , where Q Q Q is continuous, nondecreasing in each argument and positively homogeneous of degree two, with Q ( 0 , 1 ) = c ∙ Q(0,1)=c_\bullet Q ( 0 , 1 ) = c ∙ ; for example, Q = ( ( 2 t − 1 ) λ 1 + ( 2 r − 2 t + 1 ) λ 0 ) 2 Q=((2t-1)\lambda_1+(2r-2t+1)\lambda_0)^2 Q = (( 2 t − 1 ) λ 1 + ( 2 r − 2 t + 1 ) λ 0 ) 2 in part (a) and Q = r ( ρ t + ρ t − 1 ) 2 Q=r(\rho_t+\rho_{t-1})^2 Q = r ( ρ t + ρ t − 1 ) 2 in part (d). Suppose first that log m ≤ ( 1 − ϵ ) d / ( 2 c ∙ k ) \log m\leq(1-\epsilon)d/(2c_\bullet k) log m ≤ ( 1 − ϵ ) d / ( 2 c ∙ k ) , and put Λ 2 = ( 1 − ϵ ) d / ( c ∙ k ) \Lambda^2=(1-\epsilon)d/(c_\bullet k) Λ 2 = ( 1 − ϵ ) d / ( c ∙ k ) . Then λ 0 ≤ Λ \lambda_0\leq\Lambda λ 0 ≤ Λ , and λ 1 / Λ → 0 \lambda_1/\Lambda\to0 λ 1 /Λ → 0 because d / ( k log k ) → ∞ d/(k\log k)\to\infty d / ( k log k ) → ∞ . Monotonicity and homogeneity give
k Q ( λ 1 , λ 0 ) ≤ k Λ 2 Q ( λ 1 / Λ , 1 ) = ( 1 − ϵ ) d ( 1 + o ( 1 ) ) , kQ(\lambda_1,\lambda_0)\leq k\Lambda^2Q(\lambda_1/\Lambda,1)=(1-\epsilon)d(1+o(1)), k Q ( λ 1 , λ 0 ) ≤ k Λ 2 Q ( λ 1 /Λ , 1 ) = ( 1 − ϵ ) d ( 1 + o ( 1 )) ,
so for large k k k the width exceeds the threshold by a factor at least 1 + ϵ / 2 1+\epsilon/2 1 + ϵ /2 , and Theorem 6.1 gives the criterion. Suppose next that log m ≥ ( 1 + ϵ ) d / ( 2 c ∙ k ) \log m\geq(1+\epsilon)d/(2c_\bullet k) log m ≥ ( 1 + ϵ ) d / ( 2 c ∙ k ) . Then log m / log k → ∞ \log m/\log k\to\infty log m / log k → ∞ , so m / k → ∞ m/k\to\infty m / k → ∞ and
λ 0 2 = 2 log m ( 1 + o ( 1 ) ) , \lambda_0^2=2\log m(1+o(1)), λ 0 2 = 2 log m ( 1 + o ( 1 )) ,
and
k Q ( λ 1 , λ 0 ) ≥ k Q ( 0 , λ 0 ) = c ∙ k λ 0 2 ≥ ( 1 + ϵ ) d ( 1 − o ( 1 ) ) . kQ(\lambda_1,\lambda_0)\geq kQ(0,\lambda_0)=c_\bullet k\lambda_0^2\geq(1+\epsilon)d(1-o(1)). k Q ( λ 1 , λ 0 ) ≥ k Q ( 0 , λ 0 ) = c ∙ k λ 0 2 ≥ ( 1 + ϵ ) d ( 1 − o ( 1 )) .
The width is thus below the threshold by a fixed factor, and the failure statements and converses of Theorem 6.1 apply. ■
Table M.2. Capacity constants of Corollary M.2 . At width d d d and activity k k k , the criterion tolerates dictionaries with log m \log m log m up to d / ( 2 c ∙ k ) d/(2c_\bullet k) d / ( 2 c ∙ k ) to first order, so a smaller constant means exponentially more features. Columns follow the parts of Theorem 6.1 .
Because the capacity is exponential, a ratio of constants becomes a power of the dictionary size. For r r r -way conjunction c a = 1 c_a=1 c a = 1 and c d = r c_d=r c d = r : at equal width, the largest dictionary with a vanishing expected count is the r r r -th root of the largest reliable one, in the sense that the ratio of their logarithms tends to 1 / r 1/r 1/ r . For conjunction the midpoint bias costs a fourth root under both criteria, because c b / c a = c c / c d = 4 c_b/c_a=c_c/c_d=4 c b / c a = c c / c d = 4 ; one scalar decides whether the layer tolerates m m m features or m 1 / 4 m^{1/4} m 1/4 . Error criteria are known to change capacity constants in associative memories [29 ] ; here they change the constant in the exponent of an exponential capacity.
The constant c a = ( 2 r − 2 t + 1 ) 2 c_a=(2r-2t+1)^2 c a = ( 2 r − 2 t + 1 ) 2 counts the inactive positions in the two binding classes, whose level λ 0 \lambda_0 λ 0 dominates when m ≫ k m\gg k m ≫ k . Conjunction binds on the classes with r − 1 r-1 r − 1 and r r r active inputs and pays for one inactive position; disjunction binds on the classes with none and one active input and pays for 2 r − 1 2r-1 2 r − 1 . Reliable r r r -way conjunction and feature recovery share c a = 1 c_a=1 c a = 1 , so in this regime computing a conjunction directly costs no capacity beyond recovering its inputs. At finite β \beta β the direct route costs the factor ( ( 2 r − 1 + β ) / ( 1 + β ) ) 2 ((2r-1+\beta)/(1+\beta))^2 (( 2 r − 1 + β ) / ( 1 + β ) ) 2 in width (corollary 6.3), which tends to one in the regime of corollary M.2.
Width for a target success probability
A first-order threshold locates the centre of a transition, not an operating point: at its quantile centre the half-slack network of pairwise conjunction succeeds with probability about 0.15 (Table L.4). Theorem 7.1 supplies the missing quantile. With Ψ ∞ ( x ) = exp ( − e − x ) \Psi_\infty(x)=\exp(-e^{-x}) Ψ ∞ ( x ) = exp ( − e − x ) , the limit of Ψ β \Psi_\beta Ψ β as β → ∞ \beta\to\infty β → ∞ , write
P m i d ( x ) = Ψ β 0 ( x ) , P h a l f ( x ) = Ψ β 0 ( x / 2 ) F + ( x / 2 ) , P b e s t ( x ) = sup y ∈ R Ψ β 0 ( y ) F + ( x − y ) . P_{\mathrm{mid}}(x)=\Psi_{\beta_0}(x), \qquad P_{\mathrm{half}}(x)=\Psi_{\beta_0}(x/2)F_+(x/2), \qquad P_{\mathrm{best}}(x)=\sup_{y\in\mathbb{R}}\Psi_{\beta_0}(y)F_+(x-y). P mid ( x ) = Ψ β 0 ( x ) , P half ( x ) = Ψ β 0 ( x /2 ) F + ( x /2 ) , P best ( x ) = y ∈ R sup Ψ β 0 ( y ) F + ( x − y ) .
Corollary M.3 (Width for a target success probability). Let F \mathcal{F} F be the universal family of pairwise conjunctions, k → ∞ k\to\infty k → ∞ , m / k → ∞ m/k\to\infty m / k → ∞ and β → β 0 ∈ [ 1 , ∞ ] \beta\to\beta_0\in[1,\infty] β → β 0 ∈ [ 1 , ∞ ] . Each of P m i d P_{\mathrm{mid}} P mid , P h a l f P_{\mathrm{half}} P half and P b e s t P_{\mathrm{best}} P best is a continuous, strictly increasing distribution function. For δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) let x ∙ ( δ ) x_\bullet(\delta) x ∙ ( δ ) be the ( 1 − δ ) (1-\delta) ( 1 − δ ) -quantile of P ∙ P_\bullet P ∙ , and set
d m i d ( x ) = 4 k ( λ ^ 1 + λ ^ 0 + x λ ^ 1 ) 2 , d o p t ( x ) = k ( 3 λ ^ 1 + λ ^ 0 + x λ ^ 1 ) 2 . (25) d_{\mathrm{mid}}(x)=4k\left(\widehat{\lambda}_1+\widehat{\lambda}_0+\frac{x}{\widehat{\lambda}_1}\right)^2,\qquad d_{\mathrm{opt}}(x)=k\left(3\widehat{\lambda}_1+\widehat{\lambda}_0+\frac{x}{\widehat{\lambda}_1}\right)^2. \tag*{(25)} d mid ( x ) = 4 k ( λ 1 + λ 0 + λ 1 x ) 2 , d opt ( x ) = k ( 3 λ 1 + λ 0 + λ 1 x ) 2 . (25) Fix η > 0 \eta>0 η > 0 . For all large k k k , the midpoint network has P ( X = 0 ) > 1 − δ \mathbb{P}(X=0)>1-\delta P ( X = 0 ) > 1 − δ at d = d m i d ( x m i d ( δ ) + η ) d=d_{\mathrm{mid}}(x_{\mathrm{mid}}(\delta)+\eta) d = d mid ( x mid ( δ ) + η ) and P ( X = 0 ) < 1 − δ \mathbb{P}(X=0)<1-\delta P ( X = 0 ) < 1 − δ at d = d m i d ( x m i d ( δ ) − η ) d=d_{\mathrm{mid}}(x_{\mathrm{mid}}(\delta)-\eta) d = d mid ( x mid ( δ ) − η ) . The same holds for the half-slack bias of Theorem 6.1 (a) with d o p t d_{\mathrm{opt}} d opt and x h a l f x_{\mathrm{half}} x half , and for sup θ P ( X = 0 ) \sup_\theta\mathbb{P}(X=0) sup θ P ( X = 0 ) over deterministic common biases with d o p t d_{\mathrm{opt}} d opt and x b e s t x_{\mathrm{best}} x best .
Proof. Ψ β \Psi_\beta Ψ β is the distribution function of G A + G B / β G_A+G_B/\beta G A + G B / β , with G B / ∞ = 0 G_B/\infty=0 G B /∞ = 0 , and F + F_+ F + is that of − log [ ω 1 ( ω 1 + ω 2 ) ] -\log[\omega_1(\omega_1+\omega_2)] − log [ ω 1 ( ω 1 + ω 2 )] . Both variables have continuous positive densities on R \mathbb{R} R , so Ψ β \Psi_\beta Ψ β , F + F_+ F + and P h a l f P_{\mathrm{half}} P half are continuous and strictly increasing. For P b e s t P_{\mathrm{best}} P best , the product Ψ β 0 ( y ) F + ( x − y ) \Psi_{\beta_0}(y)F_+(x-y) Ψ β 0 ( y ) F + ( x − y ) tends to zero as y → ± ∞ y\to\pm\infty y → ± ∞ , so the supremum is attained, and it increases strictly in x x x because F + F_+ F + does; uniform continuity of F + F_+ F + gives continuity. For every y y y , either y ≤ x / 2 y\le x/2 y ≤ x /2 or x − y < x / 2 x-y<x/2 x − y < x /2 , so P b e s t ( x ) ≤ max { Ψ β 0 ( x / 2 ) , F + ( x / 2 ) } → 0 P_{\mathrm{best}}(x)\le\max\{\Psi_{\beta_0}(x/2),F_+(x/2)\}\to0 P best ( x ) ≤ max { Ψ β 0 ( x /2 ) , F + ( x /2 )} → 0 as x → − ∞ x\to-\infty x → − ∞ ; and P b e s t ≥ P h a l f → 1 P_{\mathrm{best}}\ge P_{\mathrm{half}}\to1 P best ≥ P half → 1 as x → ∞ x\to\infty x → ∞ .
Next, expanding (M.1) gives d m i d ( x ) = d 0 + 8 k ( 1 + β ^ ) x + 4 k x 2 / λ ^ 1 2 d_{\mathrm{mid}}(x)=d_0+8k(1+\widehat{\beta})x+4kx^2/\widehat{\lambda}_1^2 d mid ( x ) = d 0 + 8 k ( 1 + β ) x + 4 k x 2 / λ 1 2 and d o p t ( x ) = d 0 o p t + 2 k ( 3 + β ^ ) x + k x 2 / λ ^ 1 2 d_{\mathrm{opt}}(x)=d^{\mathrm{opt}}_0+2k(3+\widehat{\beta})x+kx^2/\widehat{\lambda}_1^2 d opt ( x ) = d 0 opt + 2 k ( 3 + β ) x + k x 2 / λ 1 2 , with β ^ = λ ^ 0 / λ ^ 1 = β ( 1 + o ( 1 ) ) \widehat{\beta}=\widehat{\lambda}_0/\widehat{\lambda}_1=\beta(1+o(1)) β = λ 0 / λ 1 = β ( 1 + o ( 1 )) (Appendix § 18 ). The window units 8 k ( 1 + β ) ≥ 16 k 8k(1+\beta)\ge16k 8 k ( 1 + β ) ≥ 16 k and 2 k ( 3 + β ) ≥ 8 k 2k(3+\beta)\ge8k 2 k ( 3 + β ) ≥ 8 k dominate the quadratic terms, so d ∙ ( x ) d_\bullet(x) d ∙ ( x ) is the window point of Theorem 7.1 at x + o ( 1 ) x+o(1) x + o ( 1 ) , uniformly on compact sets. Theorem 7.1 then gives success probabilities P ∙ ( x ) + o ( 1 ) P_\bullet(x)+o(1) P ∙ ( x ) + o ( 1 ) with Ψ β \Psi_\beta Ψ β in place of Ψ β 0 \Psi_{\beta_0} Ψ β 0 . As β → β 0 \beta\to\beta_0 β → β 0 , G A + G B / β → G A + G B / β 0 G_A+G_B/\beta\to G_A+G_B/\beta_0 G A + G B / β → G A + G B / β 0 almost surely and the limit has a continuous distribution function, so Ψ β → Ψ β 0 \Psi_\beta\to\Psi_{\beta_0} Ψ β → Ψ β 0 uniformly; the same follows for P h a l f P_{\mathrm{half}} P half and P b e s t P_{\mathrm{best}} P best , since a supremum moves by at most the uniform distance. Strict monotonicity gives P ∙ ( x ∙ ( δ ) + η ) > 1 − δ > P ∙ ( x ∙ ( δ ) − η ) P_\bullet(x_\bullet(\delta)+\eta)>1-\delta>P_\bullet(x_\bullet(\delta)-\eta) P ∙ ( x ∙ ( δ ) + η ) > 1 − δ > P ∙ ( x ∙ ( δ ) − η ) .
Equation (M.1) is the first-order threshold with a slack x ∙ ( δ ) / λ ^ 1 x_\bullet(\delta)/\widehat{\lambda}_1 x ∙ ( δ ) / λ 1 added to the extreme-value levels. In relative terms the overhead of the half-slack rule is ( 1 + x h a l f ( δ ) / ( λ ^ 1 ( 3 λ ^ 1 + λ ^ 0 ) ) ) 2 − 1 (1+x_{\mathrm{half}}(\delta)/(\widehat{\lambda}_1(3\widehat{\lambda}_1+\widehat{\lambda}_0)))^2-1 ( 1 + x half ( δ ) / ( λ 1 ( 3 λ 1 + λ 0 )) ) 2 − 1 , of order x h a l f ( δ ) / log k x_{\mathrm{half}}(\delta)/\log k x half ( δ ) / log k when β \beta β stays bounded: it vanishes, but only logarithmically. For 99% success at m = k 4 m = k^4 m = k 4 , the half-slack width is 2.20, 1.75, 1.54, 1.35 and 1.22 times its centre at k = 2 6 k = 2^6 k = 2 6 , 2 8 2^8 2 8 , 2 10 2^{10} 2 10 , 2 14 2^{14} 2 14 and 2 20 2^{20} 2 20 . Table M.3 adds two design facts at k = 1024 k = 1024 k = 1024 . A bias that needs only k k k , m m m and d d d costs at most 0.6% in width against the best deterministic bias. The midpoint bias needs 1.30 to 1.46 times the width of the half-slack bias, depending on the target.
Table M.3. Width for a target success probability at k = 1024 k = 1024 k = 1024 and m = k 4 m = k^4 m = k 4 , from (M.1) with the profiles evaluated at β ^ = λ ^ 0 / λ ^ 1 = 2.28 \widehat{\beta} = \widehat{\lambda}_0/\widehat{\lambda}_1 = 2.28 β = λ 0 / λ 1 = 2.28 , in units of the optimized quantile centre k ( 3 λ ^ 1 + λ ^ 0 ) 2 k(3\widehat{\lambda}_1 + \widehat{\lambda}_0)^2 k ( 3 λ 1 + λ 0 ) 2 . The midpoint centre is 1.54 in these units. The closed-form half-slack bias stays within 0.6% of the best deterministic common bias.
The limit profiles are conservative at the simulated sizes. In all 77 frozen cells above the quantile centre for pairwise conjunction (the half-slack bias in campaigns E1 and E2, the midpoint in E3), the limit lies below (44 cells) or inside (33 cells) the 95% Wilson interval of the observed success frequency, and never above the observed frequency. At k = 1024 k = 1024 k = 1024 and m = k 4 m = k^4 m = k 4 , for instance, the half-slack network at 1.5 times the centre succeeds on 99.76% of draws, with interval [99.55%, 99.87%], whereas (M.1) asks for 1.54 times the centre to reach 99%. The direction has a simple source. The window replaces the upper tail k Φ ‾ ( λ ^ 1 + y / λ ^ 1 ) k\overline{\Phi}(\widehat{\lambda}_1 + y/\widehat{\lambda}_1) k Φ ( λ 1 + y / λ 1 ) of a Gaussian maximum by its Gumbel limit e − y e^{-y} e − y , and Mills’ ratio gives k Φ ‾ ( λ ^ 1 + y / λ ^ 1 ) ≈ e − y − y 2 / ( 2 λ ^ 1 2 ) k\overline{\Phi}(\widehat{\lambda}_1 + y/\widehat{\lambda}_1) \approx e^{-y-y^2/(2\widehat{\lambda}_1^2)} k Φ ( λ 1 + y / λ 1 ) ≈ e − y − y 2 / ( 2 λ 1 2 ) , a lighter tail exactly where a high success target probes. Within the tested range the rule therefore errs toward extra width.
Auditing a layer on a realized representation
The box identity (lemma B.2) is deterministic. It therefore applies to any stored vector and any read directions, provided that each gate reads a fixed combination of per-feature reads. Verifying a universal layer then needs 2 r 2r 2 r extreme reads per pool instead of an enumeration of ( m r ) \binom{m}{r} ( r m ) gates.
Proposition M.4 (Exact audit of a factored layer). Let u ∈ R d u \in\mathbb{R}^d u ∈ R d and v 1 , … , v m ∈ R d v_1, \ldots, v_m \in\mathbb{R}^d v 1 , … , v m ∈ R d be arbitrary, let S ⊆ [ m ] S \subseteq[m] S ⊆ [ m ] satisfy r ≤ ∣ S ∣ ≤ m − r r \le|S| \le m-r r ≤ ∣ S ∣ ≤ m − r , and put R i = ⟨ v i , u ⟩ R_i = \langle v_i, u\rangle R i = ⟨ v i , u ⟩ . Evaluate U r ( g ) \mathcal{U}_r(g) U r ( g ) with readouts w I = ∑ I a l v l w_I = \sum_I a_l v_l w I = ∑ I a l v l and a common bias θ \theta θ , where ( a , θ ) ∈ Rep ( g ) (a,\theta) \in\operatorname{Rep}(g) ( a , θ ) ∈ Rep ( g ) , and let B z ( R ) B_z(R) B z ( R ) be the right side of lemma B.2 with ξ = R \xi= R ξ = R and b = ζ z a b = \zeta_z a b = ζ z a .
(i) Every gate is correct if and only if B z ( R ) ≤ ζ z θ B_z(R) \le\zeta_z\theta B z ( R ) ≤ ζ z θ for each class with g ( z ) = 0 g(z) = 0 g ( z ) = 0 and B z ( R ) < ζ z θ B_z(R) < \zeta_z\theta B z ( R ) < ζ z θ for each class with g ( z ) = 1 g(z) = 1 g ( z ) = 1 .
(ii) Given R R R , the 2 r 2^r 2 r statistics B z ( R ) B_z(R) B z ( R ) depend only on the r r r largest and the r r r smallest reads in S S S and in [ m ] ∖ S [m] \setminus S [ m ] ∖ S , and they take O ( r m + 2 r r log r ) O(rm + 2^r r \log r) O ( r m + 2 r r log r ) operations. For r = 2 r = 2 r = 2 the error count X X X takes O ( m log m ) O(m \log m) O ( m log m ) operations.
(iii) Suppose Δ = min z ( ζ z θ − B z ( R ) ) > 0 \Delta= \min_z(\zeta_z\theta- B_z(R)) > 0 Δ = min z ( ζ z θ − B z ( R )) > 0 . Every gate stays correct for every read vector R ′ R' R ′
with ∥ R ′ − R ∥ ∞ < Δ / ∥ a ∥ 1 \lVert R' - R\rVert_\infty< \Delta/\lVert a\rVert_1 ∥ R ′ − R ∥ ∞ < Δ/ ∥ a ∥ 1 , and hence, if some v i ≠ 0 v_i \ne0 v i = 0 , for every stored vector u ′ u' u ′ with ∥ u ′ − u ∥ < Δ / ( ∥ a ∥ 1 max i ∥ v i ∥ ) \lVert u' - u\rVert< \Delta/(\lVert a\rVert_1 \max_i \lVert v_i\rVert) ∥ u ′ − u ∥ < Δ/ (∥ a ∥ 1 max i ∥ v i ∥) . Conversely, if a class z ∗ z^* z ∗ attains Δ \Delta Δ with a maximizing tuple I ∗ I^* I ∗ and w I ∗ ≠ 0 w_{I^*} \ne0 w I ∗ = 0 , then u ′ = u + t ζ z ∗ w I ∗ u' = u + t\zeta_{z^*}w_{I^*} u ′ = u + t ζ z ∗ w I ∗ makes gate I ∗ I^* I ∗ wrong for every t > Δ / ∥ w I ∗ ∥ 2 t > \Delta/\lVert w_{I^*}\rVert^2 t > Δ/ ∥ w I ∗ ∥ 2 .
Proof. Gate I I I outputs 1 { ⟨ a , R I ⟩ > θ } \mathbf{1}\{\langle a,R_I\rangle> \theta\} 1 {⟨ a , R I ⟩ > θ } , because ⟨ w I , u ⟩ = ⟨ a , R I ⟩ \langle w_I,u\rangle= \langle a,R_I\rangle ⟨ w I , u ⟩ = ⟨ a , R I ⟩ . For a class with g ( z ) = 0 g(z)=0 g ( z ) = 0 , where ζ z = 1 \zeta_z=1 ζ z = 1 , it is correct exactly when ⟨ ζ z a , R I ⟩ ≤ ζ z θ \langle\zeta_z a,R_I\rangle\le\zeta_z\theta ⟨ ζ z a , R I ⟩ ≤ ζ z θ ; for a class with g ( z ) = 1 g(z)=1 g ( z ) = 1 , where ζ z = − 1 \zeta_z=-1 ζ z = − 1 , exactly when ⟨ ζ z a , R I ⟩ < ζ z θ \langle\zeta_z a,R_I\rangle< \zeta_z\theta ⟨ ζ z a , R I ⟩ < ζ z θ . Taking the maximum over the class and applying lemma B.2, whose pool condition is r ≤ ∣ S ∣ ≤ m − r r \le|S| \le m-r r ≤ ∣ S ∣ ≤ m − r , gives (i). For (ii), one pass over each pool with sorted buffers of length r r r finds its r r r largest and r r r smallest reads, and each class then needs the sorted weights of its four groups. For r = 2 r=2 r = 2 , sort each pool; for every read of one pool, binary search counts the partners, other than the read itself, in the same or the other pool that put a gate of the corresponding class on the wrong side of θ \theta θ . For (iii), each ⟨ ζ z a , R I ⟩ \langle\zeta_z a,R_I\rangle ⟨ ζ z a , R I ⟩ is a linear function of R R R whose coefficients have ℓ 1 \ell_1 ℓ 1 norm ∥ a ∥ 1 \lVert a\rVert_1 ∥ a ∥ 1 , because the features of I I I are distinct. Hence B z ( R ′ ) ≤ B z ( R ) + ∥ a ∥ 1 ∥ R ′ − R ∥ ∞ < ζ z θ B_z(R') \le B_z(R) + \lVert a\rVert_1\lVert R' - R\rVert_\infty< \zeta_z\theta B z ( R ′ ) ≤ B z ( R ) + ∥ a ∥ 1 ∥ R ′ − R ∥ ∞ < ζ z θ for every class, and (i) applies; the bound for u ′ u' u ′ follows from ∣ R i ′ − R i ∣ ≤ ∥ v i ∥ ∥ u ′ − u ∥ |R'_i-R_i| \le\lVert v_i\rVert\lVert u'-u\rVert ∣ R i ′ − R i ∣ ≤ ∥ v i ∥ ∥ u ′ − u ∥ . Finally, u ′ = u + t ζ z ∗ w I ∗ u'=u+t\zeta_{z^*}w_{I^*} u ′ = u + t ζ z ∗ w I ∗ raises ⟨ ζ z ∗ a , R I ∗ ⟩ \langle\zeta_{z^*}a,R_{I^*}\rangle ⟨ ζ z ∗ a , R I ∗ ⟩ by exactly t ∥ w I ∗ ∥ 2 > Δ t\lVert w_{I^*}\rVert^2 > \Delta t ∥ w I ∗ ∥ 2 > Δ , so it exceeds ζ z ∗ θ \zeta_{z^*}\theta ζ z ∗ θ and gate I ∗ I^* I ∗ is wrong whatever g ( z ∗ ) g(z^*) g ( z ∗ ) is. ■
Under the model of § 2 , with v i = e i v_i=e_i v i = e i , part (i) is proposition B.1 without exceptional events, and part (ii) is the reason the exact sampler costs O ( k log k ) O(k\log k) O ( k log k ) per draw at any m m m . Part (iii) gives the whole layer a robustness margin, and above the box threshold this margin is of the order of the clean margins. Let d ≥ ( 1 + ε ) D b o x ( a , θ ) d \ge(1+\varepsilon)D_{\mathrm{box}}(a,\theta) d ≥ ( 1 + ε ) D box ( a , θ ) for the universal family. Since R I = H z + σ ξ I R_I=Hz+\sigma\xi_I R I = H z + σ ξ I , we have ζ z θ − B z ( R ) = s z H − σ M z \zeta_z\theta-B_z(R)=s_z^H-\sigma M_z ζ z θ − B z ( R ) = s z H − σ M z , and on the event E δ \mathcal{E}_\delta E δ in the proof of Theorem 5.4 this is at least s z − ( 1 + 5 δ ) σ d h B o x , z ( a ) ≥ s z ( 1 − ( 1 + 5 δ ) ( 1 + ε ) − 1 / 2 ) s_z-(1+5\delta)\sigma_d h_{\mathrm{Box},z}(a) \ge s_z(1-(1+5\delta)(1+\varepsilon)^{-1/2}) s z − ( 1 + 5 δ ) σ d h Box , z ( a ) ≥ s z ( 1 − ( 1 + 5 δ ) ( 1 + ε ) − 1/2 ) for every class. Moreover d ≥ D b o x ≥ k λ 0 2 / ( 4 r ) d \ge D_{\mathrm{box}} \ge k\lambda_0^2/(4r) d ≥ D box ≥ k λ 0 2 / ( 4 r ) by (C.3), so log m = o ( d ) \log m=o(d) log m = o ( d ) , and chi-square and Gaussian tails with a union bound give max i ∥ e i ∥ → 1 \max_i\lVert e_i\rVert\to1 max i ∥ e i ∥ → 1 and max I ∣ ∥ w I ∥ / ∥ a ∥ − 1 ∣ → 0 \max_I|\lVert w_I\rVert/\lVert a\rVert-1| \to0 max I ∣ ∥ w I ∥ / ∥ a ∥ − 1∣ → 0 in probability. With probability tending to one, therefore, every perturbation of the stored vector with
∥ u ′ − u ∥ ≤ ( 1 − ( 1 + ε ) − 1 / 2 − o ( 1 ) ) min z s z ∥ a ∥ 1 \lVert u'-u\rVert\le\left(1-(1+\varepsilon)^{-1/2}-o(1)\right)\frac{\min_z s_z}{\lVert a\rVert_1} ∥ u ′ − u ∥ ≤ ( 1 − ( 1 + ε ) − 1/2 − o ( 1 ) ) ∥ a ∥ 1 min z s z
leaves all ( m ) r (m)_r ( m ) r outputs correct, while a perturbation of norm Δ / ∥ a ∥ ( 1 + o ( 1 ) ) \Delta/\lVert a\rVert(1+o(1)) Δ/ ∥ a ∥ ( 1 + o ( 1 )) along the probe of a binding gate breaks one. For the representations of Theorem 6.1 , which have a = 1 a=1 a = 1 , both radii are of order one, whereas ∥ u ∥ ≈ k \lVert u\rVert\approx\sqrt{k} ∥ u ∥ ≈ k .
Two uses follow. The first is bias calibration from data. The oracle of campaign E2 succeeds when some common bias separates the largest negative score from the smallest positive score; by (ii), this event and a separating bias are computable from the extremes. Theorem 5.4 (ii) shows that no such read-dependent common bias moves the reliability threshold, and in campaign E2 at k = 1024 k=1024 k = 1024 the oracle reaches 50% success only 2% to 7% earlier in width than the closed-form half-slack bias (Table L.2). The second is a direct test of the mechanism in learned models, which we propose as an experiment. Toy models of superposition and of learned universal-AND circuits [18 , 23 , 31 ] have identifiable features. Fit per-feature read directions v i v_i v i and a common representation ( a , θ ) (a,\theta) ( a , θ ) to the learned readouts. The fitting residual measures the distance from the factored class, and on the factored part (i) predicts every failing input from 2 r 2r 2 r extremes per pool. Agreement between predicted and observed failures would show that the learned layer fails through shared extremes, as the box describes.
Unread activity in the stream
The vector read by a gate family usually carries more than the features that the family reads: other dictionaries, earlier writes, positional content. The exact law extends to independent Gaussian content, and the extension separates the two roles that k k k plays in every threshold.
Proposition M.5 (Unread content). Let u = E x + ν g u = Ex + \nu g u = E x + ν g , where g ∼ N ( 0 , I d / d ) g \sim N(0,I_d/d) g ∼ N ( 0 , I d / d ) is independent of ( E , S ) (E,S) ( E , S ) and ν ≥ 0 \nu\ge0 ν ≥ 0 may depend on k k k . Put K = k + ν 2 K = k + \nu^2 K = k + ν 2 and c = 1 − ν / K ∈ ( 0 , 1 ] c = 1 - \nu/\sqrt{K} \in(0,1] c = 1 − ν / K ∈ ( 0 , 1 ] . With H H H , Z Z Z , W W W as in Theorem 3.1 and σ = K H / d \sigma= \sqrt{KH/d} σ = K H / d ,
( A i , B j ) = d ( H + σ ( Z i − c Z ˉ ) , σ W j ) (A_i,B_j) \mathrel{\overset{d}{=}} (H+\sigma(Z_i-c\bar{Z}),\sigma W_j) ( A i , B j ) = d ( H + σ ( Z i − c Z ˉ ) , σ W j ) jointly in i ≤ k i \le k i ≤ k and j ≤ n j \le n j ≤ n , and a canonical gate of class z z z has the score law (8) with k k k replaced by K K K . Consequently Theorems 4.1 , 4.2 , 5.1 , 5.4 , 6.1 and 7.1 hold with σ d = K / d \sigma_d=\sqrt{K/d} σ d = K / d : the prefactor k k k of every threshold, centre and window width becomes K K K , the condition d / k → ∞ d/k \to\infty d / k → ∞ in Theorem 5.1 becomes d / K → ∞ d/K \to\infty d / K → ∞ , and λ 1 \lambda_1 λ 1 , λ 0 \lambda_0 λ 0 , λ ^ 1 \hat{\lambda}_1 λ ^ 1 , λ ^ 0 \hat{\lambda}_0 λ ^ 0 , N z N_z N z , the programs (10) and (12) and the window profiles are unchanged.
Proof. Fix S = [ k ] S=[k] S = [ k ] . Each coordinate of u u u is N ( 0 , K / d ) N(0,K/d) N ( 0 , K / d ) , and Cov ( e i , u ) = I d / d \operatorname{Cov}(e_i,u)=I_d/d Cov ( e i , u ) = I d / d for i ≤ k i\le k i ≤ k . Gaussian conditioning gives e i = u / K + η i e_i=u/K+\eta_i e i = u / K + η i , where ( η i ) i ≤ k (\eta_i)_{i\le k} ( η i ) i ≤ k is independent of u u u with Cov ( η i , η l ) = d − 1 ( 1 { i = l } − 1 / K ) I d \operatorname{Cov}(\eta_i,\eta_l)=d^{-1}(1\{i=l\}-1/K)I_d Cov ( η i , η l ) = d − 1 ( 1 { i = l } − 1/ K ) I d . Hence A i = ∥ u ∥ 2 / K + ⟨ η i , u ⟩ A_i=\lVert u\rVert^2/K+\langle\eta_i,u\rangle A i = ∥ u ∥ 2 / K + ⟨ η i , u ⟩ , and given u u u the vector ( ⟨ η i , u ⟩ ) i ≤ k (\langle\eta_i,u\rangle)_{i\le k} (⟨ η i , u ⟩ ) i ≤ k is centered Gaussian with covariance ( ∥ u ∥ 2 / d ) ( I k − 11 ⊤ / K ) (\lVert u\rVert^2/d)(I_k-11^\top/K) (∥ u ∥ 2 / d ) ( I k − 1 1 ⊤ / K ) . Since ( 1 − c ) 2 = ν 2 / K = 1 − k / K (1-c)^2=\nu^2/K=1-k/K ( 1 − c ) 2 = ν 2 / K = 1 − k / K , the vector ( Z i − c Z ˉ ) i ≤ k (Z_i-c\bar{Z})_{i\le k} ( Z i − c Z ˉ ) i ≤ k has covariance I k − ( 2 c − c 2 ) K − 1 11 ⊤ = I k − 11 ⊤ / K I_k-(2c-c^2)K^{-1}11^\top=I_k-11^\top/K I k − ( 2 c − c 2 ) K − 1 1 1 ⊤ = I k − 1 1 ⊤ / K . Put H = ∥ u ∥ 2 / K ∼ χ d 2 / d H=\lVert u\rVert^2/K\sim\chi_d^2/d H = ∥ u ∥ 2 / K ∼ χ d 2 / d , so that ∥ u ∥ / d = σ \lVert u\rVert/\sqrt{d}=\sigma ∥ u ∥ / d = σ .
The inactive columns are independent of ( u , η ) (u,\eta) ( u , η ) , so given u u u the reads B j B_j B j are independent N ( 0 , σ 2 ) N(0,\sigma^2) N ( 0 , σ 2 ) variables, independent of the active reads. For one gate, the coordinates of ( w , u ) (w,u) ( w , u ) are independent pairs with variances ∥ a ∥ 2 / d \lVert a\rVert^2/d ∥ a ∥ 2 / d and K / d K/d K / d and covariance ⟨ a , z ⟩ / d \langle a,z\rangle/d ⟨ a , z ⟩ / d , and the proof in Appendix § 14 applies with K K K in place of k k k .
The proofs in Appendices § 14 to § 18 use k k k in two roles. As the size of the active pool, it fixes λ 1 \lambda_1 λ 1 , λ ^ 1 \hat{\lambda}_1 λ ^ 1 , N z N_z N z and the law of the active order statistics. As a variance, it enters through σ d 2 = k / d \sigma_d^2=k/d σ d 2 = k / d , the one-gate variance k ∥ a ∥ 2 − ⟨ a , z ⟩ 2 k\lVert a\rVert^2-\langle a,z\rangle^2 k ∥ a ∥ 2 − ⟨ a , z ⟩ 2 and the conditional variance ( k − ∣ z ∣ ) / d (k-\lvert z\rvert)/d ( k − ∣ z ∣) / d of a local probe in the converse of Theorem 4.2 . The representation above leaves the first role unchanged and replaces k k k by K K K in the second; the local-probe variance becomes ( K − ∣ z ∣ ) / d (K-\lvert z\rvert)/d ( K − ∣ z ∣) / d because the unread content is independent of every column. It also replaces Z ˉ \bar{Z} Z ˉ by c Z ˉ c\bar{Z} c Z ˉ , which only shrinks the centering terms, and every estimate that used k → ∞ k\to\infty k → ∞ in the second role holds a fortiori with K ≥ k K\ge k K ≥ k . Auxiliary rates indexed by k k k , such as k − 1 / 4 k^{-1/4} k − 1/4 and 1 / log k 1/\log k 1/ log k in Appendix § 15 , can be kept, since every bound they control only improves when K ≥ k K\ge k K ≥ k . These substitutions give the stated forms. ■
Width is paid for activity; the logarithms are paid for the read family. Independent content of squared norm ν 2 \nu^2 ν 2 adds ν 2 \nu^2 ν 2 units to the interference variance but no extremes: the levels, the ratio between ball and box, the binding classes and the window profiles are those of the read family alone. If the stream also carries ν 2 \nu^2 ν 2 active directions of another independent Gaussian dictionary, whose sum is exactly N ( 0 , ν 2 I d / d ) N(0,\nu^2 I_d/d) N ( 0 , ν 2 I d / d ) , every threshold in Table 1 is multiplied by 1 + ν 2 / k 1+\nu^2/k 1 + ν 2 / k . When the read family accounts for a quarter of the active directions, the widths quadruple. The half-slack bias must be computed with σ d = K / d \sigma_d = \sqrt{K/d} σ d = K / d as well; a bias calibrated to the read activity alone sits too close to the midpoint. A fixed number of families on independent dictionaries can share one stream: each sees the others as unread content, and a union bound over families composes their reliability. Proposition M.5 is the sharp one-layer counterpart of the stream activity K K K in Theorem H.5 .
Evaluating shared errors
The gap between the ball and the box is a gap between a mean and a typical value. When P ( X > 0 ) > 0 \mathbb{P}(X > 0) > 0 P ( X > 0 ) > 0 ,
E X = P ( X > 0 ) E [ X ∣ X > 0 ] . (26) \mathbb{E}X = \mathbb{P}(X > 0)\mathbb{E}[X \mid X > 0]. \tag*{(26)} E X = P ( X > 0 ) E [ X ∣ X > 0 ] . (26)
For the universal family between the two thresholds, ( 1 + ε ) D b o x ≤ d ≤ ( 1 − ε ) D b a l l (1 + \varepsilon)D_{\mathrm{box}} \le d \le(1 - \varepsilon)D_{\mathrm{ball}} ( 1 + ε ) D box ≤ d ≤ ( 1 − ε ) D ball , the failure probability tends to zero and the mean to infinity, so the burden E [ X ∣ X > 0 ] \mathbb{E}[X \mid X > 0] E [ X ∣ X > 0 ] of a failed draw grows faster than the mean. For B B B independent evaluation draws, P ( no draw fails ) = P ( X = 0 ) B ≥ 1 − B P ( X > 0 ) \mathbb{P}(\text{no draw fails}) = \mathbb{P}(X = 0)^B \ge1 - B\mathbb{P}(X > 0) P ( no draw fails ) = P ( X = 0 ) B ≥ 1 − B P ( X > 0 ) . Whenever B P ( X > 0 ) → 0 B\mathbb{P}(X > 0) \to0 B P ( X > 0 ) → 0 , the sample mean of X X X and its standard error are both zero with probability tending to one, while E X → ∞ \mathbb{E}X \to\infty E X → ∞ . The frozen campaigns show the effect at both ends. At m = k 64 m = k^{64} m = k 64 and d = 1.5 d 0 d = 1.5d_0 d = 1.5 d 0 , all 4096 draws are correct while quadrature gives E X ≈ 2.8 × 10 19 \mathbb{E}X \approx2.8 \times10^{19} E X ≈ 2.8 × 1 0 19 (Table L.3). At m = k 4 m = k^4 m = k 4 and 1.35 times the centre, even the Rao–Blackwellized sample mean is 0.063 with standard error 0.011, against the quadrature value 0.327 (Table L.1).
Four quantities make an evaluation of a superposed layer informative. The first is whole-output success with a binomial interval. The second is the expected count from an exact one-gate law (proposition 3.2) rather than from a sample mean. The third is the burden E [ X ∣ X > 0 ] \mathbb{E}[X \mid X > 0] E [ X ∣ X > 0 ] together with the class of each wrong output, which separates frequent small failures from rare large ones. The fourth is the slack Δ \Delta Δ of proposition M.4 on every draw. The slack is continuous, so its empirical distribution is informative even when no draw fails, and in the window its law is explicit. For the midpoint network at d = d 0 + 8 k ( 1 + β ) x d = d_0 + 8k(1 + \beta)x d = d 0 + 8 k ( 1 + β ) x with β → β 0 ∈ [ 1 , ∞ ] \beta\to\beta_0 \in[1,\infty] β → β 0 ∈ [ 1 , ∞ ] , the computation in Appendix § 18 gives
λ ^ 1 Δ σ d ⇒ x − G A − G B β 0 , \frac{\widehat{\lambda}_1\Delta}{\sigma_d} \Rightarrow x - G_A - \frac{G_B}{\beta_0}, σ d λ 1 Δ ⇒ x − G A − β 0 G B ,
because the slack of the one-active class is 3 2 − max i A i − max j B j \frac{3}{2} - \max_i A_i - \max_j B_j 2 3 − max i A i − max j B j , whose expansion in Appendix § 18 gives the limit, while the other classes keep a diverging slack in these units. A Gumbel fit to observed slacks therefore extrapolates the failure probability below the level that the draws resolve.
Implications for claims about superposition
Models of computation in superposition [18 , 23 , 1 ] are used to interpret what a layer of a network computes. Shi et al. [36 ] survey the geometry, learning and computation of superposed representations and examine what evaluations of feature-recovery methods establish, noting that accurate reconstruction of activations does not by itself establish feature identity or causal use. The results here give claims about computation in superposition a checkable form in the same spirit.
Name the criterion. Losses and error rates averaged over gates measure the first row of Table M.1, which does not depend on m m m . A layer can have an expected error fraction below 10 − 21 10^{-21} 1 0 − 21 and fail on most inputs (Appendix § 25 .§ 1 ). Learned solutions of the universal-AND task ([31 ] ) and of related compressed-computation tasks ([6 ] ) need not use the mechanism of theoretical constructions. A claim that a learned layer computes in superposition should therefore state which row of the table it establishes.
Reliability is not robustness. The reliability laws average over supports drawn independently of the dictionary. Two adversaries break them at very different costs. A support chosen after the dictionary raises the width to order k 2 log m k^2 \log m k 2 log m (proposition 8.1). A perturbation of the stored vector along the probe of a binding gate needs a norm of order one, out of ∥ u ∥ ≈ k \lVert u\rVert\approx\sqrt{k} ∥ u ∥ ≈ k (proposition M.4(iii)). A guarantee certified on random inputs is a statement about typical use.
Lower bounds concern accessibility. The Θ ( k log m ) \Theta(k \log m) Θ ( k log m ) scale belongs to threshold reads of a random linear code. Without the linear dictionary, 2 k 2k 2 k coordinates carry all pairwise conjunctions with one threshold unit each (proposition H.7), and order k k k coordinates are necessary (proposition H.6). A width far below the number of features is therefore consistent with several mechanisms, and a dimension count alone does not identify computation in superposition.
Open problems
Reliability for gate-local rules. Theorem 5.4 (ii) covers every common representation, even one chosen after the reads are observed, and Theorem 4.2 covers every gate-local rule for the expected count. Can a gate-local rule, for instance the dual frame of Remark C.1, make the network reliable below k V b o x kV_{\mathrm{box}} k V box ? A converse must control the joint extremes of adapted probes. Marginal error bounds cannot force a failure on a typical draw, since Pr ( X > 0 ) \Pr(X > 0) Pr ( X > 0 ) can vanish while E X \mathbb{E}X E X diverges.
Sharp suprema for structured families. Disjoint tuples give the ball, the universal family gives the box, and proposition 5.3 interpolates for one level of private partners. For a family defined by a sharing hypergraph with several levels, generic chaining determines Γ z \Gamma_z Γ z up to constants ((Talagrand, 2014)). A sharp variational formula, possibly of the type of the generalized random energy model ([14 ] ), would give the reliability price of any query family, for example relation queries in which each feature has a bounded number of partners at each level.
Universality of the box. The one-gate exponent is universal (Theorem 8.2 ), but the box rests on the Gaussian joint law. A first target is the Rademacher dictionary with midpoint pairwise conjunction: is its reliability threshold 4 k ( λ 1 + λ 0 ) 2 ( 1 + o ( 1 ) ) 4k(\lambda_1+\lambda_0)^2(1+o(1)) 4 k ( λ 1 + λ 0 ) 2 ( 1 + o ( 1 )) ? The required input is joint extreme-value control of the active and inactive reads, which are dependent through u u u .
Reliability of composed circuits. Theorem H.5 is a union bound over an ideal execution, that is, a ball argument. In a two-layer universal circuit the second layer reads ( k 2 ) \binom{k}{2} ( 2 k ) active outputs, whose errors are correlated through the extremes of the first layer. A box law for the second layer needs the joint law of its reads given the first layer’s realized errors; proposition M.5 indicates, through the variance term, that it pays for its full stream activity.
Designed and learned linear dictionaries. The Gaussian dictionary needs order k log m k\log m k log m dimensions, and arbitrary encodings need order k k k (propositions H.6 and H.7) at the price of large coefficients and small normalized margins. For uniform recovery, every linear encoder needs Ω ( k 2 log ( m / k ) / log k ) \Omega(k^2 \log(m/k)/\log k) Ω ( k 2 log ( m / k ) / log k ) dimensions when k < m k < \sqrt{m} k < m ([22 ] ). For random supports, is order k log m k \log m k log m necessary for every linear dictionary read by threshold units, or can a dictionary adapted to the support law, with bounded coefficients and margins, approach order k k k ?
Non-asymptotic sizing The limit profiles of Theorem 7.1 were conservative in every simulated cell above the centre, and the Gaussian tail factor e − y 2 / ( 2 λ ^ 1 2 ) e^{-y^2/(2\hat{\lambda}_1^2)} e − y 2 / ( 2 λ ^ 1 2 ) explains the direction (Appendix § 25 .§ 3 ). A second-order window law with explicit error terms would turn (M.1) into a certified width at finite k k k . For general threshold gates, even the first-order window requires the joint law of r r r upper and r r r lower order statistics in both pools.