TL;DR
Generative recommendation systems rely heavily on user-level KV caches to store long interaction histories, pushing traditional HBM and CPU memory systems to their capacity and bandwidth limits. High-Bandwidth Flash (HBF) offers a high-capacity, high-bandwidth alternative, but standard cache policies wear out the flash memory within a single year. This paper introduces an admission-controlled LRU-K policy that decouples cache writes from misses, extending flash lifetime to over six years while boosting serving throughput by up to 4.7×.
What Problem Does This Paper Address?
Modern Generative Recommendation (GR) systems use transformer-based architectures to analyze thousands of past user interactions to serve highly accurate recommendations. To avoid recomputing these massive user histories for every single request, systems maintain user-level Key-Value (KV) caches.
However, as user bases scale, the memory demands become staggering. Retaining the KV caches for just the hottest 25% of a 10,000-user workload on a 10-billion parameter model requires over 3.6 TB of capacity. High-Bandwidth Memory (HBM) has the speed but lacks the capacity, while offloading to CPU memory provides capacity but lacks the bandwidth required to meet tight latency budgets.
High-Bandwidth Flash (HBF) has emerged as a savior, offering over 10× the capacity of HBM while approaching HBM-class read speeds. But HBF has a major Achilles' heel: limited write endurance (typically around 100K program/erase cycles). Standard cache management policies like Least Recently Used (LRU) write a user's full KV cache back to memory on every single cache miss. This "write-on-miss" behavior causes massive cache churn from one-off or infrequent users, threatening to burn through an HBF device's lifespan in about a year.
Methods
The authors propose a write-aware cache management strategy using an admission-controlled LRU-K policy to replace standard LRU.
- Controlled Admission: Instead of blindly caching every user on a miss, LRU-K tracks the timestamp of a user's $K$-th most recent request. A user's KV cache is only admitted to the flash memory if their $K$-th request is more recent than the oldest $K$-th request currently in the cache. This effectively filters out transient, low-reuse users.
- Write-Miss Decoupling: By introducing this filter, a cache miss no longer automatically triggers a massive write to the flash. The miss path is split into two: a miss-write path for hot users who pass the filter, and a miss-no-write path for infrequent users. In the latter case, the history is recomputed to serve the request but is not written to the flash, saving precious write cycles.
- Analytical Modeling: The authors built a comprehensive roofline analytical model to evaluate performance (latency, throughput) and HBF lifetime across different hardware configurations.
Datasets
The paper evaluates its approach using simulated user traffic traces spanning diverse activity levels (with highly active users making >100 requests/hour). These workloads were evaluated against two state-of-the-art generative recommendation model families:
- HSTU (Hierarchical Sequential Transducers for Generative Recommendations): Evaluated at 1B, 10B, and a 100B Mixture-of-Experts (MoE) scale.
- OpenOneRec: Evaluated at 1.7B, 8B, and a 100B MoE scale.
Key Insights and Ideas
- The GR Advantage: Unlike LLM decoding—where KV caches grow dynamically within a single session—GR systems reuse static user histories across separate requests. This unique characteristic makes it possible to decouple write frequency from request frequency.
- Trading Compute for Endurance: The core counter-intuitive insight is that it is often better for overall system sustainability to intentionally recompute a user's history on a cache miss rather than writing it to flash, provided that user is unlikely to return soon.
- Intelligent Cache Shifting: Increasing $K$ doesn't just preserve the hardware; it actively shifts cache residency toward highly active users with longer histories. This optimization naturally maximizes cache hits where they matter most.
Key Results
- Massive Throughput Gains: HBF-based systems achieved 3.8× to 4.7× higher throughput (QPS) compared to HBM-only systems because the massive flash capacity prevents expensive history recomputations for active users.
- Dramatic Lifetime Extension: Under a standard LRU policy, the HBF device lasted only ~1 year. Implementing LRU-K with a moderate setting of $K=10$ extended the HBF lifetime to over 6 years, successfully meeting standard enterprise warranty expectations.
- Drastic Write Reduction: For the HSTU-10B model, shifting from LRU-1 to LRU-10 reduced the full write probability per request from 0.101 down to 0.014.
Limitations and Future Work
- Metadata Tracking Overhead: LRU-K requires maintaining a history of access timestamps for admission decisions. While the authors note that the endurance gains far outweigh this overhead, it does add complexity to the cache management layer.
- Power Consumption: HBF stacks draw more power (<80W) than standard HBM (40W). However, the authors argue this is mitigated at the system level because the higher per-device throughput reduces the total number of required devices.
- Simulation-Based Evaluation: The findings are based on analytical roofline modeling and simulated workloads rather than deployments on physical, production-grade HBF hardware, which remains an emerging technology.
Summary updated