Back to AI News
arxiv

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

LEGOSpec is a framework that decomposes speculative decoding draft models into four interchangeable components — Context, Backbone, Proposal and Objective — sharing one training infrastructure. By varying these components under matched training conditions, the authors isolate their individual effects and interactions, reporting that workload characteristics favor different backbones, that proposal design must trade off acceptance against latency, and that objectives should match local token distributions while optimizing acceptance length across the block. The resulting configuration, DFlux, improves acceptance length over the strongest baseline by up to 13.7% on regular benchmarks and 34.7% on long-context workloads across Qwen and Gemma models. The framework also adds metadata-aware scheduling and asynchronous execution, raising training throughput by up to 79% and speeding offline supervision preparation up to 3.11x over SpecForge.

AI Brief

It gives inference and training engineers a component-level, ablation-backed playbook for building speculative decoding drafts, plus a concrete configuration and throughput gains they can compare against existing tooling.

arXiv:2611.33004v1 Announce Type: cross 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.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!