Research Papers 论文研究 5h ago Updated 1h ago 更新于 1小时前 49

Trajectory-Level Speculative Decoding for Diffusion Language Models 扩散语言模型的轨迹级推测解码

Trajectory-level speculative decoding addresses the throughput bottleneck in diffusion-based language models (dLLMs) by speculating over denoising trajectories rather than fixed token sequences The framework uses confidence-stratified tree exploration to construct draft denoising trajectories and verifies them through blockwise parallel evaluation with bidirectional attention masking Inter-block speculation exploits the bidirectional structure of diffusion models for cross-block lookahead, with 提出轨迹级推测解码框架,解决扩散语言模型(dLLMs)在低置信度时退化为单token生成的吞吐量瓶颈问题 通过置信度分层树探索构建草稿去噪轨迹,利用双向注意力掩码进行块级并行验证,并引入块间推测实现跨块前瞻 基于Fast-dLLM双缓存基础设施,减少30-40%去噪迭代,tokens-per-step从2.6提升至4.3,实现7-14倍加速且准确率变化<1%

65
Hot 热度
75
Quality 质量
70
Impact 影响力

Analysis 深度分析

TL;DR

  • Trajectory-level speculative decoding addresses the throughput bottleneck in diffusion-based language models (dLLMs) by speculating over denoising trajectories rather than fixed token sequences
  • The framework uses confidence-stratified tree exploration to construct draft denoising trajectories and verifies them through blockwise parallel evaluation with bidirectional attention masking
  • Inter-block speculation exploits the bidirectional structure of diffusion models for cross-block lookahead, with formal characterization of when the approach is exact
  • Trajectory drift is identified as the fundamental cost of increased parallelism in dLLM decoding
  • The method achieves 7-14x speedup over vanilla dLLMs and 1.3x over Fast-dLLM with less than 1% accuracy change across reasoning and code benchmarks

Why It Matters

This work represents a significant advancement in making diffusion-based language models practically viable for production use, as throughput has been the primary bottleneck preventing their adoption over autoregressive alternatives. By adapting speculative decoding—a technique well-established in autoregressive models—to the unique trajectory-based denoising process of dLLMs, the authors open a new research direction for optimizing parallel generation architectures. The near-lossless speedup (less than 1% accuracy degradation) demonstrates that efficiency gains need not come at the cost of model quality.

Technical Details

  • Trajectory-Level Speculation: Unlike autoregressive speculative decoding that operates on left-to-right token sequences, dLLMs require speculating over denoising trajectories—sequences of multi-token updates with explicit positions and unmasking orders. The framework constructs draft trajectories via confidence-stratified tree exploration.
  • Blockwise Parallel Verification: Draft trajectories are verified through blockwise parallel evaluation using bidirectional attention masking, enabling efficient validation of multiple token updates simultaneously.
  • Inter-Block Speculation: The method introduces cross-block lookahead by exploiting the bidirectional structure inherent to diffusion models, allowing speculation to extend beyond individual denoising blocks.
  • Theoretical Characterization: The authors formally characterize the conditions under which the trajectory-level approach is exact and identify trajectory drift as the fundamental cost associated with increased parallelism.
  • Implementation on Fast-dLLM: Built on Fast-dLLM's dual-cache infrastructure, the framework reduces denoising iterations by 30-40% and increases tokens-per-step from 2.6 to 4.3.

Industry Insight

  • The 7-14x speedup over vanilla dLLMs could accelerate the adoption of diffusion-based language models in latency-sensitive applications such as real-time code generation and interactive reasoning systems, potentially shifting the architectural landscape away from autoregressive dominance.
  • The identification of trajectory drift as the fundamental cost of parallelism provides a clear theoretical boundary for future optimization efforts, suggesting that research should focus on drift mitigation strategies to push parallelism further.
  • The minimal accuracy degradation (<1%) across reasoning and code benchmarks indicates that speculative decoding for dLLMs is production-ready, encouraging practitioners to integrate these techniques into existing diffusion model pipelines without quality concerns.

TL;DR

  • 提出轨迹级推测解码框架,解决扩散语言模型(dLLMs)在低置信度时退化为单token生成的吞吐量瓶颈问题
  • 通过置信度分层树探索构建草稿去噪轨迹,利用双向注意力掩码进行块级并行验证,并引入块间推测实现跨块前瞻
  • 基于Fast-dLLM双缓存基础设施,减少30-40%去噪迭代,tokens-per-step从2.6提升至4.3,实现7-14倍加速且准确率变化<1%

为什么值得看

本文针对扩散语言模型的核心性能瓶颈提出了创新的推测解码方案,填补了dLLMs高效推理领域的关键技术空白。研究成果可直接应用于提升扩散语言模型在推理和代码生成等实际场景中的部署效率,对推动该范式落地具有重要价值。

技术解析

  • 轨迹级推测框架:不同于自回归模型的固定顺序推测,dLLMs需要在去噪轨迹(包含多token更新、显式位置和取消掩码顺序)上进行推测,作者构建了基于置信度分层树探索的草稿轨迹生成机制
  • 块级并行验证与双向注意力:通过双向注意力掩码实现块级并行评估,同时引入块间推测(inter-block speculation)利用扩散模型的双向结构进行跨块前瞻
  • 理论分析:形式化刻画了方法的精确性条件,并识别出轨迹漂移(trajectory drift)是提升并行度带来的根本代价
  • 性能提升:基于Fast-dLLM双缓存基础设施,去噪迭代减少30-40%,tokens-per-step从2.6提升至4.3,推理和代码基准测试准确率变化不足1%

行业启示

  • 扩散语言模型的推理效率优化已成为关键研究方向,推测解码技术从自回归模型向扩散模型的迁移存在独特挑战(轨迹空间vs序列空间),需要专门的方法设计
  • 块间推测和双向结构利用为dLLMs的并行化提供了新思路,未来可探索更多利用扩散模型双向特性的优化策略
  • 在保持精度几乎无损的前提下实现7-14倍加速,表明扩散语言模型的实用化部署障碍正在被逐步清除,行业应关注该技术的工程落地进展

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Inference 推理 Research 科学研究