Manuscript Offprint

arXiv:2610.29820

UlaCache: Unified Logical Addressing for Sparse LLM Serving

Isaac Zhu, Alan Cao, Hugh Yin, Rocky Wang, Orion Wang, Hscos Zhang, Jack Li, Jason Zhao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Isaac Zhu

isaac@scitix.ai

Alan Cao

sage@scitix.ai

Hugh Yin

hugh@scitix.ai

Rocky Wang

rocky@scitix.ai

Orion Wang

orion.wang@scitix.ai

Hscos Zhang

cos120@scitix.ai

Jack Li

jack@scitix.ai

Jason Zhao ∗^{*}

jason@scitix.ai

Scitix.AI

ABSTRACT

Long contexts increase the memory cost of the key-value (KV) cache in large language model (LLM) inference. Sparse attention reduces attention computation and memory traffic by selecting historical tokens, but the retained KV cache must remain available for later decoding steps. We present UlaCache, a KV cache management system built around a unified logical address space spanning GPU KV pools and optional CPU memory. Stable logical references let the inference engine allocate and select KV independently of physical placement. Common allocation and sparse-access interfaces support data-parallel (DP) and tensor-parallel (TP) attention. For distributed storage, local GPU buffers retain selected KV across decoding steps, so only missing entries require transfers. When CPU storage is enabled, Parallel Bucketed LRU (PB-LRU) manages a GPU pool shared across requests. It updates recency metadata and selects eviction victims in parallel. UlaCache transfers KV and then updates the address mappings. With speculative decoding enabled under matched CPU and GPU memory budgets, UlaCache achieves peak decoding throughput speedups of 1.16×1.16\times (DP) and 1.70×1.70\times (TP) on 8×8\timesH200, and 1.73×1.73\times (DP) and 2.51×2.51\times (TP) on 8×8\timesB300, compared with the state-of-the-art baseline.

1 INTRODUCTION

Efficient serving of long-context large language models (LLMs) requires enough memory to keep many requests active. Batching amortizes model execution across requests and raises decoding throughput, but every active request needs a key-value (KV) cache to retain its history (Kwon et al., 2023; Agrawal et al., 2024). The memory occupied by model weights is independent of batch size, whereas KV storage grows with the number and length of active contexts. As context length and concurrency grow, this cache can exhaust GPU memory and prevent larger decode batches. Increasing the amount of useful history that fits in a fixed memory budget is therefore central to throughput scaling. Sparse attention reduces the KV data read by each decoding step, selecting a subset of historical tokens or blocks for attention (DeepSeek-AI et al., 2025). Models including DeepSeek-V4.1-Flash (DeepSeek-AI et al., 2026), the GLM-5 family (GLM-5-Team et al., 2026), Qwen3.8-Flash-UlaCache HiSparse SGLang

Low latency

Figure

High KV capacity

High throughput

(a) 8×H200⋅TP8 \times H200 \cdot TP

Low latency

Figure

High KV capacity

High throughput

(b) 8×B300⋅DP8 \times B300 \cdot DP

Figure 1. TP on 8×H2008 \times H200 and DP on 8×B3008 \times B300. Normalized per panel; latency axis: 0.6–1.0, others: 0–1.

Next (Qiu et al., 2026), Hy4 Preview (Tencent Hy Team, 2026), and Step 5 Preview (StepFun Team, 2026) adopt this approach to reduce long-context attention cost. In index-based sparse attention, the selected set can change across steps, so unselected history must remain available for future

∗^{*}Corresponding author.

queries (DeepSeek-AI et al., 2025; Xie et al., 2026). Reading less KV data per step therefore leaves a storage problem: the retained history still grows with context length and the number of active requests, limiting the number of requests that can decode concurrently under a fixed memory budget. CPU memory can extend KV storage, but its effect on decode concurrency depends on how it is used. In the prefix-reuse paths of HiCache and LMCache, cached KV is loaded into the inference engine's GPU slots to avoid prefill computation (Xie, 2025; Liu et al., 2025). This improves serving efficiency, while the active decode batch remains bounded by the GPU KV allocation. HiSparse instead keeps complete histories of active requests in CPU memory and fetches selected KV into GPU caches (Xie et al., 2026). This supports decoding beyond GPU memory capacity, but GPU slots hold copies of CPU-resident KV and do not add capacity for distinct history.

