Localizing Safety Alignment: MLP Layers and Mid-Network Blocks Encode Refusal Behavior in Large Language Models
Mingyu Zong, Sampad Mohanty, Bhaskar Krishnamachari
Key points
From the paper's conclusion- The results also show that the composition of safety-relevant components is non-additive: in five of six greedy trajectories, adding more aligned blocks can reduce refusal performance, and selective block subsets can outperform full MLP transplantation on malicious refusal, benign over-refusal, or both.
Abstract
Safety alignment in large language models is often treated as a distributed property of the entire network, yet its practical brittleness suggests that refusal behavior may be concentrated in a smaller set of parameters. This work addresses where safety-aligned refusal is encoded by transplanting weights from aligned models into matched unaligned base models at multiple levels of granularity. Using two open-weight model pairs and four safety benchmarks, we conducted experiments to compare the effects of replacing attention weights, MLP weights, contiguous layer regions, and MLP blocks. Across both model families, refusal transfer is dominated by MLP weights: replacing MLP parameters recovers substantially more malicious-prompt refusal than replacing attention parameters, with gains of at least 2.7 times more across benchmarks. Within the MLP stack, refusal-relevant parameters exhibit a consistent mid-network concentration, as the block spanning layers 8-11 is selected first in all six greedy searches over model-dataset pairs. The results also show that the composition of safety-relevant components is non-additive: in five of six greedy trajectories, adding more aligned blocks can reduce refusal performance, and selective block subsets can outperform full MLP transplantation on malicious refusal, benign over-refusal, or both. Finally, greedy orders transferred to OR-Bench vary with the source benchmark used to derive them, indicating a benchmark-dependent precision-coverage trade-off. These results suggest that safety alignment in current LLMs is both localized and interaction-sensitive, offering insight into alignment brittleness and potential avenues for targeted safety interventions.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Attention Sees, MLP Refuses: Tracing the Attention-to-MLP Safety Pathway in LLMsarXiv · 2026
- Beyond Refusal Patterns: Safe-Role Internalization for Robust and Generalizable LLM Safety AlignmentarXiv · 2026
- When Safety Becomes An Outlier: Understanding the Retention of LLM Safety BehaviorsarXiv · 2026
- Addition by Subtraction: Toward Mitigating Fragile Safety Alignment in Large Language ModelsarXiv · 2026
- Beyond Shallow Alignment: How Post-Training Methods Determine Refusal Circuits And Steering RobustnessarXiv · 2026
- Safety Offset Learning: When Benign Fine-Tuning Misaligns LLMsarXiv · 2026