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

SMART: 在什么情况下扩展推测树实际上是有价值的?

SMART: When is it Actually Worth Expanding a Speculative Tree?

Singapore Management University(新加坡管理大学)

Lifu Wang, Pan Zhou

AI总结:

SMART系统通过运行时树构建优化,提升生成速度,通过边际效益-成本分析,在不同硬件和批量规模下实现平均20%的额外加速。

摘要:

基于树的推测解码通过在单次目标模型前向传递中验证草案标记的分支树来加速自回归生成。然而,现有方法优先考虑最大化标记级似然或接受的标记数量,而忽视了关键的「效率悖论」:起草和验证大树的计算开销会以超线性方式增长,特别是在大规模情况下。这通常导致在批量大小增加或硬件饱和限制达到时出现负的实时时钟加速。为了解决这个问题,我们提出了SMART,一个系统感知的边际分析框架,用于运行时树构建。SMART将树扩展重新表述为一个硬件感知的优化问题,直接最大化端到端的加速率。通过在推理时应用一个原则性的边际效益-成本规则,SMART只在节点的边际效益-成本比超过树级加速率时才扩展节点。SMART是无训练的,并且作为插件式控制器服务于现有的框架,如MSD和EAGLE。在三个MLLM(例如LLaVA,Qwen2-VL)和四个LLM(例如Llama-3.1,DeepSeek-R1)上的广泛评估表明,SMART在各种计算受限的批量规模和多样化的GPU架构中,始终优于最先进的基线。它在没有性能损失的情况下,为MLLMs提供了平均额外20.0%的加速率,为LLMs提供了15.4%的加速率。

英文摘要:

Tree-based speculative decoding accelerates autoregressive generation by verifying a branching tree of draft tokens in a single target-model forward pass. However, existing methods prioritize maximizing token-level likelihood or the number of accepted tokens while ignoring a critical ``efficiency paradox'': the computational overhead of drafting and verifying big trees can grow super-linearly, particularly at scale. This often leads to negative wall-clock speedup when batch sizes increase or hardware saturation limits are reached. To address this, we propose SMART, a system-aware marginal analysis framework for runtime tree construction. SMART reformulates tree expansion as a hardware-aware optimization problem that directly maximizes end-to-end speedup. By applying a principled marginal benefit--cost rule at inference time, SMART expands a node only when its marginal benefit--cost ratio exceeds the tree-level speedup. SMART is training-free and serves as a plug-and-play controller for existing frameworks like MSD and EAGLE. Extensive evaluations across three MLLMs (e.g., LLaVA, Qwen2-VL) and four LLMs (e.g., Llama-3.1, DeepSeek-R1) demonstrate that SMART consistently outperforms state-of-the-art baselines. It delivers an average additional speedup of 20.0\% for MLLMs and 15.4\% for LLMs across compute-bound batching regimes and diverse GPU architectures without performance loss.

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

↑