SafeNeuron: Neuron-Level Safety Alignment for Large Language Models
Zhaoxin Wang, Jiaming Liang, Fengbin Zhu, Weixiang Zhao, Junfeng Fang, Jiayi Ji, Handing Wang, Tat-Seng Chua
TL;DR
Safety alignment in large language models often relies on brittle, behavior-level constraints that concentrate safety in a few parameters. SafeNeuron identifies safety-related neurons using Activation Effect Size and Safety Activation Shift, freezes them, and trains the remaining parameters with a Direct Preference Optimization objective in an iterative regime to build redundant safety pathways. The approach preserves general reasoning abilities while substantially reducing jailbreak ASR and improving robustness to neuron pruning, extending effectively to vision-language models. These results suggest that safe behavior is encoded in distributed internal representations, offering a more resilient and interpretable path for model alignment across modalities.
Abstract
Large language models (LLMs) and multimodal LLMs are typically safety-aligned before release to prevent harmful content generation. However, recent studies show that safety behaviors are concentrated in a small subset of parameters, making alignment brittle and easily bypassed through neuron-level attacks. Moreover, most existing alignment methods operate at the behavioral level, offering limited control over the model's internal safety mechanisms. In this work, we propose SafeNeuron, a neuron-level safety alignment framework that improves robustness by redistributing safety representations across the network. SafeNeuron first identifies safety-related neurons, then freezes these neurons during preference optimization to prevent reliance on sparse safety pathways and force the model to construct redundant safety representations. Extensive experiments across models and modalities demonstrate that SafeNeuron significantly improves robustness against neuron pruning attacks, reduces the risk of open-source models being repurposed as red-team generators, and preserves general capabilities. Furthermore, our layer-wise analysis reveals that safety behaviors are governed by stable and shared internal representations. Overall, SafeNeuron provides an interpretable and robust perspective for model alignment.
