模型合并与安全对齐:一个坏模型毁掉整组模型
Model Merging and Safety Alignment: One Bad Model Spoils the Bunch
AI总结:
本研究针对现有模型合并方法易传播安全对齐偏差的问题,提出融入合成安全与领域数据的两步合并法,实验证明该方法可让合并后的LLM同时具备优秀的领域能力与对齐表现。
摘要:
合并大语言模型(LLM)是一种将多个专家LLM整合为单一通用模型的高性价比技术,能保留原有模型的专业能力。然而,现有方法往往忽略了合并过程中安全对齐的重要性,导致生成的模型对齐度极低。本研究探讨了模型合并对对齐效果的影响。我们评估了几种主流的模型合并技术,证明现有方法不仅会迁移领域专业能力,还会传播对齐偏差。我们提出了一种简单的两步法来解决该问题:(i)生成合成安全数据与领域特定数据;(ii)将这些生成的数据融入现有数据感知型模型合并技术的优化过程中。这使得我们可以将对齐视为一种可在最终合并LLM中最大化的技能。我们的实验证明了在合并过程中整合对齐相关数据的有效性,生成的模型在领域专业能力和对齐表现上均十分出色。
英文摘要:
Merging Large Language Models (LLMs) is a cost-effective technique for combining multiple expert LLMs into a single versatile model, retaining the expertise of the original ones. However, current approaches often overlook the importance of safety alignment during merging, leading to highly misaligned models. This work investigates the effects of model merging on alignment. We evaluate several popular model merging techniques, demonstrating that existing methods do not only transfer domain expertise but also propagate misalignment. We propose a simple two-step approach to address this problem: (i) generating synthetic safety and domain-specific data, and (ii) incorporating these generated data into the optimization process of existing data-aware model merging techniques. This allows us to treat alignment as a skill that can be maximized in the resulting merged LLM. Our experiments illustrate the effectiveness of integrating alignment-related data during merging, resulting in models that excel in both domain expertise and alignment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。