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

CORAL:在多步训练中学习更轻量级推测草稿模型的一致表示

CORAL: Learning Consistent Representations across Multi-step Training with Lighter Speculative Drafter

AI Lab, Lenovo Research(联想研究院人工智能实验室)

Yepeng Weng, Dianwen Mei, Huishi Qiu, Xujie Chen, Li Liu, Jiang Tian, Zhongchao Shi

AI总结:

CORAL通过跨步表示对齐和权重分组机制,解决推测解码中训练与推理不一致及LM头瓶颈问题,在三个LLM家族上实现2.50x-4.07x加速,优于EAGLE-2和HASS。

摘要:

推测解码是一种强大的技术,通过利用轻量级的推测草稿模型来加速大型语言模型(LLM)的推理。然而,现有设计由于训练与推理之间的不一致而性能受损。近期方法尝试通过采用多步训练策略来解决此问题,但不同训练步骤的复杂输入使得草稿模型更难收敛。为解决这一问题,我们提出了CORAL,一个新颖的框架,旨在提升推测草稿的准确性和效率。CORAL引入了跨步表示对齐(Cross-Step Representation Alignment),一种增强多个训练步骤间一致性的方法,显著提升了推测草稿的性能。此外,我们识别出LM头(LM head)是草稿模型推理速度的主要瓶颈。我们引入了一种权重分组机制,在推理期间选择性激活LM头参数的一个子集,大幅降低了草稿模型的延迟。我们在三个LLM家族和三个基准数据集上评估了CORAL,实现了2.50倍至4.07倍的加速比,优于EAGLE-2和HASS等最先进方法。我们的结果表明,CORAL有效缓解了训练-推理不一致问题,并为具有大词汇量的现代LLM带来了显著的加速。

英文摘要:

Speculative decoding is a powerful technique that accelerates Large Language Model (LLM) inference by leveraging a lightweight speculative draft model. However, existing designs suffers in performance due to misalignment between training and inference. Recent methods have tried to solve this issue by adopting a multi-step training strategy, but the complex inputs of different training steps make it harder for the draft model to converge. To address this, we propose CORAL, a novel framework that improves both accuracy and efficiency in speculative drafting. CORAL introduces Cross-Step Representation Alignment, a method that enhances consistency across multiple training steps, significantly improving speculative drafting performance. Additionally, we identify the LM head as a major bottleneck in the inference speed of the draft model. We introduce a weight-grouping mechanism that selectively activates a subset of LM head parameters during inference, substantially reducing the latency of the draft model. We evaluate CORAL on three LLM families and three benchmark datasets, achieving speedup ratios of 2.50x-4.07x, outperforming state-of-the-art methods such as EAGLE-2 and HASS. Our results demonstrate that CORAL effectively mitigates training-inference misalignment and delivers significant speedup for modern LLMs with large vocabularies.

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

↑