Alphabeta Math
DefinitionDefinition: Literature-sourcedProof: Not applicablePipeline-generatedjudge pass (gpt-6-luna)
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.

Multi-head attention and self-attention

Definition

Let h,dq,dk,dv,dh,dvh,do,nq,nk be positive integers. For query, key, and value matrices Q∈Rnq×dq, K∈Rnk×dk, and V∈Rnk×dv, choose matrices WiQ∈Rdq×dh, WiK∈Rdk×dh, and WiV∈Rdv×dvh for each head i=1,…,h, and choose WO∈Rhdvh×do. The i-th head is

Hi=Attn⁡(QWiQ,KWiK,VWiV)∈Rnq×dvh,

where Attn⁡ is scaled dot-product attention, with any chosen mask applied to its score matrix. Multi-head attention is

MHA⁡(Q,K,V)=Concat⁡feature(H1,…,Hh)WO∈Rnq×do.

Self-attention is the specialization Q=K=V=X for a single token matrix X∈Rn×d; each row is one token representation. Unmasked self-attention permits every query row to use every key row. Masked self-attention applies one specified mask to every head.

Depends on

Used by

Dependency tree · one level

1 result 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