Contents
Introduction
Preliminaries
The concentration threshold
Precision and dimension move the threshold
What satisfiability still supports
CNF-SETH in polylogarithmic dimension
Clause exponent below two
A barrier for the bounded-entry threshold
Which attention lower bounds survive
Related work and open problems
Roadmap of the appendix
Proofs for Sections 2 and 3
Proofs for Section 4
Proofs for Section 5
CNF-SETH in polylogarithmic dimension
Clause exponent below two
A barrier for the bounded-entry threshold
Introduction
Attention computes, for each of n n n queries, an average of n n n value vectors weighted by the softmax of the query’s inner products with n n n keys. The standard algorithm takes time Θ ( n 2 d ) \Theta(n^2d) Θ ( n 2 d ) . Alman and Song [5 ] found that whether one can do better depends on the size of the entries. With head dimension d = O ( log n ) d = O(\log n) d = O ( log n ) and entries bounded by B B B , attention can be approximated to precision 1 / poly ( n ) 1/\operatorname{poly}(n) 1/ poly ( n ) in time n 1 + o ( 1 ) n^{1+o(1)} n 1 + o ( 1 ) if B = o ( log n ) B = o(\sqrt{\log n}) B = o ( log n ) , and it needs time n 2 − o ( 1 ) n^{2-o(1)} n 2 − o ( 1 ) if B = Θ ( log n ) B = \Theta(\sqrt{\log n}) B = Θ ( log n ) , assuming the Strong Exponential Time Hypothesis (SETH). The threshold has been extended to the gradient used in training [6 ] , to tensor attention [7 ] , to large entries in head dimension 2 Θ ( log ∗ n ) 2^{\Theta(\log^* n)} 2 Θ ( l o g ∗ n ) [GHS^{+}26], to every nontrivial constant precision [HAPM^{+}26], and to multi-head and multi-layer transformers [43 ] , under SETH or hypotheses derived from it, and it underlies lower bounds for many transformer variants (§ 6 ).
In October 2026 two works refuted the Exponential Time Hypothesis [38 , 18 ] . For every constant k k k , both count the satisfying assignments of a k k k -CNF on N N N variables in time 2 N / ( log N ) 1 / 2 − o ( 1 ) 2^{N/(\log N)^{1/2-o(1)}} 2 N / ( l o g N ) 1/2 − o ( 1 ) . SETH implies ETH, so SETH is false, and the attention bounds lose the hypothesis they were proved from. The lower bounds themselves are not contradicted: the new algorithms say nothing about Orthogonal Vectors (OV), or its k k k -party version, the problems these reductions start from. What the refutation removes is the derivation of the bounds from satisfiability. SETH implied the hardness of OV in dimension c log n c\log n c log n through the sparsification lemma, and this route now starts from a false statement, since CNF-SAT with linearly many clauses is subexponential [37 Proposition 6.1] . The hardness of OV in dimension c log n c\log n c log n , the low-dimensional OV hypothesis (LDOV), is now a hypothesis of its own. The form of SETH that survives, CNF-SETH, gives through Williams’ reduction the hardness of OV in dimension ( log n ) O ( 1 ) (\log n)^{O(1)} ( log n ) O ( 1 ) , and no reduction to dimension O ( log n ) O(\log n) O ( log n ) is known. The ledger of [37 Section 6] records that the attention thresholds now rest on LDOV. Within the same month, the 3SUM and APSP hypotheses were refuted as well [9 ] .
This paper determines, under LDOV, the time exponent of attention at constant precision at every spread and in every dimension between ω ( log n ) \omega(\log n) ω ( log n ) and n o ( 1 ) n^{o(1)} n o ( 1 ) , and the hypotheses on which each part of the answer rests. The answer is sharper than the original threshold, and it separates two readings of it that used to be the same.
Results
We measure an attention instance by its spread W W W : the largest difference between two logits in the same row. The spread is the normalization-free form of the entry bound: in the normalization of Alman and Song, W ≤ 2 B 2 W \le2B^2 W ≤ 2 B 2 . It also has a direct meaning. A row with spread W W W gives every key at most e W / n e^W/n e W / n of its weight, so a single key can carry constant weight only when W ≥ ln n − O ( 1 ) W \ge\ln n - O(1) W ≥ ln n − O ( 1 ) . Precision is additive, and the values lie in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] .
Theorem A (The exponent at constant precision; Corollaries 3.2 and 3.7, Theorems 3.3 and 3.6, and Remark 3.5). Fix a precision ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) and κ > 0 \kappa> 0 κ > 0 .
(i) In every dimension d ≤ n o ( 1 ) d \le n^{o(1)} d ≤ n o ( 1 ) , time n 1 + min { κ , 1 } + o ( 1 ) n^{1+\min\{\kappa,1\}+o(1)} n 1 + m i n { κ , 1 } + o ( 1 ) suffices for attention with spread κ ln n \kappa\ln n κ ln n : uniform sampling of keys if κ < 1 \kappa< 1 κ < 1 , direct computation otherwise.
(ii) Under LDOV, for every γ > 0 \gamma> 0 γ > 0 there is C C C such that in dimension C log n C\log n C log n , attention with spread κ ln n ∗ n e e d s t i m e ∗ \kappa\ln n *needs time* κ ln n ∗ n ee d s t im e ∗ n^{1+\min{\kappa,1}-\gamma}$, already for values in { − 1 , 1 } \{-1,1\} { − 1 , 1 } , and for values in ${0,1} if ε < 1 / 2 \varepsilon< 1/2 ε < 1/2 .
So under LDOV, at constant precision and in every dimension between ω ( log n ) \omega(\log n) ω ( log n ) and n o ( 1 ) n^{o(1)} n o ( 1 ) , the cost of attention is n ⋅ e W n \cdot e^W n ⋅ e W up to factors n o ( 1 ) n^{o(1)} n o ( 1 ) until it reaches n 2 n^2 n 2 , and uniform sampling is optimal. The transition to quadratic time sits at W = ln n W = \ln n W = ln n , the spread at which one key can first outweigh all others: for every θ > 0 \theta> 0 θ > 0 , spread ( 1 − θ ) ln n (1-\theta)\ln n ( 1 − θ ) ln n takes time n 2 − θ + o ( 1 ) n^{2-\theta+o(1)} n 2 − θ + o ( 1 ) , while under LDOV spread ( 1 + θ ) ln n (1+\theta)\ln n ( 1 + θ ) ln n has no O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) algorithm for any γ > 0 \gamma> 0 γ > 0 , already in dimension C γ , θ log n C_{\gamma,\theta}\log n C γ , θ log n and at every nontrivial constant precision (Theorem 3.3 and Remark 3.5); in dimension ( log n ) O ( 1 ) (\log n)^{O(1)} ( log n ) O ( 1 ) , spread ln n + O ( 1 ) \ln n+O(1) ln n + O ( 1 ) suffices (Corollary 3.4). Alman and Song proved hardness at precision 1 / poly ( n ) 1/\operatorname{poly}(n) 1/ poly ( n ) , and Haverbeck, Amo Alonso, Posada-Moreno, Trimpe and Pavone [25 ] at every nontrivial constant precision, both with an unspecified constant C ′ C' C ′ in B = C ′ log n B=C'\sqrt{\log n} B = C ′ log n .
Theorem B. (Precision and dimension move the threshold; Corollaries 4.2 and 4.5 ). Assume LDOV, and let γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) .
(i) In dimension O γ ( log n ) O_\gamma(\log n) O γ ( log n ) and at precision n − β n^{-\beta} n − β , spread κ ln n \kappa\ln n κ ln n can be handled in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) for some κ = κ γ ( β ) > 0 \kappa=\kappa_\gamma(\beta)>0 κ = κ γ ( β ) > 0 , while for every κ > 0 \kappa>0 κ > 0 it needs more once β ≥ O γ ( log ( 2 + 1 / κ ) ) \beta\ge O_\gamma(\log(2+1/\kappa)) β ≥ O γ ( log ( 2 + 1/ κ )) . Spread 1 1 1 , and even entries bounded by 2 2 2 in the normalization of [5 ] *( Remark 4.3), need time n 2 − γ n^{2-\gamma} n 2 − γ at precision n − O γ ( log log n ) n^{-O_\gamma(\log\log n)} n − O γ ( l o g l o g n ) .
(ii) For every C ′ > 0 C'>0 C ′ > 0 , at precision n − 1 − O γ , C ′ ( 1 / log log n ) n^{-1-O_{\gamma,C'}(1/\log\log n)} n − 1 − O γ , C ′ ( 1/ l o g l o g n ) , spread O γ , C ′ ( log n / log log n ) O_{\gamma,C'}(\log n/\log\log n) O γ , C ′ ( log n / log log n ) needs time n 2 − γ n^{2-\gamma} n 2 − γ in dimension ( log n ) 1 + C ′ (\log n)^{1+C'} ( log n ) 1 + C ′ , and for every δ ∈ ( 0 , 1 / 2 ] \delta\in(0,1/2] δ ∈ ( 0 , 1/2 ] , at precision Θ γ , δ ( 1 / n ) \Theta_{\gamma,\delta}(1/n) Θ γ , δ ( 1/ n ) , spread O γ , δ ( 1 ) O_{\gamma,\delta}(1) O γ , δ ( 1 ) needs it in dimension O γ , δ ( n δ ) O_{\gamma,\delta}(n^\delta) O γ , δ ( n δ ) .
So the constant ln n \ln n ln n belongs to constant precision. At polynomial precision the threshold is Θ ( log n ) \Theta(\log n) Θ ( log n ) in dimension O ( log n ) O(\log n) O ( log n ) , with a constant that tends to zero as the precision grows, and, unlike at constant precision, the dimension moves it further: in dimension O ( log n ) O(\log n) O ( log n ) every spread o ( log n ) o(\log n) o ( log n ) is easy at every polynomial precision (Proposition 4.4), while under LDOV, in every dimension between ( log n ) 1 + Ω ( 1 ) (\log n)^{1+\Omega(1)} ( log n ) 1 + Ω ( 1 ) and n o ( 1 ) n^{o(1)} n o ( 1 ) and at every precision n − β n^{-\beta} n − β with β > 1 \beta>1 β > 1 , spread O ( log n / log log n ) O(\log n/\log\log n) O ( log n / log log n ) is hard (Corollary 4.2(b) and padding). The lower bounds count orthogonal partners modulo r + 1 r+1 r + 1 through the integer r K ∑ b ( 1 + 1 / r ) F ( a , b ) r^K\sum_b(1+1/r)^{F(a,b)} r K ∑ b ( 1 + 1/ r ) F ( a , b ) , where F ( a , b ) F(a,b) F ( a , b ) counts the blocks of coordinates in which a a a and b b b intersect. This generalizes the parity argument of Gupta et al. [24 ] , and the blocks trade dimension for precision.
The next two results concern satisfiability. Both depend on the clause exponent : CNF-SETH with exponent c 0 c_0 c 0 asserts that CNF formulas with N N N variables and N c 0 N^{c_0} N c 0 clauses need time 2 ( 1 − γ ) N 2^{(1-\gamma)N} 2 ( 1 − γ ) N for every γ > 0 \gamma>0 γ > 0 . Exponent 1 is refuted [37 ] , and every exponent c 0 > 1 c_0>1 c 0 > 1 is open.
Theorem C. (What satisfiability supports; Proposition 5.1 , Theorem 5.3, and Remark 3.5).
(i) Under CNF-SETH, for every γ > 0 \gamma>0 γ > 0 , attention at precision 1 / 6 1/6 1/6 needs time n 2 − γ n^{2-\gamma} n 2 − γ in dimension d = ( log n ) C γ d=(\log n)^{C_\gamma} d = ( log n ) C γ with spread d ln ( 16 n ) d\ln(16n) d ln ( 16 n ) . This combines the exact embedding of [24 ] , Lemma 5.6 with Williams’ reduction.
(ii) Under CNF-SETH with clause exponent c 0 < 2 c_0<2 c 0 < 2 , for all γ , θ > 0 \gamma,\theta>0 γ , θ > 0 and every nontrivial constant precision, attention with spread ( 1 + θ ) ln n (1+\theta)\ln n ( 1 + θ ) ln n needs time n 2 − γ n^{2-\gamma} n 2 − γ in dimension n o ( 1 ) n^{o(1)} n o ( 1 ) .
Theorem D. (A barrier for the entry bound; Theorem 5.6 and Corollary 5.7). Let a reduction map each vector of an OV instance in dimension D D D , for each of 2 p 2^p 2 p values of an index, to a query or key vector, and separate orthogonal from non-orthogonal pairs by a gap Δ \Delta Δ in the logits. Let σ \sigma σ be the product of the largest Euclidean norms of the query vectors and of the key vectors; in the normalization of [5 ] with entries bounded by B B B , σ ≤ B 2 \sigma\le B^2 σ ≤ B 2 . Then ( σ / Δ ) 2 log ( 2 + σ / Δ ) ≥ Ω ( D / ( p + 1 ) ) (\sigma/\Delta)^2\log(2+\sigma/\Delta)\ge\Omega(D/(p+1)) ( σ /Δ ) 2 log ( 2 + σ /Δ ) ≥ Ω ( D / ( p + 1 )) . In particular, for D = ( log n ) c 0 D=(\log n)^{c_0} D = ( log n ) c 0 with c 0 > 1 c_0>1 c 0 > 1 , polynomial blowup and Δ = Ω ( log n ) \Delta=\Omega(\log n) Δ = Ω ( log n ) , such reductions need B ≥ ( log n ) ( 1 + c 0 ) / 4 − o ( 1 ) B\ge(\log n)^{(1+c_0)/4-o(1)} B ≥ ( log n ) ( 1 + c 0 ) /4 − o ( 1 ) .
The proof turns such a reduction into a Merlin–Arthur protocol for disjointness, in which Merlin names the copy and the players estimate the inner product from random-sign projections, and applies Klauck’s lower bound [32 ] . Taken together, Theorems C and D say that the two readings of the threshold come apart. Measured by the spread, hardness at ( 1 + θ ) ln n (1+\theta)\ln n ( 1 + θ ) ln n follows, in dimension
n o ( 1 ) n^{o(1)} n o ( 1 ) , from a hypothesis about satisfiability with clause exponent below 2, and the construction behind it, which builds one gap instance for each proof of a one-message Merlin–Arthur protocol for disjointness (Lemma 5.2 ), needs clause exponent below 2 for every such protocol (Remark 5.4). Measured by the entry bound, reductions of this kind with polynomial blowup and gap Ω ( log n ) \Omega(\log n) Ω ( log n ) cannot derive B = Θ ( log n ) B = \Theta(\sqrt{\log n}) B = Θ ( log n ) from OV in dimension ( log n ) 1 + Ω ( 1 ) (\log n)^{1+\Omega(1)} ( log n ) 1 + Ω ( 1 ) ; for them, the entry form of the threshold needs LDOV. Table 1 collects the picture.
Table 1. Fast attention after the refutation of SETH. The spread is the largest difference of two logits in a row; θ \theta θ , κ \kappa κ , η \eta η , δ \delta δ , β \beta β , a > 0 a > 0 a > 0 , C C C , c 0 c_0 c 0 and the exponent in ( log n ) 1 + Ω ( 1 ) (\log n)^{1+\Omega(1)} ( log n ) 1 + Ω ( 1 ) are constants, and the constants in the lower bounds depend on γ \gamma γ and on them.
What is new
The ledger of [37 Section 6, group (6)] states two facts: the quadratic attention bounds rest on LDOV after the refutation, and bounds proved for every d = ω ( log n ) d = \omega(\log n) d = ω ( log n ) hold under CNF-SETH in dimension polylog n n n . This paper turns the first statement into a characterization: at constant precision the exponent is determined at every spread and in every dimension between ω ( log n ) \omega(\log n) ω ( log n ) and n o ( 1 ) n^{o(1)} n o ( 1 ) , and the constant ln n \ln n ln n of the threshold is exact (Theorem A). It makes the second explicit for attention (Theorem C (i)); under the stronger hypothesis of clause exponent below 2 it obtains the lower bound at spread ( 1 + θ ) ln n (1+\theta)\ln n ( 1 + θ ) ln n in dimension n o ( 1 ) n^{o(1)} n o ( 1 ) (Theorem C (ii)), and it shows that its construction, one gap instance for each proof of a Merlin–Arthur protocol, needs clause exponent below 2 for every such protocol (Remark 5.4). The dependence on precision and dimension (Theorem B ) and the barrier (Theorem D ) are new. Relative to the attention literature, Theorem A locates the threshold exactly in the spread, at ( 1 ± θ ) ln n (1 \pm\theta)\ln n ( 1 ± θ ) ln n , and gives the exponent below it, where [5 , 25 ] give hardness at B = C ′ log n B = C'\sqrt{\log n} B = C ′ log n with C ′ C' C ′ unspecified; in the entry form the constant remains open (§ 3.2 ). Theorem B shows why the threshold of [5 ] has no single constant at polynomial precision, and that dimension, which does not affect the exponent at constant precision between C log n C\log n C log n and n o ( 1 ) n^{o(1)} n o ( 1 ) , matters there. § 6 maps the conditional lower bounds for attention in the literature, most of them SETH-based, to the hypotheses that now support them; two families turn out to rest on refuted hypotheses, one of them in part of its parameter range.
Figure 1. Schematic phase diagram in dimension O ( log n ) O(\log n) O ( log n ) , not to scale; the dimension constant depends on γ \gamma γ , and at constant precision also on θ \theta θ . At constant precision the easy and hard regions meet at spread ln n \ln n ln n , and below it the exponent is 1 + W / ln n 1 + W/\ln n 1 + W / ln n (Corollary 3.7). At precision n − β n^{-\beta} n − β and spread ( 1 − 2 β − ξ ) ln n (1 - 2\beta- \xi)\ln n ( 1 − 2 β − ξ ) ln n , for a constant ξ > 0 \xi> 0 ξ > 0 , sampling takes time n 2 − ξ + o ( 1 ) n^{2-\xi+o(1)} n 2 − ξ + o ( 1 ) ; beyond β = 1 / 2 \beta= 1/2 β = 1/2 the polynomial method takes over. At precision n − β n^{-\beta} n − β both boundaries are Θ β ( ln n ) \Theta_{\beta}(\ln n) Θ β ( ln n ) and tend to 0 0 0 as β \beta β grows. Under CNF-SETH alone we prove hardness at spread d ln ( 16 n ) d\ln(16n) d ln ( 16 n ) in dimension d = ( log n ) O ( 1 ) d = (\log n)^{O(1)} d = ( log n ) O ( 1 ) (Proposition 5.1 ).
The upper bounds are uniform sampling and the polynomial method of [5 ] . The lower bounds use the distributed PCP of Abboud, Rubinstein and Williams [4 ] in the efficient form of Rubinstein [40 ] , as packaged by Chen [15 ] , the counting argument of [24 ] in a general base and over blocks, and Williams’ reduction [45 ] . The barrier uses random-sign projections, Klauck’s rectangle argument [32 ] and Razborov’s corruption bound [39 ] .
Organization. § 2 defines the problem and states the hypotheses and imported theorems. § 3 to § 5 prove Theorems A and B , and Theorems C and D , with full proofs in Appendices § 10 to § 13 , written as structured proofs in the style of Lamport [35 , 36 ] . Appendix § 9 is a roadmap of these proofs, and Figure 2 there shows how the results depend on each other. The subsections of the appendices follow those of the body: Appendix § 10 .§ 3 , for example, holds the proofs for § 3.3 . § 6 is the ledger, and § 7 discusses related work and open problems.
Figure 2. Dependencies between the results. An arrow from X X X to Y Y Y means that the proof of Y Y Y uses X X X ; arrows implied by a longer path are omitted. The arrow into Theorem 5.3 is dashed because its proof reuses the attention instance from the proof of Theorem 3.3 , not the statement, so it does not need Hypothesis 2.4. Gray boxes are hypotheses, dashed boxes imported theorems and thick boxes the theorems of the introduction. Green marks upper bounds, orange lower bounds and blue the barrier; a box with both green and orange states both bounds. Remark 3.5 also applies to Theorems 3.3 and 5.3 and Corollary 3.4, which gives Theorem C (ii) at every nontrivial constant precision; only its use in Corollary 3.7 is drawn.
AI disclosure. This paper was written with Claude Opus 5.5 (Anthropic), working as an agent in Claude Code. The author posed the question and directed the presentation. Claude chose the results, proved them, wrote the text and drew the figures. Separate Claude agents searched the literature, audited the proofs and reviewed the paper as referees, and the paper was revised to address their findings. At the author’s request, ChatGPT (OpenAI) then reviewed the proofs and the tables of prior results and found no fatal or major problems; Claude checked each of its minor findings against the proofs and the cited sources, and corrected the text without changing any proof. The gadgets, the counting identities and the reductions for the precision bounds were tested on small random instances, the identities in exact arithmetic. The author is responsible for the content.
Preliminaries
We write log for log 2 \log_{2} log 2 , ln for the natural logarithm, and [ n ] = { 1 , … , n } [n]=\{1,\ldots,n\} [ n ] = { 1 , … , n } . For a , b ∈ { 0 , 1 } D a,b\in\{0,1\}^{D} a , b ∈ { 0 , 1 } D the inner product ⟨ a , b ⟩ \langle a,b\rangle ⟨ a , b ⟩ counts common ones; a a a and b b b are orthogonal if ⟨ a , b ⟩ = 0 \langle a,b\rangle=0 ⟨ a , b ⟩ = 0 .
Attention and its parameters
Definition 2.1 (Attention). An attention instance consists of queries q 1 , … , q n ∈ R d q_{1},\ldots,q_{n}\in\mathbb{R}^{d} q 1 , … , q n ∈ R d , keys k 1 , … , k n ′ ∈ R d k_{1},\ldots,k_{n'}\in\mathbb{R}^{d} k 1 , … , k n ′ ∈ R d and values v 1 , … , v n ′ ∈ [ − 1 , 1 ] d v v_{1},\ldots,v_{n'}\in[-1,1]^{d_v} v 1 , … , v n ′ ∈ [ − 1 , 1 ] d v . The logits are ℓ i j = ⟨ q i , k j ⟩ \ell_{ij}=\langle q_i,k_j\rangle ℓ ij = ⟨ q i , k j ⟩ , the attention weights are π i j = e ℓ i j / ∑ j ′ e ℓ i j ′ \pi_{ij}=e^{\ell_{ij}}/\sum_{j'}e^{\ell_{ij'}} π ij = e ℓ ij / ∑ j ′ e ℓ i j ′ , and the output of query i i i is o i = ∑ j π i j v j ∈ [ − 1 , 1 ] d v o_i=\sum_j\pi_{ij}v_j\in[-1,1]^{d_v} o i = ∑ j π ij v j ∈ [ − 1 , 1 ] d v . The spread of row i i i is max j ℓ i j − min j ℓ i j \max_j\ell_{ij}-\min_j\ell_{ij} max j ℓ ij − min j ℓ ij , and the spread W W W of the instance is the largest spread of a row.
Matrix notation writes the output as D − 1 A V D^{-1}AV D − 1 A V with A = exp ( Q K T ) A=\exp(QK^{\mathsf{T}}) A = exp ( Q K T ) and D = diag ( A 1 ) D=\operatorname{diag}(A1) D = diag ( A 1 ) . Every normalization used in the literature is a rescaling of the queries. Alman and Song [5 ] use A = exp ( Q K T / d ) A=\exp(QK^{\mathsf{T}}/d) A = exp ( Q K T / d ) with all entries of Q , K Q,K Q , K in [ − B , B ] [-B,B] [ − B , B ] , so every logit lies in [ − B 2 , B 2 ] [-B^{2},B^{2}] [ − B 2 , B 2 ] and W ≤ 2 B 2 W\leq2B^{2} W ≤ 2 B 2 . Gupta, Huang, Saha, Xu and Ye [24 ] use A = exp ( Q K T ) A=\exp(QK^{\mathsf{T}}) A = exp ( Q K T ) with entries in [ − B , B ] [-B,B] [ − B , B ] , so W ≤ 2 d B 2 W\leq2dB^{2} W ≤ 2 d B 2 . Transformers use A = exp ( Q K T / d ) A=\exp(QK^{\mathsf{T}}/\sqrt{d}) A = exp ( Q K T / d ) . We state all results for the spread of the logits that enter the softmax. It does not depend on how a normalization is split between the queries, the keys and a factor such as 1 / d 1/d 1/ d , and it is invariant under adding a constant to all logits of a row.
Definition 2.2 (Approximate attention). ATT ( n , d , W , ε ) \operatorname{ATT}(n,d,W,\varepsilon) ATT ( n , d , W , ε ) is the following problem. The input is an attention instance with n n n queries, n n n keys, dimension d d d , d v ≤ d d_v\leq d d v ≤ d value coordinates, and spread at most W W W . The goal is to output vectors o ~ i \widetilde{o}_i o i with ∥ o ~ i − o i ∥ ∞ ≤ ε \|\widetilde{o}_i-o_i\|_{\infty}\leq\varepsilon ∥ o i − o i ∥ ∞ ≤ ε for all i i i . A randomized algorithm solves it if it succeeds with probability at least 2 / 3 2/3 2/3 .
An instance with fewer queries, or with dimension below d d d , is an instance of the larger size after padding: zero queries add rows we ignore, and zero coordinates leave every logit unchanged. Inputs are rational numbers of O ( log ( n / ε ) ) O(\log(n/\varepsilon)) O ( log ( n / ε )) bits, and the algorithms of § 3 use arithmetic operations on numbers of this length, including the exponential function evaluated to relative precision ε / 100 \varepsilon/100 ε /100 ; the polynomial method of § 4 uses exact rational arithmetic on numbers of O ( log 2 n ) O(\log^{2}n) O ( log 2 n ) bits. The following stability fact is used throughout.
Lemma 2.3 (Logit perturbation). Let two instances share their values and have logits ℓ i j \ell_{ij} ℓ ij and ℓ i j ′ \ell'_{ij} ℓ ij ′ with ∣ ℓ i j − ℓ i j ′ ∣ ≤ η |\ell_{ij}-\ell'_{ij}|\leq\eta ∣ ℓ ij − ℓ ij ′ ∣ ≤ η for all j j j and a fixed row i i i . Then ∥ o i − o i ′ ∥ ∞ ≤ e 2 η − 1 \|o_i-o'_i\|_{\infty}\leq e^{2\eta}-1 ∥ o i − o i ′ ∥ ∞ ≤ e 2 η − 1 .
Hypotheses after the refutation
Orthogonal Vectors (O V n , D \mathrm{OV}_{n,D} OV n , D ) asks whether two given lists A A A and B B B of n n n vectors each in { 0 , 1 } D \{0,1\}^{D} { 0 , 1 } D contain an orthogonal pair. Repetitions are allowed, and the size of a list counts its entries; all collections of vectors in this paper, such as the instances of Imported Theorems 2.7 and 2.8 and Lemma 5.2 , are lists in this sense, and a ∈ A a\in A a ∈ A ranges over the entries of A A A . Brute force takes time O ( n 2 D ) O(n^{2}D) O ( n 2 D ) . For D = c log n D=c\log n D = c log n the best algorithm takes time n 2 − 1 / O ( log c ) n^{2-1/O(\log c)} n 2 − 1/ O ( l o g c ) [11 , 22 ] . All hypotheses below are about randomized algorithms with error probability at most 1 / 3 1/3 1/3 .
Hypothesis 2.4 (Low-dimensional OV hypothesis, LDOV). For every γ > 0 \gamma> 0 γ > 0 there is an integer c ≥ 1 c \ge1 c ≥ 1 such that O V n , ⌈ c log n ⌉ \mathrm{OV}_{n,\lceil c\log n\rceil} OV n , ⌈ c l o g n ⌉ cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) .
Hypothesis 2.5 (CNF-SETH). For every γ > 0 \gamma> 0 γ > 0 there is c 0 ≥ 1 c_0 \ge1 c 0 ≥ 1 such that satisfiability of CNF formulas with N N N variables and at most N c 0 N^{c_0} N c 0 clauses cannot be decided in time O ( 2 ( 1 − γ ) N ) O(2^{(1-\gamma)N}) O ( 2 ( 1 − γ ) N ) .
Hypothesis 2.6 (CNF-SETH with clause exponent c 0 c_0 c 0 ). For a constant c 0 ≥ 1 c_0 \ge1 c 0 ≥ 1 , the hypothesis CNF-SETHc 0 _{c_0} c 0 states that for every γ > 0 \gamma> 0 γ > 0 , satisfiability of CNF formulas with N N N variables and at most N c 0 N^{c_0} N c 0 clauses cannot be decided in time O ( 2 ( 1 − γ ) N ) O(2^{(1-\gamma)N}) O ( 2 ( 1 − γ ) N ) .
CNF-SETHc 0 _{c_0} c 0 implies CNF-SETH, and it gets stronger as c 0 c_0 c 0 decreases. Williams’ [45 ] reduction connects these hypotheses to OV.
Imported Theorem 2.7 (Williams [45 ] ). A CNF formula with N N N variables, N N N even, and M M M clauses can be transformed in time 2 N / 2 poly ( N , M ) 2^{N/2}\operatorname{poly}(N,M) 2 N /2 poly ( N , M ) into an instance of O V n , M \mathrm{OV}_{n,M} OV n , M with n = 2 N / 2 n=2^{N/2} n = 2 N /2 that has an orthogonal pair if and only if the formula is satisfiable.
So CNF-SETH implies that for every γ > 0 \gamma> 0 γ > 0 there is c 0 c_0 c 0 such that O V n , D \mathrm{OV}_{n,D} OV n , D with D = ⌈ ( 2 log n ) c 0 ⌉ D=\lceil(2\log n)^{c_0}\rceil D = ⌈( 2 log n ) c 0 ⌉ has no O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) algorithm, and CNF-SETHc 0 _{c_0} c 0 gives the same with one exponent c 0 c_0 c 0 for all γ \gamma γ . Before the refutation, SETH implied Hypothesis 2.4 through the sparsification lemma [31 ] , which reduces k k k -SAT to k k k -SAT with linearly many clauses. This route is closed: CNF-SAT with O ( N ) O(N) O ( N ) clauses of arbitrary width is solvable in time O ( 2 ε N ) O(2^{\varepsilon N}) O ( 2 εN ) for every ε > 0 \varepsilon> 0 ε > 0 [37 Proposition 6.1] , so CNF-SETH1 _1 1 is false, and no hypothesis about satisfiability that is still open is known to imply Hypothesis 2.4. CNF-SETHc 0 _{c_0} c 0 is open for every c 0 > 1 c_0 > 1 c 0 > 1 . The same applies to the k k k -party version: SETH implied that k k k -OV in dimension c log n c\log n c log n needs time n k − o ( 1 ) n^{k-o(1)} n k − o ( 1 ) , while CNF-SETH, by splitting the variables into k k k parts, gives this in dimension ( log n ) O ( 1 ) (\log n)^{O(1)} ( log n ) O ( 1 ) .
Imported theorems
Three results are used as black boxes. The first packages the distributed PCP of Abboud, Rubinstein and Williams [4 ] , made efficient by Rubinstein [40 ] with algebraic-geometry codes, as stated by Chen [15 ] . The Boolean Max-IP problem asks for the largest inner product between a vector of one list and a vector of another, each of n n n vectors in { 0 , 1 } d \{0,1\}^d { 0 , 1 } d .
Imported Theorem 2.8 ([15 Lemma 3.3 and its proof in Appendix D] ). For every integer c ≥ 1 c \ge1 c ≥ 1 and real ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] there is n 0 n_0 n 0 such that for all n ≥ n 0 n \ge n_0 n ≥ n 0 and every real τ ∈ [ 4 , n ] \tau\in[4,n] τ ∈ [ 4 , n ] , an instance ( A , B ) (A,B) ( A , B ) of O V n , ⌈ c log n ⌉ \mathrm{OV}_{n,\lceil c\log n\rceil} OV n , ⌈ c l o g n ⌉ can be mapped to at most 2 n ε 2n^\varepsilon 2 n ε instances ( A ψ , B ψ ) (A_\psi,B_\psi) ( A ψ , B ψ ) of Boolean Max-IP, each with n n n vectors per side in a dimension d C ≤ τ poly ( c / ε ) log n d_C \le\tau^{\operatorname{poly}(c/\varepsilon)}\log n d C ≤ τ poly ( c / ε ) log n , and to an integer T T T with c log n ≤ T ≤ d C c\log n \le T \le d_C c log n ≤ T ≤ d C , such that:
every inner product between a vector of A ψ A_\psi A ψ and a vector of B ψ B_\psi B ψ lies in [ 0 , T ] [0,T] [ 0 , T ] ;
if ( A , B ) (A,B) ( A , B ) has an orthogonal pair, then some instance has a pair with inner product T T T ;
otherwise every pair in every instance has inner product at most T / τ T/\tau T / τ ;
the map works vector by vector: there are maps x ( ψ , ⋅ ) x(\psi,\cdot) x ( ψ , ⋅ ) and y y y , which depend only on n n n , c c c , ε \varepsilon ε , and τ \tau τ , with A ψ = ( x ( ψ , a ) ) a ∈ A A_\psi=(x(\psi,a))_{a\in A} A ψ = ( x ( ψ , a ) ) a ∈ A and B ψ = ( y ( b ) ) b ∈ B B_\psi=(y(b))_{b\in B} B ψ = ( y ( b ) ) b ∈ B , and for all a , b ∈ { 0 , 1 } ⌈ c log n ⌉ a,b\in\{0,1\}^{\lceil c\log n\rceil} a , b ∈ { 0 , 1 } ⌈ c l o g n ⌉ , ⟨ x ( ψ , a ) , y ( b ) ⟩ = T \langle x(\psi,a),y(b)\rangle=T ⟨ x ( ψ , a ) , y ( b )⟩ = T for some ψ \psi ψ if ⟨ a , b ⟩ = 0 \langle a,b\rangle=0 ⟨ a , b ⟩ = 0 , and ⟨ x ( ψ , a ) , y ( b ) ⟩ ≤ T / τ \langle x(\psi,a),y(b)\rangle\le T/\tau ⟨ x ( ψ , a ) , y ( b )⟩ ≤ T / τ for all ψ \psi ψ if ⟨ a , b ⟩ ≥ 1 \langle a,b\rangle\ge1 ⟨ a , b ⟩ ≥ 1 . The instances can be computed in time n 1 + ε d C poly ( log n ) n^{1+\varepsilon}d_C\operatorname{poly}(\log n) n 1 + ε d C poly ( log n ) .
Items (i) and (iv), the integer T T T and the running time are read off the proof. There, T = 2 r T=2^r T = 2 r is the number of random strings of an amplified protocol, and ψ \psi ψ ranges over Merlin’s proofs. The vector y ( b ) y(b) y ( b ) has exactly one coordinate equal to 1 in each of the T T T blocks indexed by the random strings, at
Bob’s message for b b b , which depends only on b b b and the random string [15 Definition 2.6] ; so T ≤ d C T \le d_C T ≤ d C . The coordinates of x ( ψ , a ) x(\psi,a) x ( ψ , a ) record whether Alice, holding a a a and the proof ψ \psi ψ , accepts a given message on a given random string, so ⟨ x ( ψ , a ) , y ( b ) ⟩ \langle x(\psi,a),y(b)\rangle ⟨ x ( ψ , a ) , y ( b )⟩ is the number of random strings on which Alice accepts, and (iv) is the completeness and soundness of the protocol. Every coordinate is a predicate of the computationally efficient protocol of [40 ] . The base protocol is the unrepeated one inside Rubinstein’s proof of [40 Theorem 3.1] : with s s s a constant depending on c / ε c/\varepsilon c / ε , it uses log m + O ( 1 ) \log m + O(1) log m + O ( 1 ) coins, has perfect completeness and soundness at most 9 / 10 9/10 9/10 . An expander walk of length O ( log τ ) O(\log\tau) O ( log τ ) brings the soundness to 1 / τ 1/\tau 1/ τ with log m + O ( log τ ) \log m + O(\log\tau) log m + O ( log τ ) coins; Chen [15 Lemma D.2] carries this out from soundness 1 / 2 1/2 1/2 , and the hitting property of expander walks gives the same from soundness 9 / 10 9/10 9/10 . Padding the protocol with O ( 1 ) O(1) O ( 1 ) unused coins makes T ≥ m T \ge m T ≥ m and multiplies the dimension by a constant. This is why T = O ( τ O ( 1 ) log n ) T = O(\tau^{O(1)} \log n) T = O ( τ O ( 1 ) log n ) and the dimension stays O ( log n ) O(\log n) O ( log n ) for constant τ \tau τ . Chen states the lemma for every τ ≥ 2 \tau\ge2 τ ≥ 2 and applies it with τ \tau τ a function of n n n [15 Corollary 3.4] ; in the construction, n 0 n_0 n 0 comes only from the parameters of Rubinstein’s protocol, which depend on c c c and ε \varepsilon ε but not on τ \tau τ . For dimensions D = ω ( log n ) D = \omega(\log n) D = ω ( log n ) we use the underlying protocol directly. In a one-message MA protocol for disjointness, Merlin sends a proof to Alice, Alice and Bob share uniformly random coins, Bob sends one message to Alice, and Alice accepts or rejects.
Imported Theorem 2.9 ([40 Theorem 3.1] ). There are absolute constants a 1 , a 2 , a 3 a_1,a_2,a_3 a 1 , a 2 , a 3 such that for all integers m m m and s ∈ [ 2 , m ] s \in[2,m] s ∈ [ 2 , m ] there is a computationally efficient one-message MA protocol for disjointness of X , Y ⊆ [ m ] X,Y \subseteq[m] X , Y ⊆ [ m ] in which Merlin sends Alice at most a 1 ( m / s ) log s a_1(m/s)\log s a 1 ( m / s ) log s bits, Alice and Bob share at most a 2 log m a_2 \log m a 2 log m uniform coins, and Bob sends Alice at most a 3 s log s a_3s\log s a 3 s log s bits that depend only on Y Y Y and the coins. If X ∩ Y = ∅ X \cap Y = \varnothing X ∩ Y = ∅ , some proof makes Alice accept for all coins. If X ∩ Y ≠ ∅ X \cap Y \ne\varnothing X ∩ Y = ∅ , Alice accepts with probability at most 1 / 2 1/2 1/2 for every proof.
The third result is Razborov’s corruption bound for disjointness. Write DISJ D ( x , y ) = 1 \operatorname{DISJ}_D(x,y) = 1 DISJ D ( x , y ) = 1 if x , y ∈ { 0 , 1 } D x,y \in\{0,1\}^D x , y ∈ { 0 , 1 } D are disjoint, that is, orthogonal.
Imported Theorem 2.10 (Razborov [39 ] ). There are absolute constants α 1 , ε 1 > 0 \alpha_1,\varepsilon_1 > 0 α 1 , ε 1 > 0 and, for every D ≥ 1 D \ge1 D ≥ 1 , a distribution μ \mu μ on { 0 , 1 } D × { 0 , 1 } D \{0,1\}^D \times\{0,1\}^D { 0 , 1 } D × { 0 , 1 } D with μ ( DISJ D − 1 ( 1 ) ) = 3 / 4 \mu(\operatorname{DISJ}_D^{-1}(1)) = 3/4 μ ( DISJ D − 1 ( 1 )) = 3/4 such that every rectangle m a t h i t X × Y mathit{X} \times Y ma t hi t X × Y satisfies μ ( ( X × Y ) ∩ DISJ D − 1 ( 0 ) ) ≥ α 1 μ ( ( X × Y ) ∩ DISJ D − 1 ( 1 ) ) − 2 − ε 1 D \mu((X \times Y) \cap\operatorname{DISJ}_D^{-1}(0)) \ge\alpha_1 \mu((X \times Y) \cap\operatorname{DISJ}_D^{-1}(1)) - 2^{-\varepsilon_1 D} μ (( X × Y ) ∩ DISJ D − 1 ( 0 )) ≥ α 1 μ (( X × Y ) ∩ DISJ D − 1 ( 1 )) − 2 − ε 1 D .
Razborov proves this for D = 4 ℓ − 1 D = 4\ell- 1 D = 4 ℓ − 1 ; for other D D D , place the distribution on the first 4 ℓ − 1 ≥ D − 4 4\ell- 1 \ge D - 4 4 ℓ − 1 ≥ D − 4 coordinates and decrease ε 1 \varepsilon_1 ε 1 , and for D ≤ 6 D \le6 D ≤ 6 take any distribution with the stated mass and a small ε 1 \varepsilon_1 ε 1 . The direction matters: rectangles that are mostly disjoint must be small. The converse fails, since { x ∋ i } × { y ∋ i } \{x \ni i\} \times\{y \ni i\} { x ∋ i } × { y ∋ i } contains only intersecting pairs.
The concentration threshold
This section proves Theorem A. The upper bound is uniform sampling; its cost is governed by how much weight a single key can receive. The lower bounds show that under Hypothesis 2.4 this cost cannot be improved by a polynomial factor at any spread, and that once the spread allows one key to outweigh all others together, constant precision already needs quadratic time.
Sampling
Proposition 3.1 (Sampling). Consider an attention instance with n n n queries, n ′ n' n ′ keys, dimension d d d and d v d_v d v value coordinates. Let F ≥ 1 F \ge1 F ≥ 1 satisfy F ≥ n ′ n i F \ge n'n_i F ≥ n ′ n i for all i , j i,j i , j , and let ε , δ ∈ ( 0 , 1 ] \varepsilon,\delta\in(0,1] ε , δ ∈ ( 0 , 1 ] . There is a randomized algorithm that, with probability at least 1 − δ 1-\delta 1 − δ , outputs o ~ i \widetilde{o}_i o i with ∥ o ~ i − o i ∥ ∞ ≤ ε \lVert\widetilde{o}_i-o_i\rVert_\infty\le\varepsilon ∥ o i − o i ∥ ∞ ≤ ε for all i i i , using O ( n m ( d + d v ) ) O(nm(d+d_v)) O ( nm ( d + d v )) operations with
m = ⌈ 40 F ln ( 2 n ( 1 + d v ) / δ ) ε 2 ⌉ m = \left\lceil\frac{40F\ln(2n(1+d_v)/\delta)}{\varepsilon^2} \right\rceil m = ⌈ ε 2 40 F ln ( 2 n ( 1 + d v ) / δ ) ⌉
Every instance with spread at most W W W satisfies the hypothesis with F = e W F=e^{W} F = e W .
The algorithm samples m m m keys uniformly with replacement for each query and returns the self-normalized average ∑ s e ℓ i j s v j s / ∑ s e ℓ i j s \sum_s e^{\ell_{ijs}}v_{js}/\sum_s e^{\ell_{ijs}} ∑ s e ℓ ij s v j s / ∑ s e ℓ ij s . Bernstein’s inequality controls numerator and denominator, because the variance of a weight is at most its mean times its maximum (Appendix § 10 .§ 1 ). The quantity n ′ max j π i j n' \max_j \pi_{ij} n ′ max j π ij is the factor by which the largest attention weight exceeds the uniform weight 1 / n ′ 1/n' 1/ n ′ , so the cost is n 2 n^2 n 2 times the largest attention weight, up to the factor ( d + d v ) log n / ε 2 (d+d_v)\log n/\varepsilon^2 ( d + d v ) log n / ε 2 .
Corollary 3.2. For every κ ∈ [ 0 , 1 ] \kappa\in[0,1] κ ∈ [ 0 , 1 ] and ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] , ATT ( n , d , κ ln n , ε ) \operatorname{ATT}(n,d,\kappa\ln n,\varepsilon) ATT ( n , d , κ ln n , ε ) can be solved in time O ( n 1 + κ d log ( n d ) / ε 2 ) O(n^{1+\kappa}d\log(nd)/\varepsilon^2) O ( n 1 + κ d log ( n d ) / ε 2 ) . The same holds for instances in which every attention weight is at most n κ − 1 n^{\kappa-1} n κ − 1 .
Proof. Apply Proposition 3.1 with n ′ = n n'=n n ′ = n , δ = 1 / 3 \delta=1/3 δ = 1/3 , d v ≤ d d_v \le d d v ≤ d and F = e κ ln n = n κ F=e^{\kappa\ln n}=n^\kappa F = e κ l n n = n κ , respectively F = n ⋅ n κ − 1 F=n\cdot n^{\kappa-1} F = n ⋅ n κ − 1 .
Sampling keys is the idea behind several practical attention approximations, such as KDEformer [46 ] and HyperAttention [26 ] , whose guarantees are stated in terms of column norms of the attention matrix and stable ranks. Proposition 3.1 is the simplest member of this family, and under Hypothesis 2.4, Corollary 3.7 below shows that its exponent is optimal in terms of the spread.
Quadratic time above the threshold
Theorem 3.3 (Hardness above the threshold). Assume Hypothesis 2.4. For all γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) and θ ∈ ( 0 , 1 ] \theta\in(0,1] θ ∈ ( 0 , 1 ] there is a constant C ≥ 1 C \ge1 C ≥ 1 such that for every ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) , ATT ( n , ⌈ C log n ⌉ , ( 1 + θ ) ln n , ε ) \operatorname{ATT}(n,\lceil C\log n\rceil,(1+\theta)\ln n,\varepsilon) ATT ( n , ⌈ C log n ⌉ , ( 1 + θ ) ln n , ε ) cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . This holds already for instances with d v = 1 d_v=1 d v = 1 , values in { 0 , 1 } \{0,1\} { 0 , 1 } , and all logits in [ 0 , ( 1 + θ ) ln n ] [0,(1+\theta)\ln n] [ 0 , ( 1 + θ ) ln n ] .
For values in { 0 , 1 } \{0,1\} { 0 , 1 } , precision 1 / 2 1/2 1/2 is trivial: output 1 / 2 1/2 1/2 everywhere. For such values, Theorem 3.3 therefore covers every nontrivial constant precision. The proof gives a constant C C C that is polynomial in 1 / θ 1/\theta 1/ θ , with a degree that depends on γ \gamma γ and on the constant of Hypothesis 2.4; so in a fixed dimension C log n C\log n C log n the hardness holds at spread ( 1 + C − Ω γ ( 1 ) ) ln n (1+C^{-\Omega_\gamma(1)})\ln n ( 1 + C − Ω γ ( 1 ) ) ln n .
Proof idea. Take the gap instances of Imported Theorem 2.8 with τ ≥ 4 / θ \tau\ge4/\theta τ ≥ 4/ θ : every inner product lies in [ 0 , T ] [0,T] [ 0 , T ] , a YES instance has a pair at T T T , and a NO instance has all pairs at most T / τ T/\tau T / τ . Let η = ( 1 − 2 ε ) / 4 \eta=(1-2\varepsilon)/4 η = ( 1 − 2 ε ) /4 . Scale the vectors by λ ≈ ( ln n + 2 ln ( 1 / η ) ) / ( ( 1 − 1 / τ ) T ) \lambda\approx(\ln n+2\ln(1/\eta))/((1-1/\tau)T) λ ≈ ( ln n + 2 ln ( 1/ η )) / (( 1 − 1/ τ ) T ) and add one dummy key whose logit sits ln ( ( 1 − η ) / η ) \ln((1-\eta)/\eta) ln (( 1 − η ) / η ) below the top value λ T \lambda T λ T . If some key of a row is at λ T \lambda T λ T , the real keys of that row carry at least 1 − η 1-\eta 1 − η of its weight. In a NO instance they carry at most η \eta η , because each lies λ T ( 1 − 1 / τ ) \lambda T(1-1/\tau) λ T ( 1 − 1/ τ ) below the top. All logits lie in [ 0 , λ T ] [0,\lambda T] [ 0 , λ T ] , and λ T ≤ ( 1 + θ ) ln n \lambda T \le(1+\theta)\ln n λ T ≤ ( 1 + θ ) ln n for large n n n . Each of the at most 2 n γ / 4 2n^{\gamma/4} 2 n γ /4 instances takes O ( log n ) O(\log n) O ( log n ) attention calls, so an O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) algorithm gives an O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) algorithm for OV. Appendix § 10 .§ 2 gives the details.
Imported Theorem 2.8 allows the gap τ \tau τ to grow with n n n . With τ = ⌈ log n ⌉ \tau=\lceil\log n\rceil τ = ⌈ log n ⌉ the same proof gives an additive version, at the price of polylogarithmic dimension.
Corollary 3.4 (Additive version). Assume Hypothesis 2.4. For all γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) and ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) there is C ≥ 1 C \ge1 C ≥ 1 such that ATT ( n , ⌈ ( log n ) C ⌉ , ln n + 2 ln 4 1 − 2 ε + 2 , ε ) \operatorname{ATT}(n,\lceil(\log n)^C\rceil,\ln n+2\ln\frac{4}{1-2\varepsilon}+2,\varepsilon) ATT ( n , ⌈( log n ) C ⌉ , ln n + 2 ln 1 − 2 ε 4 + 2 , ε ) cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . For ε = 1 / 6 \varepsilon=1/6 ε = 1/6 the spread is below ln n + 6 \ln n+6 ln n + 6 . This holds already for instances with d v = 1 d_v=1 d v = 1 and values in { 0 , 1 } \{0,1\} { 0 , 1 } .
Remark 3.5 (Values in { − 1 , 1 } \{-1,1\} { − 1 , 1 } ). Replacing every value v v v by 2 v − 1 2v-1 2 v − 1 maps an attention instance with values in { 0 , 1 } \{0,1\} { 0 , 1 } to an instance with the same logits and values in { − 1 , 1 } \{-1,1\} { − 1 , 1 } , and every output o o o to 2 o − 1 2o-1 2 o − 1 . So an algorithm with precision ε \varepsilon ε on the new instances gives one with precision ε / 2 \varepsilon/2 ε /2 on the old ones, at the cost of O ( n ) O(n) O ( n ) further operations when d v = 1 d_v=1 d v = 1 . Hence Theorem 3.3 , and Theorems 3.6 and 5.3 below, hold for every ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) on instances with values in { − 1 , 1 } \{-1,1\} { − 1 , 1 } , and so does Corollary 3.4 with spread ln n + 2 ln 4 1 − ε + 2 \ln n+2\ln\frac{4}{1-\varepsilon}+2 ln n + 2 ln 1 − ε 4 + 2 . With values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , precision 1 is trivial: output 0 everywhere. So these results cover every nontrivial constant precision.
The exponent below the threshold
Below the threshold, splitting the keys into groups gives a matching lower bound at every spread.
Theorem 3.6 (Hardness below the threshold). Assume Hypothesis 2.4. For all α ∈ ( 0 , 1 ] \alpha\in(0,1] α ∈ ( 0 , 1 ] , γ ∈ ( 0 , α ) \gamma\in(0,\alpha) γ ∈ ( 0 , α ) and θ ∈ ( 0 , 1 ] \theta\in(0,1] θ ∈ ( 0 , 1 ] there is a constant C ≥ 1 C \ge1 C ≥ 1 such that for every ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) , ATT ( n , ⌈ C log n ⌉ , ( 1 + θ ) α ln n , ε ) \operatorname{ATT}(n,\lceil C\log n\rceil,(1+\theta)\alpha\ln n,\varepsilon) ATT ( n , ⌈ C log n ⌉ , ( 1 + θ ) α ln n , ε ) cannot be solved in time O ( n 1 + α − γ ) O(n^{1+\alpha-\gamma}) O ( n 1 + α − γ ) . This holds already for instances with d v = 1 d_v=1 d v = 1 , values in { 0 , 1 } \{0,1\} { 0 , 1 } , and all logits in [ 0 , ( 1 + θ ) α ln n ] [0,(1+\theta)\alpha\ln n] [ 0 , ( 1 + θ ) α ln n ] .
Proof idea. Under Hypothesis 2.4, OV with n n n vectors on one side and n α n^\alpha n α on the other needs time n 1 + α − o ( 1 ) n^{1+\alpha-o(1)} n 1 + α − o ( 1 ) , because splitting one side of a balanced instance into n 1 − α n^{1-\alpha} n 1 − α groups gives n 1 − α n^{1-\alpha} n 1 − α such instances. The gadget of Theorem 3.3 , applied to one group through the vector-by-vector form of Imported Theorem 2.8, has n α n^\alpha n α real keys, so a top logit α ln n + O ( 1 ) \alpha\ln n+O(1) α ln n + O ( 1 ) above the others suffices. Copying every key, the dummy key included, about n 1 − α n^{1-\alpha} n 1 − α times multiplies every term of the numerator and of the denominator of the softmax by the same factor, so it leaves the outputs and the spread unchanged and brings the number of keys to between n n n and 2 n 2n 2 n . An algorithm faster than n 1 + α − γ n^{1+\alpha-\gamma} n 1 + α − γ on these instances would solve all groups in time n 2 − Ω ( γ ) n^{2-\Omega(\gamma)} n 2 − Ω ( γ ) . Appendix § 10 .§ 3 gives the details.
Corollary 3.7 (The exponent). Fix ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) and κ > 0 \kappa>0 κ > 0 . Then ATT ( n , d , κ ln n , ε ) \operatorname{ATT}(n,d,\kappa\ln n,\varepsilon) ATT ( n , d , κ ln n , ε ) can be solved in time n 1 + min { κ , 1 } + o ( 1 ) n^{1+\min\{\kappa,1\}+o(1)} n 1 + m i n { κ , 1 } + o ( 1 ) for every d ≤ n o ( 1 ) d \le n^{o(1)} d ≤ n o ( 1 ) . Under Hypothesis 2.4, for every γ > 0 \gamma>0 γ > 0 there is C C C such that ATT ( n , d , κ ln n , ε ) \operatorname{ATT}(n,d,\kappa\ln n,\varepsilon) ATT ( n , d , κ ln n , ε ) has no O ( n 1 + min { κ , 1 } − γ ) O(n^{1+\min\{\kappa,1\}-\gamma}) O ( n 1 + m i n { κ , 1 } − γ ) algorithm for any d d d with ⌈ C log n ⌉ ≤ d ≤ n o ( 1 ) \lceil C\log n\rceil\le d \le n^{o(1)} ⌈ C log n ⌉ ≤ d ≤ n o ( 1 ) . This holds already for instances with d v = 1 d_v=1 d v = 1 and values in { − 1 , 1 } \{-1,1\} { − 1 , 1 } , and with values in { 0 , 1 } \{0,1\} { 0 , 1 } if ε < 1 / 2 \varepsilon<1/2 ε < 1/2 .
Proof. Let κ ′ = min { κ , 1 } \kappa'=\min\{\kappa,1\} κ ′ = min { κ , 1 } . For κ < 1 \kappa<1 κ < 1 the first part is Corollary 3.2 ; for κ ≥ 1 \kappa\ge1 κ ≥ 1 direct computation takes O ( n 2 d ) O(n^2d) O ( n 2 d ) operations, with the exponentials evaluated as in step ⟨ 1 ⟩ 6 \langle1\rangle6 ⟨ 1 ⟩ 6 of the proof of Proposition 3.1. For the second part it suffices to treat γ < κ ′ / 2 \gamma<\kappa'/2 γ < κ ′ /2 : for larger γ \gamma γ , the constant C C C for κ ′ / 4 \kappa'/4 κ ′ /4 works, since an O ( n 1 + κ ′ − γ ) O(n^{1+\kappa'-\gamma}) O ( n 1 + κ ′ − γ ) algorithm is an O ( n 1 + κ ′ − κ ′ / 4 ) O(n^{1+\kappa'-\kappa'/4}) O ( n 1 + κ ′ − κ ′ /4 ) algorithm. Choose κ ′ / ( 1 + θ ) ≥ κ ′ − γ / 2 \kappa'/(1+\theta)\ge\kappa'-\gamma/2 κ ′ / ( 1 + θ ) ≥ κ ′ − γ /2 and let α = κ ′ / ( 1 + θ ) \alpha=\kappa'/(1+\theta) α = κ ′ / ( 1 + θ ) . For θ ∈ ( 0 , 1 / 2 ) \theta\in(0,1/2) θ ∈ ( 0 , 1/2 ) , Theorem 3.6 for α \alpha α , γ / 2 \gamma/2 γ /2 and θ \theta θ gives C C C such that spread ( 1 + θ ) α ln n = κ ′ ln n (1+\theta)\alpha\ln n=\kappa'\ln n ( 1 + θ ) α ln n = κ ′ ln n has no O ( n 1 + α − γ / 2 ) O(n^{1+\alpha-\gamma/2}) O ( n 1 + α − γ /2 ) algorithm in dimension ⌈ C log n ⌉ \lceil C\log n\rceil ⌈ C log n ⌉ , already for d v = 1 d_v=1 d v = 1 and values in { 0 , 1 } \{0,1\} { 0 , 1 } . Since 1 + α − γ / 2 ≥ 1 + κ ′ − γ 1+\alpha-\gamma/2\ge1+\kappa'-\gamma 1 + α − γ /2 ≥ 1 + κ ′ − γ and κ ′ ≤ κ \kappa'\le\kappa κ ′ ≤ κ , this proves the claim in that dimension. For every ε ∈ ( 0 , 1 ) \varepsilon\in(0,1) ε ∈ ( 0 , 1 ) and values in { − 1 , 1 } \{-1,1\} { − 1 , 1 } , the same C C C works by Remark 3.5 at precision ε / 2 \varepsilon/2 ε /2 ; the further O ( n ) O(n) O ( n ) operations are absorbed, since 1 + κ ′ − γ > 1 1+\kappa'-\gamma>1 1 + κ ′ − γ > 1 . Padding with zero coordinates preserves logits, and for d ≤ n o ( 1 ) d\le n^{o(1)} d ≤ n o ( 1 ) writing the padded instance takes n 1 + o ( 1 ) n^{1+o(1)} n 1 + o ( 1 ) operations, which are absorbed too. So the bound holds for every d d d with ⌈ C log n ⌉ ≤ d ≤ n o ( 1 ) \lceil C\log n\rceil\le d\le n^{o(1)} ⌈ C log n ⌉ ≤ d ≤ n o ( 1 ) .
So under Hypothesis 2.4, at every nontrivial constant precision and in every dimension between ω ( log n ) \omega(\log n) ω ( log n ) and n o ( 1 ) n^{o(1)} n o ( 1 ) , the time exponent of attention with spread κ ln n \kappa\ln n κ ln n is exactly 1 + min { κ , 1 } 1+\min\{\kappa,1\} 1 + min { κ , 1 } : up to factors n o ( 1 ) n^{o(1)} n o ( 1 ) the cost is n ⋅ e W n\cdot e^W n ⋅ e W until it reaches n 2 n^2 n 2 , and uniform sampling is optimal. The transition to quadratic time sits at W = ln n W=\ln n W = ln n , the spread at which a single key can first outweigh all others together. At spread ( 1 − θ ) ln n (1-\theta)\ln n ( 1 − θ ) ln n every attention weight is at most e W / n = n − θ e^W/n=n^{-\theta} e W / n = n − θ , and sampling sees enough keys. At spread ( 1 + θ ) ln n (1+\theta)\ln n ( 1 + θ ) ln n a row can put almost all of its weight on the keys at the top logit, and deciding whether such a row exists is as hard as OV. For each γ > 0 \gamma> 0 γ > 0 the lower bounds hold in dimension C log n C \log n C log n for a constant C C C that depends on κ \kappa κ and γ \gamma γ ; in polylogarithmic dimension, Corollary 3.4 reaches spread ln n + O ( 1 ) \ln n + O(1) ln n + O ( 1 ) . Below dimension C log n C \log n C log n the dimension matters: for constant d d d , Gupta et al. [24 ] compute attention in time O ~ ( n 2 − 1 / d ) \widetilde{O}(n^{2-1/d}) O ( n 2 − 1/ d ) at every spread.
The spread is a worst-case parameter. A single key with a large logit in every row, such as an attention sink, makes the spread large while the other keys remain cheap to sample, and methods such as HyperAttention [26 ] find and remove such keys first. In the instances of Theorem 3.3 the difficulty is to decide whether some row has a key at the top logit; Haverbeck et al. [25 Theorem 5.1] show directly that finding the keys that carry most of the weight is hard.
Comparison with the bounded-entry threshold. In the normalization of Alman and Song, Corollary 3.2 applies whenever B ≤ ( 1 − θ ) ln n / 2 B \le\sqrt{(1-\theta)\ln n/2} B ≤ ( 1 − θ ) ln n /2 , because W ≤ 2 B 2 W \le2B^2 W ≤ 2 B 2 . Theorem 3.3 gives instances with B = O γ , θ , ϵ ( log n ) B = O_{\gamma,\theta,\epsilon}(\sqrt{\log n}) B = O γ , θ , ϵ ( log n ) (Remark B.1), so the threshold B = Θ ( log n ) B = \Theta(\sqrt{\log n}) B = Θ ( log n ) of [5 ] holds at constant precision, under Hypothesis 2.4. In terms of B B B the constant remains open: 2 B 2 2B^2 2 B 2 bounds the spread only up to a factor that depends on how many coordinates of the vectors are nonzero. In terms of the spread it is exact. Haverbeck et al. [25 Theorem 3.7] prove hardness at every nontrivial constant precision (additive error below 1 / 2 1/2 1/2 for values in [ 0 , 1 ] [0,1] [ 0 , 1 ] , relative error below 1 1 1 ) with d = C d log n d = C_d \log n d = C d log n and B = C B log n B = C_B\sqrt{\log n} B = C B log n , for constants C d , C B C_d,C_B C d , C B that depend on the precision and are not specified; their reduction also goes through Rubinstein’s gap problem, so it rests on Hypothesis 2.4 as well. Gupta et al. [24 Theorem 5.7] give hardness at d = Θ ( log n ) d = \Theta(\log n) d = Θ ( log n ) with entries ln 2 \ln2 ln 2 in the unnormalized form, that is, with spread Θ ( log n ) \Theta(\log n) Θ ( log n ) and polynomial precision.
Precision and dimension move the threshold
The threshold W = ln n W = \ln n W = ln n is a statement about constant precision. Precision 1 / poly ( n ) 1/\operatorname{poly}(n) 1/ poly ( n ) , as in [5 ] , keeps errors small when attention layers are composed. At that precision the picture changes: there is no single constant, higher precision makes smaller spreads hard, and, unlike at constant precision, the dimension matters. This section proves Theorem B . We write the precision as n − β n^{-\beta} n − β .
Counting modulo r + 1 r+1 r + 1
Gupta et al. [24 Theorem 5.7 and Lemma 5.8] observed that attention with logits ( ln 2 ) ⟨ a , b ⟩ (\ln2)\langle a,b\rangle ( ln 2 ) ⟨ a , b ⟩ and precision n − O ( 1 ) n^{-O(1)} n − O ( 1 ) reveals the parity of the number of orthogonal partners of a a a . The point is that ∑ b 2 ⟨ a , b ⟩ \sum_b 2^{\langle a,b\rangle} ∑ b 2 ⟨ a , b ⟩ is an integer whose parity is the parity of the number of b b b with ⟨ a , b ⟩ = 0 \langle a,b\rangle= 0 ⟨ a , b ⟩ = 0 . We make two changes. The base 1 + 1 / r 1+1/r 1 + 1/ r instead of 2 2 2 makes the logits ln ( 1 + 1 / r ) ⟨ a , b ⟩ \ln(1+1/r)\langle a,b\rangle ln ( 1 + 1/ r ) ⟨ a , b ⟩ small, while r m ∑ b ( 1 + 1 / r ) ⟨ a , b ⟩ r^m \sum_b(1+1/r)^{\langle a,b\rangle} r m ∑ b ( 1 + 1/ r ) ⟨ a , b ⟩ is still an integer that determines the number of orthogonal partners modulo r + 1 r+1 r + 1 . And counting intersecting blocks instead of intersecting coordinates reduces the number of digits that must be resolved, at the price of dimension. For a partition of [ m ] [m] [ m ] into K K K blocks, let
F ( a , b ) = ∣ { t ≤ K : a and b share a one in block t } ∣ . F(a,b)=\left|\left\{t\le K : a\text{ and }b\text{ share a one in block }t\right\}\right|. F ( a , b ) = ∣ { t ≤ K : a and b share a one in block t } ∣ .
Then F ( a , b ) = 0 F(a,b)=0 F ( a , b ) = 0 exactly when a ⊥ b a\perp b a ⊥ b , and F ( a , b ) = ⟨ ϕ ( a ) , ψ ( b ) ⟩ F(a,b)=\langle\phi(a),\psi(b)\rangle F ( a , b ) = ⟨ ϕ ( a ) , ψ ( b )⟩ for vectors of dimension ∑ t ( 2 ∣ B t ∣ − 1 ) \sum_t(2^{|B_t|}-1) ∑ t ( 2 ∣ B t ∣ − 1 ) , by inclusion-exclusion inside each block (Appendix § 12 .§ 1 ).
Theorem 4.1 (Precision lower bound). Assume Hypothesis 2.4. For every γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) there is an integer c ≥ 1 c\ge1 c ≥ 1 with the following property. Let r , w : N → N r,w:\mathbb{N}\to\mathbb{N} r , w : N → N be computable in time O ( n ) O(n) O ( n ) , with r ( n ) , w ( n ) ≥ 1 r(n),w(n)\ge1 r ( n ) , w ( n ) ≥ 1 for all n n n , and r ( n ) ≤ n r(n)\le n r ( n ) ≤ n and w ( n ) ≤ 1 2 log n w(n)\le\frac{1}{2}\log n w ( n ) ≤ 2 1 log n for all large n n n . Let
K = ⌈ c log n w ⌉ , d = K ( 2 w − 1 ) , W = K ln ( 1 + 1 / r ) , ε = 1 64 n ( r + 1 ) 2 K , K=\left\lceil\frac{c\log n}{w}\right\rceil,\qquad d=K(2^w-1),\qquad W=K\ln(1+1/r),\qquad\varepsilon=\frac{1}{64n(r+1)^{2K}}, K = ⌈ w c log n ⌉ , d = K ( 2 w − 1 ) , W = K ln ( 1 + 1/ r ) , ε = 64 n ( r + 1 ) 2 K 1 ,
with r = r ( n ) r = r(n) r = r ( n ) and w = w ( n ) w = w(n) w = w ( n ) . Then ATT ( n , d , W , ε ) \operatorname{ATT}(n,d,W,\varepsilon) ATT ( n , d , W , ε ) cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . This holds already for d v = 1 d_v = 1 d v = 1 , values in { 0 , 1 } \{0,1\} { 0 , 1 } , and all logits in [ 0 , W ] [0,W] [ 0 , W ] .
Here w w w is the size of the blocks. With w = 1 w = 1 w = 1 the blocks are single coordinates, F ( a , b ) = ⟨ a , b ⟩ F(a,b) = \langle a,b\rangle F ( a , b ) = ⟨ a , b ⟩ , and the dimension is K = ⌈ c log n ⌉ K = \lceil c\log n\rceil K = ⌈ c log n ⌉ .
Proof idea. Fix a ∈ A a \in A a ∈ A , keep each b ∈ B b \in B b ∈ B with probability 1 / 2 1/2 1/2 , and replace the dropped vectors by the all-ones vector, which shares a one with every a ≠ 0 a \ne0 a = 0 . The queries are λ φ ( a ) \lambda\varphi(a) λ φ ( a ) with λ ≈ ln ( 1 + 1 / r ) \lambda\approx\ln(1+1/r) λ ≈ ln ( 1 + 1/ r ) , the keys are ψ \psi ψ of the kept vectors, and n n n further keys equal to 0 0 0 carry value 1 1 1 . The output of a a a is n / ( n + S a ) n/(n+S_a) n / ( n + S a ) with S a = ∑ b ( 1 + 1 / r ) F ( a , b ) S_a = \sum_b(1+1/r)^{F(a,b)} S a = ∑ b ( 1 + 1/ r ) F ( a , b ) . If the vectors of the OV instance have K 0 ≤ K K_0 \le K K 0 ≤ K blocks, precision ε \varepsilon ε recovers the integer r K 0 S a r^{K_0}S_a r K 0 S a exactly. Modulo r + 1 r+1 r + 1 , every term with F ≥ 1 F \ge1 F ≥ 1 vanishes, so r K 0 S a ≡ r K 0 N a r^{K_0}S_a \equiv r^{K_0}N_a r K 0 S a ≡ r K 0 N a , where N a N_a N a is the number of kept orthogonal partners of a a a , and r K 0 r^{K_0} r K 0 is invertible modulo r + 1 r+1 r + 1 . If a a a has an orthogonal partner, then N a ≠ 0 ( m o d r + 1 ) N_a \ne0 \pmod{r+1} N a = 0 ( mod r + 1 ) with probability at least 1 / 2 1/2 1/2 . Four rounds detect an orthogonal pair with probability 15 / 16 15/16 15/16 . Appendix § 12 .§ 1 gives the details. □
Three choices of the parameters give the following.
Corollary 4.2. Assume Hypothesis 2.4, and let γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) and c c c be as in Theorem 4.1. None of the following can be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) .
(a) Dimension ⌈ c log n ⌉ \lceil c\log n\rceil ⌈ c log n ⌉ . For every κ > 0 \kappa> 0 κ > 0 : spread κ ln n \kappa\ln n κ ln n at precision
1 64 ( c κ + 3 ) 2 n 1 + 2 c log ( c κ + 3 ) , c κ = c κ ln 2 ; \frac{1}{64(c_\kappa+3)^2 n^{1+2c\log(c_\kappa+3)}}, \qquad c_\kappa= \frac{c}{\kappa\ln2}; 64 ( c κ + 3 ) 2 n 1 + 2 c l o g ( c κ + 3 ) 1 , c κ = κ ln 2 c ; and spread 1 1 1 at precision n − O ( c log ( c log n ) ) n^{-O(c\log(c\log n))} n − O ( c l o g ( c l o g n )) .
(b) Polylogarithmic dimension. For every rational C ′ > 0 C' > 0 C ′ > 0 : dimension ( log n ) 1 + C ′ (\log n)^{1+C'} ( log n ) 1 + C ′ , spread at most
c ln 2 C ′ ⋅ log n log log n + 1 , \frac{c\ln2}{C'}\cdot\frac{\log n}{\log\log n}+1, C ′ c ln 2 ⋅ log log n log n + 1 , and precision n − 1 − ζ n^{-1-\zeta} n − 1 − ζ with ζ = O ( c / ( C ′ log log n ) ) \zeta= O(c/(C'\log\log n)) ζ = O ( c / ( C ′ log log n )) .
(c) Polynomial dimension. For every rational δ ∈ ( 0 , 1 / 2 ] \delta\in(0,1/2] δ ∈ ( 0 , 1/2 ] : dimension ( c / δ + 2 ) n δ (c/\delta+2)n^\delta ( c / δ + 2 ) n δ , spread ( c / δ + 2 ) ln 2 (c/\delta+2)\ln2 ( c / δ + 2 ) ln 2 , precision 1 / ( 64 ⋅ 4 c / δ + 2 n ) 1/(64\cdot4^{c/\delta+2}n) 1/ ( 64 ⋅ 4 c / δ + 2 n ) .
Proof. All statements are for large n n n . Where the formulas below give r r r or w w w a value below 1 1 1 , which happens only for small n n n , we use 1 1 1 instead; then r ( n ) ≤ n r(n) \le n r ( n ) ≤ n and w ( n ) ≤ 1 2 log n w(n) \le\frac{1}{2}\log n w ( n ) ≤ 2 1 log n hold for all large n n n . For (a), take w = 1 w = 1 w = 1 , so K = ⌈ c log n ⌉ ≤ c log n + 1 K = \lceil c\log n\rceil\le c\log n + 1 K = ⌈ c log n ⌉ ≤ c log n + 1 and ε ≥ 1 / ( 64 ( r + 1 ) 2 n 1 + 2 c log ( r + 1 ) ) \varepsilon\ge1/(64(r+1)^2n^{1+2c\log(r+1)}) ε ≥ 1/ ( 64 ( r + 1 ) 2 n 1 + 2 c l o g ( r + 1 ) ) . With the constant r = ⌈ c κ ⌉ + 1 r = \lceil c_\kappa\rceil+ 1 r = ⌈ c κ ⌉ + 1 , the spread is at most ( c log n + 1 ) / r ≤ κ ln n (c\log n+1)/r \le\kappa\ln n ( c log n + 1 ) / r ≤ κ ln n for n ≥ e 1 / κ n \ge e^{1/\kappa} n ≥ e 1/ κ , because r κ ln n ≥ c log n + κ ln n r\kappa\ln n \ge c\log n+\kappa\ln n r κ ln n ≥ c log n + κ ln n , and r + 1 ≤ c κ + 3 r+1 \le c_\kappa+3 r + 1 ≤ c κ + 3 . With r ( n ) = ⌈ c log n ⌉ r(n) = \lceil c\log n\rceil r ( n ) = ⌈ c log n ⌉ , the spread is at most K / r = 1 K/r = 1 K / r = 1 and ε = n − O ( c log ( c log n ) ) \varepsilon= n^{-O(c\log(c\log n))} ε = n − O ( c l o g ( c l o g n )) . For (b), take r = 1 r = 1 r = 1 and w = ⌈ C ′ log log n ⌉ w = \lceil C'\log\log n\rceil w = ⌈ C ′ log log n ⌉ : then K ≤ ( c log n + 1 ) / ( C ′ log log n ) + 1 K \le(c\log n+1)/(C'\log\log n)+1 K ≤ ( c log n + 1 ) / ( C ′ log log n ) + 1 , the spread is K ln 2 K\ln2 K ln 2 , the dimension is at most 2 K ( log n ) C ′ ≤ ( log n ) 1 + C ′ 2K(\log n)^{C'} \le(\log n)^{1+C'} 2 K ( log n ) C ′ ≤ ( log n ) 1 + C ′ , and ε = 1 / ( 64 n 4 K ) \varepsilon= 1/(64n^{4K}) ε = 1/ ( 64 n 4 K ) . For (c), take r = 1 r = 1 r = 1 and w = ⌊ δ log n ⌋ w = \lfloor\delta\log n\rfloor w = ⌊ δ log n ⌋ : then K ≤ c / δ + 2 K \le c/\delta+2 K ≤ c / δ + 2 , the dimension is at most K n δ Kn^\delta K n δ , and ε = 1 / ( 64 n 4 K ) \varepsilon= 1/(64n^{4K}) ε = 1/ ( 64 n 4 K ) . □
Remark 4.3 (Bounded entries). In the normalization of [5 ] , case (a) with r ( n ) = ⌈ c log n ⌉ r(n) = \lceil c\log n\rceil r ( n ) = ⌈ c log n ⌉ has bounded entries. There w = 1 w = 1 w = 1 , ϕ ( a ) = a \phi(a) = a ϕ ( a ) = a and ψ ( b ) = b \psi(b) = b ψ ( b ) = b , so an instance of size n n n in the proof of Theorem 4.1 has dimension d = K = ⌈ c log n ⌉ = r d = K = \lceil c\log n\rceil= r d = K = ⌈ c log n ⌉ = r , queries λ ′ a \lambda'a λ ′ a with 0 < λ ′ ≤ ln ( 1 + 1 / r ) ≤ 1 / d 0 < \lambda' \le\ln(1+1/r) \le1/d 0 < λ ′ ≤ ln ( 1 + 1/ r ) ≤ 1/ d , and keys in { 0 , 1 } d \{0,1\}^d { 0 , 1 } d after padding. Rescaling the queries by a rational so ε ∈ [ d / λ ′ , 2 d / λ ′ ] \varepsilon\in[\sqrt{d/\lambda'},2\sqrt{d/\lambda'}] ε ∈ [ d / λ ′ , 2 d / λ ′ ] and the keys by d / s d/s d / s , as in Remark B.1, writes the same logits as ⟨ q , k ⟩ / d \langle q,k\rangle/d ⟨ q , k ⟩ / d with all queries bounded by 2 d λ ′ ≤ 2 2\sqrt{d\lambda'} \le2 2 d λ ′ ≤ 2 . So entries bounded by 2 2 2 are already hard at precision n − O ( c log ( c log n ) ) n^{-O(c\log(c\log n))} n − O ( c l o g ( c l o g n )) .
The polynomial method
On the algorithmic side, the polynomial method of Alman and Song [5 ] replaces e x e^x e x by a polynomial on the range of the logits. For dimension O ( log n ) O(\log n) O ( log n ) and precision n − β n^{-\beta} n − β it handles every spread below a constant multiple of ln n \ln n ln n , with a constant that tends to 0 as β \beta β grows.
Proposition 4.4 (Polynomial method). For all C ≥ 1 C \ge1 C ≥ 1 , β ≥ 1 \beta\ge1 β ≥ 1 and η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) there is κ = κ ( C , β , η ) > 0 \kappa= \kappa(C,\beta,\eta) > 0 κ = κ ( C , β , η ) > 0 such that the following holds for all sufficiently large n n n . Every attention instance with n n n queries, n n n keys, dimension d ≤ C log n d \le C\log n d ≤ C log n , d v ≤ d d_v \le d d v ≤ d value coordinates and spread at most κ ln n \kappa\ln n κ ln n can be solved to precision n − β n^{-\beta} n − β deterministically with O ( n 1 + η ) O(n^{1+\eta}) O ( n 1 + η ) arithmetic operations on rationals of O ( log 2 n ) O(\log^2 n) O ( log 2 n ) bits.
This is the method of [5 ] with the dependence on β \beta β and on the spread made explicit. The proof first shifts each row by its first logit, through one extra coordinate equal to − ⟨ q i , k 1 ⟩ -\langle q_i,k_1\rangle − ⟨ q i , k 1 ⟩ in q i q_i q i and to 1 in every key, so that all logits lie in [ − κ ln n , κ ln n ] [-\kappa\ln n,\kappa\ln n] [ − κ ln n , κ ln n ] , and rounds the entries to a grid of O ( log n ) O(\log n) O ( log n ) bits; then a Taylor polynomial of degree g = Θ ( β log n / log ( β / κ ) ) g = \Theta(\beta\log n/\log(\beta/\kappa)) g = Θ ( β log n / log ( β / κ )) has rank ( d + g g ) = n O ( η ) \binom{d+g}{g} = n^{O(\eta)} ( g d + g ) = n O ( η ) (Appendix § 12 .§ 2 ).
Corollary 4.5 (Precision decides the threshold). Assume Hypothesis 2.4. For every γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) there is C γ C_\gamma C γ such that the following holds for instances of dimension at most C γ log n C_\gamma\log n C γ log n . For every β ≥ 1 \beta\ge1 β ≥ 1 there is κ e a s y ( β ) > 0 \kappa_{\mathrm{easy}}(\beta) > 0 κ easy ( β ) > 0 such that spread κ e a s y ( β ) ln n \kappa_{\mathrm{easy}}(\beta)\ln n κ easy ( β ) ln n at precision n − β n^{-\beta} n − β can be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . For every κ > 0 \kappa> 0 κ > 0 there is β h a r d ( κ ) = O ( C γ log ( 2 + C γ / κ ) ) \beta_{\mathrm{hard}}(\kappa) = O(C_\gamma\log(2+C_\gamma/\kappa)) β hard ( κ ) = O ( C γ log ( 2 + C γ / κ )) such that spread κ ln n \kappa\ln n κ ln n at precision n − β h a r d ( κ ) n^{-\beta_{\mathrm{hard}}(\kappa)} n − β hard ( κ ) cannot. So the largest spread, in units of ln n \ln n ln n , that can be handled in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) at precision n − β n^{-\beta} n − β is positive for every β \beta β and tends to 0 as β → ∞ \beta\to\infty β → ∞ .
Proof. Let c c c be the integer of Theorem 4.1 for γ \gamma γ , and C γ = c + 1 C_\gamma= c + 1 C γ = c + 1 . The first claim is Proposition 4.4 with C = C γ C = C_\gamma C = C γ and η = ( 1 − γ ) / 2 \eta= (1-\gamma)/2 η = ( 1 − γ ) /2 , since O ( n 1 + η ) O(n^{1+\eta}) O ( n 1 + η ) operations on O ( log 2 n ) O(\log^2 n) O ( log 2 n ) -bit numbers take time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . The second is Corollary 4.2 (a), whose precision is n − O ( c log ( 2 + c / κ ) ) n^{-O(c\log(2+c/\kappa))} n − O ( c l o g ( 2 + c / κ )) . Every fixed κ > 0 \kappa> 0 κ > 0 is therefore hard at precision n − β h a r d ( κ ) n^{-\beta_{\mathrm{hard}}(\kappa)} n − β hard ( κ ) , so the largest solvable spread at precision n − β n^{-\beta} n − β is below κ ln n \kappa\ln n κ ln n once β ≥ β h a r d ( κ ) \beta\ge\beta_{\mathrm{hard}}(\kappa) β ≥ β hard ( κ ) .
Dimension matters at high precision
At constant precision the dimension does not affect the exponent once it is at least C log n C\log n C log n : Proposition 3.1 works in every dimension, and Theorems 3.3 and 3.6 need only C log n C\log n C log n . At precision about 1 / n 1/n 1/ n it matters a great deal. In dimension O ( log n ) O(\log n) O ( log n ) and at precision n − 1 − O ( 1 / log log n ) n^{-1-O(1/\log\log n)} n − 1 − O ( 1/ l o g l o g n ) , the boundary between easy and hard spreads is Θ ( log n ) \Theta(\log n) Θ ( log n ) : spread κ ln n \kappa\ln n κ ln n is easy for some κ > 0 \kappa> 0 κ > 0 by Proposition 4.4 with β = 2 \beta= 2 β = 2 , and spread ( 1 + θ ) ln n (1+\theta)\ln n ( 1 + θ ) ln n is hard by Theorem 3.3 , because hardness at constant precision carries over to every finer precision. By Corollary 4.2 , the hard spread falls to O ( log n / log log n ) O(\log n/\log\log n) O ( log n / log log n ) in dimension ( log n ) 1 + C ′ (\log n)^{1+C'} ( log n ) 1 + C ′ for every C ′ > 0 C' > 0 C ′ > 0 , and to O ( 1 ) O(1) O ( 1 ) in dimension n δ n^\delta n δ . The mechanism is a trade-off between three parameters of Theorem 4.1 : blocks of size w w w divide the number K K K of digits, and with it the spread K ln ( 1 + 1 / r ) K\ln(1+1/r) K ln ( 1 + 1/ r ) , by w w w , and take the w w w -th root of the excess ( r + 1 ) 2 K (r+1)^{2K} ( r + 1 ) 2 K in the precision, while the dimension ( K 2 w − 1 ) (K^2w-1) ( K 2 w − 1 ) grows exponentially in w w w .
The upper bound of Proposition 4.4 degrades with the dimension as well.
Proposition 4.6 (Polynomial method in higher dimension). Let C > 1 C > 1 C > 1 , β ≥ 1 \beta\ge1 β ≥ 1 and η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) with 4 ( β + 5 ) ( C − 1 ) < η 4(\beta+5)(C-1) < \eta 4 ( β + 5 ) ( C − 1 ) < η , and let a ∈ ( 4 ( β + 5 ) ( C − 1 ) / η , 1 ] a \in(4(\beta+5)(C-1)/\eta,1] a ∈ ( 4 ( β + 5 ) ( C − 1 ) / η , 1 ] . For all sufficiently large n n n , every attention instance with n n n queries, n n n keys, dimension d ≤ ( log n ) C d \le(\log n)^C d ≤ ( log n ) C , d v ≤ d d_v \le d d v ≤ d value coordinates and spread at most ( log n ) 1 − a (\log n)^{1-a} ( log n ) 1 − a can be solved to precision n − β n^{-\beta} n − β deterministically with O ( n 1 + η ) O(n^{1+\eta}) O ( n 1 + η ) arithmetic operations on rationals of O ( log 2 n ) O(\log^2 n) O ( log 2 n ) bits.
The proof (Appendix § 12 .§ 3 ) is that of Proposition 4.4 with a Taylor polynomial of degree g = ⌈ 2 ( β + 5 ) ln n / ( a ln ln n ) ⌉ g = \lceil2(\beta+ 5)\ln n/(a\ln\ln n)\rceil g = ⌈ 2 ( β + 5 ) ln n / ( a ln ln n )⌉ , which has n ( 1 + o ( 1 ) ) 2 ( β + 5 ) ( C − 1 ) / a n^{(1+o(1))2(\beta+5)(C-1)/a} n ( 1 + o ( 1 )) 2 ( β + 5 ) ( C − 1 ) / a monomials in dimension ( log n ) C (\log n)^C ( log n ) C . So in dimension ( log n ) C (\log n)^C ( log n ) C with C < 1 + η / ( 4 ( β + 5 ) ) C < 1 + \eta/(4(\beta+ 5)) C < 1 + η / ( 4 ( β + 5 )) , the method handles spread ( log n ) 1 − a (\log n)^{1-a} ( log n ) 1 − a for every a ∈ ( 4 ( β + 5 ) ( C − 1 ) / η , 1 ] a \in(4(\beta+ 5)(C - 1)/\eta, 1] a ∈ ( 4 ( β + 5 ) ( C − 1 ) / η , 1 ] , below the spread O ( log n / log log n ) O(\log n/\log\log n) O ( log n / log log n ) that Corollary 4.2 (b) makes hard at every precision n − β n^{-\beta} n − β with β > 1 \beta> 1 β > 1 . For C ≥ 1 + η / ( 4 ( β + 5 ) ) C \ge1 + \eta/(4(\beta+ 5)) C ≥ 1 + η / ( 4 ( β + 5 )) the proposition gives nothing. Open Problem 1 asks where the threshold lies. Padding with zero coordinates preserves logits, so every lower bound transfers to every larger dimension d d d for which n d nd n d stays below its time bound.
What satisfiability still supports
Theorems 3.3 , 3.6 and 4.1 rest on Hypothesis 2.4, which no open hypothesis about satisfiability is known to imply. This section asks what CNF-SETH gives instead. The answer depends on the clause exponent of the hard formulas and on whether the threshold is measured by the spread or by the entry bound B B B .
CNF-SETH in polylogarithmic dimension
Williams’ reduction turns CNF-SETH into hardness of OV in dimension ( log n ) O ( 1 ) (\log n)^{O(1)} ( log n ) O ( 1 ) . Without a gap, the softmax must separate one orthogonal pair from n n n pairs whose inner products are only one larger, so every unit of inner product costs ln n \ln n ln n in the logit.
Proposition 5.1 (CNF-SETH, exact embedding). Assume Hypothesis 2.5. For every γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) there is C ≥ 1 C \ge1 C ≥ 1 such that, with d = ⌈ ( log n ) C ⌉ d = \lceil(\log n)^C\rceil d = ⌈( log n ) C ⌉ , the problem ATT ( n , d , d ln ( 16 n ) , 1 / 6 ) \operatorname{ATT}(n,d,d\ln(16n),1/6) ATT ( n , d , d ln ( 16 n ) , 1/6 ) cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . This holds already for d v = 1 d_v = 1 d v = 1 and values in { 0 , 1 } \{0,1\} { 0 , 1 } .
The queries are ( − λ a , − 11 / 10 ) (-\lambda a,-11/10) ( − λa , − 11/10 ) with λ = ⌈ 10 ln ( 14 n ) ⌉ / 10 \lambda= \lceil10\ln(14n)\rceil/10 λ = ⌈ 10 ln ( 14 n )⌉ /10 , the keys are ( b , 0 ) (b,0) ( b , 0 ) with value 1, and a dummy key ( 0 , 1 ) (0,1) ( 0 , 1 ) has value 0; the proof is in Appendix § 13 .§ 1 . This is the exact embedding of Gupta et al. [24 Lemma 5.6] combined with Williams’ reduction. The reductions of Keles, Wijewardena and Hegde [34 ] , proved for every d = ω ( log n ) d = \omega(\log n) d = ω ( log n ) , are exact as well and survive under CNF-SETH in dimension ( log n ) O ( 1 ) (\log n)^{O(1)} ( log n ) O ( 1 ) , with the precision they need there (Table 3 ). In terms of the entry bound of [5 ] , the instances of Proposition 5.1 can be written with B = O ( d log n ) B = O(\sqrt{d}\log n) B = O ( d log n ) .
Table 3. Lower bounds for attention and related kernels from exact embeddings and from other hypotheses, and their basis after October 2026.
Clause exponent below two
The gap machinery of Imported Theorem 2.8 needs OV in dimension O ( log n ) O(\log n) O ( log n ) . Its engine, Rubinstein’s protocol (Imported Theorem 2.9), works in every dimension m m m , but the instance grows by the factor 2 p 2^p 2 p for a proof of p ≈ ( m / s ) log s p \approx(m/s)\log s p ≈ ( m / s ) log s bits, and the dimension by the factor 2 O ( s log s ) 2^{O(s\log s)} 2 O ( s l o g s ) for Bob’s message. With m = ( 2 log n ) c 0 m = (2\log n)^{c_0} m = ( 2 log n ) c 0 from Williams’ reduction and s ≈ m log m / ( γ log n ) s \approx m\log m/(\gamma\log n) s ≈ m log m / ( γ log n ) , the first factor is at most n γ / 8 n^{\gamma/8} n γ /8 , and the second is then n O ( 1 ) n^{O(1)} n O ( 1 ) exactly when c 0 < 2 c_0 < 2 c 0 < 2 .
Lemma 5.2 (Gap instances from MA protocols). Let m ≥ s ≥ 2 m \ge s \ge2 m ≥ s ≥ 2 and k ≥ 1 k \ge1 k ≥ 1 be integers, and let p p p , ρ \rho ρ and ℓ \ell ℓ be the lengths of Merlin’s proof, of the coins and of Bob’s message in the protocol of Imported Theorem 2.9 for ( m , s ) (m,s) ( m , s ) . There is a map from instances ( A , B ) (A,B) ( A , B ) of OV n , m \operatorname{OV}_{n,m} OV n , m to 2 p 2^p 2 p instances of Boolean Max-IP, each with n n n vectors per side in dimension 2 k ( ρ + ℓ ) 2^{k(\rho+\ell)} 2 k ( ρ + ℓ ) , such that with T k = 2 k ρ T_k = 2^{k\rho} T k = 2 k ρ : (i) every inner product lies in [ 0 , T k ] [0,T_k] [ 0 , T k ] ; (ii) if ( A , B ) (A,B) ( A , B ) has an orthogonal pair, some instance has a pair with inner product T k T_k T k ; (iii) otherwise every inner product is at most 2 − k T k 2^{-k}T_k 2 − k T k .
The map takes time 2 p + k ( ρ + ℓ ) n poly ( m ) 2^{p+k(\rho+\ell)}n\operatorname{poly}(m) 2 p + k ( ρ + ℓ ) n poly ( m ) .
Theorem 5.3 (Clause exponent below two). Assume CNF-SETHc 0 _{c_0} c 0 for some c 0 < 2 c_0 < 2 c 0 < 2 . For all γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) , θ ∈ ( 0 , 1 ] \theta\in(0,1] θ ∈ ( 0 , 1 ] and ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) there is K ≥ 1 K \ge1 K ≥ 1 such that ATT ( n , d ( n ) , ( 1 + θ ) ln n , ε ) \operatorname{ATT}(n,d(n),(1+\theta)\ln n,\varepsilon) ATT ( n , d ( n ) , ( 1 + θ ) ln n , ε ) with d ( n ) = ⌈ 2 K ( log n ) c 0 − 1 ( log log n ) 2 ⌉ = n o ( 1 ) d(n) = \left\lceil2^{K(\log n)^{c_0-1}(\log\log n)^2} \right\rceil= n^{o(1)} d ( n ) = ⌈ 2 K ( l o g n ) c 0 − 1 ( l o g l o g n ) 2 ⌉ = n o ( 1 ) cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . This holds already for instances with d v = 1 d_v = 1 d v = 1 , values in { 0 , 1 } \{0,1\} { 0 , 1 } , and all logits in [ 0 , ( 1 + θ ) ln n ] [0,(1+\theta)\ln n] [ 0 , ( 1 + θ ) ln n ] .
So the lower bound of Theorem 3.3 at spread ( 1 + θ ) ln n (1+\theta)\ln n ( 1 + θ ) ln n follows, in dimension n o ( 1 ) n^{o(1)} n o ( 1 ) instead of O ( log n ) O(\log n) O ( log n ) , from a hypothesis about satisfiability, provided the hard CNF formulas have N c 0 N^{c_0} N c 0 clauses for some c 0 < 2 c_0 < 2 c 0 < 2 . Formulas with O ( N ) O(N) O ( N ) clauses are easy [37 Proposition 6.1] , so the relevant range is 1 < c 0 < 2 1 < c_0 < 2 1 < c 0 < 2 , where the question is open: [37 Proposition 6.1] is proved for linearly many clauses, and the bound O ( k 2 N log log N / log N ) O(k^2N\log\log N/\sqrt{\log N}) O ( k 2 N log log N / log N ) of [18 ] for k k k -CNF is trivial once k = ω ( ( log N ) 1 / 4 ) k = \omega((\log N)^{1/4}) k = ω (( log N ) 1/4 ) . The exponent 2 in Theorem 5.3 is a limit of the reduction, not of its analysis (Remark 5.4).
Remark 5.4 (The exponent 2). The construction of Lemma 5.2 applies to every one-message MA protocol for disjointness with perfect completeness and soundness 1 / 2 1/2 1/2 , such as that of Imported Theorem 2.9: with p p p -bit proofs and ℓ \ell ℓ -bit messages it gives 2 p 2^p 2 p instances of dimension at least 2 ℓ 2^\ell 2 ℓ . Running such a protocol twice with independent coins and letting Alice announce her decision gives a protocol with c M = p c_M = p c M = p and c P = 2 ℓ + 1 c_P = 2\ell+ 1 c P = 2 ℓ + 1 that computes D I S J D \mathrm{DISJ}_D DISJ D with error 1 / 4 1/4 1/4 , so ( p + 1 ) ( 2 ℓ + 1 ) ≥ α 0 D (p+1)(2\ell+1) \ge\alpha_0D ( p + 1 ) ( 2 ℓ + 1 ) ≥ α 0 D by Lemma D.1 . Polynomially many instances of Lemma 5.2 of dimension n o ( 1 ) n^{o(1)} n o ( 1 ) therefore force D = o ( log 2 n ) D = o(\log^2 n) D = o ( log 2 n ) , and Williams’ instances with D = ⌈ ( 2 log n ) c 0 ⌉ D = \left\lceil(2\log n)^{c_0}\right\rceil D = ⌈ ( 2 log n ) c 0 ⌉ reach polynomially many instances of dimension n o ( 1 ) n^{o(1)} n o ( 1 ) through this construction only if c 0 < 2 c_0 < 2 c 0 < 2 .
A barrier for the bounded-entry threshold
The reductions of Theorems 3.3 , 3.6 and 5.3 and Proposition 5.1 , and the reduction of [5 ] , which composes Rubinstein’s reduction from OV to approximate nearest neighbor with [5 Lemma 4.7] , map each vector separately to at most 2 p 2^p 2 p query or key vectors, one for each value of an index that the reduction enumerates, and separate orthogonal from non-orthogonal pairs by a gap in the logits. We call such a map a gap embedding.
Definition 5.5 (Gap embedding). Let D , p ≥ 0 D,p \ge0 D , p ≥ 0 and d ≥ 1 d \ge1 d ≥ 1 be integers and Δ > 0 \Delta> 0 Δ > 0 . A ( D , p , d , Δ ) (D,p,d,\Delta) ( D , p , d , Δ ) -gap embedding consists of maps q , k : { 0 , 1 } p × { 0 , 1 } D → R d q,k : \{0,1\}^p \times\{0,1\}^D \to\mathbb{R}^d q , k : { 0 , 1 } p × { 0 , 1 } D → R d and h : { 0 , 1 } p × { 0 , 1 } D → R h : \{0,1\}^p \times\{0,1\}^D \to\mathbb{R} h : { 0 , 1 } p × { 0 , 1 } D → R such that for all a , b ∈ { 0 , 1 } D a,b \in\{0,1\}^D a , b ∈ { 0 , 1 } D :
(G1) if ⟨ a , b ⟩ = 0 \langle a,b\rangle= 0 ⟨ a , b ⟩ = 0 , then ⟨ q ( μ , a ) , k ( μ , b ) ⟩ ≥ h ( μ , a ) \langle q(\mu,a),k(\mu,b)\rangle\ge h(\mu,a) ⟨ q ( μ , a ) , k ( μ , b )⟩ ≥ h ( μ , a ) for some μ \mu μ ;
(G2) if ⟨ a , b ⟩ ≥ 1 \langle a,b\rangle\ge1 ⟨ a , b ⟩ ≥ 1 , then ⟨ q ( μ , a ) , k ( μ , b ) ⟩ ≤ h ( μ , a ) − Δ \langle q(\mu,a),k(\mu,b)\rangle\le h(\mu,a) - \Delta ⟨ q ( μ , a ) , k ( μ , b )⟩ ≤ h ( μ , a ) − Δ for all μ \mu μ .
Its scale is σ = max μ , a ∥ q ( μ , a ) ∥ 2 ⋅ max μ , b ∥ k ( μ , b ) ∥ 2 \sigma= \max_{\mu,a}\lVert q(\mu,a)\rVert_2 \cdot\max_{\mu,b}\lVert k(\mu,b)\rVert_2 σ = max μ , a ∥ q ( μ , a ) ∥ 2 ⋅ max μ , b ∥ k ( μ , b ) ∥ 2 .
Reductions that make copies of the queries and the keys independently are the special case in which the index is a pair μ = ( μ 1 , μ 2 ) \mu= (\mu_1,\mu_2) μ = ( μ 1 , μ 2 ) , q q q depends only on μ 1 \mu_1 μ 1 and k k k only on μ 2 \mu_2 μ 2 . The scale bounds every logit, by the Cauchy–Schwarz inequality, and it is at most d ⋅ max ∣ q ( μ , a ) t ∣ ⋅ max ∣ k ( μ , b ) t ∣ d \cdot\max|q(\mu,a)_t| \cdot\max|k(\mu,b)_t| d ⋅ max ∣ q ( μ , a ) t ∣ ⋅ max ∣ k ( μ , b ) t ∣ ; in the normalization exp ( Q K T / d ) \exp(QK^\mathsf{T}/d) exp ( Q K T / d ) with entries in [ − B , B ] [-B,B] [ − B , B ] it is at most B 2 B^2 B 2 . Building attention instances from a gap embedding multiplies the number of queries and keys, or the number of attention calls, by at most 2 p 2^p 2 p , and in the product case by 2 p 1 2^{p_1} 2 p 1 and 2 p 2 2^{p_2} 2 p 2 with p 1 + p 2 = p p_1+p_2=p p 1 + p 2 = p ; so subpolynomial blowup means p = o ( log n ) p=o(\log n) p = o ( log n ) and polynomial blowup means p = O ( log n ) p=O(\log n) p = O ( log n ) . The reductions of Theorems 3.3 and 5.3 and Proposition 5.1 and of [25 ] , at constant precision, have Δ ≥ ln n − O ( 1 ) \Delta\ge\ln n-O(1) Δ ≥ ln n − O ( 1 ) , because the keys above the threshold must outweigh the others; those of Theorem 3.6 have Δ ≥ α ln n \Delta\ge\alpha\ln n Δ ≥ α ln n , and the reduction of [5 Lemma 4.7] , at precision n − C a n^{-C_a} n − C a , has e Δ > 4 n e^\Delta> 4n e Δ > 4 n , so that the n n n far keys together stay below one near key. The counting reductions of Theorem 4.1 and [24 Theorem 5.7] , read with negated queries, have Δ = ln ( 1 + 1 / r ) \Delta= \ln(1+1/r) Δ = ln ( 1 + 1/ r ) and are not covered by the corollary below. The next theorem shows that a gap embedding with small scale is an efficient Merlin–Arthur protocol for disjointness, so Klauck’s lower bound [32 ] applies.
Theorem 5.6 (Barrier). There is an absolute constant α 2 > 0 \alpha_2 > 0 α 2 > 0 such that every ( D , p , d , Δ ) (D,p,d,\Delta) ( D , p , d , Δ ) -gap embedding with D ≥ 1 D \ge1 D ≥ 1 and scale σ \sigma σ satisfies Γ = σ / Δ ≥ 1 / 2 \Gamma= \sigma/\Delta\ge1/2 Γ = σ /Δ ≥ 1/2 and
Γ 2 log ( 2 + Γ ) ≥ α 2 D p + 1 . \Gamma^2 \log(2+\Gamma) \ge\alpha_2 \frac{D}{p+1}. Γ 2 log ( 2 + Γ ) ≥ α 2 p + 1 D . In the protocol, Merlin names the copy μ \mu μ , and the players estimate ⟨ q ( μ , a ) , k ( μ , b ) ⟩ \langle q(\mu,a), k(\mu,b)\rangle ⟨ q ( μ , a ) , k ( μ , b )⟩ from O ( Γ 2 ) O(\Gamma^2) O ( Γ 2 ) random-sign projections of k ( μ , b ) k(\mu,b) k ( μ , b ) , each sent with O ( log ( 2 + Γ ) ) O(\log(2+\Gamma)) O ( log ( 2 + Γ )) bits; the dimension d d d does not enter. Appendix § 13 .§ 3 gives the proof.
Corollary 5.7. Let c 0 > 1 c_0 > 1 c 0 > 1 , δ 0 > 0 \delta_0 > 0 δ 0 > 0 and D = ⌈ ( 2 log n ) c 0 ⌉ D = \lceil(2\log n)^{c_0}\rceil D = ⌈( 2 log n ) c 0 ⌉ . For all large n n n , every ( D , p , d , Δ ) (D,p,d,\Delta) ( D , p , d , Δ ) -gap embedding with p = O ( log n ) p = O(\log n) p = O ( log n ) and Δ ≥ δ 0 ln n \Delta\ge\delta_0 \ln n Δ ≥ δ 0 ln n has scale σ ≥ δ 0 ( log n ) ( 1 + c 0 ) / 2 / O ( log log n ) \sigma\ge\delta_0(\log n)^{(1+c_0)/2}/O(\sqrt{\log\log n}) σ ≥ δ 0 ( log n ) ( 1 + c 0 ) /2 / O ( log log n ) , where the O O O depends on c 0 c_0 c 0 and on the constant in p = O ( log n ) p = O(\log n) p = O ( log n ) . If every copy μ \mu μ is written in the normalization of [5 ] with entries in [ − B , B ] [-B,B] [ − B , B ] , then B ≥ ( δ 0 ) 1 / 2 ( log n ) ( 1 + c 0 ) / 4 / O ( ( log log n ) 1 / 4 ) B \ge(\delta_0)^{1/2}(\log n)^{(1+c_0)/4}/O((\log\log n)^{1/4}) B ≥ ( δ 0 ) 1/2 ( log n ) ( 1 + c 0 ) /4 / O (( log log n ) 1/4 ) .
Proof. Theorem 5.6 gives Γ 2 log ( 2 + Γ ) ≥ α 2 D / ( p + 1 ) = Ω ( ( log n ) c 0 − 1 ) \Gamma^2\log(2+\Gamma) \ge\alpha_2D/(p+1) = \Omega((\log n)^{c_0-1}) Γ 2 log ( 2 + Γ ) ≥ α 2 D / ( p + 1 ) = Ω (( log n ) c 0 − 1 ) . If Γ ≥ ( log n ) c 0 \Gamma\ge(\log n)^{c_0} Γ ≥ ( log n ) c 0 the claim holds; otherwise log ( 2 + Γ ) = O ( log log n ) \log(2+\Gamma) = O(\log\log n) log ( 2 + Γ ) = O ( log log n ) , so Γ = Ω ( ( log n ) ( c 0 − 1 ) / 2 / log log n ) \Gamma= \Omega((\log n)^{(c_0-1)/2}/\sqrt{\log\log n}) Γ = Ω (( log n ) ( c 0 − 1 ) /2 / log log n ) and σ = Γ Δ ≥ δ 0 Γ ln n \sigma= \Gamma\Delta\ge\delta_0\Gamma\ln n σ = ΓΔ ≥ δ 0 Γ ln n . For the entries, multiplying q ( μ , ⋅ ) q(\mu,\cdot) q ( μ , ⋅ ) by c μ > 0 c_\mu> 0 c μ > 0 and k ( μ , ⋅ ) k(\mu,\cdot) k ( μ , ⋅ ) by 1 / c μ 1/c_\mu 1/ c μ changes neither the logits nor (G1) and (G2), so the bound holds for the rescaled embedding; choosing c μ c_\mu c μ to equalize max a ∥ q ( μ , a ) ∥ 2 \max_a\|q(\mu,a)\|_2 max a ∥ q ( μ , a ) ∥ 2 and max b ∥ k ( μ , b ) ∥ 2 \max_b\|k(\mu,b)\|_2 max b ∥ k ( μ , b ) ∥ 2 makes its scale equal to the largest product of these two maxima over μ \mu μ , which is at most B 2 B^2 B 2 in that normalization.
The spread and the entry bound come apart. Theorem 5.3 and Corollary 5.7 together say that after the refutation the two forms of the threshold have different bases. In terms of the spread, hardness at ( 1 + θ ) ln n (1+\theta)\ln n ( 1 + θ ) ln n follows, in dimension n o ( 1 ) n^{o(1)} n o ( 1 ) , from CNF-SETHc 0 _{c_0} c 0 for any c 0 < 2 c_0 < 2 c 0 < 2 . In terms of the entry bound, gap embeddings with polynomial blowup and gap Δ = Ω ( log n ) \Delta= \Omega(\log n) Δ = Ω ( log n ) cannot derive the threshold B = Θ ( log n ) B = \Theta(\sqrt{\log n}) B = Θ ( log n ) of [5 ] from OV in dimension ( log n ) c 0 (\log n)^{c_0} ( log n ) c 0 for any $c_0 > 1: they need B ≥ ( log n ) ( 1 + c 0 ) / 4 − o ( 1 ) B \ge(\log n)^{(1+c_0)/4-o(1)} B ≥ ( log n ) ( 1 + c 0 ) /4 − o ( 1 ) . The instances of Theorem 5.3 are consistent with this. They reach spread ( 1 + θ ) ln n (1+\theta)\ln n ( 1 + θ ) ln n through vectors with up to $2^{O(s\log s)}$ nonzero coordinates, so their logits stay below ( 1 + θ ) ln n (1+\theta)\ln n ( 1 + θ ) ln n while their scale, which Theorem 5.6 bounds from below, is not limited by the spread. At D = O ( log n ) D = O(\log n) D = O ( log n ) nothing is lost: Remark B.1 attains scale O ( log n ) O(\log n) O ( log n ) . By Theorem 5.6, a gap embedding of OV in dimension D D D with p = O ( log n ) p = O(\log n) p = O ( log n ) , Δ = Θ ( log n ) \Delta= \Theta(\log n) Δ = Θ ( log n ) and scale O ( log n ) O(\log n) O ( log n ) exists only if D = O ( log n ) D = O(\log n) D = O ( log n ) . So for gap embeddings, the entry form of the threshold needs OV to be hard in dimension O ( log n ) O(\log n) O ( log n ) , which is Hypothesis 2.4. The barrier constrains the scale, not the spread, and it does not cover counting reductions with a small gap, adaptive reductions, or reductions from satisfiability that do not pass through OV.
Which attention lower bounds survive
Every SETH-based lower bound in Table 2 and Table 3 reduces from OV, from k k k -OV, or from a gap problem built on them. Its basis after the refutation is determined by the dimension the reduction needs and by whether it needs a gap. Three cases cover every reduction from OV or k k k -OV in the tables.
Table 2. SETH-based lower bounds for attention and related kernels that need low-dimensional OV or k k k -OV, and their basis after October 2026.
(A) Reductions that need OV in dimension Θ ( log n ) \Theta(\log n) Θ ( log n ) . Reductions through Rubinstein’s approximate nearest neighbor [40 ] , the distributed PCP of [4 ] , or Chen’s dimensionality reduction [Chel8] must enumerate Merlin’s proofs or Chen’s residues, and stay subquadratic only from OV in dimension c log n c\log n c log n ; the counting reduction of [24 ] , Theorem 5.7 needs precision 2 − Θ ( d ) 2^{-\Theta(d)} 2 − Θ ( d ) ; and some reductions, such as that of [42 ] , Theorem 4.7, start from OV in dimension c log n c\log n c log n directly. They now rest on LDOV alone.
(B) The same for k k k parties. They rest on low-dimensional k k k -OV, which implies LDOV and which no open hypothesis about satisfiability is known to imply.
(C) Exact embeddings. Reductions from exact OV or k k k -OV that preserve the dimension up to a polynomial factor survive under CNF-SETH, in dimension ( log n ) O ( 1 ) (\log n)^{O(1)} ( log n ) O ( 1 ) and with whatever precision the embedding needs there (Proposition 5.1 ).
Groups (D) and (E) of Table 3 collect the bounds based on other hypotheses. The statements in the second column are as published, under SETH unless noted; the precision is additive unless noted, and B B B is the entry bound in the normalization used by each paper.
Two observations. First, no result in the regime of the threshold, head dimension Θ ( log n ) \Theta(\log n) Θ ( log n ) and logits of order log n \log n log n , survives under a hypothesis about satisfiability: all of group (A) needs OV in dimension Θ ( log n ) \Theta(\log n) Θ ( log n ) , through the gap machinery, through precision 2 − Θ ( d ) 2^{-\Theta(d)} 2 − Θ ( d ) for [24 Theorem 5.7] , or by starting from OV in dimension c log n c\log n c log n , as [42 Theorem 4.7] does, and every exact embedding in group (C) pays with polylogarithmic dimension, larger logits or superpolynomially small precision. Theorem 5.3 reaches the threshold spread ( 1 + ϑ ) ln n (1+\vartheta)\ln n ( 1 + ϑ ) ln n at constant precision from satisfiability, at the price of clause exponent below 2 and dimension n o ( 1 ) n^{o(1)} n o ( 1 ) . Second, the refutation of the Sparse Max-SAT Hypotheses [37 Corollaries 4.4 and 4.5] removes the basis of the Max-SAT-based bounds for poly-attention and Strassen attention in [20 ] ; the SETH-based part of that paper moves to group (B). Together with the refutation of the hinted matrix–vector conjectures [9 ] , these are the attention lower bounds whose hypotheses are now false (for [44 ] , in the range τ < τ ∗ \tau< \tau_\ast τ < τ ∗ ) rather than unsupported.
Related work and open problems
Fine-grained complexity of attention. Keles, Wijewardena and Hegde [34 ] gave the first SETH-based quadratic lower bounds for self-attention, for d = ω ( log n ) d = \omega(\log n) d = ω ( log n ) . Alman and Song [5 ] found the bounded-entry threshold and the polynomial-method algorithm, building on the Gaussian kernel density bounds of Aggarwal and Alman [1 ] and the linear algebra on geometric graphs of Alman, Chu, Schild and Song [2 ] . The threshold was extended to gradients [6 ] and to tensor attention [7 ] . Gupta, Huang, Saha, Xu and Ye [GHS^{+}26] gave an O ~ ( n 2 − 1 / d polylog ( B / ε ) ) \widetilde{O}(n^{2-1/d}\operatorname{polylog}(B/\varepsilon)) O ( n 2 − 1/ d polylog ( B / ε )) algorithm for constant d d d and showed hardness for d = 2 Θ ( log ∗ n ) d = 2^{\Theta(\log^{*} n)} d = 2 Θ ( l o g ∗ n ) with large entries, through Chen’s dimensionality reduction [15 ] . Haverbeck et al. [HAPM^{+}26] extended the bounded-entry lower bound to every nontrivial constant precision, to algorithms that preprocess the KV cache, and to finding the keys that carry most of the weight. Alman and Yu [12 ] proved lower bounds for subquadratic alternatives to attention, Chakrabarti, Pitassi and Alman [20 ] for higher-order attention, and Saha, Xu, Ye and Yu [43 ] for multi-head and multi-layer transformers. Most of these lower bounds are stated under SETH; § 6 records the hypothesis of each and its current basis. Sampling-based approximations, such as KDEformer [46 ] and HyperAttention [HJK^{+}24], come with guarantees in terms of column norms of the attention matrix and stable ranks; Proposition 3.1 is the simplest guarantee of this kind, and under LDOV, Corollary 3.7 shows that its exponent is optimal in terms of the spread. Hashing-based estimators beat uniform sampling for Gaussian kernel density estimation to relative precision ε \varepsilon ε . Let μ = 1 n ∑ j e − a ∥ q − k j ∥ 2 \mu= \frac{1}{n}\sum_j e^{-a\lVert q-k_j\rVert^2} μ = n 1 ∑ j e − a ∥ q − k j ∥ 2 be the density at the query. Uniform sampling needs O ( μ − 1 ε − 2 ) O(\mu^{-1}\varepsilon^{-2}) O ( μ − 1 ε − 2 ) samples per query. The query time of [21 ] is μ − 1 / 2 ε − 2 \mu^{-1/2}\varepsilon^{-2} μ − 1/2 ε − 2 times a factor that grows with the diameter of the data, and that of [CKNS20] is μ − 0.173 − o ( 1 ) ε − 2 \mu^{-0.173-o(1)}\varepsilon^{-2} μ − 0.173 − o ( 1 ) ε − 2 for μ = n − Θ ( 1 ) \mu= n^{-\Theta(1)} μ = n − Θ ( 1 ) and ε ≥ 1 / polylog n \varepsilon\ge1/\operatorname{polylog} n ε ≥ 1/ polylog n . This density changes under transformations that leave attention unchanged: appending to every key a coordinate that brings all keys to a common norm R R R , and a zero coordinate to every query, keeps every logit, makes the softmax weights proportional to e − ∥ q − k j ∥ 2 / 2 e^{-\lVert q-k_j\rVert^2/2} e − ∥ q − k j ∥ 2 /2 , and drives μ \mu μ to 0 0 0 as R R R grows. So guarantees in terms of μ \mu μ give no bound in terms of the spread, and in terms of the spread uniform sampling cannot be improved by a polynomial factor under LDOV.
Hardness of approximation in P. The gap instances behind Theorem 3.3 come from the distributed PCP framework of Abboud, Rubinstein and Williams [4 ] , made efficient by Rubinstein [40 ] with algebraic-geometry codes; Chen [15 ] characterized the approximability of Max-IP and connected exact Max-IP to NP.UPP protocols, and Chen and Williams [23 ] showed that many approximate problems in dimension O ( log n ) O(\log n) O ( log n ) are equivalent to OV. These works turn communication protocols into reductions. Theorem 5.6 goes the other way, from reductions to protocols, and uses the lower bound of Klauck [32 ] to limit what gap embeddings can achieve. The non-reducibility results of Carmosino et al. [CGI^{+}16] assume NSETH, which implies SETH and is therefore false. Theorem 5.6 is unconditional and covers every gap embedding, including the reduction of [5 ] and those of Theorems 3.3 , 3.6 and 5.3 and Proposition 5.1 .
After the refutation. The ledger of [37 ] , § 6 sorts the conditional lower bounds of learning theory by the hypothesis that survives; this paper carries out the attention row of that ledger. Alman and Vassilevska Williams [9 ] refuted the 3SUM and APSP hypotheses in the same month, so bounds based on them need new bases too. LDOV and CNF-SETHc 0 _{c_0} c 0 have different support. No open hypothesis about satisfiability is known to imply LDOV; what supports it is the lack of algorithms, since the best algorithm for OV in dimension c log n c\log n c log n takes time n 2 − 1 / O ( log c ) n^{2-1/O(\log c)} n 2 − 1/ O ( l o g c ) [11 , 22 ] , and the equivalence of many approximate problems in dimension O ( log n ) O(\log n) O ( log n ) with OV [23 ] , which makes LDOV the common basis of all of them. CNF-SETHc 0 _{c_0} c 0 for c 0 ∈ ( 1 , 2 ) c_0 \in(1,2) c 0 ∈ ( 1 , 2 ) is a statement about satisfiability, and the algorithms that refuted ETH do not reach it (§ 5.2 ).
Open problems.
Open Problem 1 (Dimension at polynomial precision). In dimension ( log n ) C (\log n)^C ( log n ) C with C > 1 C > 1 C > 1 and at precision n − β n^{-\beta} n − β with β > 1 \beta> 1 β > 1 , Corollary 4.2 (b) gives hardness at spread O ( log n / log log n ) O(\log n/\log\log n) O ( log n / log log n ) under LDOV, while Proposition 4.6 handles spread ( log n ) 1 − α (\log n)^{1-\alpha} ( log n ) 1 − α with O ( n 1 + η ) O(n^{1+\eta}) O ( n 1 + η ) operations only for α ∈ ( 4 ( β + 5 ) ( C − 1 ) / η , 1 ] \alpha\in(4(\beta+ 5)(C - 1)/\eta,1] α ∈ ( 4 ( β + 5 ) ( C − 1 ) / η , 1 ] , and nothing for C ≥ 1 + η / ( 4 ( β + 5 ) ) C \ge1 + \eta/(4(\beta+ 5)) C ≥ 1 + η / ( 4 ( β + 5 )) . Where is the threshold? And at precision n − 1 + δ n^{-1+\delta} n − 1 + δ , coarser than the 1 / n 1/n 1/ n that counting needs, does dimension still move it?
Open Problem 2 (The clause exponent). Is CNF-SETHc 0 _{c_0} c 0 plausible for some c 0 ∈ ( 1 , 2 ) c_0 \in(1,2) c 0 ∈ ( 1 , 2 ) ? An algorithm for CNF-SAT with N 1 + δ N^{1+\delta} N 1 + δ clauses in time 2 ( 1 − Ω ( 1 ) ) N 2^{(1-\Omega(1))N} 2 ( 1 − Ω ( 1 )) N for every δ > 0 \delta> 0 δ > 0 would refute the hypothesis of Theorem 5.3 for every c 0 < 2 c_0 < 2 c 0 < 2 , and the threshold would again rest on LDOV alone; hardness would make it a consequence of satisfiability.
Open Problem 3 (Spread-efficient embeddings). Theorem 5.6 bounds the scale of gap embeddings, not their spread. Is there a gap embedding of O V n , D \mathrm{OV}_{n,D} OV n , D with D = ( 2 log n ) 2 D=(2\log n)^2 D = ( 2 log n ) 2 , at most n o ( 1 ) n^{o(1)} n o ( 1 ) copies and dimension ( log n ) O ( 1 ) (\log n)^{O(1)} ( log n ) O ( 1 ) , in which all logits of a query lie within ( 1 + o ( 1 ) ) Δ (1+o(1))\Delta ( 1 + o ( 1 )) Δ of each other? Such an embedding would give hardness at spread ( 1 + o ( 1 ) ) ln n (1+o(1))\ln n ( 1 + o ( 1 )) ln n from CNF-SETH2 _2 2 in polylogarithmic dimension. By Remark 5.4 it cannot come from the construction of Lemma 5.2 . Without copies it would be a low-rank approximation of the disjointness matrix; with copies, a Merlin–Arthur analogue of approximate rank is needed.
Open Problem 4 (Lower-order terms and small dimension). Under LDOV, at constant precision the exponent at spread κ ln n \kappa\ln n κ ln n is 1 + min { κ , 1 } 1+\min\{\kappa,1\} 1 + min { κ , 1 } (Corollary 3.7), but the lower bound loses a factor n γ n^\gamma n γ and needs dimension C log n C\log n C log n with C → ∞ C\to\infty C → ∞ as γ → 0 \gamma\to0 γ → 0 . Is the cost n e W ( log n ) O ( 1 ) n e^W(\log n)^{O(1)} n e W ( log n ) O ( 1 ) for every W ≤ ln n W\le\ln n W ≤ ln n ? And what is the exponent in dimension C log n C\log n C log n for a fixed C C C , where Theorem 3.3 gives hardness only at spread ( 1 + C − Ω γ ( 1 ) ) ln n (1+C^{-\Omega_\gamma(1)})\ln n ( 1 + C − Ω γ ( 1 ) ) ln n ?
Open Problem 5 (Gradients). Does the gradient of the attention loss have the same constant-precision threshold ln n \ln n ln n ? The reduction of [6 ] reads the attention output through the squared Frobenius norm of the whole output matrix, a sum over all rows, so the outputs of a NO instance must be O ( n − 1 / 2 ) O(n^{-1/2}) O ( n − 1/2 ) , which raises the spread needed by the gadget of Theorem 3.3 .
Roadmap of the appendix
The appendix proves the results of the main text, in the order of the sections, and its subsections follow those of the body. Eight short results are proved where they are stated: Corollaries 3.2, 3.7, 4.2, 4.5 and 5.7 and Remarks 3.5, 4.3 and 5.4. Figure 2 shows how the results depend on each other. Appendix B starts with Lemma 2.3, which bounds how far a small change of the logits moves an output. Appendix B.1 analyzes uniform sampling with Bernstein’s inequality (Proposition 3.1). Appendix B.2 builds attention instances with a dummy key from the gap instances of Imported Theorem 2.8 and proves hardness above the threshold (Theorem 3.3 ). Remark B.1 writes these instances in the normalization of [5 ] , and Corollary 3.4 repeats the proof with the gap τ = ⌈ log n ⌉ \tau= \lceil\log n \rceil τ = ⌈ log n ⌉ , which reaches spread ln n + O ( 1 ) \ln n + O(1) ln n + O ( 1 ) in polylogarithmic dimension. Appendix B.3 proves hardness below the threshold (Theorem 3.6): it applies the same gadget to a group of keys and copies every key, which leaves the outputs and the spread unchanged. Corollary 3.7 combines the two sides, and this gives Theorem A.
Appendix C.1 proves the precision lower bound (Theorem 4.1 ): attention at high precision reveals the number of orthogonal partners modulo r + 1 r + 1 r + 1 , where intersections are counted over blocks of coordinates. Appendix C.2 proves the polynomial method with the dependence on the precision and on the spread made explicit (Proposition 4.4), and Appendix C.3 carries that proof over to higher dimension (Proposition 4.6 ). Corollary 4.2 chooses the parameters, and with Corollary 4.5 this gives Theorem B.
Appendix D starts with the proof of Williams’ reduction (Imported Theorem 2.7). Appendix D.1 combines it with an exact embedding (Proposition 5.1 ). Appendix D.2 turns Rubinstein’s protocol (Imported Theorem 2.9) into gap instances (Lemma 5.2 ) and places them in the attention instance from the proof of Theorem 3.3 . This proves Theorem 5.3 under C N F - S E T H c 0 \mathrm{CNF\text{-}SETH}_{c_0} CNF - SETH c 0 , without Hypothesis 2.4. These two results give Theorem C. Appendix D.3 derives Klauck’s tradeoff between the proof length and the communication (Lemma D.1 ) from Razborov’s corruption bound (Imported Theorem 2.10). Theorem 5.6 then turns a gap embedding into a Merlin–Arthur protocol for disjointness through random-sign projections, and with Corollary 5.7 this gives Theorem D. Remark 5.4 combines Lemma 5.2 with Lemma D.1 to show that the exponent 2 in Theorem 5.3 is a limit of the reduction.
How to read the proofs. We write the proofs in the structured style of Lamport [35 , 36 ] . A proof is a list of numbered steps, and ⟨ k ⟩ j \langle k\rangle_j ⟨ k ⟩ j is the j j j -th step at level k k k . Each step states a claim, and a proof of the claim follows it. This proof is a short paragraph or a list of steps at the next level. The last step of each list, Q.E.D., proves the goal of the list from the earlier steps. ASSUME and PROVE state the hypothesis and the goal of a step, and LET introduces a symbol. A reader who wants only the main idea can read the level-1 steps and skip their proofs. Each restated result keeps its number from the main text.
Proofs for Sections 2 and 3
Lemma 2.3 (Logit perturbation). Let two instances share their values and have logits ℓ i j \ell_{ij} ℓ ij and ℓ i j ′ \ell'_{ij} ℓ ij ′ with ∣ ℓ i j − ℓ i j ′ ∣ ≤ η |\ell_{ij}-\ell'_{ij}| \le\eta ∣ ℓ ij − ℓ ij ′ ∣ ≤ η for all j j j and a fixed row i i i . Then ∥ o i − o i ′ ∥ ∞ ≤ e 2 η − 1 \|o_i-o'_i\|_\infty\le e^{2\eta}-1 ∥ o i − o i ′ ∥ ∞ ≤ e 2 η − 1 .
Proof. ⟨ 1 ⟩ 1 \langle1\rangle1 ⟨ 1 ⟩ 1 . For every j j j , e − 2 η π i j ≤ π i j ′ ≤ e 2 η π i j e^{-2\eta}\pi_{ij} \le\pi'_{ij} \le e^{2\eta}\pi_{ij} e − 2 η π ij ≤ π ij ′ ≤ e 2 η π ij .
Proof: The numerator e ℓ i j ′ e^{\ell'_{ij}} e ℓ ij ′ lies in [ e − η e ℓ i j , e η e ℓ i j ] [e^{-\eta}e^{\ell_{ij}},e^\eta e^{\ell_{ij}}] [ e − η e ℓ ij , e η e ℓ ij ] , and so does the denominator ∑ j e ℓ i j ′ \sum_j e^{\ell'_{ij}} ∑ j e ℓ ij ′ relative to ∑ j e ℓ i j \sum_j e^{\ell_{ij}} ∑ j e ℓ ij .
⟨ 1 ⟩ 2 \langle1\rangle2 ⟨ 1 ⟩ 2 . ∑ j ∣ π i j ′ − π i j ∣ ≤ e 2 η − 1 \sum_j|\pi'_{ij}-\pi_{ij}| \le e^{2\eta}-1 ∑ j ∣ π ij ′ − π ij ∣ ≤ e 2 η − 1 .
Proof: By ⟨ 1 ⟩ 1 \langle1\rangle1 ⟨ 1 ⟩ 1 , ∣ π i j ′ − π i j ∣ ≤ max { e 2 η − 1 , 1 − e − 2 η } π i j = ( e 2 η − 1 ) π i j |\pi'_{ij}-\pi_{ij}| \le\max\{e^{2\eta}-1,1-e^{-2\eta}\}\pi_{ij}=(e^{2\eta}-1)\pi_{ij} ∣ π ij ′ − π ij ∣ ≤ max { e 2 η − 1 , 1 − e − 2 η } π ij = ( e 2 η − 1 ) π ij , and ∑ j π i j = 1 \sum_j\pi_{ij}=1 ∑ j π ij = 1 .
⟨ 1 ⟩ 3 \langle1\rangle3 ⟨ 1 ⟩ 3 . Q.E.D.
Proof: For every value coordinate c c c , ∣ o i c ′ − o i c ∣ = ∣ ∑ j ( π i j ′ − π i j ) v j c ∣ ≤ ∑ j ∣ π i j ′ − π i j ∣ |o'_{ic}-o_{ic}|=|\sum_j(\pi'_{ij}-\pi_{ij})v_{jc}|\le\sum_j|\pi'_{ij}-\pi_{ij}| ∣ o i c ′ − o i c ∣ = ∣ ∑ j ( π ij ′ − π ij ) v j c ∣ ≤ ∑ j ∣ π ij ′ − π ij ∣ , because ∣ v j c ∣ ≤ 1 |v_{jc}| \le1 ∣ v j c ∣ ≤ 1 . Apply ⟨1⟩2.
Sampling
Proposition 3.1 (Sampling). Consider an attention instance with n n n queries, n ′ n' n ′ keys, dimension d d d and d v d_v d v value coordinates. Let F ≥ 1 F \ge1 F ≥ 1 satisfy F ≥ n ′ π i j F \ge n'\pi_{ij} F ≥ n ′ π ij for all i , j i,j i , j , and let ε , δ ∈ ( 0 , 1 ] \varepsilon,\delta\in(0,1] ε , δ ∈ ( 0 , 1 ] . There is a randomized algorithm that, with probability at least 1 − δ 1-\delta 1 − δ , outputs o ~ i \widetilde{o}_i o i with ∥ o ~ i − o i ∥ ∞ ≤ ε \|\widetilde{o}_i-o_i\|_\infty\le\varepsilon ∥ o i − o i ∥ ∞ ≤ ε for all i i i , using O ( n m ( d + d v ) ) O(nm(d+d_v)) O ( nm ( d + d v )) operations with
m = ⌈ 40 F ln ( 2 n ( 1 + d v ) / δ ) ε 2 ⌉ . m=\left\lceil\frac{40F\ln(2n(1+d_v)/\delta)}{\varepsilon^2}\right\rceil. m = ⌈ ε 2 40 F ln ( 2 n ( 1 + d v ) / δ ) ⌉ . Every instance with spread at most W W W satisfies the hypothesis with F = e W F=e^W F = e W .
Proof. ⟨1⟩1. Let: η = ε / 4 \eta=\varepsilon/4 η = ε /4 . Fix a query i i i , Let: M = max j ℓ i j M=\max_j \ell_{ij} M = max j ℓ ij , w j = e ℓ i j − M ∈ ( 0 , 1 ] w_j=e^{\ell_{ij}-M}\in(0,1] w j = e ℓ ij − M ∈ ( 0 , 1 ] , μ = 1 n ′ ∑ j w j \mu=\frac{1}{n'}\sum_j w_j μ = n ′ 1 ∑ j w j and ν c = 1 n ′ ∑ j w j v j c \nu_c=\frac{1}{n'}\sum_j w_jv_{jc} ν c = n ′ 1 ∑ j w j v j c for each value coordinate c c c . Then o i c = ν c / μ o_{ic}=\nu_c/\mu o i c = ν c / μ , ∣ ν c ∣ ≤ μ |\nu_c|\le\mu ∣ ν c ∣ ≤ μ and μ ≥ 1 / F \mu\ge1/F μ ≥ 1/ F .
Proof: π i j = w j / ( n ′ μ ) \pi_{ij}=w_j/(n'\mu) π ij = w j / ( n ′ μ ) , so o i c = ν c / μ o_{ic}=\nu_c/\mu o i c = ν c / μ , and ∣ ν c ∣ ≤ μ |\nu_c|\le\mu ∣ ν c ∣ ≤ μ because ∣ v j c ∣ ≤ 1 |v_{jc}|\le1 ∣ v j c ∣ ≤ 1 . Some w j w_j w j equals 1 1 1 , so F ≥ n ′ max j π i j = 1 / μ F\ge n'\max_j\pi_{ij}=1/\mu F ≥ n ′ max j π ij = 1/ μ .
⟨1⟩2. Let: the algorithm draw, for each query i i i independently, indices j 1 , … , j m j_1,\ldots,j_m j 1 , … , j m uniformly from [ n ′ ] [n'] [ n ′ ] with replacement, and output o ~ i c = ∑ s e ℓ i j s v j s c / ∑ s e ℓ i j s \widetilde{o}_{ic}=\sum_s e^{\ell_{ij_s}}v_{j_sc}/\sum_s e^{\ell_{ij_s}} o i c = ∑ s e ℓ i j s v j s c / ∑ s e ℓ i j s . It uses O ( n m ( d + d v ) ) O(nm(d+d_v)) O ( nm ( d + d v )) operations, and in exact arithmetic o ~ i c = ν ^ c / μ ^ \widetilde{o}_{ic}=\widehat{\nu}_c/\widehat{\mu} o i c = ν c / μ with μ ^ = 1 m ∑ s w j s \widehat{\mu}=\frac{1}{m}\sum_s w_{j_s} μ = m 1 ∑ s w j s and ν ^ c = 1 m ∑ s w j s v j s c \widehat{\nu}_c=\frac{1}{m}\sum_s w_{j_s}v_{j_sc} ν c = m 1 ∑ s w j s v j s c .
Proof: Each query computes m m m logits in O ( m d ) O(md) O ( m d ) operations and two weighted sums in O ( m d v ) O(md_v) O ( m d v ) operations. Multiplying numerator and denominator by e − M e^{-M} e − M does not change the ratio.
⟨1⟩3. For fixed i i i and c c c , each of the events ∣ μ ^ − μ ∣ > η μ |\widehat{\mu}-\mu|>\eta\mu ∣ μ − μ ∣ > η μ and ∣ ν ^ c − ν c ∣ > η μ |\widehat{\nu}_c-\nu_c|>\eta\mu ∣ ν c − ν c ∣ > η μ has probability at most δ / ( n ( 1 + d v ) ) \delta/(n(1+d_v)) δ / ( n ( 1 + d v )) .
⟨2⟩1. The summands X s = w j s X_s=w_{j_s} X s = w j s , respectively X s = w j s v j s c X_s=w_{j_s}v_{j_sc} X s = w j s v j s c , are independent, satisfy ∣ X s ∣ ≤ 1 |X_s|\le1 ∣ X s ∣ ≤ 1 , have mean μ \mu μ , respectively ν c \nu_c ν c , and variance at most μ \mu μ .
Proof: ∣ X s ∣ ≤ w j s ≤ 1 |X_s|\le w_{j_s}\le1 ∣ X s ∣ ≤ w j s ≤ 1 , so X s 2 ≤ w j s 2 ≤ w j s X_s^2\le w_{j_s}^2\le w_{j_s} X s 2 ≤ w j s 2 ≤ w j s and Var ( X s ) ≤ E [ w j s ] = μ \operatorname{Var}(X_s)\le\mathbb{E}[w_{j_s}]=\mu Var ( X s ) ≤ E [ w j s ] = μ .
⟨2⟩2. By Bernstein’s inequality for independent variables with ∣ X s − E X s ∣ ≤ 2 |X_s-\mathbb{E}X_s|\le2 ∣ X s − E X s ∣ ≤ 2 , the probability that the empirical mean deviates by more than t = η μ t=\eta\mu t = η μ is at most 2 exp ( − m t 2 / ( 2 μ + 4 t / 3 ) ) ≤ 2 exp ( − 3 m η 2 μ / 7 ) 2\exp(-mt^2/(2\mu+4t/3))\le2\exp(-3m\eta^2\mu/7) 2 exp ( − m t 2 / ( 2 μ + 4 t /3 )) ≤ 2 exp ( − 3 m η 2 μ /7 ) .
Proof: m t 2 / ( 2 μ + 4 t / 3 ) = m η 2 μ / ( 2 + 4 η / 3 ) mt^2/(2\mu+4t/3)=m\eta^2\mu/(2+4\eta/3) m t 2 / ( 2 μ + 4 t /3 ) = m η 2 μ / ( 2 + 4 η /3 ) and 2 + 4 η / 3 ≤ 7 / 3 2+4\eta/3\le7/3 2 + 4 η /3 ≤ 7/3 because η ≤ 1 / 4 \eta\le1/4 η ≤ 1/4 .
⟨2⟩3. q.e.d.
Proof: By ⟨1⟩1, μ ≥ 1 / F \mu\ge1/F μ ≥ 1/ F , so the bound of ⟨2⟩2 is at most 2 exp ( − 3 m ε 2 / ( 112 F ) ) 2\exp(-3m\varepsilon^2/(112F)) 2 exp ( − 3 m ε 2 / ( 112 F )) , and m ≥ 40 F ln ( 2 n ( 1 + d v ) / δ ) / ε 2 m\ge40F\ln(2n(1+d_v)/\delta)/\varepsilon^2 m ≥ 40 F ln ( 2 n ( 1 + d v ) / δ ) / ε 2 makes it at most δ / ( n ( 1 + d v ) ) \delta/(n(1+d_v)) δ / ( n ( 1 + d v )) , since 40 > 112 / 3 40>112/3 40 > 112/3 .
⟨1⟩4. With probability at least 1 − δ 1-\delta 1 − δ , ∣ μ ^ − μ ∣ ≤ η μ |\widehat{\mu}-\mu|\le\eta\mu ∣ μ − μ ∣ ≤ η μ and ∣ ν ^ c − ν c ∣ ≤ η μ |\widehat{\nu}_c-\nu_c|\le\eta\mu ∣ ν c − ν c ∣ ≤ η μ for all i i i and c c c .
Proof: A union bound over the n ( 1 + d v ) n(1+d_v) n ( 1 + d v ) events of ⟨1⟩3.
⟨1⟩5. On the event of ⟨1⟩4, ∣ ν ^ c / μ ^ − ν c / μ ∣ ≤ 2 ε / 3 |\widehat{\nu}_c/\widehat{\mu}-\nu_c/\mu|\le2\varepsilon/3 ∣ ν c / μ − ν c / μ ∣ ≤ 2 ε /3 .
Proof: ∣ ν ^ c / μ ^ − ν c / μ ∣ ≤ ∣ ν ^ c − ν c ∣ / μ ^ + ( ∣ ν c ∣ / μ ) ∣ μ − μ ^ ∣ / μ ^ ≤ 2 η μ / ( ( 1 − η ) μ ) |\widehat{\nu}_c/\widehat{\mu}-\nu_c/\mu|\le|\widehat{\nu}_c-\nu_c|/\widehat{\mu}+(|\nu_c|/\mu)|\mu-\widehat{\mu}|/\widehat{\mu}\le2\eta\mu/((1-\eta)\mu) ∣ ν c / μ − ν c / μ ∣ ≤ ∣ ν c − ν c ∣/ μ + ( ∣ ν c ∣/ μ ) ∣ μ − μ ∣/ μ ≤ 2 η μ / (( 1 − η ) μ ) , using ∣ ν c ∣ ≤ μ |\nu_c|\le\mu ∣ ν c ∣ ≤ μ and μ ^ ≥ ( 1 − η ) μ \widehat{\mu}\ge(1-\eta)\mu μ ≥ ( 1 − η ) μ . With η = ε / 4 ≤ 1 / 4 \eta=\varepsilon/4\le1/4 η = ε /4 ≤ 1/4 this is at most ( ε / 2 ) ( 4 / 3 ) = 2 ε / 3 (\varepsilon/2)(4/3)=2\varepsilon/3 ( ε /2 ) ( 4/3 ) = 2 ε /3 .
⟨1⟩6. Evaluating the exponentials to relative precision ε / 100 \varepsilon/100 ε /100 changes o ~ i c \widetilde{o}_{ic} o i c by at most ε / 3 \varepsilon/3 ε /3 .
Proof: Compute the m m m sampled logits to absolute error ε / 1000 \varepsilon/1000 ε /1000 and subtract their maximum before exponentiating; then every weight lies in ( 0 , 1 ] (0,1] ( 0 , 1 ] , and every weight is computed to relative error at most e ε / 1000 ( 1 + ε / 100 ) − 1 ≤ ε / 90 e^{\varepsilon/1000}(1+\varepsilon/100)-1\le\varepsilon/90 e ε /1000 ( 1 + ε /100 ) − 1 ≤ ε /90 . The computed ratio is a weighted average of the same values with every weight multiplied by a factor in [ 1 − ε / 90 , 1 + ε / 90 ] [1-\varepsilon/90,1+\varepsilon/90] [ 1 − ε /90 , 1 + ε /90 ] ; as in Lemma 2.3, this moves the average by at most ( 1 + ε / 90 ) / ( 1 − ε / 90 ) − 1 ≤ ε / 40 (1+\varepsilon/90)/(1-\varepsilon/90)-1\le\varepsilon/40 ( 1 + ε /90 ) / ( 1 − ε /90 ) − 1 ≤ ε /40 . If m ≥ n ′ m\ge n' m ≥ n ′ , the algorithm computes every output exactly instead, with O ( n n ′ ( d + d v ) ) ≤ O ( n m ( d + d v ) ) O(nn'(d+d_v)) \le O(nm(d+d_v)) O ( n n ′ ( d + d v )) ≤ O ( nm ( d + d v )) operations; so assume m < n ′ m<n' m < n ′ . The remaining m m m -term sums and the division are carried out to relative precision ε / ( 1000 m ) \varepsilon/(1000m) ε / ( 1000 m ) per operation, on numbers of O ( log ( n m / ε ) ) = O ( log ( n n ′ / ε ) ) O(\log(nm/\varepsilon))=O(\log(nn'/\varepsilon)) O ( log ( nm / ε )) = O ( log ( n n ′ / ε )) bits. Every partial sum of the numerator is at most ∑ s w s \sum_s w_s ∑ s w s in absolute value, because ∣ v j s c ∣ ≤ 1 |v_{j s c}|\le1 ∣ v j sc ∣ ≤ 1 , so the numerator and the denominator are each computed within ( ε / 1000 ) ∑ s w s (\varepsilon/1000)\sum_s w_s ( ε /1000 ) ∑ s w s , and the ratio within 3 ε / 1000 + ε / ( 1000 m ) ≤ ε / 100 3\varepsilon/1000+\varepsilon/(1000m)\le\varepsilon/100 3 ε /1000 + ε / ( 1000 m ) ≤ ε /100 .
⟨1⟩7. An instance with spread at most W W W satisfies n ′ π i j ≤ e W n'\pi_{ij}\le e^W n ′ π ij ≤ e W .
Proof. Every w j ≥ e − W w_j\ge e^{-W} w j ≥ e − W , so μ ≥ e − W \mu\ge e^{-W} μ ≥ e − W and n ′ π i j = w j / μ ≤ e W n'\pi_{ij}=w_j/\mu\le e^W n ′ π ij = w j / μ ≤ e W .
⟨1⟩8. Q.E.D.
Proof. By ⟨1⟩4, ⟨1⟩5 and ⟨1⟩6, with probability at least 1 − δ 1-\delta 1 − δ every output is within 2 ε / 3 + ε / 3 = ε 2\varepsilon/3+\varepsilon/3=\varepsilon 2 ε /3 + ε /3 = ε ; ⟨1⟩2 counts the operations and ⟨1⟩7 gives the last sentence.
Quadratic time above the threshold
Theorem 3.3 (Hardness above the threshold). Assume Hypothesis 2.4. For all γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) and θ ∈ ( 0 , 1 ] \theta\in(0,1] θ ∈ ( 0 , 1 ] there is a constant C ≥ 1 C\ge1 C ≥ 1 such that for every ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) , ATT ( n , ⌈ C log n ⌉ , ( 1 + θ ) ln n , ε ) \operatorname{ATT}(n,\lceil C\log n\rceil,(1+\theta)\ln n,\varepsilon) ATT ( n , ⌈ C log n ⌉ , ( 1 + θ ) ln n , ε ) cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . This holds already for instances with d v = 1 d_v=1 d v = 1 , values in { 0 , 1 } \{0,1\} { 0 , 1 } , and all logits in [ 0 , ( 1 + θ ) ln n ] [0,(1+\theta)\ln n] [ 0 , ( 1 + θ ) ln n ] .
Proof. ⟨1⟩1. LET: c ≥ 1 c\ge1 c ≥ 1 be the integer of Hypothesis 2.4 for γ / 2 \gamma/2 γ /2 , LET: τ = ⌈ 4 / θ ⌉ \tau=\lceil4/\theta\rceil τ = ⌈ 4/ θ ⌉ , and apply Imported Theorem 2.8 with parameters c c c , γ / 4 \gamma/4 γ /4 and τ \tau τ ; it gives n 0 n_0 n 0 , a dimension d C ≤ τ poly ( 4 c / γ ) log n d_C\le\tau^{\operatorname{poly}(4c/\gamma)}\log n d C ≤ τ poly ( 4 c / γ ) log n and an integer T ≥ c log n T\ge c\log n T ≥ c log n . LET: C = 2 τ poly ( 4 c / γ ) C=2\tau^{\operatorname{poly}(4c/\gamma)} C = 2 τ poly ( 4 c / γ ) , so that d C + 1 ≤ ⌈ C log n ⌉ d_C+1\le\lceil C\log n\rceil d C + 1 ≤ ⌈ C log n ⌉ , and LET: η = ( 1 − 2 ε ) / 4 \eta=(1-2\varepsilon)/4 η = ( 1 − 2 ε ) /4 .
Proof: 1 ≤ τ poly ( 4 c / γ ) log n 1\le\tau^{\operatorname{poly}(4c/\gamma)}\log n 1 ≤ τ poly ( 4 c / γ ) log n for n ≥ 2 n\ge2 n ≥ 2 . Also η ∈ ( 0 , 1 / 4 ] \eta\in(0,1/4] η ∈ ( 0 , 1/4 ] .
⟨1⟩2. ASSUME: an algorithm A \mathcal{A} A solves ATT ( n , ⌈ C log n ⌉ , ( 1 + θ ) ln n , ε ) \operatorname{ATT}(n,\lceil C\log n\rceil,(1+\theta)\ln n,\varepsilon) ATT ( n , ⌈ C log n ⌉ , ( 1 + θ ) ln n , ε ) in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) on the instances described in the theorem. PROVE: OV n , ⌈ c log n ⌉ \operatorname{OV}_{n,\lceil c\log n\rceil} OV n , ⌈ c l o g n ⌉ can be solved in time O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) , which contradicts the choice of c c c .
⟨1⟩3. LET: ( A ψ , B ψ ) (A_\psi,B_\psi) ( A ψ , B ψ ) be one of the instances of Imported Theorem 2.8, LET: ξ \xi ξ be a rational with ln ( ( 1 − η ) / η ) ≤ ξ ≤ ln ( ( 1 − η ) / η ) + 1 / 10 \ln((1-\eta)/\eta)\le\xi\le\ln((1-\eta)/\eta)+1/10 ln (( 1 − η ) / η ) ≤ ξ ≤ ln (( 1 − η ) / η ) + 1/10 , LET: λ \lambda λ be a rational of O ( log n ) O(\log n) O ( log n ) bits with ln n + 2 ln ( 1 / η ) + 1 / 10 ≤ λ T ( 1 − 1 / τ ) ≤ ln n + 2 ln ( 1 / η ) + 1 / 5 \ln n+2\ln(1/\eta)+1/10\le\lambda T(1-1/\tau)\le\ln n+2\ln(1/\eta)+1/5 ln n + 2 ln ( 1/ η ) + 1/10 ≤ λ T ( 1 − 1/ τ ) ≤ ln n + 2 ln ( 1/ η ) + 1/5 , computed from rational approximations of ln n \ln n ln n and ln ( 1 / η ) \ln(1/\eta) ln ( 1/ η ) , and LET: t ∗ = λ T − ξ t^*=\lambda T-\xi t ∗ = λ T − ξ . LET: the attention instance I ψ I_\psi I ψ have the queries q x = ( λ x , t ∗ ) q_x=(\lambda x,t^*) q x = ( λ x , t ∗ ) for x ∈ A ψ x\in A_\psi x ∈ A ψ and one zero query, the keys k y = ( y , 0 ) k_y=(y,0) k y = ( y , 0 ) with value 1 1 1 for y ∈ B ψ y\in B_\psi y ∈ B ψ , and the dummy key k ∗ = ( 0 , 1 ) k^*=(0,1) k ∗ = ( 0 , 1 ) with value 0 0 0 .
Proof: I ψ I_\psi I ψ has n + 1 n+1 n + 1 queries, n + 1 n+1 n + 1 keys, dimension d C + 1 d_C+1 d C + 1 , d v = 1 d_v=1 d v = 1 , values in { 0 , 1 } \{0,1\} { 0 , 1 } and rational entries of O ( log n ) O(\log n) O ( log n ) bits.
⟨1⟩4. Every logit of I ψ I_\psi I ψ lies in [ 0 , λ T ] [0,\lambda T] [ 0 , λ T ] , and λ T ≤ ( 1 + θ ) ln ( n + 1 ) \lambda T\le(1+\theta)\ln(n+1) λ T ≤ ( 1 + θ ) ln ( n + 1 ) for all n ≥ n 1 ( θ , ε ) n\ge n_1(\theta,\varepsilon) n ≥ n 1 ( θ , ε ) .
⟨2⟩1. ln n + 2 ln ( 1 / η ) + 1 / 10 ≤ λ T ( 1 − 1 / τ ) \ln n+2\ln(1/\eta)+1/10\le\lambda T(1-1/\tau) ln n + 2 ln ( 1/ η ) + 1/10 ≤ λ T ( 1 − 1/ τ ) and λ T ≤ ( ln n + 2 ln ( 1 / η ) + 1 / 5 ) / ( 1 − 1 / τ ) \lambda T\le(\ln n+2\ln(1/\eta)+1/5)/(1-1/\tau) λ T ≤ ( ln n + 2 ln ( 1/ η ) + 1/5 ) / ( 1 − 1/ τ ) .
Proof: By the choice of λ \lambda λ .
⟨2⟩2. The logits of q x q_x q x are λ ⟨ x , y ⟩ ∈ [ 0 , λ T ] \lambda\langle x,y\rangle\in[0,\lambda T] λ ⟨ x , y ⟩ ∈ [ 0 , λ T ] and t ∗ ∈ [ 0 , λ T ] t^*\in[0,\lambda T] t ∗ ∈ [ 0 , λ T ] ; the zero query has all logits 0 0 0 .
Proof: Imported Theorem 2.8(i) gives ⟨ x , y ⟩ ∈ [ 0 , T ] \langle x,y\rangle\in[0,T] ⟨ x , y ⟩ ∈ [ 0 , T ] . By ⟨2⟩1, λ T ≥ ln ( 1 / η ) + 1 / 10 ≥ ξ \lambda T\ge\ln(1/\eta)+1/10\ge\xi λ T ≥ ln ( 1/ η ) + 1/10 ≥ ξ , since ξ ≤ ln ( ( 1 − η ) / η ) + 1 / 10 \xi\le\ln((1-\eta)/\eta)+1/10 ξ ≤ ln (( 1 − η ) / η ) + 1/10 , so t ∗ ≥ 0 t^*\ge0 t ∗ ≥ 0 .
⟨2⟩3. λ T ≤ ( 1 + θ / 2 ) ( ln n + 2 ln ( 1 / η ) + 1 / 5 ) \lambda T\le(1+\theta/2)(\ln n+2\ln(1/\eta)+1/5) λ T ≤ ( 1 + θ /2 ) ( ln n + 2 ln ( 1/ η ) + 1/5 ) .
Proof: By ⟨2⟩1 and 1 / ( 1 − 1 / τ ) ≤ 1 + 2 / τ ≤ 1 + θ / 2 1/(1-1/\tau)\le1+2/\tau\le1+\theta/2 1/ ( 1 − 1/ τ ) ≤ 1 + 2/ τ ≤ 1 + θ /2 , because 1 / τ ≤ θ / 4 ≤ 1 / 4 1/\tau\le\theta/4\le1/4 1/ τ ≤ θ /4 ≤ 1/4 .
⟨2⟩4. Q.E.D.
Proof: By ⟨2⟩2 and ⟨2⟩3, since ( 1 + θ / 2 ) ( 2 ln ( 1 / η ) + 1 / 5 ) ≤ ( θ / 2 ) ln n (1+\theta/2)(2\ln(1/\eta)+1/5)\le(\theta/2)\ln n ( 1 + θ /2 ) ( 2 ln ( 1/ η ) + 1/5 ) ≤ ( θ /2 ) ln n for n ≥ n 1 ( θ , ε ) n\ge n_1(\theta,\varepsilon) n ≥ n 1 ( θ , ε ) . ⟨1⟩5. Let: o x o_x o x be the output of q x q_x q x in I ψ I_\psi I ψ . If some y ∈ B ψ y \in B_\psi y ∈ B ψ has ⟨ x , y ⟩ = T \langle x,y\rangle= T ⟨ x , y ⟩ = T , then o x ≥ 1 − η o_x \ge1-\eta o x ≥ 1 − η . If every y ∈ B ψ y \in B_\psi y ∈ B ψ has ⟨ x , y ⟩ ≤ T / τ \langle x,y\rangle\le T/\tau ⟨ x , y ⟩ ≤ T / τ , then o x ≤ η o_x \le\eta o x ≤ η .
⟨2⟩1. o x = S x / ( S x + e t ∗ ) o_x = S_x/(S_x + e^{t^*}) o x = S x / ( S x + e t ∗ ) with S x = ∑ y ∈ B ψ e λ ⟨ x , y ⟩ S_x = \sum_{y\in B_\psi} e^{\lambda\langle x,y\rangle} S x = ∑ y ∈ B ψ e λ ⟨ x , y ⟩ .
Proof: The real keys have value 1 and the dummy key has value 0.
⟨2⟩2. If ⟨ x , y ⟩ = T \langle x,y\rangle= T ⟨ x , y ⟩ = T for some y y y , then o x ≥ 1 − η o_x \ge1-\eta o x ≥ 1 − η .
Proof: S x ≥ e λ T = e ξ e t ∗ S_x \ge e^{\lambda T} = e^\xi e^{t^*} S x ≥ e λ T = e ξ e t ∗ , so o x ≥ e ξ / ( e ξ + 1 ) ≥ 1 − η o_x \ge e^\xi/(e^\xi+1) \ge1-\eta o x ≥ e ξ / ( e ξ + 1 ) ≥ 1 − η , as e ξ ≥ ( 1 − η ) / η e^\xi\ge(1-\eta)/\eta e ξ ≥ ( 1 − η ) / η .
⟨2⟩3. If ⟨ x , y ⟩ ≤ T / τ \langle x,y\rangle\le T/\tau ⟨ x , y ⟩ ≤ T / τ for all y y y , then o x ≤ η o_x \le\eta o x ≤ η .
Proof: o x ≤ S x / e t ∗ ≤ n exp ( λ T / τ − λ T + ξ ) = n e ξ e − λ T ( 1 − 1 / τ ) o_x \le S_x/e^{t^*} \le n\exp(\lambda T/\tau-\lambda T+\xi)=ne^\xi e^{-\lambda T(1-1/\tau)} o x ≤ S x / e t ∗ ≤ n exp ( λ T / τ − λ T + ξ ) = n e ξ e − λ T ( 1 − 1/ τ ) . By ⟨1⟩4, this is at most e ξ − 1 / 10 η 2 ≤ ( ( 1 − η ) / η ) η 2 ≤ η e^{\xi-1/10}\eta^2 \le((1-\eta)/\eta)\eta^2 \le\eta e ξ − 1/10 η 2 ≤ (( 1 − η ) / η ) η 2 ≤ η .
⟨2⟩4. Q.E.D.
Proof: By ⟨2⟩1, ⟨2⟩2 and ⟨2⟩3.
⟨1⟩6. Let: N ψ ≤ 2 n γ / 4 N_\psi\le2n^{\gamma/4} N ψ ≤ 2 n γ /4 be the number of instances. Let: the algorithm for OV solve inputs with n < max { n 0 , n 1 , τ } n < \max\{n_0,n_1,\tau\} n < max { n 0 , n 1 , τ } by brute force; otherwise it computes the instances of Imported Theorem 2.8, builds each I ψ I_\psi I ψ , runs A A A on it R = ⌈ 18 ln ( 3 N ψ ) ⌉ R=\lceil18\ln(3N_\psi)\rceil R = ⌈ 18 ln ( 3 N ψ )⌉ times, and declares ψ \psi ψ positive if in a majority of the runs some query q x q_x q x receives an output above 1 / 2 1/2 1/2 . It answers YES if and only if some ψ \psi ψ is positive. It errs with probability at most 1 / 3 1/3 1/3 .
⟨2⟩1. A run of A A A that succeeds reports an output above 1 / 2 1/2 1/2 for every query with o x ≥ 1 − η o_x \ge1-\eta o x ≥ 1 − η , and for no query with o x ≤ η o_x \le\eta o x ≤ η . The zero query is ignored.
Proof: A successful run is within ε \varepsilon ε of every output, and 1 − η − ε > 1 / 2 > η + ε 1-\eta-\varepsilon> 1/2 > \eta+\varepsilon 1 − η − ε > 1/2 > η + ε , because η + ε = ( 1 + 2 ε ) / 4 < 1 / 2 \eta+\varepsilon=(1+2\varepsilon)/4<1/2 η + ε = ( 1 + 2 ε ) /4 < 1/2 .
⟨2⟩2. If ( A , B ) (A,B) ( A , B ) has an orthogonal pair, some instance ψ ∗ \psi^* ψ ∗ has a query with o x ≥ 1 − η o_x \ge1-\eta o x ≥ 1 − η . Otherwise every query of every I ψ I_\psi I ψ has o x ≤ η o_x \le\eta o x ≤ η .
Proof: Imported Theorem 2.8(ii) and (iii) with ⟨1⟩5.
⟨2⟩3. If ( A , B ) (A,B) ( A , B ) has an orthogonal pair, ψ ∗ \psi^* ψ ∗ is declared positive with probability at least 1 − 1 / ( 3 N ψ ) 1-1/(3N_\psi) 1 − 1/ ( 3 N ψ ) . If not, each ψ \psi ψ is declared positive with probability at most 1 / ( 3 N ψ ) 1/(3N_\psi) 1/ ( 3 N ψ ) .
Proof: Each run succeeds independently with probability at least 2 / 3 2/3 2/3 . By Hoeffding’s inequality, at least half of the R R R runs fail with probability at most e − R / 18 ≤ 1 / ( 3 N ψ ) e^{-R/18}\le1/(3N_\psi) e − R /18 ≤ 1/ ( 3 N ψ ) . If a majority succeeds, the declaration about ψ ∗ \psi^* ψ ∗ , respectively about ψ \psi ψ , is the one given by ⟨2⟩1 and ⟨2⟩2.
⟨2⟩4. Q.E.D.
Proof: On YES inputs, by ⟨2⟩3 for ψ ∗ \psi^* ψ ∗ . On NO inputs, by ⟨2⟩3 and a union bound over the N ψ N_\psi N ψ instances.
⟨1⟩7. The algorithm of ⟨1⟩6 runs in time O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) .
Proof: Imported Theorem 2.8 takes time n 1 + γ / 4 poly ( log n ) n^{1+\gamma/4}\operatorname{poly}(\log n) n 1 + γ /4 poly ( log n ) , building the instances takes N ψ O ( n d C ) N_\psi O(nd_C) N ψ O ( n d C ) , and the calls take N ψ R ⋅ O ( ( n + 1 ) 2 − γ ) = O ( n 2 − 3 γ / 4 log n ) N_\psi R\cdot O((n+1)^{2-\gamma})=O(n^{2-3\gamma/4}\log n) N ψ R ⋅ O (( n + 1 ) 2 − γ ) = O ( n 2 − 3 γ /4 log n ) . By ⟨1⟩1 and ⟨1⟩4, each I ψ I_\psi I ψ is an instance of ATT ( n + 1 , ⌈ C log ( n + 1 ) ⌉ , ( 1 + θ ) ln ( n + 1 ) , ε ) \operatorname{ATT}(n+1,\lceil C\log(n+1)\rceil,(1+\theta)\ln(n+1),\varepsilon) ATT ( n + 1 , ⌈ C log ( n + 1 )⌉ , ( 1 + θ ) ln ( n + 1 ) , ε ) of the stated form, so the assumption on A A A applies.
⟨1⟩8. Q.E.D.
Proof: ⟨1⟩6 and ⟨1⟩7 contradict Hypothesis 2.4 for γ / 2 \gamma/2 γ /2 , so the algorithm A A A of ⟨1⟩2 does not exist.
Remark B.1. The instances I ψ I_\psi I ψ in the proof of Theorem 3.3 can be written in the normalization exp ( Q K T / d ′ ) \exp(QK^\mathsf{T}/d') exp ( Q K T / d ′ ) of [5 ] with all entries in [ − B , B ] [-B,B] [ − B , B ] for B 2 = O γ , θ , ε ( ln n ) B^2=O_{\gamma,\theta,\varepsilon}(\ln n) B 2 = O γ , θ , ε ( ln n ) and d ′ = O γ , θ ( log n ) d'=O_{\gamma,\theta}(\log n) d ′ = O γ , θ ( log n ) .
Proof. ⟨1⟩1. Replace the last coordinate by a block of T + 1 T+1 T + 1 coordinates. The query q x q_x q x gets λ u \lambda u λ u there, where u ∈ [ 0 , 1 ] T + 1 u \in[0,1]^{T+1} u ∈ [ 0 , 1 ] T + 1 has coordinate sum t ∗ / λ ≤ T t^*/\lambda\le T t ∗ / λ ≤ T ; the dummy key gets the all-ones vector; the real keys get zeros. All logits are unchanged.
Proof: ⟨ λ u , 1 ⟩ = t ∗ \langle\lambda u,1\rangle=t^* ⟨ λ u , 1 ⟩ = t ∗ , and the real keys contribute nothing in the new block.
⟨1⟩2. Now every query entry lies in [ 0 , λ ] [0,\lambda] [ 0 , λ ] and every key entry in { 0 , 1 } \{0,1\} { 0 , 1 } . Let: d ′ = d C + T + 1 d'=d_C+T+1 d ′ = d C + T + 1 , Let: s s s be a rational with d ′ / λ ≤ s ≤ 2 d ′ / λ \sqrt{d'/\lambda}\le s\le2\sqrt{d'/\lambda} d ′ / λ ≤ s ≤ 2 d ′ / λ , and Let: Q ′ = s Q Q'=sQ Q ′ = s Q and K ′ = ( d ′ / s ) K K'=(d'/s)K K ′ = ( d ′ / s ) K . Then Q ′ K ′ ⊤ / d ′ = Q K ⊤ Q'K'^{\top}/d'=QK^{\top} Q ′ K ′ ⊤ / d ′ = Q K ⊤ , and all entries of Q ′ Q' Q ′ and K ′ K' K ′ lie in [ − B , B ] [-B,B] [ − B , B ] for B 2 = 4 d ′ λ B^2=4d'\lambda B 2 = 4 d ′ λ .
Proof: The entries of Q ′ Q' Q ′ are at most s λ ≤ 2 d ′ λ s\lambda\le2\sqrt{d'\lambda} s λ ≤ 2 d ′ λ , and those of K ′ K' K ′ at most d ′ / s ≤ d ′ λ d'/s\le\sqrt{d'\lambda} d ′ / s ≤ d ′ λ .
⟨1⟩3. q.e.d.
Proof: d ′ λ ≤ ( d C + T + 1 ) ( ln n + 2 ln ( 1 / η ) + 1 / 5 ) / ( T ( 1 − 1 / τ ) ) d'\lambda\le(d_C+T+1)(\ln n+2\ln(1/\eta)+1/5)/(T(1-1/\tau)) d ′ λ ≤ ( d C + T + 1 ) ( ln n + 2 ln ( 1/ η ) + 1/5 ) / ( T ( 1 − 1/ τ )) by step ⟨2⟩1 of ⟨1⟩4 in the proof of Theorem 3.3 , and ( d C + T + 1 ) / T ≤ τ poly ( 4 c / γ ) / c + 2 (d_C+T+1)/T\le\tau^{\operatorname{poly}(4c/\gamma)}/c+2 ( d C + T + 1 ) / T ≤ τ poly ( 4 c / γ ) / c + 2 depends only on γ \gamma γ and θ \theta θ , because T ≥ c log n T\ge c\log n T ≥ c log n . Finally d ′ ≤ 2 d C + 1 = O γ , θ ( log n ) d'\le2d_C+1=O_{\gamma,\theta}(\log n) d ′ ≤ 2 d C + 1 = O γ , θ ( log n ) , because T ≤ d C T\le d_C T ≤ d C .
Corollary 3.4 (Additive version). Assume Hypothesis 2.4. For all γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) and ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) there is C ≥ 1 C\ge1 C ≥ 1 such that ATT ( n , ⌈ ( log n ) C ⌉ , ln n + 2 ln 4 1 − 2 ε + 2 , ε ) \operatorname{ATT}(n,\lceil(\log n)^C\rceil,\ln n+2\ln\frac{4}{1-2\varepsilon}+2,\varepsilon) ATT ( n , ⌈( log n ) C ⌉ , ln n + 2 ln 1 − 2 ε 4 + 2 , ε ) cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . For ε = 1 / 6 \varepsilon=1/6 ε = 1/6 the spread is below ln n + 6 \ln n+6 ln n + 6 . This holds already for instances with d v = 1 d_v=1 d v = 1 and values in { 0 , 1 } \{0,1\} { 0 , 1 } .
Proof. ⟨1⟩1. Repeat the proof of Theorem 3.3 with τ = ⌈ log n ⌉ \tau=\lceil\log n\rceil τ = ⌈ log n ⌉ in ⟨1⟩1, for n ≥ 16 n\ge16 n ≥ 16 . Then d C ≤ τ poly ( 4 c / γ ) log n ≤ ( log n ) C − 1 d_C\le\tau^{\operatorname{poly}(4c/\gamma)}\log n\le(\log n)^{C-1} d C ≤ τ poly ( 4 c / γ ) log n ≤ ( log n ) C − 1 for a constant C C C and large n n n .
Proof: Imported Theorem 2.8 holds for every real τ ≥ 4 \tau\ge4 τ ≥ 4 once n ≥ n 0 n\ge n_0 n ≥ n 0 , where n 0 n_0 n 0 does not depend on τ \tau τ , and its dimension bound is explicit in τ \tau τ .
⟨1⟩2. All logits lie in [ 0 , λ T ] [0,\lambda T] [ 0 , λ T ] with λ T ≤ ln n + 2 ln ( 1 / η ) + 2 \lambda T\le\ln n+2\ln(1/\eta)+2 λ T ≤ ln n + 2 ln ( 1/ η ) + 2 for large n n n .
Proof: By step ⟨2⟩1 of ⟨1⟩4 in that proof, λ T ≤ ( ln n + 2 ln ( 1 / η ) + 1 / 5 ) ( 1 + 2 / log n ) \lambda T\le(\ln n+2\ln(1/\eta)+1/5)(1+2/\log n) λ T ≤ ( ln n + 2 ln ( 1/ η ) + 1/5 ) ( 1 + 2/ log n ) , which is ln n + 2 ln ( 1 / η ) + 1 / 5 + 2 ln 2 + o ( 1 ) \ln n+2\ln(1/\eta)+1/5+2\ln2+o(1) ln n + 2 ln ( 1/ η ) + 1/5 + 2 ln 2 + o ( 1 ) . Finally 2 ln ( 1 / η ) = 2 ln ( 4 / ( 1 − 2 ε ) ) 2\ln(1/\eta)=2\ln(4/(1-2\varepsilon)) 2 ln ( 1/ η ) = 2 ln ( 4/ ( 1 − 2 ε )) , and for ε = 1 / 6 \varepsilon=1/6 ε = 1/6 the bound is ln n + 2 ln 6 + 2 < ln n + 6 \ln n+2\ln6+2<\ln n+6 ln n + 2 ln 6 + 2 < ln n + 6 .
⟨1⟩3. q.e.d.
Proof: Steps ⟨1⟩5 and ⟨1⟩6 of that proof use only items (i)–(iii) of Imported Theorem 2.8 and the bound λ T ( 1 − 1 / τ ) ≥ ln n + 2 ln ( 1 / η ) + 1 / 10 \lambda T(1-1/\tau)\ge\ln n+2\ln(1/\eta)+1/10 λ T ( 1 − 1/ τ ) ≥ ln n + 2 ln ( 1/ η ) + 1/10 , so they hold unchanged; the condition 1 / τ ≤ θ / 4 1/\tau\le\theta/4 1/ τ ≤ θ /4 was used only for the spread bound, which ⟨1⟩2 replaces. In step ⟨1⟩7, Imported Theorem 2.8 now takes time n 1 + γ / 4 poly ( log n ) n^{1+\gamma/4}\operatorname{poly}(\log n) n 1 + γ /4 poly ( log n ) because d C d_C d C is polylogarithmic, building the instances takes N ψ O ( n d C ) = O ( n 1 + γ / 4 poly ( log n ) ) N_\psi O(nd_C)=O(n^{1+\gamma/4}\operatorname{poly}(\log n)) N ψ O ( n d C ) = O ( n 1 + γ /4 poly ( log n )) , and the calls take O ( n 2 − 3 γ / 4 log n ) O(n^{2-3\gamma/4}\log n) O ( n 2 − 3 γ /4 log n ) as before; by ⟨1⟩1 and ⟨1⟩2, each I ψ I_\psi I ψ is an instance of ATT ( n + 1 , ⌈ ( log ( n + 1 ) ) C ⌉ , ln ( n + 1 ) + 2 ln ( 1 / η ) + 2 , ε ) \operatorname{ATT}(n+1,\lceil(\log(n+1))^C\rceil,\ln(n+1)+2\ln(1/\eta)+2,\varepsilon) ATT ( n + 1 , ⌈( log ( n + 1 ) ) C ⌉ , ln ( n + 1 ) + 2 ln ( 1/ η ) + 2 , ε ) of the stated form. Step ⟨1⟩8 applies verbatim.
The exponent below the threshold
Theorem 3.6 (Hardness below the threshold). Assume Hypothesis 2.4. For all α ∈ ( 0 , 1 ] \alpha\in(0,1] α ∈ ( 0 , 1 ] , γ ∈ ( 0 , α ) \gamma\in(0,\alpha) γ ∈ ( 0 , α ) and θ ∈ ( 0 , 1 ] \theta\in(0,1] θ ∈ ( 0 , 1 ] there is a constant C ≥ 1 C\ge1 C ≥ 1 such that for every ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) , ATT ( n , ⌈ C log n ⌉ , ( 1 + θ ) α ln n , ε ) \operatorname{ATT}(n,\lceil C\log n\rceil,(1+\theta)\alpha\ln n,\varepsilon) ATT ( n , ⌈ C log n ⌉ , ( 1 + θ ) α ln n , ε ) cannot be solved in time O ( n 1 + α − γ ) O(n^{1+\alpha-\gamma}) O ( n 1 + α − γ ) . This holds already for instances with d v = 1 d_v=1 d v = 1 , values in { 0 , 1 } \{0,1\} { 0 , 1 } , and all logits in [ 0 , ( 1 + θ ) α ln n ] [0,(1+\theta)\alpha\ln n] [ 0 , ( 1 + θ ) α ln n ] .
Proof. We may assume that α \alpha α is rational. For real α \alpha α , choose a rational α ~ ∈ ( α − γ , α ] \widetilde{\alpha}\in(\alpha-\gamma,\alpha] α ∈ ( α − γ , α ] and let γ ~ = γ − α + α ~ \widetilde{\gamma}=\gamma-\alpha+\widetilde{\alpha} γ = γ − α + α , so that 0 < γ ~ < α ~ 0<\widetilde{\gamma}<\widetilde{\alpha} 0 < γ < α ; the rational case gives C C C such that spread ( 1 + θ ) α ~ ln n ≤ ( 1 + θ ) α ln n (1+\theta)\widetilde{\alpha}\ln n\le(1+\theta)\alpha\ln n ( 1 + θ ) α ln n ≤ ( 1 + θ ) α ln n has no O ( n 1 + α ~ − γ ~ ) = O ( n 1 + α − γ ) O(n^{1+\widetilde{\alpha}-\widetilde{\gamma}})=O(n^{1+\alpha-\gamma}) O ( n 1 + α − γ ) = O ( n 1 + α − γ ) algorithm in dimension ⌈ C log n ⌉ \lceil C\log n\rceil ⌈ C log n ⌉ , which is the claim for α \alpha α .
⟨1⟩1. Let: c c c , τ = ⌈ 4 / θ ⌉ \tau=\lceil4/\theta\rceil τ = ⌈ 4/ θ ⌉ , n 0 n_0 n 0 , d C d_C d C , T T T , C C C and η \eta η be as in step ⟨1⟩1 of the proof of Theorem 3.3 , so that c c c is the integer of Hypothesis 2.4 for γ / 2 \gamma/2 γ /2 , Imported Theorem 2.8 is applied with parameters c c c , γ / 4 \gamma/4 γ /4 and τ \tau τ , and d C + 1 ≤ ⌈ C log n ⌉ d_C+1\le\lceil C\log n\rceil d C + 1 ≤ ⌈ C log n ⌉ . Let: x ( ψ , ⋅ ) x(\psi,\cdot) x ( ψ , ⋅ ) and y y y be the maps of Imported Theorem 2.8(iv).
Proof: As there.
⟨1⟩2. Assume: an algorithm A \mathcal{A} A solves ATT ( N , ⌈ C log N ⌉ , ( 1 + θ ) α ln N , ε ) \operatorname{ATT}(N,\lceil C\log N\rceil,(1+\theta)\alpha\ln N,\varepsilon) ATT ( N , ⌈ C log N ⌉ , ( 1 + θ ) α ln N , ε ) in time O ( N 1 + α − γ ) O(N^{1+\alpha-\gamma}) O ( N 1 + α − γ ) on the instances described in the theorem. Prove: OV n , ⌈ c log n ⌉ \operatorname{OV}_{n,\lceil c\log n\rceil} OV n , ⌈ c l o g n ⌉ can be solved in time O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) , which contradicts the choice of c c c .
⟨1⟩3. Let: ( A , B ) (A,B) ( A , B ) be an instance of OV n , ⌈ c log n ⌉ \operatorname{OV}_{n,\lceil c\log n\rceil} OV n , ⌈ c l o g n ⌉ and n B = ⌈ n α ⌉ n_B=\lceil n^\alpha\rceil n B = ⌈ n α ⌉ . Partition B B B into J J J groups B 1 , … , B J B_1,\ldots,B_J B 1 , … , B J of at most n B n_B n B vectors each, and for each j j j Let: M j = ⌈ n / ( ∣ B j ∣ + 1 ) ⌉ M_j=\lceil n/(|B_j|+1)\rceil M j = ⌈ n / ( ∣ B j ∣ + 1 )⌉ and N j = M j ( ∣ B j ∣ + 1 ) N_j=M_j(|B_j|+1) N j = M j ( ∣ B j ∣ + 1 ) . Then J ≤ 2 n 1 − α J\le2n^{1-\alpha} J ≤ 2 n 1 − α and n ≤ N j ≤ 2 n n\le N_j\le2n n ≤ N j ≤ 2 n .
Proof: J = ⌈ n / n B ⌉ ≤ n 1 − α + 1 J=\lceil n/n_B\rceil\le n^{1-\alpha}+1 J = ⌈ n / n B ⌉ ≤ n 1 − α + 1 . N j ≥ n N_j\ge n N j ≥ n by the choice of M j M_j M j , and N j < n + ∣ B j ∣ + 1 N_j<n+|B_j|+1 N j < n + ∣ B j ∣ + 1 , so the integer N j N_j N j is at most n + ∣ B j ∣ ≤ 2 n n+|B_j|\le2n n + ∣ B j ∣ ≤ 2 n .
⟨1⟩4. Let: ξ \xi ξ be a rational with ln ( ( 1 − η ) / η ) ≤ ξ ≤ ln ( ( 1 − η ) / η ) + 1 / 10 \ln((1-\eta)/\eta)\le\xi\le\ln((1-\eta)/\eta)+1/10 ln (( 1 − η ) / η ) ≤ ξ ≤ ln (( 1 − η ) / η ) + 1/10 , Let: λ \lambda λ be a rational of O ( log n ) O(\log n) O ( log n ) bits with α ln n + 2 ln ( 1 / η ) + 1 ≤ λ T ( 1 − 1 / τ ) ≤ α ln n + 2 ln ( 1 / η ) + 11 / 10 \alpha\ln n+2\ln(1/\eta)+1\le\lambda T(1-1/\tau)\le\alpha\ln n+2\ln(1/\eta)+11/10 α ln n + 2 ln ( 1/ η ) + 1 ≤ λ T ( 1 − 1/ τ ) ≤ α ln n + 2 ln ( 1/ η ) + 11/10 , computed from rational approximations of ln n \ln n ln n and ln ( 1 / η ) \ln(1/\eta) ln ( 1/ η ) , and Let: t ∗ = λ T − ξ t^*=\lambda T-\xi t ∗ = λ T − ξ . For each j j j and ψ \psi ψ Let: the instance I j , ψ I_{j,\psi} I j , ψ have the queries q a = ( λ x ( ψ , a ) , t ∗ ) q_a=(\lambda x(\psi,a),t^*) q a = ( λ x ( ψ , a ) , t ∗ ) for a ∈ A a\in A a ∈ A and N j − n N_j-n N j − n zero queries; M j M_j M j keys equal to ( y ( b ) , 0 ) (y(b),0) ( y ( b ) , 0 ) with value 1 1 1 for each b ∈ B j b\in B_j b ∈ B j ; and M j M_j M j keys equal to ( 0 , 1 ) (0,1) ( 0 , 1 ) with value 0 0 0 .
Proof: I j , ψ I_{j,\psi} I j , ψ has N j N_j N j queries, N j N_j N j keys, dimension d C + 1 d_C+1 d C + 1 , d v = 1 d_v=1 d v = 1 , values in { 0 , 1 } \{0,1\} { 0 , 1 } and rational entries of O ( log n ) O(\log n) O ( log n ) bits, and it is built in time O ( N j d C ) O(N_jd_C) O ( N j d C ) from the vectors x ( ψ , a ) x(\psi,a) x ( ψ , a ) and y ( b ) y(b) y ( b ) .
⟨1⟩5. Every logit of I j , ψ I_{j,\psi} I j , ψ lies in [ 0 , λ T ] [0,\lambda T] [ 0 , λ T ] , and λ T ≤ ( 1 + θ ) α ln n ≤ ( 1 + θ ) α ln N j \lambda T\le(1+\theta)\alpha\ln n\le(1+\theta)\alpha\ln N_j λ T ≤ ( 1 + θ ) α ln n ≤ ( 1 + θ ) α ln N j for all n ≥ n 1 ( α , θ , ε ) n\ge n_1(\alpha,\theta,\varepsilon) n ≥ n 1 ( α , θ , ε ) .
⟨2⟩1. α ln n + 2 ln ( 1 / η ) + 1 ≤ λ T ( 1 − 1 / τ ) ≤ α ln n + 2 ln ( 1 / η ) + 11 / 10 \alpha\ln n+2\ln(1/\eta)+1\le\lambda T(1-1/\tau)\le\alpha\ln n+2\ln(1/\eta)+11/10 α ln n + 2 ln ( 1/ η ) + 1 ≤ λ T ( 1 − 1/ τ ) ≤ α ln n + 2 ln ( 1/ η ) + 11/10 .
Proof: By the choice of λ \lambda λ .
⟨2⟩2. The logits of q a q_a q a are λ ⟨ x ( ψ , a ) , y ( b ) ⟩ ∈ [ 0 , λ T ] \lambda\langle x(\psi,a),y(b)\rangle\in[0,\lambda T] λ ⟨ x ( ψ , a ) , y ( b )⟩ ∈ [ 0 , λ T ] and t ∗ ∈ [ 0 , λ T ] t^*\in[0,\lambda T] t ∗ ∈ [ 0 , λ T ] ; zero queries have all logits 0 0 0 .
Proof: Imported Theorem 2.8(i) and Imported Theorem 2.8(iv) give ⟨ x ( ψ , a ) , y ( b ) ⟩ ∈ [ 0 , T ] \langle x(\psi,a),y(b)\rangle\in[0,T] ⟨ x ( ψ , a ) , y ( b )⟩ ∈ [ 0 , T ] . By ⟨2⟩1, λ T ≥ ln ( 1 / η ) + 1 ≥ ξ \lambda T\ge\ln(1/\eta)+1\ge\xi λ T ≥ ln ( 1/ η ) + 1 ≥ ξ , since ξ ≤ ln ( ( 1 − η ) / η ) + 1 / 10 \xi\le\ln((1-\eta)/\eta)+1/10 ξ ≤ ln (( 1 − η ) / η ) + 1/10 ; so t ∗ ≥ 0 t^*\ge0 t ∗ ≥ 0 .
⟨2⟩3. λ T ≤ ( 1 + θ / 2 ) ( α ln n + 2 ln ( 1 / η ) + 11 / 10 ) \lambda T\le(1+\theta/2)(\alpha\ln n+2\ln(1/\eta)+11/10) λ T ≤ ( 1 + θ /2 ) ( α ln n + 2 ln ( 1/ η ) + 11/10 ) .
Proof: By ⟨2⟩1 and 1 / ( 1 − 1 / τ ) ≤ 1 + 2 / τ ≤ 1 + θ / 2 1/(1-1/\tau)\le1+2/\tau\le1+\theta/2 1/ ( 1 − 1/ τ ) ≤ 1 + 2/ τ ≤ 1 + θ /2 , because 1 / τ ≤ θ / 4 ≤ 1 / 4 1/\tau\le\theta/4\le1/4 1/ τ ≤ θ /4 ≤ 1/4 .
⟨2⟩4. Q.E.D.
Proof: By ⟨2⟩2 and ⟨2⟩3, since ( 1 + θ / 2 ) ( 2 ln ( 1 / η ) + 11 / 10 ) ≤ ( θ / 2 ) α ln n (1+\theta/2)(2\ln(1/\eta)+11/10)\le(\theta/2)\alpha\ln n ( 1 + θ /2 ) ( 2 ln ( 1/ η ) + 11/10 ) ≤ ( θ /2 ) α ln n for n ≥ n 1 ( α , θ , ε ) n\ge n_1(\alpha,\theta,\varepsilon) n ≥ n 1 ( α , θ , ε ) , and N j ≥ n N_j\ge n N j ≥ n .
⟨1⟩6. Let: o a o_a o a be the output of q a q_a q a in I j , ψ I_{j,\psi} I j , ψ . If some b ∈ B j b\in B_j b ∈ B j has ⟨ x ( ψ , a ) , y ( b ) ⟩ = T \langle x(\psi,a),y(b)\rangle=T ⟨ x ( ψ , a ) , y ( b )⟩ = T , then o a ≥ 1 − η o_a\ge1-\eta o a ≥ 1 − η . If every b ∈ B j b\in B_j b ∈ B j has ⟨ x ( ψ , a ) , y ( b ) ⟩ ≤ T / τ \langle x(\psi,a),y(b)\rangle\le T/\tau ⟨ x ( ψ , a ) , y ( b )⟩ ≤ T / τ , then o a ≤ η o_a\le\eta o a ≤ η .
⟨2⟩1. o a = S a / ( S a + e t ∗ ) o_a=S_a/(S_a+e^{t^*}) o a = S a / ( S a + e t ∗ ) with S a = ∑ b ∈ B j e λ ⟨ x ( ψ , a ) , y ( b ) ⟩ S_a=\sum_{b\in B_j}e^{\lambda\langle x(\psi,a),y(b)\rangle} S a = ∑ b ∈ B j e λ ⟨ x ( ψ , a ) , y ( b )⟩ .
Proof: Every key occurs M j M_j M j times, so every term of the numerator and of the denominator of the softmax is multiplied by M j M_j M j . The real keys have value 1 1 1 and the dummy keys value 0 0 0 .
⟨2⟩2. If ⟨ x ( ψ , a ) , y ( b ) ⟩ = T \langle x(\psi,a),y(b)\rangle=T ⟨ x ( ψ , a ) , y ( b )⟩ = T for some b ∈ B j b\in B_j b ∈ B j , then o a ≥ 1 − η o_a\ge1-\eta o a ≥ 1 − η .
Proof: S a ≥ e λ T = ε e t ∗ S_a\ge e^{\lambda T}=\varepsilon e^{t^*} S a ≥ e λ T = ε e t ∗ , so o a ≥ ε / ( ε + 1 ) ≥ 1 − η o_a\ge\varepsilon/(\varepsilon+1)\ge1-\eta o a ≥ ε / ( ε + 1 ) ≥ 1 − η , as ε ≥ ( 1 − η ) / η \varepsilon\ge(1-\eta)/\eta ε ≥ ( 1 − η ) / η .
⟨2⟩3. If ⟨ x ( ψ , a ) , y ( b ) ⟩ ≤ T / τ \langle x(\psi,a),y(b)\rangle\le T/\tau ⟨ x ( ψ , a ) , y ( b )⟩ ≤ T / τ for all b ∈ B j b\in B_j b ∈ B j , then o a ≤ η o_a\le\eta o a ≤ η .
Proof: o a ≤ S a / e t ∗ ≤ n B exp ( λ T / τ − λ T + ξ ) = n B ε ξ e − λ T ( 1 − 1 / τ ) o_a\le S_a/e^{t^*}\le n_B\exp(\lambda T/\tau-\lambda T+\xi)=n_B\varepsilon^\xi e^{-\lambda T(1-1/\tau)} o a ≤ S a / e t ∗ ≤ n B exp ( λ T / τ − λ T + ξ ) = n B ε ξ e − λ T ( 1 − 1/ τ ) . By ⟨2⟩1 of ⟨1⟩5 and n B ≤ 2 n α n_B\le2n^\alpha n B ≤ 2 n α , this is at most 2 ε ξ − 1 η 2 ≤ 2 e − 9 / 10 ( ( 1 − η ) / η ) η 2 ≤ η 2\varepsilon^{\xi-1}\eta^2\le2e^{-9/10}((1-\eta)/\eta)\eta^2\le\eta 2 ε ξ − 1 η 2 ≤ 2 e − 9/10 (( 1 − η ) / η ) η 2 ≤ η , since 2 e − 9 / 10 < 1 2e^{-9/10}<1 2 e − 9/10 < 1 .
⟨2⟩4. Q.E.D.
Proof: By ⟨2⟩1, ⟨2⟩2 and ⟨2⟩3. ⟨1⟩7. Let: N ψ ≤ 2 n γ / 4 N_{\psi} \le2n^{\gamma/4} N ψ ≤ 2 n γ /4 be the number of indices ψ \psi ψ . Let: the algorithm for OV solve inputs with n < max { n 0 , n 1 , τ } n < \max\{n_0,n_1,\tau\} n < max { n 0 , n 1 , τ } by brute force; otherwise it computes x ( ψ , a ) x(\psi,a) x ( ψ , a ) and y ( b ) y(b) y ( b ) for all ψ \psi ψ , a ∈ A a \in A a ∈ A and b ∈ B b \in B b ∈ B , builds every I j , ψ I_{j,\psi} I j , ψ , runs A \mathcal{A} A on it R = ⌈ 18 ln ( 3 J N ψ ) ⌉ R=\lceil18\ln(3JN_{\psi})\rceil R = ⌈ 18 ln ( 3 J N ψ )⌉ times, and declares ( j , ψ ) (j,\psi) ( j , ψ ) positive if in a majority of the runs some query q a q_a q a receives an output above 1 / 2 1/2 1/2 . It answers YES if and only if some ( j , ψ ) (j,\psi) ( j , ψ ) is positive. It errs with probability at most 1 / 3 1/3 1/3 .
⟨2⟩1. A run of A \mathcal{A} A that succeeds reports an output above 1 / 2 1/2 1/2 for every query with o a ≥ 1 − η o_a \ge1-\eta o a ≥ 1 − η , and for no query with o a ≤ η o_a \le\eta o a ≤ η . The zero queries are ignored. Proof: 1 − η − ε > 1 / 2 > η + ε 1-\eta-\varepsilon> 1/2 > \eta+\varepsilon 1 − η − ε > 1/2 > η + ε , because η + ε = ( 1 + 2 ε ) / 4 < 1 / 2 \eta+\varepsilon=(1+2\varepsilon)/4<1/2 η + ε = ( 1 + 2 ε ) /4 < 1/2 .
⟨2⟩2. If ⟨ a ∗ , b ∗ ⟩ = 0 \langle a^*,b^*\rangle=0 ⟨ a ∗ , b ∗ ⟩ = 0 with a ∗ ∈ A a^* \in A a ∗ ∈ A and b ∗ ∈ B j ∗ b^* \in B_{j^*} b ∗ ∈ B j ∗ , then some I j ∗ , ψ ∗ I_{j^*,\psi^*} I j ∗ , ψ ∗ has o a ∗ ≥ 1 − η o_{a^*}\ge1-\eta o a ∗ ≥ 1 − η . If ( A , B ) (A,B) ( A , B ) has no orthogonal pair, every query of every I j , ψ I_{j,\psi} I j , ψ has o a ≤ η o_a\le\eta o a ≤ η . Proof: Imported Theorem 2.8(iv) and ⟨1⟩6.
⟨2⟩3. In the first case ( j ∗ , ψ ∗ ) (j^*,\psi^*) ( j ∗ , ψ ∗ ) is declared positive with probability at least 1 − 1 / ( 3 J N ψ ) 1-1/(3JN_{\psi}) 1 − 1/ ( 3 J N ψ ) . In the second, each ( j , ψ ) (j,\psi) ( j , ψ ) is declared positive with probability at most 1 / ( 3 J N ψ ) 1/(3JN_{\psi}) 1/ ( 3 J N ψ ) . Proof: Each run succeeds independently with probability at least 2 / 3 2/3 2/3 . By Hoeffding’s inequality, at least half of the R R R runs fail with probability at most e − R / 18 ≤ 1 / ( 3 J N ψ ) e^{-R/18}\le1/(3JN_{\psi}) e − R /18 ≤ 1/ ( 3 J N ψ ) . If a majority succeeds, the declaration is the one given by ⟨2⟩1 and ⟨2⟩2.
⟨2⟩4. q.e.d. Proof: On YES inputs, by ⟨2⟩3 for ( j ∗ , ψ ∗ ) (j^*,\psi^*) ( j ∗ , ψ ∗ ) . On NO inputs, by ⟨2⟩3 and a union bound over the J N ψ JN_{\psi} J N ψ instances.
⟨1⟩8. The algorithm of ⟨1⟩7 runs in time O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) . Proof: Imported Theorem 2.8 takes time n 1 + γ / 4 poly ( log n ) n^{1+\gamma/4}\operatorname{poly}(\log n) n 1 + γ /4 poly ( log n ) . Building the instances takes J N ψ ⋅ O ( n d C ) = O ( n 2 − α + γ / 4 log n ) JN_{\psi}\cdot O(nd_C)=O(n^{2-\alpha+\gamma/4}\log n) J N ψ ⋅ O ( n d C ) = O ( n 2 − α + γ /4 log n ) , and the calls take J N ψ R ⋅ O ( ( 2 n ) 1 + α − γ ) = O ( n 2 − 3 γ / 4 log n ) JN_{\psi}R\cdot O((2n)^{1+\alpha-\gamma})=O(n^{2-3\gamma/4}\log n) J N ψ R ⋅ O (( 2 n ) 1 + α − γ ) = O ( n 2 − 3 γ /4 log n ) . Both are O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) , the first because γ < α \gamma<\alpha γ < α . By ⟨1⟩1 and ⟨1⟩5, after padding with zero coordinates each I j , ψ I_{j,\psi} I j , ψ is an instance of ATT ( N j , ⌈ C log N j ⌉ , ( 1 + θ ) α ln N j , ε ) \operatorname{ATT}(N_j,\lceil C\log N_j\rceil,(1+\theta)\alpha\ln N_j,\varepsilon) ATT ( N j , ⌈ C log N j ⌉ , ( 1 + θ ) α ln N j , ε ) of the stated form, so the assumption on A \mathcal{A} A applies.
⟨1⟩9. q.e.d. Proof: ⟨1⟩7 and ⟨1⟩8 contradict Hypothesis 2.4 for γ / 2 \gamma/2 γ /2 , so the algorithm A \mathcal{A} A of ⟨1⟩2 does not exist.
Proofs for Section 4
Counting modulo r + 1 r+1 r + 1
Theorem 4.1 (Precision lower bound). Assume Hypothesis 2.4. For every γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) there is an integer c ≥ 1 c\ge1 c ≥ 1 with the following property. Let r , w : N → N r,w:\mathbb{N}\to\mathbb{N} r , w : N → N be computable in time O ( n ) O(n) O ( n ) , with r ( n ) , w ( n ) ≥ 1 r(n),w(n)\ge1 r ( n ) , w ( n ) ≥ 1 for all n n n , and r ( n ) ≤ n r(n)\le n r ( n ) ≤ n and w ( n ) ≤ 1 2 log n w(n)\le\frac{1}{2}\log n w ( n ) ≤ 2 1 log n for all large n n n . Let
K = ⌈ c log n ⌉ / w , d = K ( 2 w − 1 ) , W = K ln ( 1 + 1 / r ) , ε = 1 64 n ( r + 1 ) 2 K . K=\lceil c\log n\rceil/w,\qquad d=K(2^w-1),\qquad W=K\ln(1+1/r),\qquad\varepsilon=\frac{1}{64n(r+1)^{2K}}. K = ⌈ c log n ⌉ / w , d = K ( 2 w − 1 ) , W = K ln ( 1 + 1/ r ) , ε = 64 n ( r + 1 ) 2 K 1 .
with r = r ( n ) r=r(n) r = r ( n ) and w = w ( n ) w=w(n) w = w ( n ) . Then ATT ( n , d , W , ε ) \operatorname{ATT}(n,d,W,\varepsilon) ATT ( n , d , W , ε ) cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . This holds already for d v = 1 d_v=1 d v = 1 , values in { 0 , 1 } \{0,1\} { 0 , 1 } , and all logits in [ 0 , W ] [0,W] [ 0 , W ] .
Proof. ⟨1⟩1. Let: c ≥ 1 c\ge1 c ≥ 1 be the integer of Hypothesis 2.4 for γ / 2 \gamma/2 γ /2 , and Assume: an algorithm A \mathcal{A} A solves the problem in the statement in time O ( N 2 − γ ) O(N^{2-\gamma}) O ( N 2 − γ ) on instances of size N N N of the stated form. Prove: OV n , m \operatorname{OV}_{n,m} OV n , m with m = ⌈ c log n ⌉ m=\lceil c\log n\rceil m = ⌈ c log n ⌉ can be solved in time O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) , which contradicts the choice of c c c . ⟨1⟩2. Let: ( A , B ) (A, B) ( A , B ) be an instance of O V n , m \mathrm{OV}_{n,m} OV n , m . If 0 m ∈ A 0^m \in A 0 m ∈ A , the answer is YES. Otherwise every a ∈ A a \in A a ∈ A has ⟨ a , 1 ⟩ ≥ 1 \langle a, \mathbf{1}\rangle\ge1 ⟨ a , 1 ⟩ ≥ 1 , where 1 \mathbf{1} 1 is the all-ones vector.
Proof: The zero vector is orthogonal to every vector of B B B .
⟨1⟩3. Let: N = 2 n N = 2n N = 2 n , and let: n 2 n_2 n 2 be such that r ( N ′ ) ≤ N ′ r(N') \le N' r ( N ′ ) ≤ N ′ and w ( N ′ ) ≤ 1 2 log N ′ w(N') \le\frac{1}{2}\log N' w ( N ′ ) ≤ 2 1 log N ′ for all N ′ ≥ n 2 N' \ge n_2 N ′ ≥ n 2 ; inputs with 2 n < n 2 2n < n_2 2 n < n 2 are solved by brute force in time O ( 1 ) O(1) O ( 1 ) , so assume N ≥ n 2 N \ge n_2 N ≥ n 2 . Let: r = r ( N ) r = r(N) r = r ( N ) , w = w ( N ) w = w(N) w = w ( N ) , K 0 = ⌈ m / w ⌉ K_0 = \lceil m/w\rceil K 0 = ⌈ m / w ⌉ , and partition [ m ] [m] [ m ] into consecutive blocks B 1 , … , B K 0 B_1,\ldots,B_{K_0} B 1 , … , B K 0 of size at most w w w . For a , b ′ ∈ { 0 , 1 } m a,b' \in\{0,1\}^m a , b ′ ∈ { 0 , 1 } m let: F ( a , b ′ ) F(a,b') F ( a , b ′ ) be the number of blocks t t t with a k b k ′ = 1 a_kb'_k=1 a k b k ′ = 1 for some k ∈ B t k \in B_t k ∈ B t . Then F ( a , b ′ ) = ⟨ ϕ ( a ) , ψ ( b ′ ) ⟩ F(a,b')=\langle\phi(a),\psi(b')\rangle F ( a , b ′ ) = ⟨ ϕ ( a ) , ψ ( b ′ )⟩ , where ϕ ( a ) \phi(a) ϕ ( a ) and ψ ( b ′ ) \psi(b') ψ ( b ′ ) are indexed by the pairs ( t , S ) (t,S) ( t , S ) with ∅ ≠ S ⊆ B t \varnothing\ne S \subseteq B_t ∅ = S ⊆ B t and
ϕ ( a ) t , S = ( − 1 ) ∣ S ∣ + 1 ∏ k ∈ S a k , ψ ( b ′ ) t , S = ∏ k ∈ S b k ′ . \phi(a)_{t,S}=(-1)^{|S|+1}\prod_{k\in S}a_k,\qquad\psi(b')_{t,S}=\prod_{k\in S}b'_k. ϕ ( a ) t , S = ( − 1 ) ∣ S ∣ + 1 k ∈ S ∏ a k , ψ ( b ′ ) t , S = k ∈ S ∏ b k ′ .
They have d 0 = ∑ t ( 2 ∣ B t ∣ − 1 ) ≤ K 0 ( 2 w − 1 ) d_0=\sum_t(2^{|B_t|}-1)\le K_0(2^w-1) d 0 = ∑ t ( 2 ∣ B t ∣ − 1 ) ≤ K 0 ( 2 w − 1 ) coordinates, with entries in { − 1 , 0 , 1 } \{-1,0,1\} { − 1 , 0 , 1 } and { 0 , 1 } \{0,1\} { 0 , 1 } .
Proof: For each block, 1 − ∏ k ∈ B t ( 1 − a k b k ′ ) 1-\prod_{k\in B_t}(1-a_kb'_k) 1 − ∏ k ∈ B t ( 1 − a k b k ′ ) is 1 1 1 if a a a and b ′ b' b ′ share a one in B t B_t B t and 0 0 0 otherwise, and expanding the product gives ∑ ∅ ≠ S ⊆ B t ( − 1 ) ∣ S ∣ + 1 ∏ k ∈ S a k b k ′ \sum_{\varnothing\ne S\subseteq B_t}(-1)^{|S|+1}\prod_{k\in S}a_kb'_k ∑ ∅ = S ⊆ B t ( − 1 ) ∣ S ∣ + 1 ∏ k ∈ S a k b k ′ . Sum over t t t .
⟨1⟩4. Let: z = 1 + 1 / r z=1+1/r z = 1 + 1/ r , λ = ln z \lambda=\ln z λ = ln z , ε 0 = r K 0 32 n ( r + 1 ) 2 K 0 \varepsilon_0=\frac{r^{K_0}}{32n(r+1)^{2K_0}} ε 0 = 32 n ( r + 1 ) 2 K 0 r K 0 , and let: λ ′ \lambda' λ ′ be a rational with λ − ε 0 / ( 12 K 0 ) ≤ λ ′ ≤ λ \lambda-\varepsilon_0/(12K_0)\le\lambda'\le\lambda λ − ε 0 / ( 12 K 0 ) ≤ λ ′ ≤ λ . For a sublist B ′ B' B ′ of B B B let: the instance I ( B ′ ) I(B') I ( B ′ ) have the queries q a = λ ′ ϕ ( a ) q_a=\lambda'\phi(a) q a = λ ′ ϕ ( a ) for a ∈ A a\in A a ∈ A and n n n zero queries; for each b ′ ∈ B b'\in B b ′ ∈ B a key equal to ψ ( b ′ ) \psi(b') ψ ( b ′ ) if b ′ ∈ B ′ b'\in B' b ′ ∈ B ′ and to ψ ( 1 ) \psi(\mathbf{1}) ψ ( 1 ) otherwise, with value 0 0 0 ; and n n n keys equal to 0 0 0 with value 1 1 1 . Then λ ′ > 0 \lambda'>0 λ ′ > 0 .
Proof: λ ′ \lambda' λ ′ exists with O ( log ( K 0 / ε 0 ) ) = O ( K 0 log ( r + 1 ) + log n ) = O ( log 2 n ) O(\log(K_0/\varepsilon_0))=O(K_0\log(r+1)+\log n)=O(\log^2 n) O ( log ( K 0 / ε 0 )) = O ( K 0 log ( r + 1 ) + log n ) = O ( log 2 n ) bits, because K 0 ≤ m K_0\le m K 0 ≤ m and r ≤ N r\le N r ≤ N ; this is O ( log ( N / ε ) ) O(\log(N/\varepsilon)) O ( log ( N / ε )) , as the model allows. It is positive because λ = ln ( 1 + 1 / r ) ≥ 1 / ( r + 1 ) \lambda=\ln(1+1/r)\ge1/(r+1) λ = ln ( 1 + 1/ r ) ≥ 1/ ( r + 1 ) , while ε 0 / ( 12 K 0 ) ≤ 1 / ( 384 n ( r + 1 ) ) \varepsilon_0/(12K_0)\le1/(384n(r+1)) ε 0 / ( 12 K 0 ) ≤ 1/ ( 384 n ( r + 1 )) since r K 0 ≤ ( r + 1 ) K 0 r^{K_0}\le(r+1)^{K_0} r K 0 ≤ ( r + 1 ) K 0 . I ( B ′ ) I(B') I ( B ′ ) has N N N queries, N N N keys, dimension d 0 d_0 d 0 , d v = 1 d_v=1 d v = 1 and values in { 0 , 1 } \{0,1\} { 0 , 1 } . Since w ≤ 1 2 log N w\le\frac{1}{2}\log N w ≤ 2 1 log N , 2 w ≤ 2 n 2^w\le\sqrt{2n} 2 w ≤ 2 n and d 0 ≤ m 2 n d_0\le m\sqrt{2n} d 0 ≤ m 2 n , so I ( B ′ ) I(B') I ( B ′ ) is computed in time O ( n 3 / 2 poly ( log n ) ) O(n^{3/2}\operatorname{poly}(\log n)) O ( n 3/2 poly ( log n )) .
⟨1⟩5. I ( B ′ ) I(B') I ( B ′ ) is an instance of the problem in the statement for size N N N .
Proof: K 0 ≤ ⌈ ⌈ c log N ⌉ / w ⌉ = K K_0\le\lceil\lceil c\log N\rceil/w\rceil=K K 0 ≤ ⌈⌈ c log N ⌉ / w ⌉ = K , so d 0 ≤ K ( 2 w − 1 ) d_0\le K(2^w-1) d 0 ≤ K ( 2 w − 1 ) and padding with zero coordinates reaches dimension d d d . A query q a q_a q a has logits λ ′ F ( a , ⋅ ) ∈ [ 0 , λ ′ K 0 ] ⊆ [ 0 , W ] \lambda'F(a,\cdot)\in[0,\lambda'K_0]\subseteq[0,W] λ ′ F ( a , ⋅ ) ∈ [ 0 , λ ′ K 0 ] ⊆ [ 0 , W ] for the keys ψ ( ⋅ ) \psi(\cdot) ψ ( ⋅ ) and 0 0 0 for the zero keys; zero queries have all logits 0 0 0 . The precision is handled in ⟨1⟩7.
⟨1⟩6. Let: o a o_a o a be the output of q a q_a q a when λ ′ \lambda' λ ′ is replaced by λ \lambda λ , let: S a = ∑ b ′ ∈ B z F ( a , b ~ ′ ) S_a=\sum_{b'\in B}z^{F(a,\tilde b')} S a = ∑ b ′ ∈ B z F ( a , b ~ ′ ) where b ~ ′ \tilde b' b ~ ′ is b ′ b' b ′ if b ′ ∈ B ′ b'\in B' b ′ ∈ B ′ and 1 \mathbf{1} 1 otherwise, and let: N a = ∣ { b ′ ∈ B ′ : ⟨ a , b ′ ⟩ = 0 } ∣ N_a=|\{b'\in B':\langle a,b'\rangle=0\}| N a = ∣ { b ′ ∈ B ′ : ⟨ a , b ′ ⟩ = 0 } ∣ . Then o a = n / ( n + S a ) o_a=n/(n+S_a) o a = n / ( n + S a ) , the number X a = r K 0 S a X_a=r^{K_0}S_a X a = r K 0 S a is an integer, and X a ≡ r K 0 N a ( m o d r + 1 ) X_a\equiv r^{K_0}N_a\pmod{r+1} X a ≡ r K 0 N a ( mod r + 1 ) .
⟨2⟩1. o a = n / ( n + S a ) o_a=n/(n+S_a) o a = n / ( n + S a ) .
Proof: The n n n zero keys have logit 0 0 0 and value 1 1 1 ; the other keys have value 0 0 0 and weight e λ F ( a , b ~ ′ ) = z F ( a , b ~ ′ ) e^{\lambda F(a,\tilde b')}=z^{F(a,\tilde b')} e λ F ( a , b ~ ′ ) = z F ( a , b ~ ′ ) .
⟨2⟩2. For 0 ≤ s ≤ K 0 0\le s\le K_0 0 ≤ s ≤ K 0 , r K 0 z s = ( r + 1 ) s r K 0 − s r^{K_0}z^s=(r+1)^sr^{K_0-s} r K 0 z s = ( r + 1 ) s r K 0 − s is an integer, divisible by r + 1 r+1 r + 1 if s ≥ 1 s\ge1 s ≥ 1 , and equal to r K 0 r^{K_0} r K 0 if s = 0 s=0 s = 0 .
Proof: z s = ( r + 1 ) s / r s z^s=(r+1)^s/r^s z s = ( r + 1 ) s / r s , and F F F takes values in { 0 , … , K 0 } \{0,\ldots,K_0\} { 0 , … , K 0 } .
⟨2⟩3. F ( a , b ′ ) = 0 F(a,b')=0 F ( a , b ′ ) = 0 holds exactly for the N a N_a N a kept vectors b ′ ∈ B ′ b'\in B' b ′ ∈ B ′ with ⟨ a , b ′ ⟩ = 0 \langle a,b'\rangle=0 ⟨ a , b ′ ⟩ = 0 .
Proof: F ( a , b ′ ) = 0 F(a,b')=0 F ( a , b ′ ) = 0 if and only if a a a and b ′ b' b ′ share no one, that is, ⟨ a , b ′ ⟩ = 0 \langle a,b'\rangle=0 ⟨ a , b ′ ⟩ = 0 . For a dropped b ′ b' b ′ , F ( a , 1 ) ≥ 1 F(a,\mathbf{1})\ge1 F ( a , 1 ) ≥ 1 by ⟨1⟩2.
⟨2⟩4. Q.E.D.
Proof: Sum ⟨2⟩2 over the keys and use ⟨2⟩3.
⟨1⟩7. Assume: ∥ o ~ − o ′ ∥ ∞ ≤ ε \|\tilde o-o'\|_\infty\le\varepsilon ∥ o ~ − o ′ ∥ ∞ ≤ ε for the true outputs o ′ o' o ′ of I ( B ′ ) I(B') I ( B ′ ) , with ε \varepsilon ε as in the statement at size N N N , and let: o ^ a \hat o_a o ^ a be the multiple of ε 0 / 8 \varepsilon_0/8 ε 0 /8 nearest to min { 1 , max { ε , o ~ a } } \min\{1,\max\{\varepsilon,\tilde o_a\}\} min { 1 , max { ε , o ~ a }} . Then X a = ⌊ r K 0 n ( 1 / o ^ a − 1 ) + 1 / 2 ⌋ X_a=\left\lfloor r^{K_0}n(1/\hat o_a-1)+1/2\right\rfloor X a = ⌊ r K 0 n ( 1/ o ^ a − 1 ) + 1/2 ⌋ for every $a\in A.
⟨2⟩1. ε ≤ ε 0 / 2 \varepsilon\le\varepsilon_0/2 ε ≤ ε 0 /2 .
Proof: ε = 1 / ( 64 N ( r + 1 ) 2 K ) \varepsilon= 1/(64N(r+1)^{2K}) ε = 1/ ( 64 N ( r + 1 ) 2 K ) and ε 0 / 2 ≥ 1 / ( 64 n ( r + 1 ) 2 K 0 ) \varepsilon_0/2 \ge1/(64n(r+1)^{2K_0}) ε 0 /2 ≥ 1/ ( 64 n ( r + 1 ) 2 K 0 ) , since r K 0 ≥ 1 r^{K_0} \ge1 r K 0 ≥ 1 , n ≤ N n \le N n ≤ N and K 0 ≤ K K_0 \le K K 0 ≤ K .
⟨2⟩2. ∣ o a ′ − o a ∣ ≤ ε 0 / 4 |o'_a-o_a| \le\varepsilon_0/4 ∣ o a ′ − o a ∣ ≤ ε 0 /4 .
Proof: The logits of q a q_a q a change by at most η = K 0 ( λ − λ ′ ) ≤ ε 0 / 12 \eta= K_0(\lambda-\lambda') \le\varepsilon_0/12 η = K 0 ( λ − λ ′ ) ≤ ε 0 /12 , and Lemma 2.3 gives e 2 η − 1 ≤ 3 η e^{2\eta}-1 \le3\eta e 2 η − 1 ≤ 3 η because η ≤ 1 / 4 \eta\le1/4 η ≤ 1/4 .
⟨2⟩3. Let: E = z K 0 E = z^{K_0} E = z K 0 . Then o a ≥ 1 / ( 2 E ) ≥ 2 ε 0 o_a \ge1/(2E) \ge2\varepsilon_0 o a ≥ 1/ ( 2 E ) ≥ 2 ε 0 and ∣ o ^ a − o a ∣ ≤ ε 0 |\hat{o}_a-o_a| \le\varepsilon_0 ∣ o ^ a − o a ∣ ≤ ε 0 .
Proof: S a ≤ n E S_a \le nE S a ≤ n E gives o a ≥ 1 / ( 1 + E ) ≥ 1 / ( 2 E ) o_a \ge1/(1+E) \ge1/(2E) o a ≥ 1/ ( 1 + E ) ≥ 1/ ( 2 E ) , and 1 / ( 2 E ) = r K 0 / ( 2 ( r + 1 ) K 0 ) ≥ 2 ε 0 1/(2E) = r^{K_0}/(2(r+1)^{K_0}) \ge2\varepsilon_0 1/ ( 2 E ) = r K 0 / ( 2 ( r + 1 ) K 0 ) ≥ 2 ε 0 .
By ⟨2⟩1 and ⟨2⟩2, ∣ o ~ a − o a ∣ ≤ 3 ε 0 / 4 |\tilde{o}_a-o_a| \le3\varepsilon_0/4 ∣ o ~ a − o a ∣ ≤ 3 ε 0 /4 . Since o a ∈ [ ε 0 , 1 ] o_a \in[\varepsilon_0,1] o a ∈ [ ε 0 , 1 ] , replacing o ~ a \tilde{o}_a o ~ a by min { 1 , max { ε 0 , o ~ a } } \min\{1,\max\{\varepsilon_0,\tilde{o}_a\}\} min { 1 , max { ε 0 , o ~ a }} does not increase its distance to o a o_a o a , and rounding to a multiple of ε 0 / 8 \varepsilon_0/8 ε 0 /8 adds at most ε 0 / 16 \varepsilon_0/16 ε 0 /16 .
⟨2⟩4. ∣ n ( 1 / o ^ a − 1 ) − S a ∣ ≤ 1 / ( 4 r K 0 ) |n(1/\hat{o}_a-1)-S_a| \le1/(4r^{K_0}) ∣ n ( 1/ o ^ a − 1 ) − S a ∣ ≤ 1/ ( 4 r K 0 ) .
Proof: By ⟨2⟩3, o ^ a ≥ o a − ε 0 ≥ o a / 2 \hat{o}_a \ge o_a-\varepsilon_0 \ge o_a/2 o ^ a ≥ o a − ε 0 ≥ o a /2 , and S a = n / o a − n S_a=n/o_a-n S a = n / o a − n by ⟨1⟩6. So ∣ n / o ^ a − n / o a ∣ = n ∣ o a − o ^ a ∣ / ( o a o ^ a ) ≤ 2 n ε 0 / o a 2 ≤ 8 n ε 0 E 2 = 8 n ε 0 ( r + 1 ) 2 K 0 / r 2 K 0 = 1 / ( 4 r K 0 ) |n/\hat{o}_a-n/o_a|=n|o_a-\hat{o}_a|/(o_a\hat{o}_a)\le2n\varepsilon_0/o_a^2\le8n\varepsilon_0E^2=8n\varepsilon_0(r+1)^{2K_0}/r^{2K_0}=1/(4r^{K_0}) ∣ n / o ^ a − n / o a ∣ = n ∣ o a − o ^ a ∣/ ( o a o ^ a ) ≤ 2 n ε 0 / o a 2 ≤ 8 n ε 0 E 2 = 8 n ε 0 ( r + 1 ) 2 K 0 / r 2 K 0 = 1/ ( 4 r K 0 ) .
⟨2⟩5. Q.E.D.
Proof: Multiply ⟨2⟩4 by r K 0 r^{K_0} r K 0 : the real number r K 0 n ( 1 / o ^ a − 1 ) r^{K_0}n(1/\hat{o}_a-1) r K 0 n ( 1/ o ^ a − 1 ) is within 1 / 4 1/4 1/4 of the integer X a X_a X a .
⟨1⟩8. Let: the algorithm run L = 4 L=4 L = 4 rounds. In each round it draws B ′ B' B ′ by keeping every b ′ ∈ B b' \in B b ′ ∈ B independently with probability 1 / 2 1/2 1/2 , runs A \mathcal{A} A on I ( B ′ ) I(B') I ( B ′ ) independently R = ⌈ 18 ln 40 ⌉ R=\lceil18\ln40\rceil R = ⌈ 18 ln 40 ⌉ times, takes the coordinatewise median o ~ \tilde{o} o ~ , computes o ^ a \hat{o}_a o ^ a and X a X_a X a as in ⟨1⟩7 and ρ a = X a ⋅ ( r K 0 ) − 1 m o d ( r + 1 ) \rho_a=X_a\cdot(r^{K_0})^{-1}\mathbin{\bmod}(r+1) ρ a = X a ⋅ ( r K 0 ) − 1 mod ( r + 1 ) for every a a a . It answers YES if some ρ a ≠ 0 \rho_a\ne0 ρ a = 0 in some round, and NO otherwise. It errs with probability at most 1 / 3 1/3 1/3 .
⟨2⟩1. In each round, with probability at least 39 / 40 39/40 39/40 , the median satisfies the hypothesis of ⟨1⟩7, and then ρ a = N a m o d ( r + 1 ) \rho_a=N_a\mathbin{\bmod}(r+1) ρ a = N a mod ( r + 1 ) for all a a a .
Proof: Each run satisfies ∥ ⋅ − o ′ ∥ ∞ ≤ ε \lVert\cdot-o'\rVert_\infty\le\varepsilon ∥ ⋅ − o ′ ∥ ∞ ≤ ε with probability at least 2 / 3 2/3 2/3 . By Hoeffding’s inequality, at least half of the runs fail with probability at most e − R / 18 ≤ 1 / 40 e^{-R/18}\le1/40 e − R /18 ≤ 1/40 . Otherwise, in every coordinate more than half of the values lie within ε \varepsilon ε of o ′ o' o ′ , and so does their median. Then ⟨1⟩7 and ⟨1⟩6 give X a ≡ r K 0 N a X_a\equiv r^{K_0}N_a X a ≡ r K 0 N a , and r K 0 r^{K_0} r K 0 is invertible modulo r + 1 r+1 r + 1 since gcd ( r , r + 1 ) = 1 \gcd(r,r+1)=1 g cd( r , r + 1 ) = 1 .
⟨2⟩2. If ( A , B ) (A,B) ( A , B ) has no orthogonal pair, the algorithm answers NO with probability at least 9 / 10 9/10 9/10 .
Proof: All N a = 0 N_a=0 N a = 0 ; by ⟨2⟩1, with probability at least 1 − 4 / 40 1-4/40 1 − 4/40 every ρ a \rho_a ρ a in every round is 0 0 0 .
⟨2⟩3. If ⟨ a ∗ , b ∗ ⟩ = 0 \langle a^*,b^*\rangle=0 ⟨ a ∗ , b ∗ ⟩ = 0 for some a ∗ ∈ A a^*\in A a ∗ ∈ A and b ∗ ∈ B b^*\in B b ∗ ∈ B , then in each round N a ∗ ≠ 0 ( m o d r + 1 ) N_{a^*}\ne0\pmod{r+1} N a ∗ = 0 ( mod r + 1 ) with probability at least 1 / 2 1/2 1/2 , independently of the other rounds.
Proof: Condition on the choices for all b ′ ≠ b ∗ b'\ne b^* b ′ = b ∗ . The two possible values of N a ∗ N_{a^*} N a ∗ differ by 1 1 1 , and at most one of them is divisible by r + 1 ≥ 2 r+1\ge2 r + 1 ≥ 2 .
⟨2⟩4. Q.E.D.
Proof: By ⟨2⟩2, the error on NO instances is at most 1 / 10 1/10 1/10 . On YES instances, by ⟨2⟩3 no round has N a ∗ ≠ 0 N_{a^*}\ne0 N a ∗ = 0 with probability at most 1 / 16 1/16 1/16 , and by ⟨2⟩1 some median is inaccurate with probability at most 1 / 10 1/10 1/10 ; otherwise ρ a ∗ ≠ 0 \rho_{a^*}\ne0 ρ a ∗ = 0 in some round. The error is at most 1 / 16 + 1 / 10 < 1 / 3 1/16+1/10<1/3 1/16 + 1/10 < 1/3 .
⟨1⟩9. The algorithm runs in time O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) .
Proof: Computing r ( N ) r(N) r ( N ) and w ( N ) w(N) w ( N ) takes time O ( n ) O(n) O ( n ) . Building the L L L instances takes time O ( n 3 / 2 poly ( log n ) ) O(n^{3/2}\operatorname{poly}(\log n)) O ( n 3/2 poly ( log n )) by ⟨1⟩4. The algorithm makes L R = O ( 1 ) LR=O(1) L R = O ( 1 ) calls of A \mathcal{A} A on instances of size N = 2 n N=2n N = 2 n , each in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . Reading their outputs, taking the medians by comparisons, and truncating each median to O ( log ( 1 / ε 0 ) ) O(\log(1/\varepsilon_0)) O ( log ( 1/ ε 0 )) bits before rounding cost O ( R ) O(R) O ( R ) times the length of the outputs, which is at most the running time of the calls. Computing λ ′ \lambda' λ ′ to O ( log 2 n ) O(\log^{2} n) O ( log 2 n ) bits takes poly ( log n ) \operatorname{poly}(\log n) poly ( log n ) time. Each o ^ a \widehat{o}_a o a is a multiple of ε 0 / 8 \varepsilon_0/8 ε 0 /8 in [ ε 0 , 1 + ε 0 ] [\varepsilon_0,1+\varepsilon_0] [ ε 0 , 1 + ε 0 ] , so the X a X_a X a and ρ a \rho_a ρ a take n poly ( log n ) n\operatorname{poly}(\log n) n poly ( log n ) operations on numbers of O ( K 0 log ( r + 1 ) + log n ) = O ( log 2 n ) O(K_0\log(r+1)+\log n)=O(\log^{2} n) O ( K 0 log ( r + 1 ) + log n ) = O ( log 2 n ) bits. The total is O ( n 2 − γ + n 3 / 2 poly ( log n ) ) = O ( n 2 − γ / 2 ) O(n^{2-\gamma}+n^{3/2}\operatorname{poly}(\log n))=O(n^{2-\gamma/2}) O ( n 2 − γ + n 3/2 poly ( log n )) = O ( n 2 − γ /2 ) , because γ < 1 \gamma<1 γ < 1 .
⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 10. Q.E.D.
Proof. ⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 8 and ⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 9 contradict the choice of c c c in ⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 1.
The polynomial method
Proposition 4.4 (Polynomial method). For all C ≥ 1 C\ge1 C ≥ 1 , β ≥ 1 \beta\ge1 β ≥ 1 and η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) there is κ = κ ( C , β , η ) > 0 \kappa=\kappa(C,\beta,\eta)>0 κ = κ ( C , β , η ) > 0 such that the following holds for all sufficiently large n n n . Every attention instance with n n n queries, n n n keys, dimension d ≤ C log n d\le C\log n d ≤ C log n , d v ≤ d d_v\le d d v ≤ d value coordinates and spread at most κ ln n \kappa\ln n κ ln n can be solved to precision n − β n^{-\beta} n − β deterministically with O ( n 1 + η ) O(n^{1+\eta}) O ( n 1 + η ) arithmetic operations on rationals of O ( log 2 n ) O(\log^{2} n) O ( log 2 n ) bits.
Proof. ⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 1. Let: A 0 = C / ln 2 + 3 A_0=C/\ln2+3 A 0 = C / ln 2 + 3 , choose γ 0 ∈ ( 0 , 1 ] \gamma_0\in(0,1] γ 0 ∈ ( 0 , 1 ] with γ 0 ln ( e A 0 / γ 0 ) ≤ η / 2 \gamma_0\ln(eA_0/\gamma_0)\le\eta/2 γ 0 ln ( e A 0 / γ 0 ) ≤ η /2 , and Let: κ = min { 1 / 4 , ( γ 0 / ( 2 e ) ) exp ( − ( β + 4 ) / γ 0 ) } \kappa=\min\{1/4,(\gamma_0/(2e))\exp(-(\beta+4)/\gamma_0)\} κ = min { 1/4 , ( γ 0 / ( 2 e )) exp ( − ( β + 4 ) / γ 0 )} , R = 2 κ ln n R=2\kappa\ln n R = 2 κ ln n and g = ⌈ γ 0 ln n ⌉ g=\lceil\gamma_0\ln n\rceil g = ⌈ γ 0 ln n ⌉ .
Proof: γ ln ( e A 0 / γ ) → 0 \gamma\ln(eA_0/\gamma)\to0 γ ln ( e A 0 / γ ) → 0 as γ → 0 \gamma\to0 γ → 0 , so γ 0 \gamma_0 γ 0 exists.
⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 2. Appending the coordinate − ⟨ q i , k 1 ⟩ -\langle q_i,k_1\rangle − ⟨ q i , k 1 ⟩ to each q i q_i q i and the coordinate 1 1 1 to each key gives an instance with the same outputs, dimension at most C log n + 1 C\log n+1 C log n + 1 , and all logits in [ − κ ln n , κ ln n ] [-\kappa\ln n,\kappa\ln n] [ − κ ln n , κ ln n ] .
Proof: The logits of row i i i become ℓ i j − ℓ i 1 \ell_{ij}-\ell_{i1} ℓ ij − ℓ i 1 , a shift that does not change π i j \pi_{ij} π ij , and they lie in [ − κ ln n , κ ln n ] [-\kappa\ln n,\kappa\ln n] [ − κ ln n , κ ln n ] because the spread is at most κ ln n \kappa\ln n κ ln n .
⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 3. Let: every entry of the shifted queries, of the keys and of the values be rounded to the nearest multiple of 2 − L 2^{-L} 2 − L , with L = ⌈ K 1 log n ⌉ L=\lceil K_1\log n\rceil L = ⌈ K 1 log n ⌉ for a constant K 1 K_1 K 1 depending on β \beta β and on the bit length of the input. For large n n n this changes every logit by at most n − β − 3 n^{-\beta-3} n − β − 3 , moves every output by at most 4 n − β − 3 4n^{-\beta-3} 4 n − β − 3 , and afterwards every entry is an integer multiple of 2 − L 2^{-L} 2 − L of absolute value at most n K 1 n^{K_1} n K 1 .
Proof: The input entries are rationals of O ( log n ) O(\log n) O ( log n ) bits, hence at most n K 2 n^{K_2} n K 2 in absolute value for a constant K 2 K_2 K 2 , and so are the shifted entries. A logit is a sum of at most C log n + 1 C\log n+1 C log n + 1 products, each of which changes by at most 2 n K 2 2 − L + 2 − 2 L 2n^{K_2}2^{-L}+2^{-2L} 2 n K 2 2 − L + 2 − 2 L ; with K 1 ≥ K 2 + β + 5 K_1\ge K_2+\beta+5 K 1 ≥ K 2 + β + 5 the total is at most n − β − 3 n^{-\beta-3} n − β − 3 . Lemma 2.3 bounds the effect of the logits by e 2 n − β − 3 − 1 ≤ 3 n − β − 3 e^{2n^{-\beta-3}}-1\le3n^{-\beta-3} e 2 n − β − 3 − 1 ≤ 3 n − β − 3 , and rounding the values moves each output by at most 2 − L ≤ n − β − 3 2^{-L}\le n^{-\beta-3} 2 − L ≤ n − β − 3 .
⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 4. Let: P g ( x ) = ∑ t < g x t / t ! P_g(x)=\sum_{t<g}x^t/t! P g ( x ) = ∑ t < g x t / t ! . For ∣ x ∣ ≤ R |x|\le R ∣ x ∣ ≤ R , ∣ P g ( x ) / e x − 1 ∣ ≤ e 2 R ( e R / g ) g ≤ n − β − 2 |P_g(x)/e^x-1|\le e^{2R}(eR/g)^g\le n^{-\beta-2} ∣ P g ( x ) / e x − 1∣ ≤ e 2 R ( e R / g ) g ≤ n − β − 2 for large n n n .
Proof: By Taylor’s theorem with Lagrange remainder, ∣ e x − P g ( x ) ∣ ≤ e R R g / g ! |e^x-P_g(x)|\le e^R R^g/g! ∣ e x − P g ( x ) ∣ ≤ e R R g / g ! ; divide by e x ≥ e − R e^x\ge e^{-R} e x ≥ e − R and use g ! ≥ ( g / e ) g g!\ge(g/e)^g g ! ≥ ( g / e ) g . Then e R / g ≤ 2 e κ / γ 0 < exp ( − ( β + 4 ) / γ 0 ) eR/g\le2e\kappa/\gamma_0<\exp(-(\beta+4)/\gamma_0) e R / g ≤ 2 e κ / γ 0 < exp ( − ( β + 4 ) / γ 0 ) , so ( e R / g ) g ≤ n − β − 4 (eR/g)^g\le n^{-\beta-4} ( e R / g ) g ≤ n − β − 4 , and e 2 R = n 4 κ ≤ n e^{2R}=n^{4\kappa}\le n e 2 R = n 4 κ ≤ n . All rounded logits lie in [ − R , R ] [-R,R] [ − R , R ] , because κ ln n + n − β − 3 ≤ R \kappa\ln n+n^{-\beta-3}\le R κ ln n + n − β − 3 ≤ R .
⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 5. Let: Φ q ( x ) = ( x α / α ! ) ∣ α ∣ < g \Phi_q(x)=(x^\alpha/\alpha!)_{|\alpha|<g} Φ q ( x ) = ( x α / α ! ) ∣ α ∣ < g and Φ k ( x ) = ( x α ) ∣ α ∣ < g \Phi_k(x)=(x^\alpha)_{|\alpha|<g} Φ k ( x ) = ( x α ) ∣ α ∣ < g , indexed by multi-indices α \alpha α with ∣ α ∣ < g |\alpha|<g ∣ α ∣ < g . Then P g ( ⟨ q , k ⟩ ) = ⟨ Φ q ( q ) , Φ k ( k ) ⟩ P_g(\langle q,k\rangle)=\langle\Phi_q(q),\Phi_k(k)\rangle P g (⟨ q , k ⟩) = ⟨ Φ q ( q ) , Φ k ( k )⟩ , and both vectors have r g = ( d ′ + g − 1 d ′ ) ≤ ( d ′ + g g ) r_g=\binom{d'+g-1}{d'}\le\binom{d'+g}{g} r g = ( d ′ d ′ + g − 1 ) ≤ ( g d ′ + g ) coordinates, where d ′ ≤ C log n + 1 d'\le C\log n+1 d ′ ≤ C log n + 1 is the dimension after ⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 2.
Proof: The multinomial theorem gives ⟨ q , k ⟩ t / t ! = ∑ ∣ α ∣ = t ∏ u ( q u k u ) α u / α u ! \langle q,k\rangle^t/t!=\sum_{|\alpha|=t}\prod_u(q_uk_u)^{\alpha_u}/\alpha_u! ⟨ q , k ⟩ t / t ! = ∑ ∣ α ∣ = t ∏ u ( q u k u ) α u / α u ! .
⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 6. r g ≤ ( e A 0 / γ 0 ) γ n η / 2 r_g\le(eA_0/\gamma_0)^\gamma n^{\eta/2} r g ≤ ( e A 0 / γ 0 ) γ n η /2 for all large n n n .
Proof: ( d ′ + g g ) ≤ ( e ( d ′ + g ) / g ) g \binom{d'+g}{g}\le(e(d'+g)/g)^g ( g d ′ + g ) ≤ ( e ( d ′ + g ) / g ) g , and ( d ′ + g ) / g ≤ ( ( C / ln 2 ) ln n + 1 + γ 0 ln n + 1 ) / ( γ 0 ln n ) ≤ A 0 / γ 0 (d'+g)/g\le((C/\ln2)\ln n+1+\gamma_0\ln n+1)/(\gamma_0\ln n)\le A_0/\gamma_0 ( d ′ + g ) / g ≤ (( C / ln 2 ) ln n + 1 + γ 0 ln n + 1 ) / ( γ 0 ln n ) ≤ A 0 / γ 0 for large n n n . So r g ≤ ( e A 0 / γ 0 ) γ 0 n η / 2 = ( e A 0 / γ 0 ) γ 0 n γ 0 ln ( e A 0 / γ 0 ) r_g\le(eA_0/\gamma_0)^{\gamma_0 n^{\eta/2}}=(eA_0/\gamma_0)^{\gamma_0}n^{\gamma_0\ln(eA_0/\gamma_0)} r g ≤ ( e A 0 / γ 0 ) γ 0 n η /2 = ( e A 0 / γ 0 ) γ 0 n γ 0 l n ( e A 0 / γ 0 ) .
⟨ 1 ⟩ \langle1\rangle ⟨ 1 ⟩ 7. Let: the algorithm compute Φ q ( q i ) \Phi_q(q_i) Φ q ( q i ) and Φ k ( k j ) \Phi_k(k_j) Φ k ( k j ) for the rounded vectors, then U = ∑ j Φ k ( k j ) v j T U=\sum_j\Phi_k(k_j)v_j^{\mathsf T} U = ∑ j Φ k ( k j ) v j T and u = ∑ j Φ k ( k j ) u=\sum_j\Phi_k(k_j) u = ∑ j Φ k ( k j ) , and output o ~ i = U T Φ q ( q i ) / ⟨ u , Φ q ( q i ) ⟩ \widetilde{o}_i=U^{\mathsf T}\Phi_q(q_i)/\langle u,\Phi_q(q_i)\rangle o i = U T Φ q ( q i ) / ⟨ u , Φ q ( q i )⟩ . It uses O ( n r g ( d ′ + d v ) ) = O ( n 1 + η ) O(nr_g(d'+d_v))=O(n^{1+\eta}) O ( n r g ( d ′ + d v )) = O ( n 1 + η ) arithmetic operations on rationals of O ( log 2 n ) O(\log^{2}n) O ( log 2 n ) bits. Proof: Each monomial of degree t ≥ 1 t \ge1 t ≥ 1 is a monomial of degree t − 1 t-1 t − 1 times one coordinate, so each vector takes O ( r g ) O(r_g) O ( r g ) operations after an O ( r g d ′ ) O(r_gd^{\prime}) O ( r g d ′ ) enumeration of the multi-indices; the products and sums take O ( n r g d v ) O(nr_gd_v) O ( n r g d v ) operations, and by ⟨ 1 ⟩ 6 \langle1\rangle6 ⟨ 1 ⟩ 6 the total is O ( n 1 + η ) O(n^{1+\eta}) O ( n 1 + η ) . By ⟨ 1 ⟩ 3 \langle1\rangle3 ⟨ 1 ⟩ 3 , a monomial of degree below g g g is an integer of O ( g log n ) O(g \log n) O ( g log n ) bits divided by 2 L ( g − 1 ) 2^{L(g-1)} 2 L ( g − 1 ) ; with the common denominator 2 L ( g − 1 ) ( g − 1 ) ! 2^{L(g-1)}(g-1)! 2 L ( g − 1 ) ( g − 1 )! for Φ q \Phi_q Φ q , and 2 L 2^L 2 L for the values, every number in the computation has a numerator of O ( g log n + log ( n r g ) ) = O ( log 2 n ) O(g \log n+\log(nr_g))=O(\log^2 n) O ( g log n + log ( n r g )) = O ( log 2 n ) bits.
⟨ 1 ⟩ 8 \langle1\rangle8 ⟨ 1 ⟩ 8 . Q.E.D.
Proof: By ⟨ 1 ⟩ 5 \langle1\rangle5 ⟨ 1 ⟩ 5 , ⟨ u , Φ q ( q i ) ⟩ = ∑ j P g ( ℓ i j ′ ) \langle u,\Phi_q(q_i)\rangle=\sum_j P_g(\ell'_{ij}) ⟨ u , Φ q ( q i )⟩ = ∑ j P g ( ℓ ij ′ ) and U ⊤ Φ q ( q i ) = ∑ j P g ( ℓ i j ′ ) v j ′ U^\top\Phi_q(q_i)=\sum_j P_g(\ell'_{ij})v'_j U ⊤ Φ q ( q i ) = ∑ j P g ( ℓ ij ′ ) v j ′ for the rounded logits ℓ ′ \ell' ℓ ′ and values v ′ v' v ′ , so o ~ i \tilde{o}_i o ~ i is the average of the v j ′ v'_j v j ′ with weights P g ( ℓ i j ′ ) P_g(\ell'_{ij}) P g ( ℓ ij ′ ) . By $\langle 1\rangle4 these weights are e ℓ i j ′ e^{\ell'_{ij}} e ℓ ij ′ times factors in [ 1 − n − β − 2 , 1 + n − β − 2 ] [1-n^{-\beta-2},1+n^{-\beta-2}] [ 1 − n − β − 2 , 1 + n − β − 2 ] , which moves the average by at most $3n^{-\beta-2}$, as in Lemma 2.3. With ⟨ 1 ⟩ 3 \langle1\rangle3 ⟨ 1 ⟩ 3 , the total error is at most 3 n − β − 2 + 4 n − β − 3 ≤ n − β 3n^{-\beta-2}+4n^{-\beta-3}\le n^{-\beta} 3 n − β − 2 + 4 n − β − 3 ≤ n − β .
Dimension matters at high precision
Proposition 4.6 (Polynomial method in higher dimension). Let C > 1 C>1 C > 1 , β ≥ 1 \beta\ge1 β ≥ 1 and η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) with 4 ( β + 5 ) ( C − 1 ) < η 4(\beta+5)(C-1)<\eta 4 ( β + 5 ) ( C − 1 ) < η , and let a ∈ ( 4 ( β + 5 ) ( C − 1 ) / η , 1 ] a\in(4(\beta+5)(C-1)/\eta,1] a ∈ ( 4 ( β + 5 ) ( C − 1 ) / η , 1 ] . For all sufficiently large n n n , every attention instance with n n n queries, n n n keys, dimension d ≤ ( log n ) C d\le(\log n)^C d ≤ ( log n ) C , d v ≤ d d_v\le d d v ≤ d value coordinates and spread at most ( log n ) 1 − a (\log n)^{1-a} ( log n ) 1 − a can be solved to precision n − β n^{-\beta} n − β deterministically with O ( n 1 + η ) O(n^{1+\eta}) O ( n 1 + η ) arithmetic operations on rationals of O ( log 2 n ) O(\log^2 n) O ( log 2 n ) bits.
Proof. ⟨ 1 ⟩ 1 \langle1\rangle1 ⟨ 1 ⟩ 1 . Let: γ 1 = 2 ( β + 5 ) / a \gamma_1=2(\beta+5)/a γ 1 = 2 ( β + 5 ) / a , R = ( log n ) 1 − a + 1 R=(\log n)^{1-a}+1 R = ( log n ) 1 − a + 1 and g = ⌈ γ 1 ln n / ln ln n ⌉ g=\lceil\gamma_1\ln n/\ln\ln n\rceil g = ⌈ γ 1 ln n / ln ln n ⌉ , and assume n n n is large.
⟨ 1 ⟩ 2 \langle1\rangle2 ⟨ 1 ⟩ 2 . Steps ⟨ 1 ⟩ 2 \langle1\rangle2 ⟨ 1 ⟩ 2 , ⟨ 1 ⟩ 3 \langle1\rangle3 ⟨ 1 ⟩ 3 , ⟨ 1 ⟩ 5 \langle1\rangle5 ⟨ 1 ⟩ 5 , ⟨ 1 ⟩ 7 \langle1\rangle7 ⟨ 1 ⟩ 7 and ⟨ 1 ⟩ 8 \langle1\rangle8 ⟨ 1 ⟩ 8 of the proof of Proposition 4.4 hold with d ′ ≤ ( log n ) C + 1 d'\le(\log n)^C+1 d ′ ≤ ( log n ) C + 1 , with R R R and g g g as in ⟨ 1 ⟩ 1 \langle1\rangle1 ⟨ 1 ⟩ 1 , with the spread bound ( log n ) 1 − a (\log n)^{1-a} ( log n ) 1 − a in place of κ ln n \kappa\ln n κ ln n , and with steps ⟨ 1 ⟩ 2 \langle1\rangle2 ⟨ 1 ⟩ 2 and ⟨ 1 ⟩ 3 \langle1\rangle3 ⟨ 1 ⟩ 3 there carried out in the opposite order, provided that ∣ P g ( x ) / e x − 1 ∣ ≤ n − β − 2 \lvert P_g(x)/e^x-1\rvert\le n^{-\beta-2} ∣ P g ( x ) / e x − 1 ∣ ≤ n − β − 2 for ∣ x ∣ ≤ R \lvert x\rvert\le R ∣ x ∣ ≤ R and r g ≤ n η / 2 r_g\le n^{\eta/2} r g ≤ n η /2 .
Proof: First every entry of the queries, keys and values is rounded to the nearest multiple of $2^{-L}, a s i n s t e p , as in step , a s in s t e p \langle 1\rangle3 there; the input entries are rationals of O ( log n ) O(\log n) O ( log n ) bits, hence at most n K 2 n^{K_2} n K 2 in absolute value. A logit is a sum of at most ( log n ) C (\log n)^C ( log n ) C products, and ( log n ) C ( 2 n K 2 − K 1 + n − 2 K 1 ) ≤ n − β − 3 (\log n)^C(2n^{K_2-K_1}+n^{-2K_1})\le n^{-\beta-3} ( log n ) C ( 2 n K 2 − K 1 + n − 2 K 1 ) ≤ n − β − 3 for large n n n when K 1 ≥ K 2 + β + 5 K_1\ge K_2+\beta+5 K 1 ≥ K 2 + β + 5 ; so every logit moves by at most n − β − 3 n^{-\beta-3} n − β − 3 and every output by at most 4 n − β − 3 4n^{-\beta-3} 4 n − β − 3 . Then the coordinate − ⟨ q ~ i , k ~ 1 ⟩ -\langle\tilde{q}_i,\tilde{k}_1\rangle − ⟨ q ~ i , k ~ 1 ⟩ of the rounded vectors is appended to each query and 1 1 1 to each key, as in step $\langle 1\rangle2 there. This coordinate is a multiple of 2 − 2 L 2^{-2L} 2 − 2 L of absolute value n O ( 1 ) n^{O(1)} n O ( 1 ) , the shift preserves the outputs of the rounded instance, and every shifted logit lies within ( log n ) 1 − a + 2 n − β − 3 ≤ R (\log n)^{1-a}+2n^{-\beta-3}\le R ( log n ) 1 − a + 2 n − β − 3 ≤ R of 0 0 0 . Step ⟨ 1 ⟩ 5 \langle1\rangle5 ⟨ 1 ⟩ 5 holds in every dimension. Step ⟨ 1 ⟩ 7 \langle1\rangle7 ⟨ 1 ⟩ 7 uses O ( n r g ( d ′ + d v ) ) = O ( n 1 + η / 2 ( log n ) C ) = O ( n 1 + η ) O(nr_g(d'+d_v))=O(n^{1+\eta/2}(\log n)^C)=O(n^{1+\eta}) O ( n r g ( d ′ + d v )) = O ( n 1 + η /2 ( log n ) C ) = O ( n 1 + η ) operations; with the grid 2 − 2 L 2^{-2L} 2 − 2 L in place of 2 − L 2^{-L} 2 − L , a monomial of degree below g g g is an integer of O ( g log n ) O(g\log n) O ( g log n ) bits divided by 2 2 L ( g − 1 ) 2^{2L(g-1)} 2 2 L ( g − 1 ) , so every number has O ( g log n + log ( n r g ) ) = O ( log 2 n ) O(g\log n+\log(nr_g))=O(\log^2 n) O ( g log n + log ( n r g )) = O ( log 2 n ) bits. Step $\langle 1\rangle8 uses the Taylor bound of the proviso, the containment of the shifted rounded logits in [ − R , R ] [-R,R] [ − R , R ] , and the rounding bound.
⟨ 1 ⟩ 3 \langle1\rangle3 ⟨ 1 ⟩ 3 . For ∣ x ∣ ≤ R \lvert x\rvert\le R ∣ x ∣ ≤ R , ∣ P g ( x ) / e x − 1 ∣ ≤ e 2 R ( e R / g ) g ≤ n − β − 2 \lvert P_g(x)/e^x-1\rvert\le e^{2R}(eR/g)^g\le n^{-\beta-2} ∣ P g ( x ) / e x − 1 ∣ ≤ e 2 R ( e R / g ) g ≤ n − β − 2 .
Proof: The first inequality is shown in step ⟨ 1 ⟩ 4 o f t h e p r o o f o f x r e f ‘ P r o p o s i t i o n 4.4 ‘ . S i n c e \langle1\rangle4 of the proof of {xref}`Proposition 4.4`. Since ⟨ 1 ⟩ 4 o f t h e p r oo f o f x r e f ‘ P r o p os i t i o n 4.4‘. S in ce a>0$, e 2 R = e 2 ( log n ) 1 − a + 2 ≤ n e^{2R}=e^{2(\log n)^{1-a}+2}\le n e 2 R = e 2 ( l o g n ) 1 − a + 2 ≤ n for large n n n . Since a ≤ 1 a\le1 a ≤ 1 , R ≤ 2 ( log n ) 1 − a R\le2(\log n)^{1-a} R ≤ 2 ( log n ) 1 − a , and with ln n = ln 2 ⋅ log 2 n \ln n=\ln2\cdot\log_2 n ln n = ln 2 ⋅ log 2 n ,
g e R ≥ γ 1 ln 2 2 e ( log n ) a ln ln n . \frac{g}{eR}\ge\frac{\gamma_1\ln2}{2e}\frac{(\log n)^a}{\ln\ln n}. e R g ≥ 2 e γ 1 ln 2 ln ln n ( log n ) a .
As ln log n ≥ ln ln n \ln\log n\ge\ln\ln n ln log n ≥ ln ln n , this gives ln ( g / ( e R ) ) ≥ a ln ln n − ln ln ln n + ln ( γ 1 ln 2 / ( 2 e ) ) ≥ ( a / 2 ) ln ln n \ln(g/(eR))\ge a\ln\ln n-\ln\ln\ln n+\ln(\gamma_1\ln2/(2e))\ge(a/2)\ln\ln n ln ( g / ( e R )) ≥ a ln ln n − ln ln ln n + ln ( γ 1 ln 2/ ( 2 e )) ≥ ( a /2 ) ln ln n for large n n n , and so g ln ( g / ( e R ) ) ≥ ( γ 1 ln n / ln ln n ) ( a / 2 ) ln ln n = ( β + 5 ) ln n g\ln(g/(eR))\ge(\gamma_1\ln n/\ln\ln n)(a/2)\ln\ln n=(\beta+5)\ln n g ln ( g / ( e R )) ≥ ( γ 1 ln n / ln ln n ) ( a /2 ) ln ln n = ( β + 5 ) ln n . Hence ( e R / g ) g ≤ n − β − 5 (eR/g)^g\le n^{-\beta-5} ( e R / g ) g ≤ n − β − 5 and e 2 R ( e R / g ) g ≤ n − β − 4 e^{2R}(eR/g)^g\le n^{-\beta-4} e 2 R ( e R / g ) g ≤ n − β − 4 . ⟨1⟩4. r g ≤ n η / 2 r_g \le n^{\eta/2} r g ≤ n η /2 .
Proof: r g = ( d ′ + g − 1 g − 1 ) ≤ ( e ( d ′ + g − 1 ) / ( g − 1 ) ) g − 1 r_g = \binom{d' + g - 1}{g - 1} \le\left(e(d' + g - 1)/(g - 1)\right)^{g-1} r g = ( g − 1 d ′ + g − 1 ) ≤ ( e ( d ′ + g − 1 ) / ( g − 1 ) ) g − 1 . For large n n n , g − 1 ≥ γ 1 ln n / ( 2 ln ln n ) g - 1 \ge\gamma_1 \ln n/(2\ln\ln n) g − 1 ≥ γ 1 ln n / ( 2 ln ln n ) and d ′ ≤ 2 ( log n ) C d' \le2(\log n)^C d ′ ≤ 2 ( log n ) C , so
d ′ + g − 1 g − 1 = 1 + d ′ g − 1 ≤ 1 + 4 ( log n ) C ln ln n γ 1 ln n ≤ ( 1 + 6 γ 1 ) ( log n ) C − 1 ln n . \frac{d' + g - 1}{g - 1} = 1 + \frac{d'}{g - 1} \le1 + \frac{4(\log n)^C \ln\ln n}{\gamma_1 \ln n} \le\left(1 + \frac{6}{\gamma_1}\right)(\log n)^{C-1}\ln n. g − 1 d ′ + g − 1 = 1 + g − 1 d ′ ≤ 1 + γ 1 ln n 4 ( log n ) C ln ln n ≤ ( 1 + γ 1 6 ) ( log n ) C − 1 ln n .
With g − 1 ≤ γ 1 ln n / ln ln n g - 1 \le\gamma_1 \ln n/\ln\ln n g − 1 ≤ γ 1 ln n / ln ln n and ln log n ≤ ln ln n + 1 \ln\log n \le\ln\ln n + 1 ln log n ≤ ln ln n + 1 ,
ln r g ≤ γ 1 ln n ln ln n ( ( C − 1 ) ( ln ln n + 1 ) + ln ln ln n + 1 + ln ( 1 + 6 / γ 1 ) ) = γ 1 ( C − 1 ) ln n + o ( ln n ) . \ln r_g \le\frac{\gamma_1 \ln n}{\ln\ln n}\left((C-1)(\ln\ln n+1)+\ln\ln\ln n+1+\ln(1+6/\gamma_1)\right)=\gamma_1(C-1)\ln n+o(\ln n). ln r g ≤ ln ln n γ 1 ln n ( ( C − 1 ) ( ln ln n + 1 ) + ln ln ln n + 1 + ln ( 1 + 6/ γ 1 ) ) = γ 1 ( C − 1 ) ln n + o ( ln n ) .
Since γ 1 ( C − 1 ) = 2 ( β + 5 ) ( C − 1 ) / a < η / 2 \gamma_1(C-1)=2(\beta+5)(C-1)/a<\eta/2 γ 1 ( C − 1 ) = 2 ( β + 5 ) ( C − 1 ) / a < η /2 by the choice of a a a , r g ≤ n η / 2 r_g\le n^{\eta/2} r g ≤ n η /2 for large n n n .
⟨1⟩5. Q.E.D.
Proof: By ⟨1⟩2, ⟨1⟩3 and ⟨1⟩4.
Proofs for Section 5
Imported Theorem 2.7 (Williams [45 ] ). A CNF formula with N N N variables, N N N even, and M M M clauses can be transformed in time 2 N / 2 poly ( N , M ) 2^{N/2}\operatorname{poly}(N,M) 2 N /2 poly ( N , M ) into an instance of O V n , M OV_{n,M} O V n , M with n = 2 N / 2 n=2^{N/2} n = 2 N /2 that has an orthogonal pair if and only if the formula is satisfiable.
Proof. ⟨1⟩1. Let: the variables be split into halves X X X and Y Y Y . For x ∈ { 0 , 1 } X x\in\{0,1\}^{X} x ∈ { 0 , 1 } X Let: a x ∈ { 0 , 1 } M a_x\in\{0,1\}^{M} a x ∈ { 0 , 1 } M have a x [ C ] = 1 a_x[C]=1 a x [ C ] = 1 if and only if x x x satisfies no literal of clause C C C over X X X ; define b y b_y b y for y ∈ { 0 , 1 } Y y\in\{0,1\}^{Y} y ∈ { 0 , 1 } Y in the same way.
⟨1⟩2. ( x , y ) (x,y) ( x , y ) satisfies the formula if and only if ⟨ a x , b y ⟩ = 0 \langle a_x,b_y\rangle=0 ⟨ a x , b y ⟩ = 0 .
Proof: ( x , y ) (x,y) ( x , y ) falsifies C C C if and only if x x x satisfies no literal of C C C over X X X and y y y none over Y Y Y , that is, a x [ C ] = b y [ C ] = 1 a_x[C]=b_y[C]=1 a x [ C ] = b y [ C ] = 1 .
⟨1⟩3. Q.E.D.
Proof: The lists ( a x ) x (a_x)_x ( a x ) x and ( b y ) y (b_y)_y ( b y ) y have 2 N / 2 2^{N/2} 2 N /2 entries each, repetitions included, and are computed in time 2 N / 2 poly ( N , M ) 2^{N/2}\operatorname{poly}(N,M) 2 N /2 poly ( N , M ) .
CNF-SETH in polylogarithmic dimension
Proposition 5.1 (CNF-SETH, exact embedding). Assume Hypothesis 2.5. For every γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) there is C ≥ 1 C\ge1 C ≥ 1 such that, with d = ⌈ ( log n ) C ⌉ d=\lceil(\log n)^C\rceil d = ⌈( log n ) C ⌉ , the problem A T T ( n , d , d ln ( 16 n ) , 1 / 6 ) ATT(n,d,d\ln(16n),1/6) A T T ( n , d , d ln ( 16 n ) , 1/6 ) cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . This holds already for d v = 1 d_v=1 d v = 1 and values in { 0 , 1 } \{0,1\} { 0 , 1 } .
Proof. ⟨1⟩1. Let: c 0 c_0 c 0 be the constant of Hypothesis 2.5 for γ / 2 \gamma/2 γ /2 , and C = c 0 + 1 C=c_0+1 C = c 0 + 1 . Assume: an algorithm A \mathcal{A} A solves A T T ( n , ⌈ ( log n ) C ⌉ , ⌈ ( log n ) C ⌉ ln ( 16 n ) , 1 / 6 ) ATT(n,\lceil(\log n)^C\rceil,\lceil(\log n)^C\rceil\ln(16n),1/6) A T T ( n , ⌈( log n ) C ⌉ , ⌈( log n ) C ⌉ ln ( 16 n ) , 1/6 ) in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . Prove: CNF formulas with N N N variables and at most N c 0 N^{c_0} N c 0 clauses can be decided in time O ( 2 ( 1 − γ / 2 ) N ) O(2^{(1-\gamma/2)N}) O ( 2 ( 1 − γ /2 ) N ) .
⟨1⟩2. Let: F F F have N N N variables, N N N even after adding a dummy variable, and M ≤ N c 0 M\le N^{c_0} M ≤ N c 0 clauses, and Let: ( A , B ) (A,B) ( A , B ) be the instance of O V n , M OV_{n,M} O V n , M of Imported Theorem 2.7, n = 2 N / 2 n=2^{N/2} n = 2 N /2 . Then M ≤ ( 2 log n ) c 0 M\le(2\log n)^{c_0} M ≤ ( 2 log n ) c 0 .
⟨1⟩3. Let: λ = ⌈ 10 ln ( 14 n ) ⌉ / 10 \lambda=\lceil10\ln(14n)\rceil/10 λ = ⌈ 10 ln ( 14 n )⌉ /10 . Let: the instance I I I have the queries q a = ( − λ a , − 11 / 10 ) q_a=(-\lambda a,-11/10) q a = ( − λa , − 11/10 ) for a ∈ A a\in A a ∈ A and one zero query, the keys k b = ( b , 0 ) k_b=(b,0) k b = ( b , 0 ) with value 1 1 1 for b ∈ B b\in B b ∈ B , and the key k ∗ = ( 0 , 1 ) k^*=(0,1) k ∗ = ( 0 , 1 ) with value 0. Its size is n + 1 n + 1 n + 1 , its dimension M + 1 ≤ ⌈ ( log ( n + 1 ) ) C ⌉ M + 1 \le\lceil(\log(n + 1))^C\rceil M + 1 ≤ ⌈( log ( n + 1 ) ) C ⌉ for large n n n , and its spread at most ( M + 1 ) ln ( 16 n ) (M + 1)\ln(16n) ( M + 1 ) ln ( 16 n ) .
Proof. The logits of q a q_a q a are − λ ⟨ a , b ⟩ ∈ [ − λ M , 0 ] -\lambda\langle a,b\rangle\in[-\lambda M,0] − λ ⟨ a , b ⟩ ∈ [ − λ M , 0 ] and − 11 / 10 -11/10 − 11/10 , and λ M ≤ M ( ln ( 14 n ) + 1 / 10 ) ≤ M ln ( 16 n ) \lambda M \le M(\ln(14n)+1/10) \le M\ln(16n) λ M ≤ M ( ln ( 14 n ) + 1/10 ) ≤ M ln ( 16 n ) , as ln ( 16 / 14 ) > 1 / 10 \ln(16/14)>1/10 ln ( 16/14 ) > 1/10 . The zero query has all logits 0 0 0 . Finally ( 2 log n ) c 0 + 1 ≤ ( log n ) c 0 + 1 (2\log n)^{c_0}+1 \le(\log n)^{c_0+1} ( 2 log n ) c 0 + 1 ≤ ( log n ) c 0 + 1 for large n n n .
⟨1⟩4. If a a a has an orthogonal partner in B B B , its output is at least 3 / 4 3/4 3/4 ; otherwise at most 1 / 4 1/4 1/4 .
Proof. The output is S a / ( S a + e − 11 / 10 ) S_a/(S_a+e^{-11/10}) S a / ( S a + e − 11/10 ) with S a = ∑ b e − λ ⟨ a , b ⟩ S_a=\sum_b e^{-\lambda\langle a,b\rangle} S a = ∑ b e − λ ⟨ a , b ⟩ . An orthogonal partner gives S a ≥ 1 S_a\ge1 S a ≥ 1 and output at least 1 / ( 1 + e − 11 / 10 ) > 3 / 4 1/(1+e^{-11/10})>3/4 1/ ( 1 + e − 11/10 ) > 3/4 . Otherwise S a ≤ n e − λ ≤ n e − ln ( 14 n ) S_a\le ne^{-\lambda}\le ne^{-\ln(14n)} S a ≤ n e − λ ≤ n e − l n ( 14 n ) , and the output is at most S a e 11 / 10 ≤ e 11 / 10 / 14 < 1 / 4 S_ae^{11/10}\le e^{11/10}/14<1/4 S a e 11/10 ≤ e 11/10 /14 < 1/4 .
⟨1⟩5. Q.E.D.
Proof. Run A \mathcal{A} A once on I I I and answer YES if and only if some q a q_a q a receives an output above 1 / 2 1/2 1/2 . By ⟨1⟩4 and Imported Theorem 2.7 the answer is correct with probability at least 2 / 3 2/3 2/3 . The time is 2 N / 2 poly ( N ) + O ( ( n + 1 ) 2 − γ ) = O ( 2 ( 1 − γ / 2 ) N ) 2^{N/2}\operatorname{poly}(N)+O((n+1)2^{-\gamma})=O(2^{(1-\gamma/2)N}) 2 N /2 poly ( N ) + O (( n + 1 ) 2 − γ ) = O ( 2 ( 1 − γ /2 ) N ) , contradicting the choice of c 0 c_0 c 0 .
Clause exponent below two
Lemma 5.2 (Gap instances from MA protocols). Let m ≥ s ≥ 2 m\ge s\ge2 m ≥ s ≥ 2 and k ≥ 1 k\ge1 k ≥ 1 be integers, and let p p p , ρ \rho ρ and ℓ \ell ℓ be the lengths of Merlin’s proof, of the coins and of Bob’s message in the protocol of Imported Theorem 2.9 for ( m , s ) (m,s) ( m , s ) . There is a map from instances ( A , B ) (A,B) ( A , B ) of O V n , m \mathrm{OV}_{n,m} OV n , m to 2 p 2^p 2 p instances of Boolean Max-IP, each with n n n vectors per side in dimension 2 k ( ρ + ℓ ) 2^{k(\rho+\ell)} 2 k ( ρ + ℓ ) , such that with T k = 2 k ρ T_k=2^{k\rho} T k = 2 k ρ :
(i) every inner product lies in [ 0 , T k ] [0,T_k] [ 0 , T k ] ;
(ii) if ( A , B ) (A,B) ( A , B ) has an orthogonal pair, some instance has a pair with inner product T k T_k T k ;
(iii) otherwise every inner product is at most 2 − k T k 2^{-k}T_k 2 − k T k .
The map takes time 2 p + k ( ρ + ℓ ) n k poly ( m ) 2^{p+k(\rho+\ell)}nk\operatorname{poly}(m) 2 p + k ( ρ + ℓ ) nk poly ( m ) .
Proof. ⟨1⟩1. Pad Merlin’s proof, the coins and Bob’s message of the protocol of Imported Theorem 2.9 to exactly p p p , ρ \rho ρ and ℓ \ell ℓ bits, and LET: ν ( b , w ) \nu(b,w) ν ( b , w ) be Bob’s message on input b b b and coins w w w .
LET: the k k k -fold protocol use coins w = ( w 1 , … , w k ) ∈ { 0 , 1 } k ρ w=(w_1,\ldots,w_k)\in\{0,1\}^{k\rho} w = ( w 1 , … , w k ) ∈ { 0 , 1 } k ρ , LET: Bob send ν k ( b , w ) = ( ν ( b , w 1 ) , … , ν ( b , w k ) ) \nu_k(b,w)=(\nu(b,w_1),\ldots,\nu(b,w_k)) ν k ( b , w ) = ( ν ( b , w 1 ) , … , ν ( b , w k )) , and LET: Alice accept on proof μ \mu μ if and only if she accepts every pair ( w i , ν ( b , w i ) ) (w_i,\nu(b,w_i)) ( w i , ν ( b , w i )) in the original protocol. Then disjoint inputs have a proof that is accepted for all coins, and for intersecting inputs every proof is accepted with probability at most 2 − k 2^{-k} 2 − k .
Proof. Unused coins do not change acceptance probabilities. For a fixed proof, the k k k checks use independent coins, so the acceptance probabilities multiply.
⟨1⟩2. For μ ∈ { 0 , 1 } p \mu\in\{0,1\}^p μ ∈ { 0 , 1 } p and a ∈ A a\in A a ∈ A LET: x μ , a ∈ { 0 , 1 } { 0 , 1 } k ρ × { 0 , 1 } k ℓ x_{\mu,a}\in\{0,1\}^{\{0,1\}^{k\rho}\times\{0,1\}^{k\ell}} x μ , a ∈ { 0 , 1 } { 0 , 1 } k ρ × { 0 , 1 } k ℓ have x μ , a [ w , ζ ] = 1 x_{\mu,a}[w,\zeta]=1 x μ , a [ w , ζ ] = 1 if and only if Alice accepts on input a a a , proof μ \mu μ , coins w w w and message ζ \zeta ζ . For b ∈ B b\in B b ∈ B LET: y b [ w , ζ ] = 1 y_b[w,\zeta]=1 y b [ w , ζ ] = 1 if and only if ζ = ν k ( b , w ) \zeta=\nu_k(b,w) ζ = ν k ( b , w ) . Instance μ \mu μ is ( ( x μ , a ) a ∈ A , ( y b ) b ∈ B ) ((x_{\mu,a})_{a\in A},(y_b)_{b\in B}) (( x μ , a ) a ∈ A , ( y b ) b ∈ B ) .
⟨1⟩3. ⟨ x μ , a , y b ⟩ \langle x_{\mu,a},y_b\rangle ⟨ x μ , a , y b ⟩ equals the number of coin strings w w w on which Alice accepts a a a , b b b and μ \mu μ .
Proof. For each w w w , the vector y b y_b y b has exactly one 1 1 1 in block w w w , at ζ = ν k ( b , w ) \zeta=\nu_k(b,w) ζ = ν k ( b , w ) .
⟨1⟩4. Q.E.D.
Proof. By ⟨1⟩3, every inner product is an integer in [ 0 , 2 k ρ ] [0,2^{k\rho}] [ 0 , 2 k ρ ] , which is (i). By ⟨1⟩1, an orthogonal pair ( a , b ) (a,b) ( a , b ) has a proof μ \mu μ with inner product 2 k ρ 2^{k\rho} 2 k ρ , which is (ii), and if there is no orthogonal pair every inner product is at most 2 − k 2 k ρ 2^{-k}2^{k\rho} 2 − k 2 k ρ , which is (iii). Each of the 2 k ( ρ + ℓ ) 2^{k(\rho+\ell)} 2 k ( ρ + ℓ ) coordinates of each of the ( 2 p + 1 ) n (2^p+1)n ( 2 p + 1 ) n vectors needs k k k evaluations of the protocol’s predicates, each computable in time poly ( m ) \operatorname{poly}(m) poly ( m ) .
Theorem 5.3 (Clause exponent below two). Assume CNF-SETHc 0 _{c_0} c 0 for some c 0 < 2 c_0 < 2 c 0 < 2 . For all γ ∈ ( 0 , 1 ) \gamma\in(0,1) γ ∈ ( 0 , 1 ) , θ ∈ ( 0 , 1 ] \theta\in(0,1] θ ∈ ( 0 , 1 ] and ε ∈ ( 0 , 1 / 2 ) \varepsilon\in(0,1/2) ε ∈ ( 0 , 1/2 ) there is K ≥ 1 K \ge1 K ≥ 1 such that ATT ( n , d ( n ) , ( 1 + θ ) ln n , ε ) \operatorname{ATT}(n,d(n),(1+\theta)\ln n,\varepsilon) ATT ( n , d ( n ) , ( 1 + θ ) ln n , ε ) with d ( n ) = ⌈ 2 K ( log n ) c 0 − 1 ( log log n ) 2 ⌉ = n o ( 1 ) d(n)=\lceil2^{K(\log n)^{c_0-1}(\log\log n)^2}\rceil=n^{o(1)} d ( n ) = ⌈ 2 K ( l o g n ) c 0 − 1 ( l o g l o g n ) 2 ⌉ = n o ( 1 ) cannot be solved in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . This holds already for instances with d v = 1 d_v=1 d v = 1 , values in { 0 , 1 } \{0,1\} { 0 , 1 } , and all logits in [ 0 , ( 1 + θ ) ln n ] [0,(1+\theta)\ln n] [ 0 , ( 1 + θ ) ln n ] .
Proof. ⟨1⟩1. Let: D = ⌈ ( 2 log n ) c 0 ⌉ D=\lceil(2\log n)^{c_0}\rceil D = ⌈( 2 log n ) c 0 ⌉ . Then OV n , D \operatorname{OV}_{n,D} OV n , D cannot be solved in time O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) .
Proof: An algorithm in time O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) would decide CNF formulas with N N N variables and at most N c 0 N^{c_0} N c 0 clauses in time O ( 2 ( 1 − γ / 4 ) N ) O(2^{(1-\gamma/4)N}) O ( 2 ( 1 − γ /4 ) N ) by Imported Theorem 2.7, contradicting CNF-SETHc 0 _{c_0} c 0 for γ / 4 \gamma/4 γ /4 .
⟨1⟩2. Let: k = ⌈ log ( 4 / θ ) ⌉ k=\lceil\log(4/\theta)\rceil k = ⌈ log ( 4/ θ )⌉ and s = ⌈ 8 a 1 D log D / ( γ log n ) ⌉ s=\lceil8a_1D\log D/(\gamma\log n)\rceil s = ⌈ 8 a 1 D log D / ( γ log n )⌉ . For large n n n , 2 ≤ s ≤ D 2\le s\le D 2 ≤ s ≤ D , Merlin’s proof has p ≤ ( γ / 8 ) log n p\le(\gamma/8)\log n p ≤ ( γ /8 ) log n bits, and k ( ρ + ℓ ) ≤ K 0 ( log n ) c 0 − 1 ( log log n ) 2 k(\rho+\ell)\le K_0(\log n)^{c_0-1}(\log\log n)^2 k ( ρ + ℓ ) ≤ K 0 ( log n ) c 0 − 1 ( log log n ) 2 for a constant K 0 K_0 K 0 depending on γ \gamma γ , θ \theta θ and c 0 c_0 c 0 .
Proof: D ≥ 2 log n D\ge2\log n D ≥ 2 log n , so D log D / log n → ∞ D\log D/\log n\to\infty D log D / log n → ∞ and log D = O ( log log n ) \log D=O(\log\log n) log D = O ( log log n ) ; hence 2 ≤ s ≤ D 2\le s\le D 2 ≤ s ≤ D for large n n n . By Imported Theorem 2.9, p ≤ a 1 ( D / s ) log s ≤ ( γ log n / ( 8 log D ) ) log s ≤ ( γ / 8 ) log n p\le a_1(D/s)\log s\le(\gamma\log n/(8\log D))\log s\le(\gamma/8)\log n p ≤ a 1 ( D / s ) log s ≤ ( γ log n / ( 8 log D )) log s ≤ ( γ /8 ) log n . Also ρ ≤ a 2 log D \rho\le a_2\log D ρ ≤ a 2 log D and ℓ ≤ a 3 s log s = O ( D log 2 D / ( γ log n ) ) = O ( ( log n ) c 0 − 1 ( log log n ) 2 / γ ) \ell\le a_3s\log s=O(D\log^2D/(\gamma\log n))=O((\log n)^{c_0-1}(\log\log n)^2/\gamma) ℓ ≤ a 3 s log s = O ( D log 2 D / ( γ log n )) = O (( log n ) c 0 − 1 ( log log n ) 2 / γ ) .
⟨1⟩3. Let: K = K 0 + 1 K=K_0+1 K = K 0 + 1 . For each of the 2 p 2^p 2 p instances of Lemma 5.2 with these parameters, build the attention instance of step ⟨1⟩3 in the proof of Theorem 3.3 , with T k T_k T k in place of T T T and 2 k 2^k 2 k in place of τ \tau τ . It has n + 1 n+1 n + 1 queries and keys, dimension 2 k ( ρ + ℓ ) + 1 ≤ d ( n + 1 ) 2^{k(\rho+\ell)}+1\le d(n+1) 2 k ( ρ + ℓ ) + 1 ≤ d ( n + 1 ) , all logits in [ 0 , λ T k ] [0,\lambda T_k] [ 0 , λ T k ] with λ T k ≤ ( 1 + θ ) ln n \lambda T_k\le(1+\theta)\ln n λ T k ≤ ( 1 + θ ) ln n for large n n n , and a query q x q_x q x has output at least 1 − η 1-\eta 1 − η if x x x has a partner at inner product T k T_k T k and at most η \eta η if all its inner products are at most 2 − k T k 2^{-k}T_k 2 − k T k , where η = ( 1 − 2 ε ) / 4 \eta=(1-2\varepsilon)/4 η = ( 1 − 2 ε ) /4 .
Proof: Steps ⟨1⟩4 and ⟨1⟩5 of that proof use only that all inner products lie in [ 0 , T ] [0,T] [ 0 , T ] , that an instance has at most n n n real keys, and that 1 / τ ≤ θ / 4 1/\tau\le\theta/4 1/ τ ≤ θ /4 ; these hold with T k T_k T k and τ = 2 k ≥ 4 / θ \tau=2^k\ge4/\theta τ = 2 k ≥ 4/ θ by Lemma 5.2 (i).
⟨1⟩4. Assume: an algorithm A \mathcal{A} A solves ATT ( n , d ( n ) , ( 1 + θ ) ln n , ε ) \operatorname{ATT}(n,d(n),(1+\theta)\ln n,\varepsilon) ATT ( n , d ( n ) , ( 1 + θ ) ln n , ε ) in time O ( n 2 − γ ) O(n^{2-\gamma}) O ( n 2 − γ ) . Then OV n , D \operatorname{OV}_{n,D} OV n , D can be solved in time O ( n 2 − γ / 2 ) O(n^{2-\gamma/2}) O ( n 2 − γ /2 ) .
Proof: As in step ⟨1⟩6 of the proof of Theorem 3.3 , with N ψ = 2 p ≤ n γ / 8 N_\psi=2^p\le n^{\gamma/8} N ψ = 2 p ≤ n γ /8 instances and R = ⌈ 18 ln ( 3 ⋅ 2 p ) ⌉ R=\lceil18\ln(3\cdot2^p)\rceil R = ⌈ 18 ln ( 3 ⋅ 2 p )⌉ runs each; that step uses the two implications of its step ⟨1⟩5, which hold here by ⟨1⟩3, and items (ii) and (iii) of Imported Theorem 2.8, which hold here by Lemma 5.2 (ii) and (iii). The calls take 2 p R ⋅ O ( ( n + 1 ) 2 − γ ) = O ( n 2 − 7 γ / 8 log n ) 2^pR\cdot O((n+1)^{2-\gamma})=O(n^{2-7\gamma/8}\log n) 2 p R ⋅ O (( n + 1 ) 2 − γ ) = O ( n 2 − 7 γ /8 log n ) , and Lemma 5.2 takes 2 p + k ( ρ + ℓ ) n poly ( D ) = n 1 + γ / 8 + o ( 1 ) 2^{p+k(\rho+\ell)}n\,\operatorname{poly}(D)=n^{1+\gamma/8+o(1)} 2 p + k ( ρ + ℓ ) n poly ( D ) = n 1 + γ /8 + o ( 1 ) , since c 0 < 2 c_0<2 c 0 < 2 makes k ( ρ + ℓ ) = o ( log n ) k(\rho+\ell)=o(\log n) k ( ρ + ℓ ) = o ( log n ) .
⟨1⟩5. Q.E.D.
Proof: ⟨1⟩4 contradicts ⟨1⟩1. Finally d ( n ) = n o ( 1 ) d(n)=n^{o(1)} d ( n ) = n o ( 1 ) because ( log n ) c 0 − 1 ( log log n ) 2 = o ( log n ) (\log n)^{c_0-1}(\log\log n)^2=o(\log n) ( log n ) c 0 − 1 ( log log n ) 2 = o ( log n ) for c 0 < 2 c_0<2 c 0 < 2 .
A barrier for the bounded-entry threshold
The barrier rests on the following tradeoff for Merlin–Arthur protocols, which is Klauck’s argument [Klau03, Theorem 1, part 1] with the proof length and the communication kept apart. In a public-coin MA protocol for a function f f f , Merlin sends a proof z ∈ { 0 , 1 } c M z\in\{0,1\}^{c_M} z ∈ { 0 , 1 } c M to both players, who then run a public-coin randomized protocol whose transcript has at most c P ≥ 1 c_P\ge1 c P ≥ 1 bits and determines the output. The protocol computes f f f with error 1 / 4 1/4 1/4 if every input with f = 1 f=1 f = 1 has a proof accepted with probability at least 3 / 4 3/4 3/4 , and every input with f = 0 f=0 f = 0 is accepted with probability at most 1 / 4 1/4 1/4 under every proof. The one-message protocols of § 2.3 are of this form after Alice announces her decision.
Lemma D.1 (Klauck’s tradeoff). There is an absolute constant α 0 ∈ ( 0 , 1 ] \alpha_0 \in(0,1] α 0 ∈ ( 0 , 1 ] such that every public-coin M A MA M A protocol computing D I S J D \mathrm{DISJ}_D DISJ D with error 1 / 4 1/4 1/4 satisfies ( c M + 1 ) c P ≥ α 0 D (c_M+1)c_P \ge\alpha_0D ( c M + 1 ) c P ≥ α 0 D .
Proof. ⟨1⟩1. Let: α 1 , ε 1 , μ \alpha_1,\varepsilon_1,\mu α 1 , ε 1 , μ be as in Imported Theorem 2.10, with α 1 ≤ 1 \alpha_1 \le1 α 1 ≤ 1 without loss of generality, Let: μ 1 \mu_1 μ 1 and μ 0 \mu_0 μ 0 be μ \mu μ conditioned on D I S J D − 1 ( 1 ) \mathrm{DISJ}_D^{-1}(1) DISJ D − 1 ( 1 ) and on D I S J D − 1 ( 0 ) \mathrm{DISJ}_D^{-1}(0) DISJ D − 1 ( 0 ) , and Let: η = α 1 2 − c M / 16 \eta= \alpha_1 2^{-c_M}/16 η = α 1 2 − c M /16 .
⟨1⟩2. Let: t = ⌈ 8 ( c M + log ( 16 / α 1 ) ) ⌉ t = \lceil8(c_M+\log(16/\alpha_1))\rceil t = ⌈ 8 ( c M + log ( 16/ α 1 ))⌉ . Repeating the randomized part t t t times with fresh coins and taking the majority gives, for every fixed proof, a protocol with transcripts of at most k = t c P k=tc_P k = t c P bits whose acceptance probability is at least 1 − η 1-\eta 1 − η when the original one is at least 3 / 4 3/4 3/4 , and at most η \eta η when the original one is at most 1 / 4 1/4 1/4 .
Proof: By Hoeffding’s inequality, the majority of t t t independent runs errs with probability at most e − t / 8 ≤ η e^{-t/8}\le\eta e − t /8 ≤ η , because t / 8 ≥ c M ln 2 + ln ( 16 / α 1 ) t/8\ge c_M\ln2+\ln(16/\alpha_1) t /8 ≥ c M ln 2 + ln ( 16/ α 1 ) . The t t t transcripts determine the majority.
⟨1⟩3. There are a proof z ∗ z^* z ∗ and a set G ⊆ D I S J D − 1 ( 1 ) G\subseteq\mathrm{DISJ}_D^{-1}(1) G ⊆ DISJ D − 1 ( 1 ) with μ 1 ( G ) ≥ 2 − c M \mu_1(G)\ge2^{-c_M} μ 1 ( G ) ≥ 2 − c M such that the protocol of ⟨1⟩2 with proof z ∗ z^* z ∗ accepts every input of G G G with probability at least 1 − η 1-\eta 1 − η .
Proof: Assign to every disjoint input a proof accepted with probability at least 3 / 4 3/4 3/4 . One of the at most 2 c M 2^{c_M} 2 c M proofs receives μ 1 \mu_1 μ 1 -mass at least 2 − c M 2^{-c_M} 2 − c M .
⟨1⟩4. There is a coin string such that the resulting deterministic protocol, with accepting set A c c \mathrm{Acc} Acc , satisfies μ 1 ( G ∩ A c c ) ≥ μ 1 ( G ) / 4 \mu_1(G\cap\mathrm{Acc})\ge\mu_1(G)/4 μ 1 ( G ∩ Acc ) ≥ μ 1 ( G ) /4 and μ 0 ( A c c ) ≤ 2 η μ 1 ( G ∩ A c c ) / μ 1 ( G ) \mu_0(\mathrm{Acc})\le2\eta\mu_1(G\cap\mathrm{Acc})/\mu_1(G) μ 0 ( Acc ) ≤ 2 η μ 1 ( G ∩ Acc ) / μ 1 ( G ) .
Proof: Over the coins, E [ μ 1 ( G ∩ A c c ) ] ≥ ( 1 − η ) μ 1 ( G ) \mathbb{E}[\mu_1(G\cap\mathrm{Acc})]\ge(1-\eta)\mu_1(G) E [ μ 1 ( G ∩ Acc )] ≥ ( 1 − η ) μ 1 ( G ) by ⟨1⟩3, and E [ μ 0 ( A c c ) ] ≤ η \mathbb{E}[\mu_0(\mathrm{Acc})]\le\eta E [ μ 0 ( Acc )] ≤ η by ⟨1⟩2 and soundness. So Y = μ 1 ( G ∩ A c c ) − μ 1 ( G ) 2 η μ 0 ( A c c ) Y=\mu_1(G\cap\mathrm{Acc})-\frac{\mu_1(G)}{2\eta}\mu_0(\mathrm{Acc}) Y = μ 1 ( G ∩ Acc ) − 2 η μ 1 ( G ) μ 0 ( Acc ) has E Y ≥ ( 1 2 − η ) μ 1 ( G ) ≥ μ 1 ( G ) / 4 \mathbb{E}Y\ge(\frac12-\eta)\mu_1(G)\ge\mu_1(G)/4 E Y ≥ ( 2 1 − η ) μ 1 ( G ) ≥ μ 1 ( G ) /4 , and some coin string has Y ≥ μ 1 ( G ) / 4 Y\ge\mu_1(G)/4 Y ≥ μ 1 ( G ) /4 . Both claims follow, as μ 0 ( A c c ) ≥ 0 \mu_0(\mathrm{Acc})\ge0 μ 0 ( Acc ) ≥ 0 .
⟨1⟩5. k ≥ ε 1 D − c M − log ( 8 / α 1 ) k\ge\varepsilon_1D-c_M-\log(8/\alpha_1) k ≥ ε 1 D − c M − log ( 8/ α 1 ) .
⟨2⟩1. A c c \mathrm{Acc} Acc is the disjoint union of at most 2 k 2^k 2 k rectangles.
Proof: The inputs with a given transcript form a rectangle, and the transcript determines the output.
⟨2⟩2.
1 4 μ 0 ( A c c ) ≥ 3 4 α 1 μ 1 ( G ∩ A c c ) − 2 k − ε 1 D . \frac{1}{4}\mu_0(\mathrm{Acc})\ge\frac{3}{4}\alpha_1\mu_1(G\cap\mathrm{Acc})-2^{k-\varepsilon_1D}. 4 1 μ 0 ( Acc ) ≥ 4 3 α 1 μ 1 ( G ∩ Acc ) − 2 k − ε 1 D . Proof: Apply Imported Theorem 2.10 to each rectangle of ⟨2⟩1 and add, using μ ( ⋅ ∩ D I S J D − 1 ( 0 ) ) = 1 4 μ 0 \mu(\cdot\cap\mathrm{DISJ}_D^{-1}(0))=\frac14\mu_0 μ ( ⋅ ∩ DISJ D − 1 ( 0 )) = 4 1 μ 0 , μ ( ⋅ ∩ D I S J D − 1 ( 1 ) ) = 3 4 μ 1 \mu(\cdot\cap\mathrm{DISJ}_D^{-1}(1))=\frac34\mu_1 μ ( ⋅ ∩ DISJ D − 1 ( 1 )) = 4 3 μ 1 and μ 1 ( A c c ) ≥ μ 1 ( G ∩ A c c ) \mu_1(\mathrm{Acc})\ge\mu_1(G\cap\mathrm{Acc}) μ 1 ( Acc ) ≥ μ 1 ( G ∩ Acc ) .
⟨2⟩3. Q.E.D.
Proof: By ⟨1⟩4,
1 4 μ 0 ( A c c ) ≤ η 2 μ 1 ( G ) μ 1 ( G ∩ A c c ) ≤ α 1 32 μ 1 ( G ∩ A c c ) , \frac{1}{4}\mu_0(\mathrm{Acc})\le\frac{\eta}{2\mu_1(G)}\mu_1(G\cap\mathrm{Acc})\le\frac{\alpha_1}{32}\mu_1(G\cap\mathrm{Acc}), 4 1 μ 0 ( Acc ) ≤ 2 μ 1 ( G ) η μ 1 ( G ∩ Acc ) ≤ 32 α 1 μ 1 ( G ∩ Acc ) , since η ≤ α 1 μ 1 ( G ) / 16 \eta\le\alpha_1\mu_1(G)/16 η ≤ α 1 μ 1 ( G ) /16 . With ⟨2⟩2,
2 k − ε 1 D ≥ ( 3 4 − 1 32 ) α 1 μ 1 ( G ∩ A c c ) ≥ α 1 8 μ 1 ( G ) ≥ α 1 8 2 − c M . 2^{k-\varepsilon_1D}\ge\left(\frac34-\frac1{32}\right)\alpha_1\mu_1(G\cap\mathrm{Acc})\ge\frac{\alpha_1}{8}\mu_1(G)\ge\frac{\alpha_1}{8}2^{-c_M}. 2 k − ε 1 D ≥ ( 4 3 − 32 1 ) α 1 μ 1 ( G ∩ Acc ) ≥ 8 α 1 μ 1 ( G ) ≥ 8 α 1 2 − c M . ⟨1⟩6. Q.E.D.
Proof: Let: K 1 = 8 log ( 16 / α 1 ) + 9 K_1=8\log(16/\alpha_1)+9 K 1 = 8 log ( 16/ α 1 ) + 9 and K 2 = log ( 8 / α 1 ) K_2=\log(8/\alpha_1) K 2 = log ( 8/ α 1 ) , so that k ≤ ( 8 c M + K 1 ) c P k\le(8c_M+K_1)c_P k ≤ ( 8 c M + K 1 ) c P and ( 8 c M + K 1 ) c P ≥ ε 1 D − c M − K 2 (8c_M+K_1)c_P\ge\varepsilon_1D-c_M-K_2 ( 8 c M + K 1 ) c P ≥ ε 1 D − c M − K 2 by ⟨1⟩5. If c M ≥ ε 1 D / 4 c_M\ge\varepsilon_1D/4 c M ≥ ε 1 D /4 , then ( c M + 1 ) c P ≥ c M ≥ ε 1 D / 4 (c_M+1)c_P\ge c_M\ge\varepsilon_1D/4 ( c M + 1 ) c P ≥ c M ≥ ε 1 D /4 , as c P ≥ 1 c_P\ge1 c P ≥ 1 . If D < 4 K 2 / ε 1 D<4K_2/\varepsilon_1 D < 4 K 2 / ε 1 , then ( c M + 1 ) c P ≥ 1 > ε 1 D / ( 4 K 2 ) (c_M+1)c_P\ge1>\varepsilon_1D/(4K_2) ( c M + 1 ) c P ≥ 1 > ε 1 D / ( 4 K 2 ) . Otherwise ε 1 D − c M − K 2 ≥ ε 1 D / 2 \varepsilon_1D-c_M-K_2\ge\varepsilon_1D/2 ε 1 D − c M − K 2 ≥ ε 1 D /2 , and ( c M + 1 ) c P ≥ ( 8 c M + K 1 ) c P / K 1 ≥ ε 1 D / ( 2 K 1 ) (c_M+1)c_P\ge(8c_M+K_1)c_P/K_1\ge\varepsilon_1D/(2K_1) ( c M + 1 ) c P ≥ ( 8 c M + K 1 ) c P / K 1 ≥ ε 1 D / ( 2 K 1 ) , because K 1 ≥ 8 K_1\ge8 K 1 ≥ 8 . Take α 0 = min { ε 1 / 4 , ε 1 / ( 4 K 2 ) , ε 1 / ( 2 K 1 ) , 1 } \alpha_0=\min\{\varepsilon_1/4,\varepsilon_1/(4K_2),\varepsilon_1/(2K_1),1\} α 0 = min { ε 1 /4 , ε 1 / ( 4 K 2 ) , ε 1 / ( 2 K 1 ) , 1 } .
Theorem 5.6 (Barrier). There is an absolute constant α 2 > 0 \alpha_2>0 α 2 > 0 such that every ( D , p , d , Δ ) (D,p,d,\Delta) ( D , p , d , Δ ) -gap embedding with D ≥ 1 D\ge1 D ≥ 1 and scale σ \sigma σ satisfies Γ = σ / Δ ≥ 1 / 2 \Gamma=\sigma/\Delta\ge1/2 Γ = σ /Δ ≥ 1/2 and
Γ 2 log ( 2 + Γ ) ≥ α 2 D p + 1 . \Gamma^2\log(2+\Gamma)\ge\alpha_2\frac{D}{p+1}. Γ 2 log ( 2 + Γ ) ≥ α 2 p + 1 D .
Proof. ⟨1⟩1. Let: Q 2 = max { ∥ q ( μ , a ) ∥ 2 } Q_2=\max\{\lVert q(\mu,a)\rVert_2\} Q 2 = max {∥ q ( μ , a ) ∥ 2 } and K 2 = max { ∥ k ( μ , b ) ∥ 2 } K_2=\max\{\lVert k(\mu,b)\rVert_2\} K 2 = max {∥ k ( μ , b ) ∥ 2 } , so that σ = Q 2 K 2 \sigma=Q_2K_2 σ = Q 2 K 2 . Every logit ⟨ q ( μ , a ) , k ( μ , b ) ⟩ \langle q(\mu,a),k(\mu,b)\rangle ⟨ q ( μ , a ) , k ( μ , b )⟩ lies in [ − σ , σ ] [-\sigma,\sigma] [ − σ , σ ] , and Δ ≤ 2 σ \Delta\le2\sigma Δ ≤ 2 σ ; in particular σ > 0 \sigma>0 σ > 0 and Γ ≥ 1 / 2 \Gamma\ge1/2 Γ ≥ 1/2 . Proof: ∣ ⟨ q , k ⟩ ∣ ≤ ∥ q ∥ 2 ∥ k ∥ 2 ≤ σ |\langle q,k\rangle| \le\|q\|_2\|k\|_2 \le\sigma ∣ ⟨ q , k ⟩ ∣ ≤ ∥ q ∥ 2 ∥ k ∥ 2 ≤ σ . With e 1 e_1 e 1 the first unit vector, (G1) for the disjoint pair ( e 1 , 0 ) (e_1,0) ( e 1 , 0 ) gives μ \mu μ with ⟨ q ( μ , e 1 ) , k ( μ , 0 ) ⟩ ≥ h ( μ , e 1 ) \langle q(\mu,e_1),k(\mu,0)\rangle\ge h(\mu,e_1) ⟨ q ( μ , e 1 ) , k ( μ , 0 )⟩ ≥ h ( μ , e 1 ) , and (G2) for the intersecting pair ( e 1 , e 1 ) (e_1,e_1) ( e 1 , e 1 ) gives ⟨ q ( μ , e 1 ) , k ( μ , e 1 ) ⟩ ≤ h ( μ , e 1 ) − Δ \langle q(\mu,e_1),k(\mu,e_1)\rangle\le h(\mu,e_1)-\Delta ⟨ q ( μ , e 1 ) , k ( μ , e 1 )⟩ ≤ h ( μ , e 1 ) − Δ for the same μ \mu μ . Two logits in [ − σ , σ ] [-\sigma,\sigma] [ − σ , σ ] differ by at least Δ \Delta Δ .
⟨1⟩2. Let: u = ⌈ 384 Γ 2 ⌉ u=\lceil384\Gamma^2\rceil u = ⌈ 384 Γ 2 ⌉ , t 0 = 2 ln ( 32 u ) t_0=\sqrt{2\ln(32u)} t 0 = 2 ln ( 32 u ) and ℓ 0 = ⌈ log ( 8 t 0 2 Γ ) ⌉ \ell_0=\lceil\log(8t_0^2\Gamma)\rceil ℓ 0 = ⌈ log ( 8 t 0 2 Γ )⌉ . Let: the MA protocol for DISJ D \operatorname{DISJ}_D DISJ D on inputs a , b a,b a , b be: Merlin sends μ \mu μ ; public coins pick independent uniform s 1 , … , s u ∈ { − 1 , 1 } d s_1,\ldots,s_u\in\{-1,1\}^d s 1 , … , s u ∈ { − 1 , 1 } d ; for each i i i Bob sends the integer k ^ i \hat{k}_i k ^ i nearest to 2 ℓ 0 Y i / ( t 0 K 2 ) 2^{\ell_0}Y_i/(t_0K_2) 2 ℓ 0 Y i / ( t 0 K 2 ) , where Y i Y_i Y i is ⟨ s i , k ( μ , b ) ⟩ \langle s_i,k(\mu,b)\rangle ⟨ s i , k ( μ , b )⟩ clamped to [ − t 0 K 2 , t 0 K 2 ] [-t_0K_2,t_0K_2] [ − t 0 K 2 , t 0 K 2 ] ; Alice computes Z = 1 u ∑ i ⟨ s i , q ( μ , a ) ⟩ t 0 K 2 2 − ℓ 0 k ^ i Z=\frac{1}{u}\sum_i\langle s_i,q(\mu,a)\rangle t_0K_2 2^{-\ell_0}\hat{k}_i Z = u 1 ∑ i ⟨ s i , q ( μ , a )⟩ t 0 K 2 2 − ℓ 0 k ^ i and sends 1 if and only if Z ≥ h ( μ , a ) − Δ / 2 Z\ge h(\mu,a)-\Delta/2 Z ≥ h ( μ , a ) − Δ/2 . It computes DISJ D \operatorname{DISJ}_D DISJ D with error 1 / 4 1/4 1/4 , with c M = p c_M=p c M = p and c P ≤ 3885 Γ 2 log ( 2 + Γ ) c_P\le3885\Gamma^2\log(2+\Gamma) c P ≤ 3885 Γ 2 log ( 2 + Γ ) .
⟨2⟩1. Let: q = q ( μ , a ) q=q(\mu,a) q = q ( μ , a ) , k = k ( μ , b ) k=k(\mu,b) k = k ( μ , b ) and X i = ⟨ s i , q ⟩ ⟨ s i , k ⟩ X_i=\langle s_i,q\rangle\langle s_i,k\rangle X i = ⟨ s i , q ⟩ ⟨ s i , k ⟩ . The X i X_i X i are independent, have mean ⟨ q , k ⟩ \langle q,k\rangle ⟨ q , k ⟩ , and satisfy E X i 2 ≤ 3 σ 2 \mathbb{E}X_i^2\le3\sigma^2 E X i 2 ≤ 3 σ 2 .
Proof: E [ s i s i T ] \mathbb{E}[s_is_i^{\mathsf T}] E [ s i s i T ] is the identity, which gives the mean. For uniform s ∈ { − 1 , 1 } d s\in\{-1,1\}^d s ∈ { − 1 , 1 } d and x ∈ R d x\in\mathbb{R}^d x ∈ R d , E ⟨ s , x ⟩ 4 = 3 ∥ x ∥ 2 4 − 2 ∑ t x t 4 ≤ 3 ∥ x ∥ 2 4 \mathbb{E}\langle s,x\rangle^4=3\|x\|_2^4-2\sum_t x_t^4\le3\|x\|_2^4 E ⟨ s , x ⟩ 4 = 3∥ x ∥ 2 4 − 2 ∑ t x t 4 ≤ 3∥ x ∥ 2 4 , so by the Cauchy–Schwarz inequality E X i 2 ≤ ( E ⟨ s i , q ⟩ 4 E ⟨ s i , k ⟩ 4 ) 1 / 2 ≤ 3 ∥ q ∥ 2 2 ∥ k ∥ 2 2 ≤ 3 σ 2 \mathbb{E}X_i^2\le(\mathbb{E}\langle s_i,q\rangle^4\mathbb{E}\langle s_i,k\rangle^4)^{1/2}\le3\|q\|_2^2\|k\|_2^2\le3\sigma^2 E X i 2 ≤ ( E ⟨ s i , q ⟩ 4 E ⟨ s i , k ⟩ 4 ) 1/2 ≤ 3∥ q ∥ 2 2 ∥ k ∥ 2 2 ≤ 3 σ 2 .
⟨2⟩2. With probability at least 3 / 4 3/4 3/4 , ∣ 1 u ∑ i X i − ⟨ q , k ⟩ ∣ < Δ / 4 \left|\frac{1}{u}\sum_iX_i-\langle q,k\rangle\right|<\Delta/4 u 1 ∑ i X i − ⟨ q , k ⟩ < Δ/4 , and ∣ ⟨ s i , q ⟩ ∣ ≤ t 0 Q 2 |\langle s_i,q\rangle|\le t_0Q_2 ∣ ⟨ s i , q ⟩ ∣ ≤ t 0 Q 2 and ∣ ⟨ s i , k ⟩ ∣ ≤ t 0 K 2 |\langle s_i,k\rangle|\le t_0K_2 ∣ ⟨ s i , k ⟩ ∣ ≤ t 0 K 2 for all i i i .
Proof: By Chebyshev’s inequality and ⟨2⟩1, the first condition fails with probability at most 3 σ 2 / ( u ( Δ / 4 ) 2 ) = 48 Γ 2 / u ≤ 1 / 8 3\sigma^2/(u(\Delta/4)^2)=48\Gamma^2/u\le1/8 3 σ 2 / ( u ( Δ/4 ) 2 ) = 48 Γ 2 / u ≤ 1/8 . By Hoeffding’s inequality, Pr [ ∣ ⟨ s , x ⟩ ∣ > t 0 ∥ x ∥ 2 ] ≤ 2 e − t 0 2 / 2 = 1 / ( 16 u ) \Pr[|\langle s,x\rangle|>t_0\|x\|_2]\le2e^{-t_0^2/2}=1/(16u) Pr [ ∣ ⟨ s , x ⟩ ∣ > t 0 ∥ x ∥ 2 ] ≤ 2 e − t 0 2 /2 = 1/ ( 16 u ) for each of the 2 u 2u 2 u sums, and a union bound gives 1 / 8 1/8 1/8 .
⟨2⟩3. On the event of ⟨2⟩2, ∣ Z − ⟨ q , k ⟩ ∣ < Δ / 2 |Z-\langle q,k\rangle|<\Delta/2 ∣ Z − ⟨ q , k ⟩ ∣ < Δ/2 .
Proof: No clamping occurs. So the i i i th term of Z Z Z differs from X i X_i X i by at most
∣ ⟨ s i , q ⟩ ∣ ⋅ t 0 K 2 2 − ℓ 0 − 1 ≤ t 0 2 σ 2 − ℓ 0 − 1 ≤ Δ / 16 , |\langle s_i,q\rangle|\cdot t_0K_2\,2^{-\ell_0-1}\le t_0^2\sigma\,2^{-\ell_0-1}\le\Delta/16, ∣ ⟨ s i , q ⟩ ∣ ⋅ t 0 K 2 2 − ℓ 0 − 1 ≤ t 0 2 σ 2 − ℓ 0 − 1 ≤ Δ/16 ,
because 2 ℓ 0 ≥ 8 t 0 2 Γ 2^{\ell_0}\ge8t_0^2\Gamma 2 ℓ 0 ≥ 8 t 0 2 Γ and σ / Γ = Δ \sigma/\Gamma=\Delta σ /Γ = Δ . Hence ∣ Z − ⟨ q , k ⟩ ∣ < Δ / 4 + Δ / 16 |Z-\langle q,k\rangle|<\Delta/4+\Delta/16 ∣ Z − ⟨ q , k ⟩ ∣ < Δ/4 + Δ/16 .
⟨2⟩4. Completeness and soundness hold with error 1 / 4 1/4 1/4 .
Proof: If ⟨ a , b ⟩ = 0 \langle a,b\rangle=0 ⟨ a , b ⟩ = 0 , (G1) gives μ \mu μ with ⟨ q , k ⟩ ≥ h ( μ , a ) \langle q,k\rangle\ge h(\mu,a) ⟨ q , k ⟩ ≥ h ( μ , a ) , and by ⟨2⟩2 and ⟨2⟩3 Alice accepts with probability at least 3 / 4 3/4 3/4 . If ⟨ a , b ⟩ ≥ 1 \langle a,b\rangle\ge1 ⟨ a , b ⟩ ≥ 1 , every μ \mu μ has ⟨ q , k ⟩ ≤ h ( μ , a ) − Δ \langle q,k\rangle\le h(\mu,a)-\Delta ⟨ q , k ⟩ ≤ h ( μ , a ) − Δ by (G2), and Alice accepts with probability at most 1 / 4 1/4 1/4 . Alice knows h ( μ , a ) h(\mu,a) h ( μ , a ) , Δ \Delta Δ , t 0 t_0 t 0 , ℓ 0 \ell_0 ℓ 0 and K 2 K_2 K 2 .
⟨2⟩5. c P ≤ 3885 Γ 2 log ( 2 + Γ ) c_P\le3885\Gamma^2\log(2+\Gamma) c P ≤ 3885 Γ 2 log ( 2 + Γ ) .
Proof: Each k ^ i \hat{k}_i k ^ i is an integer in [ − 2 ℓ 0 , 2 ℓ 0 ] [-2^{\ell_0},2^{\ell_0}] [ − 2 ℓ 0 , 2 ℓ 0 ] and takes at most ℓ 0 + 2 ≤ log ( 64 t 0 2 Γ ) \ell_0+2\le\log(64t_0^2\Gamma) ℓ 0 + 2 ≤ log ( 64 t 0 2 Γ ) bits, and c P ≤ u ( ℓ 0 + 2 ) + 1 c_P\le u(\ell_0+2)+1 c P ≤ u ( ℓ 0 + 2 ) + 1 . As Γ ≥ 1 / 2 \Gamma\ge1/2 Γ ≥ 1/2 , u ≤ 388 Γ 2 u\le388\Gamma^2 u ≤ 388 Γ 2 and t 0 2 ≤ 2 ln ( 12416 Γ 2 ) t_0^2\le2\ln(12416\Gamma^2) t 0 2 ≤ 2 ln ( 12416 Γ 2 ) , so 64 t 0 2 Γ ≤ 256 Γ ln ( 112 Γ ) ≤ ( 103 Γ ) 2 64t_0^2\Gamma\le256\Gamma\ln(112\Gamma)\le(103\Gamma)^2 64 t 0 2 Γ ≤ 256Γ ln ( 112Γ ) ≤ ( 103Γ ) 2 , using ln y ≤ y / e \ln y\le y/e ln y ≤ y / e . Hence c P ≤ 776 Γ 2 log ( 103 Γ ) + 1 ≤ 777 Γ 2 log ( 103 Γ ) c_P\le776\Gamma^2\log(103\Gamma)+1\le777\Gamma^2\log(103\Gamma) c P ≤ 776 Γ 2 log ( 103Γ ) + 1 ≤ 777 Γ 2 log ( 103Γ ) , as Γ 2 log ( 103 Γ ) ≥ 1 \Gamma^2\log(103\Gamma)\ge1 Γ 2 log ( 103Γ ) ≥ 1 . Finally log ( 103 Γ ) ≤ 5 log ( 2 + Γ ) \log(103\Gamma)\le5\log(2+\Gamma) log ( 103Γ ) ≤ 5 log ( 2 + Γ ) , because ( 2 + Γ ) 5 / Γ (2+\Gamma)^5/\Gamma ( 2 + Γ ) 5 /Γ is smallest at Γ = 1 / 2 \Gamma=1/2 Γ = 1/2 , where it exceeds 103 103 103 .
⟨1⟩3. c P ≥ α 0 D / ( p + 1 ) c_P\ge\alpha_0D/(p+1) c P ≥ α 0 D / ( p + 1 ) .
Proof: By Lemma D.1 with c M = p c_M=p c M = p .
⟨1⟩4. Q.E.D.
Proof: By ⟨1⟩2 and ⟨1⟩3, 3885 Γ 2 log ( 2 + Γ ) ≥ α 0 D / ( p + 1 ) 3885\Gamma^2\log(2+\Gamma)\ge\alpha_0D/(p+1) 3885 Γ 2 log ( 2 + Γ ) ≥ α 0 D / ( p + 1 ) . Take α 2 = α 0 / 3885 \alpha_2=\alpha_0/3885 α 2 = α 0 /3885 .