arXiv:2512.11920cs.AI2025-12中稿 · FPGA'26 Oral被引 14

用FPGA+CXL实现大模型推理的远程缓存,提速3.2倍还省2.8倍内存

CXL-SpecKV: A Disaggregated FPGA Speculative KV-Cache for Datacenter LLM Serving

  • 通过CXL将KV缓存放到远程FPGA内存,降低延迟
  • 预取未来令牌缓存,提升推理吞吐达3.2倍
  • FPGA加速压缩,内存带宽需求降4倍,适合数据中心部署

大语言模型(LLMs)在数据中心部署面临巨大内存压力,自回归解码过程中键值(KV)缓存占用大量GPU内存,限制批处理大小和系统吞吐。为此,我们提出CXL-SpecKV,一种基于计算快速链接(CXL)互连和FPGA加速器的新型分布式KV缓存架构,支持高效推测执行与内存解耦。该方案引入三项关键创新:(i) 基于CXL的内存解耦框架,将KV缓存卸载至远端FPGA内存并保持低延迟;(ii) 推测性缓存预取机制,预测并提前加载未来令牌的缓存条目;(iii) FPGA加速的缓存压缩与解压引擎,内存带宽需求最高降低4倍。在主流大模型上评估显示,相较纯GPU基线,CXL-SpecKV可实现高达3.2倍的吞吐提升,内存成本降低2.8倍,且保持准确率。结果表明,结合智能内存解耦与推测执行,能有效突破大规模大模型服务中的内存瓶颈。代码已开源:https://github.com/FastLM/CXL-SpecKV。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have revolutionized natural language processing tasks, but their deployment in datacenter environments faces significant challenges due to the massive memory requirements of key-value (KV) caches. During the autoregressive decoding process, KV caches consume substantial GPU memory, limiting batch sizes and overall system throughput. To address these challenges, we propose \textbf{CXL-SpecKV}, a novel disaggregated KV-cache architecture that leverages Compute Express Link (CXL) interconnects and FPGA accelerators to enable efficient speculative execution and memory disaggregation. Our approach introduces three key innovations: (i) a CXL-based memory disaggregation framework that offloads KV-caches to remote FPGA memory with low latency, (ii) a speculative KV-cache prefetching mechanism that predicts and preloads future tokens' cache entries, and (iii) an FPGA-accelerated KV-cache compression and decompression engine that reduces memory bandwidth requirements by up to 4$\times$. When evaluated on state-of-the-art LLM models, CXL-SpecKV achieves up to 3.2$\times$ higher throughput compared to GPU-only baselines, while reducing memory costs by 2.8$\times$ and maintaining accuracy. Our system demonstrates that intelligent memory disaggregation combined with speculative execution can effectively address the memory wall challenge in large-scale LLM serving. Our code implementation has been open-sourced at https://github.com/FastLM/CXL-SpecKV.

大模型推理FPGA加速内存解耦CXL

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。