Strata: Hierarchical Context Caching for Long Context Language Model Serving

Zhiqiang Xie, Ziyi Xu, Mark Zhao, Yuwei An, Vikram Sharma Mailthody, Scott A. Mahlke, Michael Garland, Christos KozyrakisarXiv 2025 · DOI

Introduction

As Large Language Model (LLM) context windows expand to one million tokens and beyond, recomputing the Key-Value (KV) cache for every request becomes prohibitively expensive. While "context caching"—storing previously computed KV states—is a standard solution, these caches are massive, often exceeding the High-Bandwidth Memory (HBM) capacity of even the most powerful GPUs.

To handle this, production systems offload caches to CPU memory or SSDs. However, this creates a new "loading-bound" bottleneck. Current systems suffer from two main issues:

  1. I/O Fragmentation: Paged memory layouts (like PagedAttention) result in many small, non-contiguous data transfers that fail to saturate the available PCIe bandwidth.
  2. Naive Scheduling: Existing schedulers don't account for the time it takes to load a cache from CPU to GPU, leading to "stalls" where the GPU sits idle waiting for data.

Strata is a hierarchical context caching framework designed to eliminate these I/O bottlenecks. By utilizing GPU-assisted data transfers and a cache-aware scheduler, Strata achieves up to a 5× reduction in Time-To-First-Token (TTFT) and a 3.75× throughput speedup compared to state-of-the-art systems like vLLM and TensorRT-LLM.

System Architecture

Strata introduces two primary innovations to bridge the gap between compute and I/O: GPU-assisted I/O and cache-aware scheduling.

Strata System Architecture

1. GPU-Assisted I/O

Instead of relying on standard cudaMemcpy calls, Strata uses dedicated CUDA kernels to manage data movement. This allows the system to decouple memory layouts: the GPU can maintain a "layer-first" layout optimized for computation, while the CPU uses a "page-first" layout optimized for bulk I/O. The GPU kernels perform the transformation on-the-fly with negligible overhead. By launching thousands of threads to handle small data chunks, Strata achieves high PCIe utilization even with small page sizes.

2. Cache-Aware Scheduling

Strata’s scheduler treats I/O as a first-class resource through a three-stage process:

  • Delay Hit Deferral: If multiple requests arrive for the same missing cache entry, the scheduler defers them until the first load is resolved, preventing redundant computation.
  • Balanced Batching: It constructs batches by pairing "compute-heavy" prefill tasks with "I/O-heavy" cache loading tasks, ensuring the compute time hides the loading latency.
  • Bubble Filling: If a loading stall is unavoidable, the scheduler inserts "decode" tasks (which are memory-bandwidth bound) to run concurrently with the PCIe-bound cache transfers, effectively "hiding" the stall.

Key Insights: The Page Size Paradox

A critical observation in long-context serving is the trade-off between memory efficiency and I/O performance. Small memory pages (e.g., 16-32 tokens) maximize cache hit rates by allowing for fine-grained prefix matching, but they typically destroy I/O throughput due to fragmentation.

The Page Size Paradox

Strata breaks this trade-off by using GPU kernels to "gather" fragmented pages into bulk transfers. This allows the system to maintain high cache hit rates without sacrificing the bandwidth needed for low-latency serving. In the long-context era, the bottleneck has shifted from TFLOPS to PCIe/NVLink bandwidth; Strata demonstrates that a system must be "loading-aware" to remain efficient.

Evaluation and Results

The authors evaluated Strata using a mix of long-context benchmarks (LooGLE, NarrativeQA, ReviewMT) and short-context workloads (ShareGPT).

  • Latency and Throughput: Strata achieved up to 5× lower TTFT compared to vLLM + LMCache and delivered a 3.75× speedup over NVIDIA’s TensorRT-LLM.
  • Bandwidth Utilization: On the NVIDIA GH200 platform, Strata boosted sustained I/O throughput from ~40 GB/s to 150 GB/s.
  • Generalization: Strata maintained performance parity with baseline systems on short-context tasks, proving it is a robust solution for general-purpose serving.

Conclusion

Strata effectively addresses the I/O bottlenecks of long-context LLM serving by orchestrating hardware resources—compute cores, PCIe bus, and HBM bandwidth—more intelligently. While the GPU-assisted I/O kernels consume a small portion of the GPU's Streaming Multiprocessors (under 5%), this motivates future work into dedicated on-chip memory I/O accelerators. Extending these scheduling policies to distributed, remote memory pools remains an open area for exploration.

Summary updated

BibTeX
@misc{xie2025strata,
  author = {Zhiqiang Xie and Ziyi Xu and Mark Zhao and Yuwei An and Vikram Sharma Mailthody and Scott A. Mahlke and Michael Garland and Christos Kozyrakis},
  title = {{Strata: Hierarchical Context Caching for Long Context Language Model Serving}},
  year = {2025},
  eprint = {2508.18572},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.18572},
}
Figure