TL;DR
This paper explores using High-Bandwidth Flash (HBF) to break the "memory wall" in LLM serving, particularly for long-context agentic workloads. By introducing a hierarchical storage system and a novel buffered cache-aware scheduler, the authors demonstrate that HBF can reduce workload completion times by up to 87% and extend flash write lifetime from under 5 years to nearly 15 years.
What Problem Does This Paper Address?
LLM serving is currently bottlenecked by memory, not just compute. As models grow and "agentic" workflows (multi-turn interactions with long contexts) become common, the system must store massive amounts of KV (Key-Value) cache to avoid recomputing previous parts of a conversation.
High-Bandwidth Memory (HBM) is fast but expensive and capacity-limited. While High-Bandwidth Flash (HBF) offers much higher capacity, it comes with three major headaches:
- Asymmetric costs: Reads are slower and more energy-intensive than HBM.
- Slow writes: Writing to flash is significantly slower than reading.
- Finite endurance: Flash wears out after a certain number of program/erase (P/E) cycles.
The authors tackle the challenge of how to integrate HBF into the serving stack without destroying performance or wearing out the hardware prematurely.
Methods
The researchers proposed a multi-pronged approach to managing HBF:
- Hierarchical Storage System: They designed a four-tier hierarchy: HBM → HBF → Host DRAM → SSD. Frequently accessed data (like weights and active KV caches) stays in HBM, while "colder" state is demoted to HBF and eventually offloaded to the host.
- Architectural Comparison: They compared two ways to attach HBF to a GPU: a "shared-site" design where HBM and HBF compete for physical space, and the $H^3$ architecture, where HBF is chained behind HBM, preserving full HBM bandwidth.
- Buffered Cache-aware Scheduling: This is the key algorithmic contribution. Standard schedulers try to maximize batch size, which often leads to "cache churn"—evicting a stored KV cache just before it's needed again. The authors introduced an admission buffer (e.g., reserving 10% headroom) to prevent over-saturation and protect reusable prefixes.
Datasets
The study utilized a trace-driven simulation based on the LMCache agentic dataset, which contains ~25,000 multi-turn agentic sessions. To test extreme scenarios, they created:
- 1× Trace: 100,000 turns with original conversation lengths.
- 5× Trace: 500,000 turns created by concatenating sessions to simulate extremely long-context interactions (mean input length of ~89k tokens).
- Qwen Workload: A separate 25k-turn workload for scheduling sensitivity studies.
Key Insights and Ideas
- Scheduling as Hardware Protection: The most striking insight is that scheduling isn't just for performance; it's essential for hardware longevity. By simply reserving 10% of memory capacity, the system avoids the constant "thrashing" of KV caches, which drastically reduces the number of writes to HBF.
- The $H^3$ Advantage: Chaining HBF behind HBM ($H^3$) is superior to sharing sites. As shown in Figure 2, the $H^3$ design allows for larger capacity without sacrificing the critical bandwidth of HBM.
- Energy Trade-offs: While HBF saves energy on heavy workloads by avoiding recomputation (prefill), it can actually increase energy consumption on light workloads because HBF reads are more expensive than HBM reads.
- Placement Matters: For Sparse-MoE models, placing frequently used "hot" experts in HBM while keeping the rest in HBF provides a "sweet spot" for energy and performance.
Key Results
- Performance: HBF-augmented systems reduced completion times by 36.1% to 87.0% compared to HBM-only baselines.
- Energy Efficiency: The system achieved up to 55.8% energy savings on long-context workloads by maximizing KV cache reuse.
- Write Lifetime: Without the proposed buffered scheduling, HBF would wear out in about 4.77 years. With a 10% admission buffer, the estimated lifetime jumps to 14.82 years, making it practical for enterprise deployment.
- Cache Hits: In the $H^3$ configuration with buffering, the device hit rate (HBM + HBF) reached over 96%, meaning almost all required context was found on-chip.
Limitations and Future Work
- Throughput Focus: The study focuses on high-throughput scenarios and does not impose strict per-request latency targets. In latency-sensitive applications, the benefits of HBF might be more muted.
- Simulation Constraints: The results are based on trace-driven simulations with calibrated kernel models. While grounded in H100/B200 data, real-world HBF controllers and wear-leveling algorithms may introduce additional overheads.
- Future Directions: The authors suggest exploring speculative decoding in HBF systems and developing more sophisticated "expert-activity" estimators for Sparse-MoE models to further optimize data placement.
Summary updated