跳到正文
arXiv cs.AI· Hanzhen Wang, Jiaming Xu, Guohao Dai·· 2 小时前AI 评分44

LEGOSpec:可组合的投机解码草稿设计与训练框架

LEGOSpec: A Composable and Efficient Framework for Speculative Draft Design and Training

AI 导读

研究者提出 LEGOSpec,一个将投机解码草稿模型分解为 Context、Backbone、Proposal、Objective 组件的可组合设计与训练框架,并基于组件实验提出通用草稿 DFlux。

正文 · 原文

View PDF HTML (experimental)

Abstract: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.
Comments: 11 pages. Code and weights are available at the URL in the paper
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.33004 [cs.LG]
  (or arXiv:2611.33004v2 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2611.33004

arXiv-issued DOI via DataCite

Submission history

From: Hanzhen Wang [view email]
[v1] Tue, 24 Nov 2026 17:29:40 UTC (3,128 KB)
[v2] Wed, 25 Nov 2026 16:05:24 UTC (3,128 KB)

来源:arXiv cs.AI · arxiv.org