DNeo:你的并行草稿模型需要更好的目标特征编码

·

研究论文 · 2026/11/19

推测扩散解码使用小型并行草稿模型一次前向生成b个草稿令牌,再由大型目标模型并行验证。近期并行草稿架构(DFlash、DSpark)通过特征编码机制利用目标模型计算的丰富特征来提升草稿质量,但标准特征编码存在三个局限:(1) 有损,编码投影通过残差混合效应破坏目标特征空间;(2) 无记忆,不记录先前处理的提议;(3) 均匀采样目标层特征,遗漏重要隐藏状态。为此,作者提出Mixture-of-Features Attention (MoFA),一种轻量级特征编码方法,配备工作记忆以编码先前被拒绝的提议。利用MoFA、拒绝记忆以及2抽头因果卷积、仅前缀交叉注意力和非均匀目标层选择等增强,最终架构DNeo在不影响草稿模型占用或生成质量的情况下,生成速度比SoTA(DFlash-2)快1.3倍,标志着高质量快速LLM推理的新技术水平。

DNeo通过改进特征编码机制,在保持生成质量的同时显著提升推理速度,为高效LLM推理提供了新的技术方案,值得关注。

Speculative-diffusion decoding uses a small parallel drafter model to generate b draft tokens in one forward pass, which then undergo parallel verification via a larger target model. Faster inference can be achieved when multiple draft tokens pass verification simultaneously. Recent parallel draft architectures (DFlash, DSpark) improve draft quality by conditioning on rich features computed by the target, through a mechanism known as feature encoding. However, standard feature encoding mechanisms have three limitations: (1) they are lossy, applying encoding projections that are destructive to the underlying target feature-space via a discovered effect known as residual mixing, (2) they are memory-less, with no record of previously processed proposals, and (3) they utilize features sampled uniformly from across the target layers, omitting important hidden states. To address these issues, we propose Mixture-of-Features Attention (MoFA), a lightweight feature-encoding approach equipped with a working memory that encodes previously rejected proposals. Leveraging MoFA, rejection memory, and a set of further enhancements, including 2-tap causal convolutions, prefix-only cross-attention, and non-uniform target layer selection, the final architecture, DNeo, achieves 1.3x faster generation speed than SoTA (DFlash-2) without impacting drafter footprint or generation quality. DNeo marks a new state of the art in high quality, fast LLM inference.

阅读原文

参与讨论