paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SwiftSpec: Disaggregated Speculative Decoding and Fused Kernels for Low-Latency LLM Inference

SwiftSpec:面向低延迟 LLM 推理的分解式推测解码与融合内核
ASPLOS Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 22026匹配度 2/10 · 该论文聚焦 LLM 推理加速的体系结构与内核优化(解聚式推测解码、融合 GEMM/注意力内核),属于机器学习系统/高性能计算方向,与用户核心关注的 PL→AI 静态分析、AI→PL 形式化验证、浮点程序分析及贝叶斯程序分析均无直接关系。虽然涉及工程实现和工业落地,但研究目标本身是 LLM 推理性能,不是程序语言或分析技术。引用 2 inbox
Ziyi Zhang, Ziheng Jiang, Chengquan Jiang, Menghan Yu, Size Zheng, Haibin Lin, Xin Liu, Henry Hoffmann
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出 SwiftSpec,通过跨 GPU 解聚草稿/目标模型并融合 GEMM 与注意力内核,显著降低单请求 LLM 解码延迟。

SwiftSpec 面向交互式系统中大语言模型单请求解码的低延迟需求。现有推测解码将小草稿模型置于关键路径,且单请求小批量使跨 GPU 扩展受通信开销限制。SwiftSpec 将草稿与目标模型解聚到单节点同构 GPU,直接使用 NCCL 低延迟原语,并优化 GEMM 与注意力内核;实现约 3 千行自定义 CUDA 融合内核及演化树缓存,以维持 KV-cache 一致性并最大化两模型间复用。在 8×H800 单节点上,Llama-3-70B 达 347 tokens/s,比 8×H200 上 NVIDIA 基准快 1.3×;跨五个模型族和六个数据集平均解码加速 1.75×,480 条 Llama-3-70B 查询均更快,95 分位请求相比最佳开源基线加速 1.7×。

问题
单请求、低延迟 LLM 解码中,推测解码的草稿模型仍在关键路径,且小批量导致跨 GPU 通信开销阻碍扩展。
方法
将草稿与目标模型解聚到单节点同构 GPU,使用 NCCL 低延迟原语并优化 GEMM/注意力内核,配合自定义 CUDA 融合内核和演化树 KV-cache。
评估
在 8×H800 节点上对 Llama-3-70B 等五个模型族、六个数据集实测,与 NVIDIA 基准和 SOTA 推测解码对比吞吐与分位延迟。
原文摘要(Abstract)

Low-latency, single-request decoding of large language models is critical for interactive systems with tight SLA demands. Prior work reduces latency through speculative decoding (combining a small draft model with a larger target model), but the draft model remains on the critical path, and communication overhead limits scaling across GPUs due to the small batch size associated with single-request decoding. To address these limitations, this paper introduces SwiftSpec: a system architecture that disaggregates draft and target models across homogeneous GPUs within a single node and utilizes NCCL-low-latency primitives directly to improve the performance of core GEMM and attention kernels. Our implementation includes 3k lines of custom CUDA for fused kernels and an evolving tree cache for KV-cache consistency and maximized reuse between draft and target models. On a single 8×H800 GPU node, SwiftSpec achieves 347 tokens/s for Llama-3-70B---1.3× faster than NVIDIA's own benchmarks on a higher-performance 8×H200 setup---and averages 1.75× faster decoding than state-of-the-art speculative decoding across five model families and six datasets. Specifically, we find that for Llama-3-70B SwiftSpec is significantly faster across all 480 tested queries, showing 1.7× speedup over the best open-source baseline for 95th percentile requests. Code for SwiftSpec will be available at https://github.com/ByteDance-Seed/SwiftSpec

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@inproceedings{ZhangJJY0LLH26,
  title = {SwiftSpec: Disaggregated Speculative Decoding and Fused Kernels for Low-Latency LLM Inference},
  author = {Ziyi Zhang and Ziheng Jiang and Chengquan Jiang and Menghan Yu and Size Zheng and Haibin Lin and Xin Liu and Henry Hoffmann},
  booktitle = {ASPLOS},
  year = {2026},
  doi = {10.1145/3779212.3790246}
}