arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.18902cs.CL
收藏

更扁平的标记对投机性草稿模型训练更有价值

Flatter Tokens are More Valuable for Speculative Draft Model Training

Key Laboratory of New Generation Artificial Intelligence Technology and Its Interdisciplinary Applications (Southeast University), Ministry of Education(新一代人工智能技术及其交叉应用关键实验室(东南大学));Southeast University(东南大学);Nanjing University of Information Science and Technology(南京信息工程大学);Qiyuan Tech(启元科技)

Jiaming Fan, Daming Cao, Xiangzhong Luo, Jiale Fu, Chonghan Liu, Xu Yang

AI总结:

本文提出基于样本层面平坦性的数据集蒸馏方法,通过筛选更有价值的训练样本提升投机性解码的训练效率。

摘要:

投机性解码(SD)是加速大语言模型(LLM)推理的关键技术,但通常需要在大规模数据集上训练一个草稿模型。我们从数据驱动的角度出发,发现并非所有训练样本对SD接受率的贡献都相同。具体而言,我们的理论分析和实证验证表明,诱导目标模型更平坦预测分布的标记比产生尖峰分布的标记更有价值。基于这一洞察,我们提出了一种新的度量标准“平坦性”,用于量化这一属性,并开发了基于样本层面平坦性的数据集蒸馏(SFDD)方法,该方法过滤训练数据,仅保留最有价值的样本。在EAGLE框架上的实验表明,SFDD仅使用50%的数据即可实现超过2倍的训练加速,同时保持最终模型的推理加速在全数据集基线的4%以内。本工作引入了一种有效的、数据驱动的方法,显著提高了投机性解码的训练效率。我们的代码可在https://github.com/fjm9933/Flatness上获得。

英文摘要:

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://github.com/fjm9933/Flatness.

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

↑