---
answer: direct
beat: ai-technology
source: 1 article · updated: November 15, 2026
---

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 Recall

Why large language models forget conversation history, the quadratic compute barrier of attention, and modern context compression and memory tiers.

Crashtech Editorial November 15, 2026 How AI Actually Works

Read the full analysis

Other questions this article answers

More how ai actually works questions

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.