Inference Latency: Quadratic Scaling Bottleneck

Processing 16K context length inputs significantly increases inference latency, particularly due to the quadratic complexity of the self-attention mechanism in Transformers. This means doubling the context length can quadruple the computational work, making Time-To-First-Token (TTFT) especially inflated for long contexts. [3, 7, 14, 19]

Open the full topic