arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.06010cs.LGcs.AIcs.DC
收藏

MoSKA:用于高效长序列LLM推理的共享KV注意力混合架构

MoSKA: Mixture of Shared KV Attention for Efficient Long-Sequence LLM Inference

SK hynix Inc.(SK 海力士公司)

Myunghyun Rhee, Sookyung Choi, Euiseok Kim, Joonseop Sim, Youngpyo Joo, Hoshik Kim

AI总结:

MoSKA针对长序列LLM推理中KV缓存导致GPU利用率低的问题,提出共享KV注意力机制,通过批处理将内存受限的GEMV转为计算受限的GEMM,并结合稀疏注意力与分解式基础设施,实现高达538.7倍的吞吐量提升。

摘要:

大语言模型(LLMs)中不断增长的上下文长度在键值(KV)缓存周围造成了严重的性能瓶颈,其受限于内存带宽的特性导致GPU利用率显著不足。本文提出了共享KV注意力混合架构(MoSKA),该架构通过利用上下文数据的异构性来应对这一挑战。它区分了每个请求独有的序列与大规模复用的共享序列。MoSKA的核心是一种新颖的共享KV注意力机制,通过将并发请求进行批处理,把针对共享数据的注意力从一系列受限于内存带宽的GEMV操作转变为单个受限于计算能力的GEMM操作。该机制由一个受MoE启发的稀疏注意力策略(用于剪枝搜索空间)以及一个定制的分解式基础设施(为独有数据和共享数据分别专门化硬件)所支持。这种综合性方法在具有高上下文共享的工作负载中,相较于基线实现了高达538.7倍的吞吐量提升,为可扩展的LLM推理提供了一条清晰的架构路径。

英文摘要:

The escalating context length in Large Language Models (LLMs) creates a severe performance bottleneck around the Key-Value (KV) cache, whose memory-bound nature leads to significant GPU under-utilization. This paper introduces Mixture of Shared KV Attention (MoSKA), an architecture that addresses this challenge by exploiting the heterogeneity of context data. It differentiates between per-request unique and massively reused shared sequences. The core of MoSKA is a novel Shared KV Attention mechanism that transforms the attention on shared data from a series of memory-bound GEMV operations into a single, compute-bound GEMM by batching concurrent requests. This is supported by an MoE-inspired sparse attention strategy that prunes the search space and a tailored Disaggregated Infrastructure that specializes hardware for unique and shared data. This comprehensive approach demonstrates a throughput increase of up to 538.7x over baselines in workloads with high context sharing, offering a clear architectural path toward scalable LLM inference.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