混合数据还是合并模型?面向多样化多任务学习的优化
Mix Data or Merge Models? Optimizing for Diverse Multi-Task Learning
AI总结:
本研究在多语言多任务场景下探索模型合并,发现基于目标和语言的合并方法优于数据混合,能显著提升模型的通用性能与安全性,为构建安全强大的多语言模型提供了有效框架。
摘要:
大型语言模型(LLMs)已被全球广泛采用并部署于各种应用中。然而,确保其安全使用仍是一项重大挑战。偏好训练和安全措施常常对以西方为中心的数据集中普遍存在的危害过拟合,且安全协议往往难以扩展到多语言环境。在本研究中,我们探讨了在多样化多任务环境下的模型合并,在多语言背景下结合了安全任务和通用任务。每种语言在各任务中引入了独特且多样的学习挑战。我们发现,基于目标的合并比混合数据更有效,在通用性能和安全性方面分别实现了高达8%和10%的提升。我们还发现,基于语言的合并非常有效——通过合并单语言微调的模型,在使用相同可用数据的数据混合方法基础上,我们在所有语言上实现了通用性能提升4%和危害减少7%。总体而言,我们对合并方法的全面研究为构建强大且安全的多语言模型提供了有用的框架。
英文摘要:
Large Language Models (LLMs) have been adopted and deployed worldwide for a broad variety of applications. However, ensuring their safe use remains a significant challenge. Preference training and safety measures often overfit to harms prevalent in Western-centric datasets, and safety protocols frequently fail to extend to multilingual settings. In this work, we explore model merging in a diverse multi-task setting, combining safety and general-purpose tasks within a multilingual context. Each language introduces unique and varied learning challenges across tasks. We find that objective-based merging is more effective than mixing data, with improvements of up to 8% and 10% in general performance and safety respectively. We also find that language-based merging is highly effective -- by merging monolingually fine-tuned models, we achieve a 4% increase in general performance and 7% reduction in harm across all languages on top of the data mixtures method using the same available data. Overall, our comprehensive study of merging approaches provides a useful framework for building strong and safe multilingual models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。