Supernode Inference Throughput Optimization: From GPU Stacking to Token Economics

    As inference spending is projected to surpass training spending, AI infrastructure competition is shifting from raw accelerator scale to inference efficiency and output per unit of compute. This article examines supernode resource pooling, the KV Cache bottleneck, prefix-aware shared pools, sparse-attention KV management, joint configuration search, and load-aware scheduling. It also presents a long-context test showing 4x concurrency and 1.6x peak decode throughput gains, and concludes that software-hardware co-design determines how much pooled hardware capacity becomes real token throughput.

    1. Inference Spending Surpasses Training: A Shift in AI Infrastructure Competition

    Industry research institutions generally forecast that in 2026, inference spending in the global AI-optimized IaaS market will reach about $23.3 billion, surpassing training-side spending of about $19.0 billion for the first time. Inference spending will rise to 55% of the total and is expected to climb further to 59% in 2027. These figures send a clear signal: competition in AI infrastructure is moving from simply comparing compute scale to comparing inference efficiency and output per unit of compute at the same time.

    Training is a one-time investment, while inference is an ongoing operating cost. As large models move from the lab to production environments, every user request and every generated token consumes real compute and power resources. As a result, the industry has begun to measure inference systems with more refined metrics:

    • Peak decode throughput: the total number of tokens a system can produce per second under saturated load;
    • Effective throughput per card: the real output of a single accelerator card after excluding idle and waiting time;
    • Concurrency capacity: the number of requests a single instance can serve simultaneously without significantly degrading latency.

    Together, these metrics answer one question: how can the same hardware produce more tokens?

    2. Supernode: The Hardware and Software Accounting of Resource Pooling

    The core idea of a supernode is to integrate multiple accelerator cards into a logically large compute resource pool through a high-bandwidth, low-latency interconnect network and unified memory addressing. From a hardware perspective, this solves three things:

    1. Partitioned deployment of large models: when the parameter scale exceeds the memory of a single card, tensor parallelism (TP) requires frequent inter-card communication, and interconnect bandwidth directly determines the proportion of communication overhead;
    2. Memory pressure from long contexts: as context length grows, KV Cache expands linearly, and unified memory addressing expands the available cache space;
    3. Elastic resource scheduling: after pooling, load balancing and compute partitioning can be performed over a larger scope.

    However, it must be emphasized that hardware resource pooling does not mean inference efficiency improves automatically. As model parameter scale, context length, and request concurrency grow, the storage resources occupied by KV Cache continue to expand. Coordinated scheduling among compute, storage, and communication becomes the decisive factor affecting token throughput. The number of cards, interconnect bandwidth, and memory resources form the compute foundation, while software and systems engineering determine whether these resources can be fully released.

    3. KV Cache: The Main Battleground for Inference Optimization

    To understand inference optimization on supernodes, we must first see the cost structure of KV Cache. Taking autoregressive decoding as an example, each request needs to cache the Key/Value matrices of historical tokens, and its memory footprint can be approximated as:

    1. KV footprint ≈ 2 × layers × heads × head dimension × precision bytes × context length × batch size

    In 64K-context, high-concurrency scenarios, KV Cache memory usage often far exceeds the model weights themselves. This creates two typical bottlenecks:

    • Memory fragmentation: differences in context length across requests cause preallocation strategies to waste substantial space;
    • Duplicate computation: when multiple requests hit the same prefix (such as the same system prompt), KV is recomputed and stored repeatedly.

    To address these two issues, several mainstream optimization paths have emerged:

    1. KV Cache Shared Pool (Prefix-Aware Reuse)

    Change KV Cache from being private to each request into a centralized shared pool, managed in blocks by page. Requests with the same prefix directly reuse already-computed KV blocks. This resembles the virtual memory paging concept in operating systems: on-demand allocation, physical sharing, and logical isolation. In multi-turn dialogue scenarios, historical context does not need to be recomputed, and time to first token (TTFT) drops significantly.

    2. Fine-Grained KV Management Under Sparse Attention

    In long-context inference, attention computation often exhibits sparsity: only a minority of KV blocks are actually attended. By identifying important KV blocks and downgrading storage for low-activity blocks or offloading them to host memory, more concurrent requests can fit in limited GPU memory, trading management for capacity.

    3. Joint Configuration Modeling and Search

    Inference service performance is affected by multiple coupled parameters: parallelism strategy (TP/PP partitioning), batch size, quantization precision (such as W4A8), scheduling policy, and so on. Tuning any single parameter alone yields limited benefit. Joint search builds a performance model and searches the configuration space for the optimal throughput-latency balance. For example:

    1. # Illustrative logic for joint configuration search
    2. for tp in [8, 16]:
    3. for quant in ["W8A16", "W4A8"]:
    4. for max_batch in [2, 4, 8, 16]:
    5. tput, latency = benchmark(tp, quant, max_batch)
    6. record(tp, quant, max_batch, tput, latency)
    7. # Under the latency SLO constraint, select the configuration with the highest throughput

    4. Load-Aware Dynamic Scheduling

    Online traffic request lengths and arrival rates fluctuate significantly. Static batching wastes compute during low periods and can worsen queuing during peak periods. Dynamic-aware scheduling adjusts batch assembly and request admission based on real-time memory watermark, KV pool occupancy, and request queue depth, keeping the system near the knee of the throughput curve.

    4. Quantifying the Benefit: A Finer Token Account

    Take a typical long-context inference test: under a 64K context, TP16, and W4A8 quantization configuration, with the combined optimization of a KV Cache shared pool and sparse-attention KV management, a test environment achieved the following results:

    • Inference concurrency increased from 2 to 8, reaching 4x;
    • Peak decode throughput increased from 39.41 tokens/s to 63.01 tokens/s, reaching 1.6x.

    One engineering insight worth noting is that concurrency increased 4x, but throughput increased only 1.6x. This is not an optimization failure; it is an objective property of the throughput-latency curve. As concurrency continues to increase, per-request latency and scheduling overhead rise, and marginal throughput gains diminish. The real optimization goal is to approach the throughput ceiling while satisfying latency SLOs, not to stack concurrency indefinitely.

    5. Conclusion: Software-Hardware Co-Design Determines Final Output

    The essence of supernode competition is shifting from a hardware resource pool to token economics: hardware sets the compute ceiling, and software determines the percentage of actual output. The value of technical paths such as KV Cache shared pools, joint configuration search, and load-aware scheduling lies in converting pooled hardware resources into real token throughput. For teams building AI infrastructure, a practical principle to follow is: first do the KV Cache memory accounting, then the concurrency scheduling accounting, and finally the configuration joint accounting. When these three accounts are clear, the room for releasing inference efficiency is often far larger than expected.