arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.17404cs.CLcs.LG
收藏

制造噪声:通过噪声训练解锁大语言模型并行推理能力

Make Some Noise: Unlocking Language Model Parallel Inference Capability through Noisy Training

Harbin Institute of Technology(哈尔滨工业大学);Du Xiaoman (Beijing) Science Technology Co., Ltd.(度小满(北京)科技有限公司)

Yixuan Wang, Xianzhen Luo, Fuxuan Wei, Yijun Liu, Qingfu Zhu, Xuanyu Zhang, Qing Yang, Dongliang Xu, Wanxiang Che

AI总结:

针对现有推测解码方法迁移成本高、显存需求大的问题,提出MSN噪声训练框架替代监督微调,搭配TR-Jacobi解码策略,在不损失性能的前提下实现2.3-2.7倍推理加速,加速比肩带额外结构的SOTA模型。

摘要:

现有的推测解码方法通常需要额外的模型结构与训练流程来辅助模型生成草稿token,这使得加速方法向新模型迁移的成本更高,对设备显存的要求也更严苛。为解决该问题,我们提出Make Some Noise(MSN,制造噪声)训练框架,用以替代大语言模型的监督微调阶段。该训练方法仅需在输入端引入一定噪声,让模型学习去噪任务,就能在不影响模型原有任务能力的前提下,显著增强其并行解码能力。此外,我们提出基于树的检索增强Jacobi(TR-Jacobi)解码策略,进一步提升MSN模型的推理速度。在通用领域与代码领域的实验均表明,MSN可在不损失模型性能的情况下将推理速度提升2.3-2.7倍。在Spec-Bench基准上,MSN模型也取得了与带有额外模型结构的SOTA模型相当的加速比。

英文摘要:

Existing speculative decoding methods typically require additional model structure and training processes to assist the model for draft token generation. This makes the migration of acceleration methods to the new model more costly and more demanding on device memory. To address this problem, we propose the Make Some Noise (MSN) training framework as a replacement for the supervised fine-tuning stage of the large language model. The training method simply introduces some noise at the input for the model to learn the denoising task. It significantly enhances the parallel decoding capability of the model without affecting the original task capability. In addition, we propose a tree-based retrieval-augmented Jacobi (TR-Jacobi) decoding strategy to further improve the inference speed of MSN models. Experiments in both the general and code domains have shown that MSN can improve inference speed by 2.3-2.7x times without compromising model performance. The MSN model also achieves comparable acceleration ratios to the SOTA model with additional model structure on Spec-Bench.

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

↑