TL;DR
SuperInfer is a high-performance LLM inference system designed specifically for "Superchips" (like the NVIDIA GH200). By co-designing an SLO-aware scheduler (RotaSched) and a high-speed memory engine (DuplexKV), it achieves up to a 74.7% improvement in meeting latency targets (SLOs) compared to state-of-the-art systems, finally bridging the gap between hardware potential and software performance.
What Problem Does This Paper Address?
Serving Large Language Models (LLMs) is a constant battle against memory. Every request requires a "KV cache" to store context, and as requests grow, this cache quickly exhausts expensive GPU memory (HBM). When the GPU is full, new requests get stuck in a "head-of-line" (HOL) block, causing massive delays.
While we can "offload" this cache to CPU memory (DRAM), traditional systems are built for PCIe architectures. PCIe is slow (32–64 GB/s), making swapping a last resort that often ruins user experience.
Enter Superchips like the NVIDIA GH200. These combine a GPU and CPU with a blazing-fast NVLink-C2C interconnect (900 GB/s). However, the authors discovered a "Superchip Paradox": existing software like vLLM only utilizes less than 5% of this bandwidth. The bottleneck isn't the hardware; it's a software stack that fragments data into tiny chunks, creating massive overhead that prevents the system from being responsive to strict latency Service Level Objectives (SLOs).
Methods
The authors introduce SuperInfer, which consists of two primary innovations:
- RotaSched (The Brain): Inspired by Operating System thread scheduling, RotaSched treats LLM requests like threads. Instead of waiting for a memory error to react, it proactively "rotates" requests between HBM and DRAM. It uses a new metric called Virtual Lag Time (VLT) to track how far a request is from missing its deadline (either for the first token or subsequent ones). It prioritizes "lagging" requests, ensuring the system stays responsive even under heavy load.
- DuplexKV (The Engine): To fix the bandwidth issue, DuplexKV redesigns how the KV cache is stored.
- Block-First Layout: It merges tiny, scattered memory segments into large, contiguous blocks (e.g., 4MB), which are much more efficient for high-speed transfers.
- Eager Block Rotation: It starts swapping "synced" (full) blocks to the CPU in the background before a request is even paused. This eliminates data races and allows for full-duplex transfers—meaning it can move data to and from the GPU simultaneously, maximizing the C2C link.
Datasets
The system was evaluated using:
- Models: LLaMA-3-8B, Qwen2.5-32B, and Mixtral-8x7B (an MoE model).
- Workloads: Real-world conversation datasets including ShareGPT and LMSYS-Chat-1M.
- Arrival Patterns: Requests were sampled using a Poisson distribution to simulate realistic, unpredictable traffic.
Key Insights and Ideas
- The "Bandwidth Cliff": The researchers found that while the C2C link is rated for 900 GB/s, the Grace CPU's DRAM subsystem (384 GB/s) is the actual limiting factor. Current software fails because it treats the link like a slow PCIe pipe rather than a high-speed memory extension.
- Proactive vs. Reactive: Most systems only offload when they run out of memory (reactive). SuperInfer offloads to meet deadlines (proactive). This shift allows the system to "time-slice" the GPU, much like a CPU handles multiple apps.
- Software-Hardware Mismatch: The popular PagedAttention mechanism, while great for memory efficiency, is terrible for high-speed interconnects because it fragments data. SuperInfer's "Block-First" layout fixes this without losing the benefits of paging.
Key Results
- SLO Attainment: SuperInfer improved the Time-To-First-Token (TTFT) SLO attainment rate by up to 74.7% over baselines like vLLM and LightLLM.
- Bandwidth Utilization: While standard vLLM achieved only ~10 GB/s on the GH200, DuplexKV reached ~180 GB/s per direction—nearly hitting the theoretical limit of the DRAM subsystem.
- Throughput: Despite the frequent "rotations," SuperInfer maintained or slightly improved overall throughput (up to 29.2% better in high-load scenarios) because it cleared the waiting queue more efficiently.
- Full-Duplex Efficiency: By enabling simultaneous bidirectional transfers, DuplexKV reduced end-to-end transfer times by 37.4x compared to naive methods.
Limitations and Future Work
- Hardware Specificity: The current implementation is highly optimized for the NVIDIA GH200 architecture. While the principles apply to other Superchips (like AMD’s MI300A), specific kernel tuning would be required.
- Parameter Sensitivity: The VLT metric relies on several hyperparameters ($\alpha, \beta$) that define how "sensitive" the scheduler is to different types of latency. Finding the "sweet spot" currently requires manual tuning for specific use cases.
- Multi-Node Scaling: The paper focuses on a single Superchip. Future work could explore how "rotary scheduling" works across a cluster of Superchips connected via InfiniBand or NVLink-Switch.
Summary updated