Equation 27 · Part 1 · Locality Is the Whole Game: The Memory Hierarchy and What a Kernel Does Not Read
Symbol N
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.
Full expression→Symbol N→Article meaning
The passage around this formula
Standard attention forms the score matrix = , applies a row-wise softmax to obtain , and multiplies by . Both and are N 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.
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.