arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.07772cs.LG
收藏

基于偏好优化的对齐是实现大语言模型安全的核心方法

Alignment with Preference Optimization Is All You Need for LLM Safety

Technology Innovation Institute(技术创新研究院)

Reda Alami, Ali Khalifa Almansoori, Ahmed Alzubaidi, Mohamed El Amine Seddik, Mugariya Farooq, Hakim Hacid

AI总结:

本研究验证偏好优化对齐方法可有效提升LLM安全性,在Falcon 11B上实现安全评分大幅提升,同时指出安全提升存在通用能力下降的权衡,并确定Safe-NCA为平衡二者的最优方法。

摘要:

我们证明偏好优化方法可有效提升大语言模型(LLM)的安全性。我们使用安全数据集对Falcon 11B模型应用多种对齐技术,经LlamaGuard 3 8B测得的全局安全评分从57.64%大幅提升至99.90%,可与当前最优模型相媲美。在毒性基准测试中,对抗场景下的平均得分从0.6以上降至0.07以下。然而,安全性的提升是以通用能力下降为代价的,尤其是数学能力,这表明存在权衡关系。我们确定噪声对比对齐(Safe-NCA)是平衡安全性与性能的最优方法。本研究最终表明,对齐技术足以构建安全且鲁棒的模型。

英文摘要:

We demonstrate that preference optimization methods can effectively enhance LLM safety. Applying various alignment techniques to the Falcon 11B model using safety datasets, we achieve a significant boost in global safety score (from $57.64\%$ to $99.90\%$) as measured by LlamaGuard 3 8B, competing with state-of-the-art models. On toxicity benchmarks, average scores in adversarial settings dropped from over $0.6$ to less than $0.07$. However, this safety improvement comes at the cost of reduced general capabilities, particularly in math, suggesting a trade-off. We identify noise contrastive alignment (Safe-NCA) as an optimal method for balancing safety and performance. Our study ultimately shows that alignment techniques can be sufficient for building safe and robust models.

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

↑