We present UlaCache, a KV cache management system built around a unified logical address space for GPU and CPU memory. The inference engine allocates and selects KV using stable logical references; UlaCache resolves physical locations, transfers the required data, and updates mappings as KV moves. Common allocation and sparse-access interfaces support data-parallel (DP) attention with rank-local storage and tensor-parallel (TP) attention with history distributed across GPUs. Implementing this abstraction efficiently poses two challenges.

Challenge 1: Unified KV addressing and storage organization. Aggregating GPU and CPU memory requires a unified KV address space that keeps logical references stable as KV data moves between physical locations. The KV required by attention may reside on the computing GPU, a peer GPU, or in CPU memory. The organization of local and remote storage determines how much KV history is replicated and how much data must be transferred for attention. The challenge is to organize local KV access and distributed history storage under a common logical address space, reducing storage redundancy and the overhead of accessing and migrating KV across devices.

Challenge 2: Efficient LRU replacement and mapping management. Historical tokens selected by sparse attention exhibit strong temporal locality across consecutive decoding steps. This temporal locality allows GPU caching to reduce redundant KV transfers. Least Recently Used (LRU) replacement determines which KV entries remain cached when capacity is limited. Each sparse access requires hit detection and recency updates; cache misses additionally require slot assignment for incoming KV, victim selection when capacity is full, and mapping updates after migration. These operations recur across requests and layers at every decoding step. Processing them serially adds management overhead to the decoding critical path. The challenge is to execute LRU replacement and the associated mapping updates efficiently, reducing the management overhead of local eviction and remote KV fetch planning.

We make three contributions:

• Unified KV addressing and storage organization. We provide a unified logical address space for KV stored in GPU and CPU memory, decoupling the references used by the inference engine from physical data placement. Common allocation and sparse-access interfaces support rank-local storage in DP and distributed storage across GPUs in TP. UlaCache resolves selected addresses, performs the required KV transfers, and commits mapping updates while keeping logical references stable. The storage organization also reduces GPU–CPU history duplication and, for Multi-head Latent Attention (MLA), replication across TP ranks. In TP mode, computing ranks cache previously fetched KV in local GPU buffers and transfer only missing entries, reducing redundant data movement. For layers sharing sparse selections, UlaCache prefetches the selected KV for later layers while the current layer executes.

• Parallel bucketed LRU and address mapping updates. We design Parallel Bucketed LRU (PB-LRU) to make replacement and mapping management efficient over GPU capacity shared across requests. PB-LRU approximates LRU by grouping GPU slots into recency buckets and processing address translation, hit detection, and recency updates in parallel. For incoming KV, hierarchical bitmaps locate replacement candidates and assign destination slots while protecting entries needed by the current attention computation. Transfer plans record the locations of incoming and outgoing KV; mappings are updated after the data transfers complete so subsequent accesses resolve to ready data. For layers sharing sparse selections, UlaCache reuses access plans to avoid repeated address lookup, deduplication, and slot assignment, reducing LRU and mapping management overhead.

• System implementation and evaluation. We implement UlaCache in SGLang and evaluate DP and TP modes with and without speculative decoding. With speculative decoding enabled under matched CPU and GPU memory budgets, UlaCache achieves peak decoding throughput speedups of 1.16×1.16 \times (DP) and 1.70×1.70 \times (TP) on 8×H2008 \times H200, and 1.73×1.73 \times (DP) and 2.51×2.51 \times (TP) on 8×B3008 \times B300, compared with HiSparse.

Figure 1 summarizes latency, peak output throughput, and unique KV history capacity for TP on 8×H2008 \times H200 and DP on 8×B3008 \times B300.

References (22)