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.
Scaled dot-product attention
Definition
Let be positive integers, let and be query and key matrices, and let be a value matrix. For a real matrix with rows and columns, define its row softmax by . The scaled dot-product attention output is
Each output row is the weighted average of the value rows, with weights given by the softmax of that query's scaled dot products with all keys. A mask is an array whose entries are for allowed query-key pairs and for disallowed pairs; masked attention replaces the score matrix by before row softmax and is defined only when every row has at least one allowed key. Here .
Used by
- Exact tiled softmax attention with block-recomputed vector-Jacobian products Algorithm
- Hard and soft attention sequence models Definition
- Multi-head attention and self-attention Definition
- Stable summary of an attention key block Definition
- A two-token causal next-token mask Example
- Tiled attention and its recomputed reverse pass are exact Theorem
Dependency tree · 0 levels
Nothing. This result depends on no other item in the library.
Sources
- Vaswani et al., Attention Is All You Need, §3.2.1 (standard reference, not scraped)
- Dive into Deep Learning, §11.3.3 Scaled Dot Product Attention (standard reference, not scraped)