The self-attention mechanism's O(n²) complexity means doubling context length quadruples both computational cost and memory. For instance, a 128,000-token context window demands processing a 16 billion-entry attention matrix, requiring hundreds of gigabytes of memory and making pre-training 260% more expensive than with a 2,000-token context.