DSpark:结合半自回归生成的置信度调度投机解码框架
DSpark: Confidence-Scheduled Speculative Decoding with Semi-Autoregressive Generation
AI总结:
针对现有投机解码接受率衰减、高并发下吞吐量劣化问题,DSpark采用半自回归架构与置信度调度验证,在实测中显著提升大模型推理速度与系统性能边界。
摘要:
投机解码通过分离草稿生成与目标验证过程加速大语言模型(LLM)推理。现有并行草稿生成器可单次前向传播输出长token序列,但因缺乏token间依赖建模出现接受率快速衰减,且对长序列块的无差别验证会将关键批处理能力浪费在高被拒风险token上,严重降低高并发服务系统的吞吐量。本文提出DSpark,一种将高吞吐并行生成与自适应负载感知验证相统一的投机解码框架。为保障草稿质量,DSpark采用半自回归架构,将并行主干与轻量串行模块耦合,引入块内依赖建模以缓解后缀接受率衰减问题。为优化系统效率,DSpark采用置信度调度验证机制,基于估计的前缀留存概率与引擎专属吞吐量特征,为每个请求动态定制验证长度。在多领域离线基准测试中,DSpark的可接受序列长度远超当前最优的自回归与并行草稿生成器。将其部署于承载真实用户流量的DeepSeek-V4服务系统后,DSpark有效减少了验证资源浪费。与成熟生产基线MTP-1相比,在吞吐量相当的条件下,DSpark可将单用户生成速度提升60%至85%。更重要的是,它避免了严格交互约束下的严重吞吐量劣化,实现了此前无法达到的性能层级,拓展了服务系统的帕累托最优边界。
英文摘要:
Speculative decoding accelerates Large Language Model (LLM) inference by decoupling draft generation from target verification. While recent parallel drafters efficiently propose long token sequences in a single forward pass, they suffer from rapid acceptance decay due to a lack of inter-token dependencies. Furthermore, indiscriminately verifying these extended blocks wastes critical batch capacity on tokens with high rejection risks, severely degrading throughput in high-concurrency serving systems. We introduce DSpark, a speculative decoding framework that unifies high-throughput parallel generation with adaptive, load-aware verification. To maintain draft quality, DSpark utilizes a semi-autoregressive architecture, coupling a parallel backbone with a lightweight sequential module, to introduce intra-block dependency modeling and mitigate suffix decay. To optimize system efficiency, DSpark employs confidence-scheduled verification, dynamically tailoring the verification length for each request based on estimated prefix survival probabilities and engine-specific throughput profiles. On offline benchmarks across diverse domains, DSpark substantially improves the accepted length over state-of-the-art autoregressive and parallel drafters. When deployed within the DeepSeek-V4 serving system under live user traffic, DSpark successfully mitigates verification waste. Compared to the established production baseline (MTP-1), DSpark accelerates per-user generation speeds by 60 to 85 percent at matched throughput levels. More importantly, by preventing severe throughput degradation under strict interactivity constraints, it enables performance tiers that were previously unattainable, shifting the Pareto frontier of our serving system.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。