EAGLE-3:通过训练时测试扩展大型语言模型推理加速
EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test
AI总结:
EAGLE-3通过放弃特征预测、采用直接令牌预测和多层特征融合(训练时测试),使草稿模型充分受益于数据扩展,实现高达6.5倍加速,较EAGLE-2提升1.4倍。
摘要:
现代大型语言模型的顺序特性使其昂贵且缓慢,投机采样已被证明是解决该问题的有效方法。像EAGLE这样的方法在特征层面执行自回归,重用目标模型的顶层特征,以获得比普通投机采样更好的结果。LLM社区的一个增长趋势是扩大训练数据以提高模型智能,而不增加推理成本。然而,我们观察到扩大数据对EAGLE的改进有限。我们确定这种局限性源于EAGLE的特征预测约束。在本文中,我们引入了EAGLE-3,它放弃特征预测,转而直接进行令牌预测,并通过一种名为训练时测试的技术,用多层特征融合取代对顶层特征的依赖。这些改进显著提升了性能,并使草稿模型能够充分受益于训练数据的扩大。我们的实验包括聊天模型和推理模型,在五个任务上进行了评估。结果表明,EAGLE-3实现了高达6.5倍的加速比,相比EAGLE-2提升了约1.4倍。在SGLang框架中,EAGLE-3在批大小为64时实现了1.38倍的吞吐量提升。代码可在https://github.com/SafeAILab/EAGLE获取。
英文摘要:
The sequential nature of modern LLMs makes them expensive and slow, and speculative sampling has proven to be an effective solution to this problem. Methods like EAGLE perform autoregression at the feature level, reusing top-layer features from the target model to achieve better results than vanilla speculative sampling. A growing trend in the LLM community is scaling up training data to improve model intelligence without increasing inference costs. However, we observe that scaling up data provides limited improvements for EAGLE. We identify that this limitation arises from EAGLE's feature prediction constraints. In this paper, we introduce EAGLE-3, which abandons feature prediction in favor of direct token prediction and replaces reliance on top-layer features with multi-layer feature fusion via a technique named training-time test. These improvements significantly enhance performance and enable the draft model to fully benefit from scaling up training data. Our experiments include both chat models and reasoning models, evaluated on five tasks. The results show that EAGLE-3 achieves a speedup ratio up to 6.5x, with about 1.4x improvement over EAGLE-2. In the SGLang framework, EAGLE-3 achieves a 1.38x throughput improvement at a batch size of 64. The code is available at https://github.com/SafeAILab/EAGLE.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。