LEGOSpec:可组合的投机解码草稿设计训练框架,配套 DFlux 草稿模型
LEGOSpec: A Composable and Efficient Framework for Speculative Draft Design and Training
做推理加速的工程师值得看看这篇:把草稿模型拆成四个组件逐一实验,告诉你什么场景该用什么组合。DFlux 在长上下文上接受长度比强基线高 34.7%,训练吞吐也比 SpecForge 快不少,自己调草稿模型能少走弯路。
论文提出 LEGOSpec,一个将投机解码草稿模型拆解为 Context、Backbone、Proposal、Objective 四个组件的可组合设计与训练框架,统一训练基础设施支持系统化消融实验。
基于组件级实验,作者给出三项发现:不同负载(上下文长度、显存预算)适合不同 backbone,块内依赖建模对长上下文尤为关键;Proposal 设计需在接受率与延迟之间权衡;训练目标应局部匹配 token 分布并跨块优化接受长度。据此构建的 DFlux 采用卷积增强的 SWA-GQA 混合 backbone、Residual Corrector 与分层监督。
在 Qwen 和 Gemma 模型上,DFlux 相比最强基线将接受长度最高提升 13.7%,长上下文负载上提升 34.7%。训练效率方面,通过元数据感知调度与异步执行,训练吞吐量较 SpecForge 最高提升 79%,离线监督准备加速最高 3.11 倍。
LEGOSpec: A Composable and Efficient Framework for Speculative Draft Design and Training
Speculative decoding accelerates large language model (LLM) generation using a lightweight draft. Existing methods evaluate complete recipes under different training configurations, leaving component effects, interactions, and composition benefits unclear. Therefore, we present LEGOSpec, a composable framework for speculative draft design and training. LEGOSpec decomposes draft models into Context, Backbone, Proposal, and Objective components that share a unified training infrastructure. Using LEGOSpec, we systematically vary components and evaluate selected combinations under matched training conditions to isolate their effects and interactions. These experiments reveal three findings: (1) Different workloads favor different backbones, depending on context length and memory budget, with within-block dependency modeling particularly important for long contexts. (2) Proposal design must balance acceptance and latency. (3) The training objective should match token distributions locally and optimize acceptance length across the block. These findings guide workload-aware configurations and DFlux, a balanced general-purpose draft combining a convolution-equipped SWA--GQA hybrid backbone, Residual Corrector, and hierarchical supervision. Across Qwen and Gemma models, DFlux improves acceptance length over the strongest baseline by up to 13.7% on regular benchmarks and 34.7% on long-context workloads. To support efficient training, LEGOSpec integrates metadata-aware scheduling and asynchronous execution, increasing training throughput by up to 79% and accelerating offline supervision preparation by up to $3.11\times$ over SpecForge.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:投机解码、LLM、Qwen、Gemma,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Hanzhen Wang, Jiaming Xu, Guohao Dai),经 AITOP 多维评分管线结构化提炼。