ReaDy利用循环状态加速推测解码
AI 总结
ReaDy是一种推测解码方法,可从混合线性注意力目标模型已提交的循环状态中检索特定位置的上下文。每个草稿位置使用学习到的查询来获取补充上下文,轻量级状态读取器再通过残差更新将其整合至草稿表示中。低秩状态读取和融合算子旨在控制额外计算与I/O开销。ReaDy以DSpark的并行骨干网络和顺序预测头为基础,采用两阶段适配策略。作者报告,在七项基准上,使用Qwen3.8-27B和单张NVIDIA B200 GPU时,ReaDy相较自回归解码平均加速3.16倍;在每项基准上均超过DSpark,吞吐量和接受长度平均分别提高7.97%和8.50%。
深度见解
ReaDy提供了一种在推测草稿期间利用混合线性注意力循环状态提供上下文并控制开销的具体方法。论文报告了显著解码增益并发布了代码;尽管所给报告没有提供独立评估,该方法及其报告结果仍值得关注。
| Speculative decoding accelerates autoregressive generation by drafting multiple tokens per step, yet feature-based drafters rely on target hidden features whose contextual emphasis may not align with the needs of subsequent draft positions. Hybrid linear attention (HLA) models maintain compact recurrent states that accumulate historical associations, offering an efficient source of complementary context for speculative drafting. We introduce ReaDy, the first speculative decoding method, to the best of our knowledge, to leverage HLA recurrent states for position-specific context retrieval during drafting. ReaDy equips each draft position with a learned query to retrieve supplementary context directly from the target's committed recurrent states. A lightweight state reader integrates this context into draft representations through residual updates, while low-rank state reads and fused operators keep additional computation and I/O overhead low. Building on DSpark's parallel backbone and sequential prediction head, ReaDy employs a lightweight two-stage adaptation strategy, with reader capacity, state sources, and residual placement examined through ablation studies. Across seven benchmarks spanning mathematics, code generation, and dialogue, ReaDy achieves an average 3.16× decoding speedup over autoregressive decoding with Qwen3.8-27B on a single NVIDIA B200 GPU. It outperforms DSpark on every benchmark, improving throughput by 7.97% and acceptance length by 8.50% on average. Our code is available at this https URL. submitted by /u/pmttyji [link] [comments] |