arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.12420cs.CLcs.AI
收藏

Sens-Merging:面向大语言模型合并的敏感度引导参数平衡

Sens-Merging: Sensitivity-Guided Parameter Balancing for Merging Large Language Models

City University of Hong Kong(香港城市大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Shuqi Liu, Han Wu, Bowei He, Xiongwei Han, Mingxuan Yuan, Linqi Song

AI总结:

针对现有模型合并方法忽略参数重要性差异的问题,提出Sens-Merging敏感度引导系数调整方法,通过分析单任务参数敏感度和跨任务可迁移性优化合并系数,在多模型上显著提升多任务性能,尤其在代码生成任务中超越专用微调模型。

摘要:

大语言模型的最新进展催生了众多任务专用的微调变体,因此需要高效的模型合并技术,在保留专用能力的同时避免高昂的重训练成本。现有基于任务向量的合并方法虽有潜力,但通常对所有参数应用统一系数,忽略了任务内部和任务间的参数重要性差异。我们提出Sens-Merging,一种敏感度引导的系数调整方法,通过在任务特定和跨任务层面操作来增强现有模型合并技术。该方法分析单个任务内的参数敏感度,评估跨任务可迁移性以确定最优合并系数。在Mistral 7B、LLaMA2-7B/13B模型上的大量实验表明,Sens-Merging显著提升通用知识、数学推理和代码生成任务的性能;尤其与现有合并技术结合时,合并模型可超越专用微调模型,在代码生成任务中表现突出。研究结果揭示了任务特定与跨任务缩放间的重要权衡,为未来模型合并策略提供了见解。

英文摘要:

Recent advances in large language models have led to numerous task-specialized fine-tuned variants, creating a need for efficient model merging techniques that preserve specialized capabilities while avoiding costly retraining. While existing task vector-based merging methods show promise, they typically apply uniform coefficients across all parameters, overlooking varying parameter importance both within and across tasks. We present Sens-Merging, a sensitivity-guided coefficient adjustment method that enhances existing model merging techniques by operating at both task-specific and cross-task levels. Our method analyzes parameter sensitivity within individual tasks and evaluates cross-task transferability to determine optimal merging coefficients. Extensive experiments on Mistral 7B and LLaMA2-7B/13B models demonstrate that Sens-Merging significantly improves performance across general knowledge, mathematical reasoning, and code generation tasks. Notably, when combined with existing merging techniques, our method enables merged models to outperform specialized fine-tuned models, particularly in code generation tasks. Our findings reveal important trade-offs between task-specific and cross-task scalings, providing insights for future model merging strategies.

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

↑