Long context is where frontier LLMs have fought the last two years: 128K, 256K, 1M, the window keeps widening. But the other half gets ignored, and that is output. GPT-6.2 Astra and Claude Opus 5 both allow 128K output tokens per request, and the Claude Batches API goes to 300K. How long does a provider's machine have to sit on that response before the bill stops making sense? The paper says the cost that ultra-long responses impose on inference services still lacks systematic study.
SnowballCost is that measurement. It mixes normal requests with ultra-long-response requests on one inference server and quantifies what the latter does to latency, throughput and profit. The authors are from the National University of Singapore and Tsinghua University, the paper is accepted to Findings of EACL 2027, and it calls ultra-long-response requests elephant requests.
Where the quadratic term comes from
Every token of autoregressive decoding re-reads the model weights and the KV cache accumulated so far. The longer the output, the more KV each step has to scan, and summing those steps makes total decode time super-linear.
The paper writes it as a closed form: T_decode = c·L_out + b·(L_in·L_out) + d·L_out². The coefficient c is the linear term set by weight-read bandwidth, b is the input-output cross term, and d is the quadratic term from the accumulating KV cache. Real chat prompts are short enough that b contributes under 0.5%, so the paper drops it. The key quantity is L* = c/d, where the quadratic term equals the linear term; past it, a linear estimate fitted on short outputs starts underpredicting.
Where the linear estimate breaks
Calibration used Qwen2.5-7B-1M on vLLM with 4 A800s, 11 observations at 9 lengths, fitting c = 5.70e-3 s/token and d = 5.65e-9 s/token² with R² = 0.999999, giving L* = 1.01M.
The reported deviation: at 128K output, measured time is 1.24x the short-output linear fit on vLLM and 1.22x on SGLang; at 1M, 1.80x and 1.67x. The quadratic term's share of total decode time is only 0.5% at 5K output, 12% at 131K, 34% at 524K, and 50% at 1M (47% on SGLang).
The gap between predictors in the same measurement set is stark: the linear model underestimates by 39.7% at 1M, a Vidur-style random forest underestimates by 51.7% (still 35.2% low even after adding two calibration points, because it cannot predict beyond its longest training length), while this paper's physically-coefficient model is within 4.3% at 1M on vLLM and 0.2% on SGLang.
Same model, different engine, very different threshold
What matters more is how sensitive the threshold is to the engine. On the same 72B model with the same 4 A800s: HF Transformers in eager mode gives L* = 29K, Flash-Attention 2 gives 247K, SGLang gives 1.26M, and vLLM gives 1.08M. The reason is that HF eager exposes the raw O(l²) attention cost; FA2 reduces the traffic moved to HBM without reducing the arithmetic, so quadratic growth reappears at ultra-long lengths. For the HF eager row, L_max/L* = 4.5, meaning linear estimates already underpredict within normal output lengths, which is roughly the hazard of calibrating on short outputs and extrapolating.
Good news is that the model can change engines. The paper reports that coefficients calibrated on one A800 predict one A100 to within 1.5% at 262K and an H800 to within 4.7% between 8K and 131K; only the quadratic coefficient d follows 1/G strictly, with d predicted within 11.3% going from one A800 to four. Across models, KV-read bandwidth utilisation on five vLLM deployments ranges from 0.63 to 0.72, and calibrating on any one of them predicts the others within 13%.
Ordinary users are actually not affected
In shared serving, the easiest wrong guess is that ultra-long responses slow everyone down. The measurement says otherwise.
On vLLM with a Poisson arrival of 1 request/second, 901 requests arrived over 900 seconds, 9 of them elephants. Median end-to-end latency for normal requests was 11.7 seconds with the ultra-long requests present and 11.3 seconds without them. Under burst arrival, the normal-request TTFT SLO pass rate moved from 30.0% to 29.9% and the 60-second end-to-end pass rate from 53.2% to 51.9%. The elephants' own median end-to-end latency was 8541 seconds.
Sweeping the elephant fraction from 0 to 5% (0 to 46 elephants), the median TTFT for normal requests stayed between 8.6 and 12.5 seconds with no trend following the elephant fraction, and per-token decode time varied within 2.5%. The reason is simple: normal requests finish during the early high-concurrency phase, before the elephants' KV cache has grown.
What gets wrecked is the provider's books
Almost all of the cost lands on the provider side.
Elephants drag on each other: in the 0.5% cell, 6 elephants fill 62% of the KV cache and each takes 1.75x its time in the 0.1% cell; in the 1% cell, 11 elephants exceed the KV cache entirely and the ratio reaches 2.98x, with an elephant at 78K output in the 1% cell taking 2.24x as long as one in the 0.1% cell.
Node occupancy is even more direct. In the Poisson cell, normal requests finish at 913 seconds and 9 elephants then decode for another 8700 seconds; over that period node output drops from 440 output tokens per second to 130. In the burst cell, normal requests finish at 105 seconds with the node producing 3700 tokens per second, after which the 11 remaining elephants produce only 130 per second. The paper's phrasing is that 1% of requests with ultra-long responses keep the node busy about 100 times as long as the normal traffic they arrive with.
Then there is profit. Charging per token means revenue grows linearly with output length while cost grows super-linearly with response length, so beyond some length a single request stops paying for itself. The cost model gives that length as L_loss = (r_tok/κ_node − c)/d. Batching amortises the linear term c, but each stream still reads its own KV cache, so even unbounded concurrency only relaxes the ceiling to something proportional to r_tok/(κ_node·d). Adding hardware does not rescue it either: as device count rises, κ_node grows with G and d falls with 1/G, but the subtracted c/d grows, so L_loss gets smaller.
Limits and neighbouring roads
The paper's own stated limits: all experiments run on single-node multi-GPU servers, so cluster-level effects such as inter-node communication, cross-node pipeline parallelism and global load balancing are not measured; scheduling and admission-control policies were neither designed nor evaluated.
The model side is clearly working on this quadratic term. DeepSeek-V4's hybrid attention (CSA plus HCA) needs only 27% of DeepSeek-V3.2's single-token inference FLOPs and 10% of its KV cache in a 1-million-token context, so shrinking the KV shrinks the quadratic term too. Qwen2.5-1M uses sparse attention plus chunked prefill for a 3x to 7x prefill speedup at 1-million-token context, but that treats prefill; on the decode side there is FastServe's route of preemption scheduling at output-token granularity. Another line is purely economic: Erdil's paper turns the trade-off between cost per token and serial speed into a Pareto frontier.
So where does this leave us: the cost problem of long output is not about whether models can write that long, but about what price a provider attaches to the job. Linear per-token pricing meeting super-linear cost does not lose you compute, it loses you your pricing model. The paper hands you two usable numbers: L* tells you where the linear estimate fails, L_loss tells you where a request stops paying for itself. Anyone selling long output by the token has to look at that curve again.
The paper is at arXiv:2611.37527.