A new way to score which weights carry an LLM's safety. Breaking the top 1% of those weights breaks safety more than earlier scores do. Tuning only them adds safety, and freezing them keeps it during fine-tuning.
Going deeper

| Variant |
|
|
| ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Original | – | – | 14.5 | 3.6 | 4.9 | ||||||
| w/o | 4 | 50 | 61.3±1.7 | 33.1±1.8 | 22.4±1.6 | ||||||
| w/o NC | 1 | 50 | 59.2±1.3 | 31.1±1.6 | 19.6±1.4 | ||||||
| w/o NC (matched) | 1 | 200 | 60.1±1.4 | 32.1±1.5 | 20.7±1.2 | ||||||
| Mean-Abs | 4 | 50 | 54.8±1.7 | 28.7±1.6 | 18.3±1.5 | ||||||
| NC-MSI-JD | 4 | 50 | 65.2±1.4 | 38.9±1.6 | 26.4±1.2 |
Think of a large orchestra that has learned to stop playing whenever someone requests a forbidden song. Which few players make that refusal happen? If you knew, you could coach just them, or keep them away from rehearsals of new music.
Earlier methods guessed by asking which players matter most for playing one particular refusal tune. This paper asks instead which players, nudged slightly, most change whether the orchestra refuses at all. It also checks each player across several slightly out-of-tune rehearsals, so a lucky one-off does not count.
Then it uses the answer. Coaching only the top one in a hundred players taught a careless orchestra to refuse far more often, without forgetting its other music. Leaving those players alone, and vetoing any rehearsal change that pushes against refusal, let a careful orchestra learn new pieces while staying nearly as careful.
The abstract, word for word, with the six densest phrases unpacked.
Recent studies have started to investigate internal safety-relevant components, such as safety-critical parameters and neurons, in large language models (LLMs) by gradient-based importance attribution to guide safety interventions. However, existing gradient-based methods for identifying safety-critical parameters still have the following four limitations. First, these methods usually rely on gradients of generic training objectives, which characterize the distance between model outputs and specific response patterns rather than directly measure model output safety. Second, these methods overlook the impact of the parameter variations across different model layers and modules. Third, investigation of safety-critical parameters in MLLMs remains limited. Furthermore, a single gradient is insufficient to reflect the local parameter geometry. To address the first three limitations, we propose Multimodal Safety Index (MSI), where we use the expected safety value of model outputs to quantify safety1 and develop approximation methods to estimate the gradient and the magnitudes of parameter variations for importance attribution. To address the fourth limitation, we extend MSI to Neighborhood-Consensus Multimodal Safety Index (NC-MSI) by aggregating the gradients across the locally perturbed model states2 for attribution. Using NC-MSI, we identify distinct safety-critical parameter distributions in LLMs and MLLMs. Based on NC-MSI, we propose two targeted intervention strategies: Safety Enhancement Tuning (SET) aligns unsafe models by updating only a few safety-critical parameters3, enhancing safety while preserving general capabilities. Safety-Preserving Adaptation (SPA) freezes critical parameters and adopts our proposed optimizer, SafeAdamW4, enabling aligned models to acquire new capabilities without significant safety degradation. Experiments across LLMs and MLLMs demonstrate that SET reduces the attack success rate of under-aligned models by over 70% in only 100 steps using 1% of parameters5, whereas SPA limits safety degradation of aligned models within 0.5% on average after 1,000 steps of fine-tuning6.
Two lines of work lead here: finding which weights matter, and keeping safety during fine-tuning.
Read the method, then the two result sections.
Skip Section II and most of the appendix unless you are checking judges or proofs.
If the gains are smaller than they look, start here.
Following [34, 35], we use GPT-4o to score each response from 1 to 5 under OpenAI’s prohibited usage policies, as summarized in Table S2, and compute ASR as the percentage of responses scoring 5. In the judge prompt below, {model_response} denotes the target model’s output, while {harmful_goal} is the original prompt for text, the accompanying text query for image and video, or the transcribed text for audio. For image and video benchmarks, the input image or extracted frames are also fed directly to GPT-4o.
The bound holds under the stated assumptions but does not guarantee that the safety value is nondecreasing at every step when the gradient estimation error or the curvature term is nonzero. It quantifies the maximum possible decrease allowed by these assumptions.
Over-refusal rates on benign benchmarks before and after applying NC-MSI. NC-MSI-SET uses CB-Safety for fine-tuning. Model | Method | Over-Refusal Rate XSTest | OR-Bench | Overall Llama-3-8B | Original | 0.00% | 3.50% | 1.56% NC-MSI-SET | 1.20% | 6.00% | 3.33% Qwen2.5-7B | Original | 2.00% | 8.50% | 4.89% NC-MSI-SET | 3.60% | 11.50% | 7.11% Qwen2.5-14B | Original | 2.40% | 8.50% | 5.11% NC-MSI-SET | 3.20% | 10.50% | 6.44%
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all