Alphabeta Math
LemmaStatement: Literature-sourcedProof: AI-adaptedPipeline-generatedprecheck pending
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Hard-attention depth reduction under input restrictions

Statement

Fix a finite content alphabet Σ with s=∣Σ∣≥2, a hard-attention model with fixed H≥1 heads per position and L≥1 layers, and an integer c≥1. At length n, the model input is (x1,…,xn−1,eos), with the end marker fixed at position n. An input restriction assigns each content position i<n either ∗ (free) or a fixed symbol of Σ; its free positions are precisely the content positions marked ∗. Say that a layer-zero activation, including the activation at the end-marker position, depends on at most c free positions if, with the restriction fixed, its value is determined by at most c of the remaining free input symbols. Suppose the current restriction leaves at least Cn content positions free for every sufficiently large n, where 0<C≤1, and every layer-zero activation depends on at most c free positions. For every 0<C′<C, there are an integer c′≥1 and a refinement, for every sufficiently large n, that leaves at least C′n content positions free and preserves the model's output on every completion, while absorbing the first remaining attention layer into new layer-zero activations that each depend on at most c′ original content positions. Repeating this conclusion through the fixed L layers gives a restriction with at least C′n free content positions on which the output depends on at most a constant number of original content positions. The constants and the length threshold may depend on the fixed model, c,C,C′, but not on n.

Facts & Assumptions

Given: A fixed hard-attention model, a current input restriction, and the free-input and c-dependence hypotheses in the Statement.

[F1]

Every hard-attention head selects the earliest key position attaining its maximal score, and each positionwise update is shared across positions and depends on its skip input and selected head values (Hard and soft attention sequence models).

[F2]

For a finite event family with dependency digraph D, if 0≤xi<1 and P(Ai)≤xi∏j∈ND+(i)(1−xj) for every event, then the probability that all events are avoided is positive (The asymmetric Lovász Local Lemma for finitely many events).

[A1]

In the probabilistic restriction stage, every still-free input symbol is independently fixed to each a∈Σ with probability q/s, and left as ∗ with probability 1−q; the finite input-coordinate sample space has the corresponding product law.

Proof

1.1givenconstructchoosealgebra

Choose 0<η<1/4 so that (1−2η)C>C′, then choose 0<δ<1 and 0<q<1/(1+δ) so that (1−(1+δ)q)(1−2η)C>C′. Put D=⌈c/(ηC)⌉ and regard k≥1 as an integer parameter whose finitely many lower bounds will be fixed after the local-lemma estimates. For each position j, choose a support Sj of at most c currently free input positions determining its layer-zero activation. There are at most cn incidences between supports and positions. Fix every free input position occurring in more than D supports, using any fixed symbol. At most cn/D≤ηCn positions are fixed; afterwards every free input position belongs to at most D supports.

2.1step 1.1F1constructalgebra

For a current restriction and query triple (i,h,z), where h is a head at position i and z is a possible layer-zero activation at i, at most cD key positions have supports intersecting Si; call these exceptional. For every other key position j, its support is disjoint from Si, so the maximum score mj for query value z is attainable by assigning its free support. Order these eligible positions by decreasing mj, breaking ties by position, and put R=⌈cD(k+1)⌉. For all sufficiently large n, at least R eligible positions exist. Greedily select k among the first R with pairwise disjoint supports: each choice removes at most cD candidates because its support has at most c symbols and each symbol occurs in at most D supports. Record for each selected position a support assignment attaining its maximum.

3.1step 2.1F1algebra

If a selected support is fixed to its recorded maximum-attaining assignment, that key's score is at least mR. Every eligible position after the first R has maximum score at most mR; equality is resolved in favor of a position among the first R by the chosen tie order. Hence a head's winner lies among the exceptional positions or the first R eligible positions. The first-layer output at position i is therefore determined by Si and the supports of at most Hsc(cD+R) candidate key positions, one set for each possible query activation, head, and key. It depends on at most c′=c+Hscc(cD+R) original input positions.

3.2step 1.1step 2.1algebrachoose

Starting from the restriction in step 1.1, repeatedly recompute the candidate sets in step 2.1 for every still-uncaptured triple. When a triple is captured, retain its current exceptional set and first-R eligible positions as its candidate set. Its assigned cutoff key remains at least as highly scored as every later position in the old eligible ordering, since refinements leave its score fixed and can only decrease other attainable maxima; any position that later leaves the eligible set was already in the retained exceptional set. If some key activation is selected in more than sckH uncaptured triples, one of its at most sc possible values is a recorded maximum for more than kH of them. Fix its at most c free input symbols to a support assignment producing that value. The query values of those triples remain unchanged, so all become captured. There are at most scHn triples, so this process has at most scn/k refinements and fixes at most sccn/k additional symbols. Require k large enough that scc/k≤ηC. At termination at least (1−2η)Cn inputs remain free, and each key activation is selected in at most T=sckH uncaptured triples.

