What is the quadratic scaling barrier ($O(N^2)$) in transformer self-attention?
Standard self-attention computes an attention weight between every token and every other token in the sequence. Doubling the context window from 10,000 to 20,000 tokens quadruples attention matrix memory and FLOP compute requirements.
Answered in
The LLM Memory Problem: Stateless Requests, Context Windows and Long-Term RecallWhy large language models forget conversation history, the quadratic compute barrier of attention, and modern context compression and memory tiers.
Read the full analysisOther questions this article answers
More how ai actually works questions
- Does AlloyDB's ai.tune_sql automatically change my database?
- Which AlloyDB instances can use the preview?
- Can ai.tune_sql rewrite a parameterized query?
- What does headless mode in Intelligent Terminal 0.3 do?
- Does this guarantee a task survives a reboot or machine failure?
- Can the sidebar show an agent's status?
- What changed in AMD’s Ray beta?
- Which software versions does AMD list for Ray 2.59 on ROCm?
Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the How AI Actually Works beat.