Pith. sign in

REVIEW 2 cited by

Challenges in Deploying Long-Context Transformers: A Theoretical Peak Performance Analysis

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2405.08944 v1 pith:7GUERYJD submitted 2024-05-14 cs.LG cs.AIcs.CLcs.DC

classification cs.LGcs.AIcs.CLcs.DC
keywords contextcachelongchallengesframeworklargelong-contextmemory
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Transformer-based long context generative models power emerging AI applications like hour-long video understanding and project-level coding agent. Deploying long context transformers (e.g., 100K to 10M tokens) is prohibitively expensive compared to short context (e.g., 4K tokens) model variants. Reducing the cost of long-context transformers is becoming a pressing research and engineering challenge starting from the year of 2024. This work describes a concurrent programming framework for quantitatively analyzing the efficiency challenges in serving multiple long-context requests under limited size of GPU high-bandwidth memory (HBM) regime. We give a detailed analysis of how all additional computational costs, compared to 4K context, trace back to \textit{one single source: the large size of the KV cache}. We use a 34B GPT-3.5 level model of 50K context on A100 NVLink as a running example, and describe how its large KV cache causes four types of deployment challenges: (1) prefilling long inputs takes much longer compute time and GPU memory than short inputs; (2) after prefilling, the large KV cache residing on the GPU HBM substantially restricts the number of concurrent users being served; (3) during decoding, repeatedly reading the KV cache from HBM to SM largely increases latency; (4) when KV cache memory overflows, swapping it from HBM to DDR causes significant context switching latency. We use this framework to analyze existing works and identify possibilities of combining them to build end-to-end systems. Overall, this work offers a foundational framework for analyzing long context transformer deployment and identifies directions towards reducing the inference cost of 1M context to be as cheap as 4K.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Accelerating Prefilling for Long-Context LLMs via Sparse Pattern Sharing

    cs.LG 2025-05 conditional novelty 7.0 of 10

    SharePrefill accelerates long-context LLM prefilling by clustering similar attention heads offline and sharing exact block-sparse attention patterns among them during inference.

  2. Beyond Homogeneous Attention: Memory-Efficient LLMs via Fourier-Approximated KV Cache

    cs.CL 2025-06 conditional novelty 5.0 of 10

    Compressing the less context-sensitive dimensions of the LLM KV cache with a truncated Fourier transform preserves long-context accuracy on LongBench and needle-in-a-haystack tests, while the claimed memory savings ar...

Pith tools