跳到正文
arXiv (AI + Vision + Imaging)· Yijun Sun, Xudong Liao, Zhuobin Huang, Kai Chen, Nikita Lazarev, Zhizhen Zhong·· 7 天前精选AI 评分55

XM-Sparse:面向scale-up内存池的稀疏注意力LLM服务系统

XM-Sparse: High-Throughput Sparse-Attention LLM Serving over Scale-up Memory Pools

AI 导读

论文提出XM-Sparse,这是首个面向scale-up内存扩展的稀疏注意力卸载系统,用于提升长上下文LLM的解码吞吐。作者分析发现,即使使用scale-up内存池,热KV缓冲与常驻的indexer key(K-index)缓存仍占用大量HBM,解码吞吐依然受HBM容量限制,且两类缓存访问模式不同。

推荐理由

论文分析了scale-up内存池下稀疏注意力解码仍受HBM容量限制的原因,并给出按访问模式分别卸载KV与K-index的设计,可供长上下文推理系统参考。

正文 · 原文

arXiv:2611.22280v1 Announce Type: cross Abstract: Sparse attention has been increasingly adopted by production LLMs for long-context inference, yet serving systems must still retain the full KV history, making GPU HBM capacity a key limit on serving concurrency. Existing systems offload the KV cache to host memory, but suffer from the limited bandwidth of PCIe and the limited capacity of host memory. Emerging scale-up memory pools (e.g., X-Mem) relieve both limits and open new opportunities for sparse-attention offloading. In this paper, we first conduct an in-depth analysis and reveal that, even with scale-up memory pools, decode throughput remains bounded by HBM capacity, as hot KV buffers and the fully resident indexer key (K-index) cache occupy substantial HBM. Moreover, the two caches exhibit distinct access patterns. Based on these insights, we present XM-Sparse, the first sparse-attention offloading system over scale-up memory expansion. The core idea of XM-Sparse is to offload both caches aggressively while matching each with an I/O mechanism tailored to its access pattern. Specifically, for dynamically selected KV entries, XM-Sparse fuses TMA-based retrieval with attention in a tile-level pipeline to hide on-demand retrieval latency. For predictable K-index accesses, it prefetches pages via SM-efficient GPU-initiated DMA and coordinates prefetching with latency-critical operations to avoid interfering with decoding. We have implemented XM-Sparse atop SGLang, and our experiments on DeepSeek-V3.2 and GLM-5.3 with an emulated scale-up memory pool show that XM-Sparse delivers up to 4.98$\times$ and 4.52$\times$ higher decode throughput than PCIe-based ECHO and HiSparse, respectively, and up to 1.34$\times$ over a naive integration on the same platform, across 16K-1M contexts.

来源:arXiv (AI + Vision + Imaging) · arxiv.org