← All parts of this equation

Equation 27 · Part 1 · Locality Is the Whole Game: The Memory Hierarchy and What a Kernel Does Not Read

Symbol N

N×NN \times N
NN

What this part means

N is a part of this expression. Its role is fixed by the surrounding article and by the operations shown in the formula.

Its job in the formula

N is a part of this expression. Its role is fixed by the surrounding article and by the operations shown in the formula.

The passage around this formula

Standard attention forms the score matrix S\mathbf{S} = Q\mathbf{Q}K⊤\mathbf{K}^{\top} , applies a row-wise softmax to obtain P\mathbf{P} , and multiplies by V\mathbf{V} . Both S\mathbf{S} and P\mathbf{P} are N ×\times N , and standard implementations materialise them in main memory, which is quadratic in sequence length [ 1 ] . That materialisation is the problem. It is a large intermediate, it is written and read at least once, and the operations applied to it — masking, softmax, dropout — are exactly the memory-bound kind.

Read this part in the article →

Learn the underlying idea

A variable is a named place for a value. Its letter is a local label: x can mean position in one formula and a data point in another.

Open the illustrated variables: a letter stands for a value guide →

See this notation across published equations →

Sources cited in the surrounding passage

These citations provide research context; check each source for the exact claim it supports.