arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.01106cs.CLcs.AI
收藏

混合语言模型中的组件感知自推测解码

Component-Aware Self-Speculative Decoding in Hybrid Language Models

organization= VRAIN -- Valencian Research Institute for Artificial Intelligence, Universitat Polit\`ecnica de Val\`encia , city= Valencia , country= Spain;organization= Department of Economics;organization= Department of Business Organisation, Universitat Polit\`ecnica de Val\`encia , city= Valencia , country= Spain

Hector Borobia, Elies Seguí-Mas, Guillermina Tormo-Carbó

AI总结:

本文提出组件感知自推测解码,首次利用混合语言模型的内部架构异质性,通过隔离SSM/线性注意力子图作为零成本内部草案,提升了推测解码效率,并展示了不同架构混合模型的组件组合模式对自推测可行性的影响。

摘要:

推测解码通过快速模型草案候选标记并并行验证目标模型来加速自回归推理。自推测方法无需外部草案者,但此前仅在同构Transformer架构中研究。本文引入组件感知自推测解码,首次利用混合语言模型的内部架构异质性,将SSM/线性注意力子图作为零成本内部草案。在Falcon-H1(并行:Mamba-2 + 每层注意力)和Qwen3.5(顺序:交错线性与注意力层)两个架构迥异的混合家族以及纯Transformer控制(Qwen2.5)上进行评估。并行混合在贪心解码下,草案长度k=2时接受率为alpha=0.68,而顺序混合仅为alpha=0.038,差距达18倍,归因于各架构整合组件的方式。该性质具有可扩展性:Falcon-H1在3B规模时复现了0.5B时的接受率。进一步研究表明,通过伴随消融研究得出的困惑度下降预测了推测可行性,无需运行推测解码:Falcon的3.15倍比值对应alpha=0.37(k=4),而Qwen的81.96倍比值对应alpha=0.019。对于顺序混合模型,通用LayerSkip的接受率比组件感知策略高12倍。混合模型的组成模式——而非单纯存在替代组件——决定了组件级自推测的可行性。

英文摘要:

Speculative decoding accelerates autoregressive inference by drafting candidate tokens with a fast model and verifying them in parallel with the target. Self-speculative methods avoid the need for an external drafter but have been studied exclusively in homogeneous Transformer architectures. We introduce component-aware self-speculative decoding, the first method to exploit the internal architectural heterogeneity of hybrid language models, isolating the SSM/linear-attention subgraph as a zero-cost internal draft. We evaluate this on two architecturally distinct hybrid families: Falcon-H1 (parallel: Mamba-2 + attention per layer) and Qwen3.5 (sequential: interleaved linear and attention layers), with a pure Transformer control (Qwen2.5). Parallel hybrids achieve acceptance rates of alpha = 0.68 at draft length k=2 under greedy decoding, while sequential hybrids yield only alpha = 0.038 -- an 18x gap attributable to how each architecture integrates its components. The property is scale-invariant: Falcon-H1 at 3B reproduces the rates observed at 0.5B. We further show that perplexity degradation from a companion ablation study predicts speculative viability without running speculative decoding: a 3.15x ratio (Falcon) maps to alpha = 0.37 at k=4, while 81.96x (Qwen) maps to alpha = 0.019. For sequential hybrids, generic LayerSkip achieves 12x higher acceptance rates than the component-aware strategy. The composition pattern of hybrid models -- not merely the presence of alternative components -- determines whether component-level self-speculation is viable.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