arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.09492cs.CL
收藏

弥合大语言模型集成中不同词表间的差距

Bridging the Gap between Different Vocabularies for LLM Ensemble

School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Wuhan AI Research(武汉人工智能研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Yangyifan Xu, Jinliang Lu, Jiajun Zhang

AI总结:

针对大语言模型词表差异导致集成受限的问题,提出基于词表对齐的EVA方法,通过词表映射、分布投影和过滤策略实现生成步骤级的精细集成,在多类任务上性能优于单模型和传统集成方法。

摘要:

集成不同的大语言模型(LLM)以释放其互补潜力并发挥各自优势具有重要价值。然而,各类LLM之间的词表差异使得以往研究只能选择或融合完整生成的输出。这一限制阻碍了生成过程中对输出的动态修正与增强,导致有效集成能力有限。为解决该问题,我们提出一种通过词表对齐实现LLM集成的新方法EVA(大语言模型词表对齐集成)。EVA弥合了不同LLM之间的词汇鸿沟,可在每个生成步骤实现精细集成。具体而言,我们首先借助重叠词元学习不同LLM词表之间的映射关系,随后利用这些映射将各LLM的输出分布投影到统一空间,以实现细粒度集成,最后设计了一种过滤策略以排除生成不可靠词元的模型。在常识推理、算术推理、机器翻译以及数据到文本生成任务上的实验结果表明,与单个LLM及以往基于完整输出的集成方法相比,我们的方法更具优势。进一步分析证实,该方法能够利用不同语言模型的知识并带来稳定的性能提升。

英文摘要:

Ensembling different large language models (LLMs) to unleash their complementary potential and harness their individual strengths is highly valuable. Nevertheless, vocabulary discrepancies among various LLMs have constrained previous studies to either selecting or blending completely generated outputs. This limitation hinders the dynamic correction and enhancement of outputs during the generation process, resulting in a limited capacity for effective ensemble. To address this issue, we propose a novel method to Ensemble LLMs via Vocabulary Alignment (EVA). EVA bridges the lexical gap among various LLMs, enabling meticulous ensemble at each generation step. Specifically, we first learn mappings between the vocabularies of different LLMs with the assistance of overlapping tokens. Subsequently, these mappings are employed to project output distributions of LLMs into a unified space, facilitating a fine-grained ensemble. Finally, we design a filtering strategy to exclude models that generate unfaithful tokens. Experimental results on commonsense reasoning, arithmetic reasoning, machine translation, and data-to-text generation tasks demonstrate the superiority of our approach compared with individual LLMs and previous ensemble methods conducted on complete outputs. Further analyses confirm that our approach can leverage knowledge from different language models and yield consistent improvement.

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

↑