挑剔的LLM与不可靠的RM:指令微调后安全对齐的实证研究
Picky LLMs and Unreliable RMs: An Empirical Study on Safety Alignment after Instruction Tuning
AI总结:
本文实证研究了良性指令微调导致LLM安全对齐降低的问题,发现答案结构、身份校准和角色扮演是关键因素,并揭示了现有奖励模型在反映人类安全偏好上的局限性。
摘要:
大型语言模型(LLM)已成为解决广泛通用查询和任务的强大工具。尽管如此,在较小、特定领域的数据集上微调已对齐的LLM,这对于使其适应专业化任务至关重要,却可能无意中降低其安全对齐,即使数据集是良性的。这种现象使模型更容易提供不当响应。在本研究中,我们系统地检验了良性微调场景下导致安全对齐降低的因素。我们的分析确定了影响已对齐LLM的三个关键因素:答案结构、身份校准和角色扮演。此外,我们评估了最先进的奖励模型(RM)的可靠性,这些模型常用于指导对齐过程。我们的发现表明,这些RM经常无法准确反映人类关于安全的偏好,凸显了其在实际应用中的局限性。通过揭示这些挑战,我们的工作强调了在微调过程中维持安全对齐的复杂性,并为帮助开发者在LLM中平衡效用与安全提供了指导。我们实验中使用的数据集和微调代码可在https://github.com/GuanlinLee/llm_instruction_tuning找到。
英文摘要:
Large language models (LLMs) have emerged as powerful tools for addressing a wide range of general inquiries and tasks. Despite this, fine-tuning aligned LLMs on smaller, domain-specific datasets, critical to adapting them to specialized tasks, can inadvertently degrade their safety alignment, even when the datasets are benign. This phenomenon makes models more susceptible to providing inappropriate responses. In this study, we systematically examine the factors contributing to safety alignment degradation in benign fine-tuning scenarios. Our analysis identifies three critical factors affecting aligned LLMs: answer structure, identity calibration, and role-play. Additionally, we evaluate the reliability of state-of-the-art reward models (RMs), which are often used to guide alignment processes. Our findings reveal that these RMs frequently fail to accurately reflect human preferences regarding safety, underscoring their limitations in practical applications. By uncovering these challenges, our work highlights the complexities of maintaining safety alignment during fine-tuning and offers guidance to help developers balance utility and safety in LLMs. Datasets and fine-tuning code used in our experiments can be found in https://github.com/GuanlinLee/llm_instruction_tuning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。