TL;DR
Serving long-context Large Language Models (LLMs) with sparse attention creates a frustrating paradox: you need massive memory capacity to store the whole conversation history, even though you only read a tiny sliver of it per token. HBFWeave solves this by sliding a thin layer of fast DRAM right inside a 3D-stacked High-Bandwidth Flash (HBF) cube—and teaching the hardware controller how to juggle irregular reads and relentless writes. The result is an average 2.65× boost in serving throughput and up to 3.88× longer Flash lifespan compared to using Flash alone.
What Problem Does This Paper Address?
As LLM context windows stretch to a million tokens, the Key-Value (KV) cache—the model's working memory of past tokens—balloons in size. Modern models use sparse attention to save compute and bandwidth, reading only a tiny fraction (around 1.5%) of that massive cache at each decoding step. Keeping all that rarely-touched data in expensive, ultra-fast High-Bandwidth Memory (HBM) is like renting a Manhattan penthouse just to store winter coats.
Enter High-Bandwidth Flash (HBF), which stacks NAND Flash dies vertically to offer huge capacity (256–512 GiB per stack) and solid aggregate read bandwidth.
However, Flash wasn't built for sparse attention's quirky behavior:
- Wasted Reads &Latency: Flash reads data in coarse kilobyte pages taking microseconds, whereas sparse attention cherry-picks small, scattered entries.
- Plane Traffic Jams: HBF gets its speed from reading many parallel Flash "planes" at once. Scattered reads hit some planes much harder than others, causing head-of-line blocking under standard first-in, first-out (FIFO) queues.
- Write Stalls & Wear-out: Every new token writes fresh KV data. Flash programming is slow (stalling reads), and erasing old requests triggers garbage collection (GC)—forcing the drive to copy live data from active requests, accelerating hardware wear-out.
Methods
Instead of pairing a GPU with an entire separate HBM stack just for caching, HBFWeave builds a heterogeneous memory stack (HMS) on dedicated sparse-attention nodes. In a 16-die stack, it swaps out just one or two 32 GiB Flash dies for 2 GiB DRAM dies. Flash holds the full KV cache, while DRAM acts as a small, ultra-fast cache and write buffer.
Because DRAM space is tight, HBFWeave introduces three smart controller mechanisms on the stack's logic base die:
- Reuse-Aware KV Admission: Standard LRU caching thrashes under small budgets. HBFWeave tracks which pages were selected over the last 16 decode steps ($W=16$), plus how many times a page is referenced within the current layer (since multiple small KV entries can share one 4 KiB Flash page). A newly read Flash page only evicts a cached DRAM page if it has higher historical reuse or is hit at least twice in the current layer.
- Ready-Plane Read Scheduling: Rather than serving Flash misses strictly in FIFO order—and getting stuck behind a busy plane—the controller tracks plane availability and dispatches reads to whichever ready plane has the deepest queue of waiting requests.
- Read-Prioritized Waves & Request-Grouped Blocks: Incoming writes are buffered in DRAM and flushed in coordinated "waves" across planes, letting urgent reads cut in line when buffer space allows. Furthermore, HBFWeave groups pages from the same user request into dedicated Flash erase blocks. When a request finishes, entire blocks become invalid at once and can be erased cleanly without copying live neighbours.
Datasets
To evaluate their architecture via trace-driven simulation (combining HBFSim and Ramulator), the authors extracted sparse-attention selection profiles from LongBench v2 across 128K and 1M token contexts. No new datasets were introduced; instead, LongBench-derived read profiles and sampled output lengths were replayed across 10,000 simulated requests on four sparse/hybrid Mixture-of-Experts models: DeepSeek-V4-Flash, GLM-5.3-Flash, Qwen3.8-Flash-Next, and MiniMax-M3.
Key Insights and Ideas
- Extreme Skew Rescues Tiny Caches: Why does replacing just 1 out of 16 dies with DRAM work so well? Across all four models, the hottest 10% of KV entries account for 92.7% to 98.0% of all accesses. You don't need much DRAM if you are picky about what you let in.
- Recent-Token Windows Aren't Enough: Prior approaches often cache only the most recent tokens in fast memory. HBFWeave shows that sparse attention frequently revisits older "sink" or semantically crucial context regions—meaning historical reuse tracking beats simple sliding windows.
- Matching Lifetimes Saves Flash: Mixing tokens from short and long conversations in the same Flash block causes up to 4.1× write amplification during garbage collection. Simply funneling requests into a handful of separate write groups per plane slashes unnecessary data copying.
Key Results
Evaluated across 16 workload configurations (batch sizes 64 and 256; contexts of 128K and 1M) against an HBF-only baseline:
- Speedups: HBFWeave achieves an average 2.65× serving throughput speedup (up to 4.25×), alongside 2.55× median (P50) and 3.81× tail (P90) reductions in Time-Per-Output-Token (TPOT). It also outperforms adapted state-of-the-art baselines (HBFlex-style at 1.38× and SPLASH-style at 1.47×).
- Smarter Caching: Reuse-aware admission boosts DRAM hit rates from 30.1–61.4% (under LRU) to 47.3–74.4%, cutting Flash page senses by up to nearly half.
- Endurance & Energy: Request grouping and write buffering lower Write Amplification Factor (WAF) by 51.2–88.6%, extending estimated Flash lifetime by 1.71–3.88× and improving overall system energy efficiency by 2.12×.
- Thermals: Simulated 3D-stack DRAM temperatures peak at 68.7 °C, comfortably below the 85 °C threshold where DRAM requires extra refresh overhead.
Limitations and Future Work
While the authors do not include a dedicated limitations section, several constraints are apparent from their evaluation setup:
- Simulation-Based Evaluation: Because mixed DRAM–HBF 3D stacks are an emerging architecture, all performance, energy, and thermal results rely on trace-driven simulators (HBFSim, Ramulator, HotSpot) rather than physical silicon.
- Uniform Wear Assumption: Flash lifetime gains (1.71–3.88×) are calculated assuming ideal uniform wear-leveling across the device and continuous activity.
- System Complexity: Deploying HBFWeave relies on an attention–FFN disaggregated cluster architecture—requiring high-speed interconnects (modeled at 900 GB/s) between specialized HBF sparse-attention nodes and HBM compute nodes. Future exploration isn't explicitly outlined by the authors, though real-world hardware prototyping and dynamic die-allocation tuning remain natural next steps.
Summary updated