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 and soft attention sequence models
Definition
Let be a finite token alphabet, let be an end-of-sequence symbol, and let be fixed integers. For each length , an input is . A symbol embedding assigns a vector to each ; a positional embedding sequence assigns independent of the input symbols. A fixed shared input map gives . For each layer and head , a fixed score map gives scores for every query position and key position . In the soft model, . In the hard model, at the smallest index attaining and is at other indices. With fixed value maps and fixed positionwise maps , the update is
Each score, value, and positionwise map is shared across positions and is fixed independently of . In the hard-attention limit theorem, the score, value, and positionwise maps may be arbitrary fixed maps; no activation-function or parameter-norm bound is imposed. For the soft-influence theorem below, each score is a scaled dot product of fixed linear query and key projections, each value map is a fixed linear map, the token and positional embeddings are uniformly bounded over all positions and lengths, the combined initial states satisfy , and every positionwise map is globally Lipschitz. The initial-state bound holds for addition or concatenation of bounded embeddings, but must be imposed separately for an arbitrary input map. A hard-attention recognizer classifies the input from after reading . A soft next-token predictor applies a fixed linear logit map and softmax to to obtain a probability vector on a fixed finite alphabet.
Definition references
Vaswani et al., §3.2: query, key, value, and scaled dot-product attention conventions
Finite feedforward computation graphs and layered MLPs: finite feedforward graphs and layered MLPs specify positionwise maps when those implementations are chosen; the abstract hard-attention model above also permits arbitrary fixed maps.
Scaled dot-product attention: row softmax and scaled query-key products.
Depends on
Used by
- A nonfinal token has inverse-length influence under bounded soft attention Lemma
- Hard-attention depth reduction under input restrictions Lemma
- Paired-prefix lower bound for soft-attention 2DYCK prediction Lemma
- Fixed soft attention has no parity advantage over the unigram predictor Theorem
- Fixed-depth hard attention cannot recognize PARITY or 2DYCK Theorem
- Hard and soft attention limits for formal-language prediction Theorem
Dependency tree · one level
2 results within one dependency step 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
- Hahn, Theoretical Limitations of Self-Attention in Neural Sequence Models, §3 (standard reference, not scraped)
- Vaswani et al., Attention Is All You Need, §3.2 (standard reference, not scraped)