跳到正文
arXiv (AI + Vision + Imaging)· Feiyu Yao, Zhixiong Niu, Xiaqing Li, Yongqiang Xiong, Juan Fang, Qian Wang·· 2 天前AI 评分36

Mosaic:面向长上下文解码的CPU-GPU协同块稀疏注意力系统

Mosaic: Efficient CPU--GPU Coordinated Block-Sparse Attention for Long-Context Decoding

AI 导读

Mosaic是一个面向CPU驻留KV缓存长上下文解码的CPU-GPU协同块稀疏注意力系统,通过输出贡献感知的KV预算、按注意力头定制且粒度感知的稀疏配置,以及跨设备协同调度,在保持接近FULL质量的同时提升效率。在2个模型、3个基准、40个任务上,相比最佳质量的固定Quest配置,Mosaic将TPOT最高提升3.7倍,并在四种硬件配置和大模型多GPU部署中完成验证。

正文 · 原文

arXiv:2605.07719v3 Announce Type: replace Abstract: Long-context LLM serving increasingly relies on CPU-resident context KV cache, driven by KV offloading and disaggregated prefill--decode execution. Although block-sparse attention reduces KV access, existing designs remain inefficient: GPU-centralized execution fetches selected KV blocks from CPU memory at each decoding step, making it PCIe-bound, while CPU--GPU partitioned execution places CPU-side sparse attention on the critical path, leaving substantial GPU time idle. This paper presents Mosaic, a CPU--GPU coordinated block-sparse attention system for efficient long-context decoding with CPU-resident context KV. Mosaic builds on three key insights: output-contribution-aware KV budgeting, head-specific and granularity-aware sparse configuration, and cross-device coordinated scheduling for sparse tasks over CPU-resident KV. Guided by these insights, Mosaic integrates a lightweight head-property predictor, a granularity--budget selector, and a priority-based scheduler to automatically configure and coordinate sparse attention, preserving output quality while improving efficiency on heterogeneous architectures. Across 2 models, 3 benchmarks, and 40 tasks, Mosaic preserves near-FULL quality while achieving a better overall quality--efficiency tradeoff than the evaluated baselines. Compared with the best-quality fixed Quest configuration, Mosaic improves TPOT by up to 3.7$\times$. We further validate Mosaic across four hardware configurations and in a large-model multi-GPU deployment.

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