Attention's Quadratic Cost: Why Context Doubling Quadruples Expense

The fundamental technical reason for escalating re-read costs is that the LLM's attention mechanism computational complexity grows quadratically with the input length, meaning doubling the context window size can lead to a fourfold increase in processing costs.

Sources

Open the full topic