Behind LLM Service Rate Limiting: The Structural Contradiction in Compute Supply and Demand
This article analyzes the recent rate limiting of Large Language Model (LLM) services, clarifying that the root cause is not solely external export controls on incremental compute, but rather the structural inefficiency in consuming existing GPU memory (VRAM), particularly due to KV Cache usage in long user sessions. It explores the evolution of compute supply constraints and outlines engineering strategies such as VRAM optimization, multi-tier scheduling, and architectural innovation to address this dual challenge.
1. A Curious Coincidence in Timing
Recently, a major LLM service implemented frequency and quota limits on user sessions. The market’s immediate reaction was highly unanimous: compute is running out. Almost simultaneously, overseas export control rules underwent major adjustments—the target of control shifted from the physical cross-border movement of chips to the supply of remote compute. Any overseas data center providing “large quantities” of advanced AI chip compute to enterprises in specific restricted regions now requires an export license. Several countries previously considered “detour channels” were also directly placed on a high-risk transshipment list.
The close timing of these two events naturally wove a narrative: external blockades cut off compute imports, forcing services to limit rates. This explanation is intuitively logical and highly communicable. However, delving into the technical details reveals that it confuses two fundamentally different issues: external constraints affect the acquisition channels for incremental compute, while rate limiting primarily addresses the structural problem of existing compute being consumed inefficiently.
2. The Real Cause of Rate Limiting: Structural VRAM Squeezing
To understand the technical drivers behind rate limiting, we must first examine the resource model of LLM inference services.
The scarcest resource in inference services is not FLOPs (compute), but VRAM (GPU memory). VRAM consumption generally consists of three parts:
- Model weights: Resident in VRAM, determined by model size, relatively fixed.
- KV Cache: Grows linearly with the number of concurrent sessions and context length, representing the most elastic component.
- Activations and intermediate states: Related to batch size, with relatively controllable fluctuations.
The key variable is the KV Cache. Taking a medium-sized dense model as an example, assuming the KV Cache consumes about 0.5MB per token (depending on the number of layers, heads, and quantization precision), a long session with a context length of tens of thousands of tokens can consume tens of gigabytes of VRAM for a single request. This means:
# Single request VRAM usage≈ 2 × num_layers × context_length × num_kv_heads × head_dim × precision_bytes
Under batch scheduling, a few ultra-long sessions can squeeze out the VRAM space that could otherwise serve dozens of normal sessions. More problematically, the distribution of long sessions in free consumer-facing scenarios is highly uneven—a small number of heavy users may consume resources far exceeding the average, forming a typical “resource long-tail.”
Therefore, the essence of rate limiting is not “insufficient total compute,” but rather the inefficient allocation of VRAM, a critical resource, among requests: long sessions and idle suspended sessions consume high VRAM costs for extremely low marginal benefits, squeezing the effective throughput of the overall service.
3. Tightening Incremental Channels: The Evolution of Controls
Looking at the external constraint side, the evolution path of compute controls over the past few years is clear:
- Phase One: Controlling the chips themselves. Using compute density and interconnect bandwidth as thresholds to restrict the direct export of advanced AI chips.
- Phase Two: Controlling equipment and clusters. Incorporating whole machines and integrated cabinets into the control list, closing the loophole of “buying cards and assembling.”
- Phase Three: Controlling remote compute supply. This is the latest rule change—no longer just looking at the cross-border movement of chips, but examining whether the “compute service” itself flows cross-border to restricted entities. Overseas data centers providing large-scale advanced compute to specific enterprises must obtain a license.
The essence of Phase Three is to formally block, at the institutional level, the previous detour path of “renting server rooms abroad when domestic procurement is impossible.” For enterprises, this means the difficulty of acquiring incremental compute has systematically increased: direct procurement is restricted, leasing overseas compute is restricted, and even control at the model weight level is beginning to be discussed.
4. Solutions Under Dual Constraints
Viewing these two threads together reveals that they point to two facets of the same resource pool:
- Incremental side (acquiring new compute): Constrained by export controls and supply chain limitations, with limited short-term elasticity.
- Existing side (optimizing current compute): Abundant room for optimization, which is where engineering teams can directly exert their efforts.
Common practices within the industry include:
1. Efficient KV Cache Management. Adopting paged memory management like PagedAttention to organize the KV Cache into a virtual memory-like paged structure, reducing fragmentation rates from tens of percent to single digits, thereby significantly increasing effective concurrency under the same VRAM capacity.
2. Quantization and Sparsification. Quantizing the KV Cache (e.g., 8-bit or lower precision) or applying sliding windows and attention sparsification to long contexts directly compresses the VRAM footprint of a single request.
3. Multi-tier Scheduling Strategies. Differentiating session length and priority: short, high-priority requests are processed immediately, while long sessions use preemptive scheduling and VRAM swap-in/swap-out (layer-wise offloading, CPU offload). Idle sessions release VRAM during long intervals and recompute on demand or restore from main memory when resuming.
4. Differentiated Service Tiering. Implementing reasonable quotas and rate limits for free users, prioritizing scarce VRAM resources for high-value, high-concurrency scenarios. This is the direct product-level correspondence to the recent rate-limiting event—rather than being a “signal of compute shortage,” it is a necessary stage of refined resource operations.
5. Conclusion
Attributing “rate limiting” simply to “blocked chips” both underestimates engineering complexity and overstates the immediate impact of blockades. External controls tighten incremental channels, affecting expansion rhythms over the next three to six months; rate limiting, however, solves the structural mismatch of existing compute—a challenge that any inference service facing massive free users will eventually have to face. For the AI industry operating under these constraints, the real long-term proposition is a two-front war: meticulously budgeting under incremental constraints on one hand, and fundamentally altering the compute consumption curve through architectural innovation (such as MoE, linear attention, and edge-cloud collaboration) on the other. Whoever can push the efficiency of existing compute to the extreme will gain more initiative in this asymmetric competition.
