arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.05432cs.CLcs.AIcs.LG
收藏

用序列蒙特卡洛方法融合语言模型

Ensembling Language Models with Sequential Monte Carlo

ETH Zürich(苏黎世联邦理工学院);McGill University(麦吉尔大学);Canada CIFAR AI Chair(加拿大 CIFAR 人工智能主席)

Robin Shing Moon Chan, Tianyu Liu, Samuel Kiegeland, Clemente Pasti, Jacob Hoover Vigly, Timothy J. O'Donnell, Ryan Cotterell, Tim Vieira

AI总结:

本文提出了一种融合语言模型的统一框架,通过字节级序列蒙特卡洛算法实现不同词汇表模型的融合采样,提升了结构化文本生成任务的性能。

摘要:

从业者拥有大量语言模型和提示策略来解决许多语言建模任务;但先前的工作显示,建模性能对这两种选择非常敏感。经典机器学习融合技术提供了一种系统的方法:通过聚合多个来源的预测来实现比单一模型更好的性能。然而,在解码过程中将融合应用于语言模型具有挑战性:简单地汇总下一个令牌的概率会得到一个局部归一化的、有偏的近似分布,而一般不可行的融合分布在字符串上难以处理。在本工作中,我们提出了一种统一的框架,用于将K个语言模型组合成f-融合分布,适用于各种函数f:R≥0^K→R≥0。为了从这些分布中采样,我们提出了一种字节级的序列蒙特卡洛(SMC)算法,它在共享字符空间中运行,使具有不匹配词汇表的模型的融合在极限下能够实现一致的采样。我们评估了各种f-融合组合在不同提示和模型组合下的多种结构化文本生成任务,突显了替代聚合策略相对于传统概率平均的优势,并展示了更好的后验近似可以带来更好的融合性能。

英文摘要:

Combining the predictions of multiple models is one of the most effective strategies in machine learning. Thus, it is only natural to investigate the ensembling of language models (LMs). However, because LMs define distributions over strings, a proper ensemble requires aggregating predictions at the string level, which requires a computation that is generally intractable. In this work, we cast LM ensembling as an inference problem and propose the deployment of sequential Monte Carlo (SMC), an appropriate approximate inference scheme. Concretely, we introduce a unified framework for composing multiple LMs into ensemble distributions parameterized by a broad family of aggregation functions. To sample from these distributions, we introduce an SMC algorithm that operates in a shared byte space, enabling ensembles of models with mismatching vocabularies and consistent sampling in the limit. We evaluate a range of ensembles across prompt and model combinations for various text generation tasks, finding that consensus-seeking strategies such as the product consistently outperform probability averaging, and that better posterior approximations can yield better ensemble performance.

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

↑