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

对齐但脆弱:通过零阶优化增强LLM安全鲁棒性

Aligned but Fragile: Enhancing LLM Safety Robustness via Zeroth-Order Optimization

The State Key Laboratory of Blockchain and Data Security(区块链与数据安全国家重点实验室);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高科技园区(滨江)区块链与数据安全研究院);Sun Yat-sen University(中山大学);KAUST(卡塔尔大学)

Zhihao Liu, Yifan Wu, Jian Lou, Di Wang, Yuxi Zhou, Yuke Hu

AI总结:

针对大语言模型安全对齐后易受轻量级后处理(如参数噪声、激活噪声或量化)影响的问题,提出基于零阶优化的混合框架,通过先标准一阶安全对齐再零阶精炼提升鲁棒性,并利用扰动评估估计层鲁棒性敏感性以高效聚焦关键层更新。

摘要:

大语言模型的安全对齐旨在减少有害或不安全行为,同时保持通用效用。然而,最近的研究发现对齐效果可能是脆弱的:轻量级的对齐后操作,如参数噪声、激活噪声或量化,很容易削弱预期的安全行为。先前提高鲁棒性的努力主要集中在数据整理、修改对齐目标和识别安全关键参数上,而优化器本身的作用在很大程度上未被探索。在本文中,我们首次从基础优化器的角度研究安全对齐的鲁棒性。这种以优化器为中心的视角自然地指向零阶优化,它通过评估扰动下的安全对齐来提供面向鲁棒性的信号。基于这一见解,我们提出了一个混合框架,首先执行标准的一阶安全对齐,然后应用零阶精炼来提高鲁棒性。从理论和实证上,我们表明仅需少量零阶精炼步骤即可增强鲁棒性,同时保持安全对齐。我们进一步通过利用其固有的基于扰动的评估来估计逐层鲁棒性敏感性,从而提高零阶精炼的效率,使精炼过程能够以适度的训练开销将更新集中在鲁棒性关键层上。

英文摘要:

Safety alignment for large language models (LLMs) aims to reduce harmful or unsafe behavior while preserving general utility. However, recent findings reveal that alignment effects can be fragile: lightweight post-alignment manipulations, such as parameter noise, activation noise, or quantization, can easily weaken the intended safety behavior. Prior efforts to improve robustness have primarily focused on data curation, modified alignment objectives, and safety-critical parameter identification, leaving the role of the optimizer itself largely unexplored. In this paper, we are the first to study the robustness of safety alignment from the perspective of the base optimizer. This optimizer-centric view naturally points to zeroth-order optimization, which provides a robustness-oriented signal by evaluating safety alignment under perturbations. Based on this insight, we propose a hybrid framework that first performs standard first-order safety alignment and then applies zeroth-order refinement to improve robustness. Both theoretically and empirically, we show that only a few zeroth-order refinement steps can enhance robustness while preserving safety alignment. We further improve the efficiency of zeroth-order refinement by exploiting its inherent perturbation-based evaluations to estimate layer-wise robustness sensitivity, enabling the refinement process to concentrate updates on robustness-critical layers with modest training overhead.

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

↑