Quadratic Scaling: The Self-Attention Cost Multiplier
Quadratic scaling means computational and memory costs grow by the square of the input length (O(n²)), primarily due to the self-attention mechanism in transformer models where every token compares itself to every other token.