Weighted-Reward Preference Optimization for Implicit Model Fusion
该论文提出了一种名为WRPO的加权奖励偏好优化方法,通过隐式融合异构开源LLMs的能力,有效地提升目标LLMs的性能。
更新于 2024-12-05。作者:Ziyi Yang、Fanqi Wan、Longguang Zhong、Tianyuan Shi、Xiaojun Quan。
中文摘要
将异构的开源LLM(大型语言模型)融合在一起,尽管有可能整合不同模型的优势,但现有的融合方法面临着重大挑战,如词汇对齐和合并分布矩阵。这些过程不仅复杂,而且容易引入噪声和错误。在本文中,我们提出了一种隐式融合方法,即加权奖励偏好优化(Weighted-Reward Preference Optimization,简称WRPO),该方法利用源LLM和目标LLM之间的偏好优化,有效地转移它们的能力。WRPO消除了词汇对齐和矩阵融合的需求,并且可以高效地扩展以适应各种LLM。为了解决源LLM和目标LLM之间的分布偏差,WRPO引入了一种渐进式适应策略,该策略逐步将依赖从目标LLM的偏好示例转移到源LLM。在MT-Bench、AlpacaEval-2和Arena-Hard基准测试上的大量实验表明,WRPO在知识融合方法以及各种微调基线中表现优异。当应用于LLaMA3-8B-Instruct作为目标模型时,WRPO在AlpacaEval-2上实现了对GPT-4-Preview-1106的长度控制的胜率为55.9%,在Arena-Hard上胜率为46.2%。我们的代码可在以下链接获取:https://github.com/SLIT-AI/WRPO。
英文摘要
While fusing heterogeneous open-source LLMs with varying architectures and sizes can potentially integrate the strengths of different models, existing fusion methods face significant challenges, such as vocabulary alignment and merging distribution matrices. These procedures are not only complex but also prone to introducing noise and errors. In this paper, we propose an implicit fusion method, Weighted-Reward Preference Optimization (WRPO), which leverages preference optimization between the source LLMs and the target LLM to transfer their capabilities effectively. WRPO eliminates the need for vocabulary alignment and matrix fusion and can be efficiently scaled to accommodate various LLMs. To address distributional deviations between the source and target LLMs, WRPO introduces a progressive adaptation strategy that gradually shifts reliance on preferred examples from the target LLM to the source LLMs. Extensive experiments on the MT-Bench, AlpacaEval-2, and Arena-Hard benchmarks demonstrate that WRPO consistently outperforms existing knowledge fusion methods and various fine-tuning baselines. When applied to LLaMA3-8B-Instruct as the target model, WRPO achieves a length-controlled win rate of 55.9% against GPT-4-Preview-1106 on AlpacaEval-2 and a win rate of 46.2% against GPT-4-0314 on Arena-Hard. Our code is available at https://github.com/SLIT-AI/WRPO.
解读
一句话总结
该论文提出了一种名为WRPO的加权奖励偏好优化方法,通过隐式融合异构开源LLMs的能力,有效地提升目标LLMs的性能。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:融合具有不同架构和大小的异构开源LLMs可以整合不同模型的优点,但现有的融合方法面临词汇对齐和合并分布矩阵等挑战,这些过程复杂且容易引入噪声和错误。 • 现有方案不足:现有的融合方法如显式模型融合(EMF)需要复杂的词汇对齐和分布合并,这增加了计算复杂度并可能导致错误。 • 研究目标:提出一种新的隐式模型融合(IMF)方法,通过偏好优化有效地转移源LLMs的能力,同时避免词汇对齐和分布合并。
问题2:论文的核心创新点是什么?
• 技术创新:提出加权奖励偏好优化(WRPO)方法,通过偏好优化在源LLMs和目标LLMs之间转移能力。 • 方法改进:引入渐进式自适应策略,逐步将依赖从目标LLMs的偏好示例转移到源LLMs。 • 优势:无需词汇对齐和分布合并,可高效扩展以适应各种LLMs。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:在MT-Bench、AlpacaEval-2和Arena-Hard基准上进行实验,结果表明WRPO在多个指标上优于现有融合方法和基线。 • 性能提升:在AlpacaEval-2上,WRPO相对于GPT-4-Preview-1106的长度控制胜率为55.9%,在Arena-Hard上的胜率为46.2%。 • 对比结果:与基线方法相比,WRPO在所有基准上都取得了显著的性能提升。
问题4:这个研究的实际应用价值是什么?
• 应用场景:潜在应用于需要高性能和鲁棒性的LLMs领域,如问答系统、文本摘要和机器翻译。 • 实施建议:采用WRPO方法可以有效地融合多个LLMs的能力,提高模型性能。 • 局限与展望:目前方法主要针对指令遵循任务,未来可以扩展到更广泛的领域,并进一步优化以处理更复杂的任务。
来源
机器可读索引:llms.txt