arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.09527cs.LGcs.AI
收藏

通过参数和数据高效适应实现草稿模型的高效对齐

Efficiently Aligning Draft Models via Parameter- and Data-Efficient Adaptation

Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University(中国教育部多媒体可信感知与高效计算重点实验室,厦门大学);Shanghai Innovation Institute(上海创新研究院);Institute of Artificial Intelligence (TeleAI), China Telecom(中国电信人工智能研究所(TeleAI));University of Science and Technology of China (USTC)(中国科学技术大学)

Luxi Lin, Zhihang Lin, Zhanpeng Zeng, Yuhao Chen, Qingyu Zhang, Jixiang Luo, Xuelong Li, Rongrong Ji

AI总结:

本文提出高效草稿适应框架EDA,通过解耦架构、数据再生策略和样本选择机制,实现草稿模型在特定领域微调时的高效适应,降低训练成本并提升推测解码性能。

摘要:

推测解码加速了大语言模型的推理过程,但在目标模型针对特定领域进行微调时会遭遇性能下降。一种直接的解决方案是为每个目标模型重新训练草稿模型,这既昂贵又低效。为了解决这个问题,我们引入了一个参数和数据高效的框架,称为高效草稿适应(EDA),用于高效地适应草稿模型。EDA引入了三个创新点:(1)一种解耦架构,利用共享和私有组件分别建模共享和目标特定的输出分布,从而通过仅更新轻量级私有组件实现参数高效适应;(2)一种数据再生策略,利用微调的目标模型再生训练数据,从而提高训练与推测解码之间的对齐程度,导致平均接受长度更高;(3)一种样本选择机制,优先选择高价值数据以实现高效适应。我们的实验表明,EDA能够有效恢复微调模型的推测性能,相比全量重新训练,实现了显著降低的训练成本和更优越的平均接受长度。代码可在https://github.com/Lyn-Lucy/Efficient-Draft-Adaptation上获取。

英文摘要:

Speculative decoding accelerates LLM inference but suffers from performance degradation when target models are fine-tuned for specific domains. A naive solution is to retrain draft models for every target model, which is costly and inefficient. To address this, we introduce a practical parameter- and data-efficient framework named Efficient Draft Adaptation, abbreviated as EDA, for efficiently adapting draft models. EDA introduces three innovations: (1) a decoupled architecture that utilizes shared and private components to model the shared and target-specific output distributions separately, enabling parameter-efficient adaptation by updating only the lightweight private component; (2) a data regeneration strategy that utilizes the fine-tuned target model to regenerate training data, thereby improving the alignment between training and speculative decoding, leading to higher average acceptance length; (3) a sample selection mechanism that prioritizes high-value data for efficient adaptation. Our experiments show that EDA effectively restores speculative performance on fine-tuned models, achieving superior average acceptance lengths with significantly reduced training costs compared to full retraining. Code is available at https://github.com/Lyn-Lucy/Efficient-Draft-Adaptation.

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

↑