mej7.comHow AI Works

Self-attention

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

Attention where queries, keys, and values all come from the same sequence. That is the default inside a language-model layer.

In one paragraph. Attention where queries, keys, and values all come from the same sequence. That is the default inside a language-model layer.

Used in

Related terms

Full glossary