arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.21265cs.CL
收藏

不同词表的模型在Token级别的集成

Token-level Ensembling of Models with Different Vocabularies

Johns Hopkins University(约翰斯·霍普金斯大学);University of Maryland(马里兰大学);Microsoft(微软公司)

Rachel Wicks, Kartik Ravisankar, Xinchen Yang, Philipp Koehn, Matt Post

AI总结:

本文提出一种仅推理时的算法,允许不同词表的模型进行token级集成,无需额外参数或修改模型,并在机器翻译上提升性能。

摘要:

模型集成是一种将两个或多个模型的预测分布相结合的技术,通常能提高鲁棒性和性能。在文本生成的集成中,下一个token的概率分布由每个单独模型分布的加权和得出。这要求底层模型共享相同的子词词表,限制了集成的适用性,因为许多开源模型具有不同的词表。在研究环境中,对词表的实验或升级可能引入多种词表大小。本文提出了一种仅在推理时运行的算法,允许集成具有不同词表的模型,而无需学习额外参数或修改底层模型。相反,该算法确保集成模型生成的token在其表面形式上达成一致。我们将此技术应用于传统编码器-解码器模型和仅解码器大语言模型的组合,并在机器翻译上进行了评估。除了扩展到以前无法进行token级集成的模型对之外,我们的算法经常能提高翻译性能,优于任一单独模型。

英文摘要:

Model ensembling is a technique to combine the predicted distributions of two or more models, often leading to improved robustness and performance. For ensembling in text generation, the next token's probability distribution is derived from a weighted sum of the distributions of each individual model. This requires the underlying models to share the same subword vocabulary, limiting the applicability of ensembling, since many open-sourced models have distinct vocabularies. In research settings, experimentation or upgrades to vocabularies may introduce multiple vocabulary sizes. This paper proposes an inference-time only algorithm that allows for ensembling models with different vocabularies, without the need to learn additional parameters or alter the underlying models. Instead, the algorithm ensures that tokens generated by the ensembled models \textit{agree} in their surface form. We apply this technique to combinations of traditional encoder-decoder models and decoder-only LLMs and evaluate on machine translation. In addition to expanding to model pairs that were previously incapable of token-level ensembling, our algorithm frequently improves translation performance over either model individually.

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

↑