Flatter Tokens are More Valuable for Speculative Draft Model Training
Jiaming Fan, Daming Cao, Xiangzhong Luo, Jiale Fu, Chonghan Liu, Xu Yang
TL;DR
The paper tackles the data inefficiency of training draft models for Speculative Decoding by showing that tokens whose target distributions are flatter (i.e., more uncertain) provide larger gains in acceptance rate. It introduces flatness, a cosine-to-uniform measure, and develops Sample-level-flatness-based Dataset Distillation (SFDD) to filter data offline, preserving SD speedups while reducing training cost. Theoretical analysis under a budgeted KD framework links token-level flatness to improvements in the L1 distance that governs acceptance, and empirical validation demonstrates that SFDD consistently outperforms entropy-based and other heuristics across multiple tasks and datasets. On the EAGLE-2/LLaMA3-8B-Instruct setup with ShareGPT data, SFDD achieves over 2× training speedup at 50% data retention and keeps inference speedups within 4% of the full-data baseline, highlighting a practical, data-centric path to more efficient SD training.
Abstract
Speculative Decoding (SD) is a key technique for accelerating Large Language Model (LLM) inference, but it typically requires training a draft model on a large dataset. We approach this problem from a data-centric perspective, finding that not all training samples contribute equally to the SD acceptance rate. Specifically, our theoretical analysis and empirical validation reveals that tokens inducing flatter predictive distributions from the target model are more valuable than those yielding sharply peaked distributions. Based on this insight, we propose flatness, a new metric to quantify this property, and develop the Sample-level-flatness-based Dataset Distillation (SFDD) approach, which filters the training data to retain only the most valuable samples. Experiments on the EAGLE framework demonstrate that SFDD can achieve over 2$\times$ training speedup using only 50% of the data, while keeping the final model's inference speedup within 4% of the full-dataset baseline. This work introduces an effective, data-centric approach that substantially improves the training efficiency for Speculative Decoding. Our code is available at https://anonymous.4open.science/r/Flatness.
