arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.10014cs.CLcs.AI
收藏

大型语言模型的安全感知微调

Safety-Aware Fine-Tuning of Large Language Models

University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Hyeong Kyu Choi, Xuefeng Du, Yixuan Li

AI总结:

针对微调大型语言模型时有害数据带来的安全风险,提出安全感知微调(SAFT)框架,利用评分函数自动检测并移除有害数据,有害性最高降低27.8%。

摘要:

微调大型语言模型(LLMs)已成为根据个人需求和偏好定制模型的常见做法。用于微调的数据集选择是多样的,这引发了关于可能包含有害数据样本的安全担忧。然而,手动过滤或避免此类样本可能既费时费力又具有主观性。为了解决这些困难,我们提出了一种新颖的安全感知微调(SAFT)框架,旨在利用一个评分函数自动检测并移除潜在的有害数据,该函数利用了有害和良性样本的子空间信息。实验结果证明了SAFT在不同LLMs和不同污染率下的有效性,有害性最高降低了27.8%。此外,我们深入探讨了该方法的机制,并验证了其在解决现实场景中实际挑战时的多功能性。

英文摘要:

Fine-tuning Large Language Models (LLMs) has emerged as a common practice for tailoring models to individual needs and preferences. The choice of datasets for fine-tuning can be diverse, introducing safety concerns regarding the potential inclusion of harmful data samples. Manually filtering or avoiding such samples, however, can be labor-intensive and subjective. To address these difficulties, we propose a novel Safety-Aware Fine-Tuning (SAFT) framework designed to automatically detect and remove potentially harmful data, by leveraging a scoring function that exploits the subspace information of harmful and benign samples. Experimental results demonstrate the efficacy of SAFT across different LLMs and varying contamination rates, achieving reductions in harmfulness of up to 27.8%. Going beyond, we delve into the mechanism of our approach and validate its versatility in addressing practical challenges in real-world scenarios.

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

↑