Attention: Powerful, and Quadratic
The architecture behind all of this charges by the square of what it reads.
The 2017 paper that introduced the Transformer replaced recurrence with attention: every token looks at every other token, which is what lets a model connect a word to one a thousand words earlier. The bill for that is arithmetic - comparing everything with everything means cost grows with the SQUARE of the length, so doubling the input roughly quadruples the work. Every technique in this chronicle is an answer to that one line of arithmetic: sparser attention, cheaper memory, retrieval instead of length, and finally deciding what to leave out. The window is not a product decision - it is a price.
The rest of this branch is in the app
Way of the Agent teaches AI agent engineering level by level - and the AI Chronicles open as you go: every branch continues where this story ends.
Start learning free →