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

将 Token 生成视为分类进行集成以打破 LLM 社区的性能天花板

Breaking the Ceiling of the LLM Community by Treating Token Generation as a Classification for Ensembling

TrendMicro(趋势科技);Shanghai Jiao Tong University(上海交通大学)

Yao-Ching Yu, Chun-Chih Kuo, Ziqi Ye, Yu-Cheng Chang, Yueh-Se Li

AI总结:

本文提出将 LLM 的逐 token 生成视为分类任务(GaC)进行集成,充分利用 token 级概率信息,并进一步探索仅集成关键 token,在考试、数学和推理基准上以更低延迟打破了社区性能天花板。

摘要:

集成多个模型一直是突破现有性能极限的有效方法,在分类任务中被广泛使用,只需对多个分类器的分类概率向量取平均即可获得更高的准确率。然而,在蓬勃发展的开源大语言模型(LLM)社区中,集成方法较为罕见,且通常仅限于对 LLM 的全文输出进行集成,例如使用排序器选择最佳输出,这导致 token 级概率信息未被充分利用。在本文中,我们将 LLM 对每个 token 的生成视为一种分类(GaC)来进行集成。该方法充分利用了每个生成步骤中的概率信息,并能更好地防止 LLM 产生早期错误 token 进而引发滚雪球式错误。在实验中,我们在多个基准上对最先进的 LLM 进行了集成,包括考试、数学和推理任务,观察到我们的方法打破了现有社区的性能天花板。此外,我们观察到答案中的大多数 token 较为简单,并不影响最终答案的正确性。因此,我们还尝试仅对关键 token 进行集成,结果表明在各基准上以更低的延迟取得了更好的性能。

英文摘要:

Ensembling multiple models has always been an effective approach to push the limits of existing performance and is widely used in classification tasks by simply averaging the classification probability vectors from multiple classifiers to achieve better accuracy. However, in the thriving open-source Large Language Model (LLM) community, ensembling methods are rare and typically limited to ensembling the full-text outputs of LLMs, such as selecting the best output using a ranker, which leads to underutilization of token-level probability information. In this paper, we treat the Generation of each token by LLMs as a Classification (GaC) for ensembling. This approach fully exploits the probability information at each generation step and better prevents LLMs from producing early incorrect tokens that lead to snowballing errors. In experiments, we ensemble state-of-the-art LLMs on several benchmarks, including exams, mathematics and reasoning, and observe that our method breaks the existing community performance ceiling. Furthermore, we observed that most of the tokens in the answer are simple and do not affect the correctness of the final answer. Therefore, we also experimented with ensembling only key tokens, and the results showed better performance with lower latency across benchmarks.

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

↑