Saved in:
Bibliographic Details
Main Authors: Liu, Zhihao, Wu, Yifan, Lou, Jian, Wang, Di, Zhou, Yuxi, Hu, Yuke
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2605.29396
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918528949420032
author Liu, Zhihao
Wu, Yifan
Lou, Jian
Wang, Di
Zhou, Yuxi
Hu, Yuke
author_facet Liu, Zhihao
Wu, Yifan
Lou, Jian
Wang, Di
Zhou, Yuxi
Hu, Yuke
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_29396
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Aligned but Fragile: Enhancing LLM Safety Robustness via Zeroth-Order Optimization
Liu, Zhihao
Wu, Yifan
Lou, Jian
Wang, Di
Zhou, Yuxi
Hu, Yuke
Artificial Intelligence
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.
title Aligned but Fragile: Enhancing LLM Safety Robustness via Zeroth-Order Optimization
topic Artificial Intelligence
url https://arxiv.org/abs/2605.29396