SafeEvo: Deciphering the Safety Alignment Mechanism and Evolution in Language Models
cs.AI
Submitted: 2026-10-07
Updated: 2026-10-07
Code: https://github.com/a727990982/SafeEvo
License: http://creativecommons.org/licenses/by/4.0/
The gist: Safety interpretability advances the study of Large Language Model (LLM) alignment from behavioral constraints driven by data or algorithms towards a deeper understanding of internal mechanisms.
Terminology
Abstract
Safety interpretability advances the study of Large Language Model (LLM) alignment from behavioral constraints driven by data or algorithms towards a deeper understanding of internal mechanisms. However, existing works have focused primarily on safety-related representations, attention heads, or neurons after alignment, while largely overlooking the safety mechanisms in pretrained-only models and their evolution across alignment checkpoints. To address this, we propose SafeEvo, an interpretability framework from the circuit (sparse subgraphs of an LLM) perspective. SafeEvo first applies an optimization-based extraction algorithm to identify weak refusal circuits in pretrained base LLMs that can independently express refusal behavior. Causally ablating these circuits completely eliminates the base model's refusal of harmful inputs. SafeEvo then traces the evolution of refusal circuits across successive alignment checkpoints and finds that their structures change progressively, suggesting that the alignment tax may result from refusal-circuit updates affecting utility-related parameters. To validate this, SafeEvo introduces Safety Circuit Alignment (SCA), which confines safety updates to the refusal circuits. Experiments across three LLMs and two alignment algorithms show that, on average, SCA outperforms vanilla alignment in three aspects:(1) stronger alignment, lowering harmfulness score by 63.21%;(2) less over-refusal, yielding a 58.44% decrease in refusal rates for benign queries; and(3) better utility, retaining 99.58% of the original model capabilities.
Sources
- NeST: Neuron Selective Tuning for LLM Safety
- Mechanistic Interpretability for AI Safety -- A Review
- Towards Understanding Safety Alignment: A Mechanistic Perspective from Safety Neurons
- Training Verifiers to Solve Math Word Problems
- SafeGen-LLM: Enhancing Safety Generalization in Task Planning for Robotic Systems
- Interpretable LLM Guardrails via Sparse Representation Steering
- Explaining and Breaking the Safety-Helpfulness Ceiling via Preference Dimensional Expansion
- Mistral 7B
- What Matters For Safety Alignment?
- Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignment
- The Llama 3 Herd of Models
- A Survey of Large Audio Language Models: Generalization, Trustworthiness, and Outlook
- Mechanistic Interpretability for Large Language Model Alignment: Progress, Challenges, and Future Directions
- Qwen2.5 Technical Report
- Kimi K3: Open Frontier Intelligence
- A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment
- SafeNeuron: Neuron-Level Safety Alignment for Large Language Models
- DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence
- NLSR: Neuron-Level Safety Realignment of Large Language Models Against Harmful Fine-Tuning
- SafeSeek: Universal Attribution of Safety Circuits in Language Models
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems