Quadratic Cost vs. Linear: Resource Explosion

Doubling an AI agent's context window length can quadruple computational and memory costs due to quadratic scaling, making it significantly more resource-intensive than operations with linear scaling for large inputs.

Sources

Open the full topic