4.1step 2.1step 3.2A1algebra

For each uncaptured triple t=(i,h,z), let Xt be the event that none of its k selected supports is fixed to its recorded maximum-attaining assignment by the random restriction [A1]. An assignment on r≤c free symbols has probability (q/s)r≥(q/s)c. The selected supports are pairwise disjoint, so these assignment events are independent and P(Xt)≤ak, where a=1−(q/s)c<1.

4.2givenstep 3.2A1algebra

Let m be the number of free inputs after step 3.2 and let X0 be the event that more than (1+δ)qm of them are fixed by [A1]. For Z∼Binomial⁡(m,q) and μ=mq, exponential Markov at t=log⁡(1+δ) gives P(Z≥(1+δ)μ)≤e−t(1+δ)μ(1−q+qet)m≤e−μ((1+δ)log⁡(1+δ)−δ)≤e−δ2μ/3. The middle inequality uses 1+u≤eu. For the last, g(δ)=(1+δ)log⁡(1+δ)−δ−δ2/3 has g(0)=0 and g′(δ)=log⁡(1+δ)−2δ/3≥0 on [0,1], since log⁡(1+δ)≥2δ/(2+δ)≥2δ/3. Consequently P(X0)≤e−αn, where α=δ2q(1−2η)C/3>0.

5.1step 4.1step 4.2A1F2algebrachoose

For each event Xt, take its defining-coordinate set to be the union of its query support and its k selected key supports. Join two Xt events when these sets overlap, and join X0 to every Xt. Each coordinate occurs in at most DHsc query supports: at most D position supports contain it, and each such position has at most Hsc head-and-query-value triples. It occurs in at most DscT selected key supports: each of at most D position supports has at most sc possible key activations, and each activation is selected in at most T triples by step 3.2. Each event uses at most c(k+1) coordinates, so its degree is at most f=1+c(k+1)D(Hsc+scT)=O(k2). Non-neighbours' defining-coordinate sets are disjoint from the event's set; product independence therefore gives independence from every conjunction of their complements, as required by [F2]. Set xX0=1/2 and xXt=1/k2. Since a=1−(q/s)c<1 and f=O(k2), the quantity k−2(1/2)(1−k−2)f is bounded below by a positive constant times k−2 for large k, whereas ak decays exponentially. Thus the local-lemma condition holds for every Xt once k is sufficiently large.

6.1step 3.2step 4.2step 5.1F2algebrachoose

There are at most scHn events other than X0. Its local-lemma condition follows if e−αn≤12(1−k−2)scHn. Choose k large enough that scH[−log⁡(1−k−2)]<α; the inequality then holds for all sufficiently large n. The stage-two, local-event, and X0 requirements are finitely many eventual lower bounds on k, so they hold simultaneously for sufficiently large k. By [F2], a refinement avoiding X0 and every Xt exists.

7.1step 1.1step 3.1step 3.2step 6.1givenalgebra

Avoiding X0 leaves at least (1−(1+δ)q)m≥(1−(1+δ)q)(1−2η)Cn>C′n free inputs by the choices in step 1.1. Avoiding every Xt captures each remaining triple. For a captured triple, its retained cutoff key and candidate set from step 3.2 continue to block every later eligible position; for an uncaptured triple, step 6.1 fixes a cutoff key from its final candidate set. Step 3.1 therefore confines each head's winner to at most cD+R candidate positions for each query value. Taking the union over at most sc query values and H heads, together with the query support, gives the dependence bound c′=c+Hscc(cD+R). Replacing each layer-zero activation by its first-layer output absorbs one layer while preserving the model's restricted computation.

8.1step 7.1inductionchoosedischarge-induction∎

Apply the one-layer reduction successively to the fixed L layers, choosing intermediate fractions C=C0>C1>⋯>CL=C′. Each stage has a finite dependence bound and a finite length threshold. Since L is finite, their maximum threshold is finite; beyond it, the final restriction leaves at least C′n inputs free and the final output depends on a bounded number of original inputs. This proves the Statement.

Depends on

Used by

Dependency tree · two levels

7 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources