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

评估针对RLHF中不安全反馈的防御措施

Evaluating Defences against Unsafe Feedback in RLHF

Dalhousie University(达尔豪斯大学);Vijil(维吉尔公司);University of Toronto(多伦多大学);Vector Institute for Artificial Intelligence(矢量人工智能研究院)

Domenic Rosati, Giles Edkins, Harsh Raj, David Atanasov, Subhabrata Majumdar, Janarthanan Rajendran, Frank Rudzicz, Hassan Sajjad

AI总结:

本研究首次分析RLHF中从不安全反馈学习的漏洞,发现现有安全防护不足,评估多种防御措施均无普遍效果,并提出基于约束马尔可夫决策过程的理论解释与未来防御方向。

摘要:

尽管在使大型语言模型(LLMs)与人类价值观对齐以及确保推理时安全行为方面已取得进展,但当在包含不安全及有害内容的数据集上进行微调时,安全防护措施很容易被移除。虽然这一设定已被广泛研究,但另一种流行的训练范式——通过强化学习从不安全反馈中学习——此前尚未被探索。鉴于反馈收集系统的广泛部署,这一点令人担忧。我们通过分析反馈有害的学习设定来填补这一空白,即尽管模型开发者旨在维持安全性,但不安全样本仍被优先于安全样本。我们发现,安全对齐的LLMs容易通过生成有害文本探索不安全的行为空间,并优化违反安全约束的奖励,这表明当前的安全防护不足以防止从不安全反馈中学习。为防范这一漏洞,我们调整了多种“隐式”和“显式”的有害微调防御措施,以评估它们在RLHF设定中作为学习约束的有效性,结果发现没有任何方法普遍有效,这指出了需要更多防御研究的必要性。我们在论文结尾观察到,一些防御措施通过执行“无害奖励黑客”来起作用,我们基于约束马尔可夫决策过程理论为此提供了理论解释,并为未来的防御开发提供了一些方向。

英文摘要:

While there has been progress towards aligning Large Language Models (LLMs) with human values and ensuring safe behaviour at inference time, safety guards can easily be removed when fine tuned on unsafe and harmful datasets. While this setting has been treated extensively, another popular training paradigm, learning from unsafe feedback with reinforcement learning, has previously been unexplored. This is concerning due to the widespread deployment of feedback collection systems. We address this gap by providing an analysis of learning settings where feedback is harmful, i.e. that unsafe samples are preferred over safe ones despite model developers goal to maintain safety. We find that safety-aligned LLMs easily explore unsafe action spaces via generating harmful text and optimize for reward that violates safety constraints indicating that current safety guards are not enough to prevent learning from unsafe feedback. In order to protect against this vulnerability, we adapt a number of both "implict" and "explicit" harmful fine-tuning defences to evaluate whether they are effective as learning constraints in an RLHF setting finding that no method is generally effective pointing to the need for more defence research. We end the paper with the observation that some defences work by performing "harmless reward hacking" for which we provide a theoretical explanation drawn from the theory of Constrained Markov Decision Processes and provide some direction for future defence development.

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

↑