mej7.comHow AI Works

QK circuit

Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.

The part of a head that decides where to look: queries and keys, scores, mask, softmax (Elhage et al., 2021).

In one paragraph. The part of a head that decides where to look: queries and keys, scores, mask, softmax (Elhage et al., 2021).

Used in

Related terms

Full glossary