NeST: Neuron Selective Tuning for LLM Safety
Organizations: Technical University of Darmstadt · University of Bristol
Abstract
Safety alignment is essential for the responsible deployment of Large Language Models (LLMs). Yet, existing approaches often rely on heavyweight fine-tuning that is costly to update, audit, and maintain across model families. Full fine-tuning incurs substantial computational and storage overhead, while parameter-efficient methods, e.g., Low-Rank Adaptation (LoRA), trade efficiency for inconsistent safety gains and sensitivity to design choices. Safety intervention mechanisms reduce unsafe outputs without modifying model weights, but do not directly shape or preserve the internal representations that govern safety behavior. We present NeST, a Neuron-Selective Tuning framework for efficient post-hoc safety alignment. NeST identifies safety-relevant feed-forward neurons via activation probing on vanilla harmful and benign prompts, clusters neurons with similar activation profiles, and trains shared cluster-level updates while freezing the rest of the model. Importantly, NeST is trained only on vanilla malicious prompts, without using jailbreak-specific attack data, yet generalizes robustly to diverse jailbreaks. The learned updates are then folded into the original weights, incurring no inference-time overhead. Evaluated on 14 open-weight language and multimodal models, NeST outperforms lightweight baselines and approaches full fine-tuning robustness with significantly fewer trainable parameters. On text-only models, NeST reduces average jailbreak attack success rate from 44.5% to 1.1% while training only 0.4M parameters on average. Across multimodal settings, it reduces ASR from 55.3% to 1.1%, and for downstream fine-tuned variants, it restores safety by reducing ASR from 53.8% to 0.8%. These results show that robust, maintainable safety alignment can be achieved by concentrating adaptation on localized, functionally coherent safety structures.
Figures & tables
| Method | Scope | Train Data | Epochs/Steps | Eval. Data |
| Baseline | - | - | - | 1k jailbreak |
| Full FT | All params | 20k direct | 5 epochs | 1k jailbreak |
| LoRA | FNN | 20k direct | 5 epochs | 1k jailbreak |
| Circuit Breaker | FNN+ATTN | 25k | 150 steps | 1k jailbreak |
| NeST | Neuron clusters | 20k direct | 5 epochs | 1k jailbreak |
| Target Model | Baseline | Full FT | Circuit Breaker | SN-Tune | LoRA | NeST | ||||||
| ASR | ASR | Para. | ASR | ASR | Para. | ASR | Para. | ASR | Para. | ASR | Para. | |
| Llama-3.2-1B | 40.5% | 2.1% | 1,235.8 | 35.8% | 58.1% | 8.5 | 35.9% | 16.38 | 1.4% | 3.3 | 0.3% | 0.1 |
| Llama-3.2-3B | 54.2% | 1.9% | 3,212.8 | 48.1% | 74.8% | 18.2 | 23.6% | 43.00 | 3.4% | 5.0 | 0.5% | 0.3 |
| Qwen2.5-7B | 69.4% | 1.6% | 7,615.6 | 38.2% | 79.1% | 30.3 | 67.6% | 50.17 | 19.2% | 0.5 | 0.6% | 0.4 |
| Qwen2.5-14B | 58.1% | 0.8% | 14,770.0 | 20.1% | 65.2% | 51.6 | 58.6% | 122.8 | 13.0% | 18.8 | 0.8% | 1.0 |
| Phi-4-mini | 25.7% | 0.3% | 3,836.0 | 24.6% | 44.5% | 13.4 | 34.2% | 598.6 | 5.7% | 1.6 | 0.7% | 0.2 |
| Target Model | Infer. Setting | w/o NeST | w/ NeST |
| gemma-3-12b | Text | 52.6% | 4.4% |
| Text & Reasoning | 52.4% | 5.1% | |
| Image | 40.8% | 0.2% | |
| Image & Reasoning | 39.8% | 1.0% | |
| gemma-3-27b | Text | 57.1% | 0.2% |
| Text & Reasoning | 58.5% | 0.2% |
| Base Model | Downstream (Target) Model | Downstream Task | Baseline | Downstream w/o NeST | Downstream w/ NeST |
| Llama-3.2-1B | Vikhr-Llama-3.2-1B-Instruct | Russian language | 40.5% | 32.1\%_{{\color[rgb]{0,1,0}-8.4\%}} | 0.9\%_{{\color[rgb]{0,1,0}-39.6\%}} |
| Llama-3.2-3B | Llama-Doctor-3.2-3B-Instruct | Medical consultation | 54.2% | 64.7\%_{{\color[rgb]{1,0,0}+10.5\%}} | 0.4\%_{{\color[rgb]{0,1,0}-53.8\%}} |
| Qwen2.5-7B | Fin-R1 | Financial reasoning | 69.4% | 72.2\%_{{\color[rgb]{1,0,0}+2.8\%}} | 0.2\%_{{\color[rgb]{0,1,0}-69.2\%}} |
| Qwen2.5-14B | oxy-1-small | Role play | 58.1% | 74.7\%_{{\color[rgb]{1,0,0}+16.6\%}} | 0.2\%_{{\color[rgb]{0,1,0}-57.9\%}} |
| Phi-4-mini | phi-4-mini-chinese-it-e1 | Reasoning & STEM | 25.7% | 58.0\%_{{\color[rgb]{1,0,0}+32.3\%}} | 1.4\%_{{\color[rgb]{0,1,0}-24.3\%}} |
| Phi-4 | Meditron3-Phi4-14B | Clinical medicine | 25.2% | 39.9\%_{{\color[rgb]{1,0,0}+14.7\%}} | 1.6\%_{{\color[rgb]{0,1,0}-23.6\%}} |
| Target Model | JailBreakV-28k Dataset | Llama-Guard-3-8B Judge | ||||||||||||
| Baseline | Full FT | Circuit Breaker | SN-Tune | LoRA | NeST | Baseline | Full FT | Circuit Breaker | SN-Tune | LoRA | NeST | |||
| Orig. | Exp. | Orig. | Exp. | |||||||||||
| Llama-3.2-1B | 23.1% | 4.1% | 32.2% | 41.9% | 1.1% | 9.7% | 0.3% | 15.1% | 14.8% | 18.6% | 27.9% | 0.1% | 12.6% | 3.3% |
| Llama-3.2-3B | 38.0% | 0.8% | 38.9% | 67.3% | 11.0% | 9.1% | 1.5% | 18.6% | 4.4% | 11.1% | 19.2% | 4.0% | 3.4% | 1.7% |
| Qwen2.5-7B | 57.8% | 1.6% | 26.4% | 63.2% | 32.4% | 0.8% | 1.4% | 28.7% | 0.3% | 21.9% | 31.8% | 2.4% | 1.9% | 8.1% |
| Qwen2.5-14B | 26.7% | 0.2% | 12.8% | 58.6% | 31.8% | 1.1% | 1.3% | 15.7% | 0.0% | 11.3% | 27.5% | 6.4% | 0.95% | 2.5% |
| Target Model | ORR | Seed Jaccard | Dataset Jaccard |
| Llama-3.2-1B | 1.6% | 90.5% | 90.8% |
| Llama-3.2-3B | 1.2% | 87.6% | 94.9% |
| Qwen2.5-7B | 0.2% | 63.3% | 83.9% |
| Qwen2.5-14B | 0.3% | 67.4% | 93.3% |
| Phi-4-mini | 1.2% | 73.5% | 89.3% |
| Phi-4 | 0.8% | 68.4% | 91.7% |
| Target Model | |||
| Llama-3.2-1B | 0.0% | 0.3% | 1.9% |
| Llama-3.2-3B | 0.0% | 0.5% | 0.3% |
| Qwen2.5-7B | 0.2% | 0.6% | 4.7% |
| Qwen2.5-14B | 0.1% | 0.8% | 2.3% |
| Phi-4-mini | 0.8% | 0.7% | 5.3% |
| Phi-4 | 0.0% | 1.3% | 0.9% |
| Target Model | Weak | NeST | Strong | |||
| ASR | Para. | ASR | Para. | ASR | Para. | |
| Llama-3.2-1B | 1.2% | 0.1 | 0.3% | 0.1 | 0.7% | 1.4 |
| Llama-3.2-3B | 1.1% | 0.2 | 0.5% | 0.3 | 0.0% | 4.2 |
| Qwen2.5-7B | 0.1% | 0.2 | 0.6% | 0.4 | 0.3% | 5.7 |
| Qwen2.5-14B | 1.1% | 0.4 | 0.8% | 1.0 | 0.1% | 12.1 |
| Phi-4-mini | 3.4% | 0.1 | 0.7% | 0.2 | 0.4% | 4.2 |
LLM Safety Alignment
Large language model safety alignment trains and evaluates systems to follow human policies while resisting harmful requests and misuse.
See all 333 papers