LED-Merging:使用Location-Election-Disjoint缓解模型合并中的安全-效用冲突
LED-Merging: Mitigating Safety-Utility Conflicts in Model Merging with Location-Election-Disjoint
AI总结:
本文提出LED-Merging框架,通过基于梯度的定位、多模型重要性融合的选举和参数隔离的分离三阶段方法,解决模型合并中的神经元误识别与跨任务干扰问题,有效缓解安全-效用冲突,在保持95%效用的同时显著降低有害响应率。
摘要:
针对特定任务微调预训练大型语言模型(LLMs)会产生巨大的计算和数据成本。虽然模型合并提供了一种无需训练的方案来整合多个特定任务模型,但现有方法存在安全-效用冲突,即增强的通用能力会削弱安全防护。我们指出了两个根本原因:由于简单的基于参数幅度的选择导致的神经元误识别,以及合并过程中的跨任务神经元干扰。为了应对这些挑战,我们提出了LED-Merging,这是一个三阶段框架,通过基于梯度的归因定位(Locate)特定任务神经元,通过多模型重要性融合动态选举(Elect)关键神经元,并通过参数隔离分离(Disjoint)冲突的更新。在Llama-3-8B、Mistral-7B和Llama2-13B上的大量实验表明,LED-Merging有效降低了有害响应率,在HarmBench上Llama-3-8B-Instruct下降了31.4%,同时保留了95%的效用性能,例如在GSM8K上达到52.39%的准确率。LED-Merging解决了安全-效用冲突,为构建可靠的多任务LLMs提供了一种轻量级、无需训练的范式。代码可在GitHub获取。
英文摘要:
Fine-tuning pre-trained Large Language Models (LLMs) for specialized tasks incurs substantial computational and data costs. While model merging offers a training-free solution to integrate multiple task-specific models, existing methods suffer from safety-utility conflicts where enhanced general capabilities degrade safety safeguards. We identify two root causes: $\textbf{neuron misidentification}$ due to simplistic parameter magnitude-based selection, and $\textbf{cross-task neuron interference}$ during merging. To address these challenges, we propose $\textbf{LED-Merging}$, a three-stage framework that $\textbf{L}$ocates task-specific neurons via gradient-based attribution, dynamically $\textbf{E}$lects critical neurons through multi-model importance fusion, and $\textbf{D}$isjoints conflicting updates through parameter isolation. Extensive experiments on Llama-3-8B, Mistral-7B, and Llama2-13B demonstrate that LED-Merging effectively reduces harmful response rates, showing a 31.4\% decrease on Llama-3-8B-Instruct on HarmBench, while simultaneously preserving 95\% of utility performance, such as achieving 52.39\% accuracy on GSM8K. LED-Merging resolves safety-utility conflicts and provides a lightweight, training-free paradigm for constructing reliable multi-task LLMs. Code is available at $\href{https://github.com/MqLeet/LED-Merging}{GitHub}$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。