DNAlign: Dynamic Null-Space Safe Alignment for LLMs
cs.AI
Submitted: 2026-10-02
Updated: 2026-10-02
Comments: Regular Paper; 13 pages, 8 figures, and 1 table
License: http://creativecommons.org/licenses/by/4.0/
The gist: Ensuring the safe and reliable deployment of large language models (LLMs) remains a fundamental challenge.
Terminology
Abstract
Ensuring the safe and reliable deployment of large language models (LLMs) remains a fundamental challenge. Existing safety alignment approaches either incur high computational cost or unintentionally disrupt the model's core knowledge, leading to degraded fluency and factual accuracy on benign tasks. This reveals a persistent trade-off between safety and utility. We propose DNAlign, a lightweight alignment framework that integrates control-theoretic optimization with null-space projection. By treating the LLM as a dynamic system, the proposed framework introduces controllable perturbations to steer generation toward safe behavior. A key component is the projection module, which restricts these perturbations to the harmful-related subspace derived from neutral hidden states, thereby preserving general knowledge and response quality. A value function trained on human preference data adaptively optimizes the control signals to align with human safety preferences. Extensive evaluations across multiple LLM backbones demonstrate that our framework consistently reduces harmful outputs while maintaining fluency, coherence, and factual utility. It achieves superior overall performance compared to prior alignment baselines without sacrificing generation diversity. These results indicate that the proposed framework provides an effective and practically deployable solution for safe LLM alignment. Code is available at https://anonymous.4open.science/r/DNAlign.
Sources
- Towards a Human-like Open-Domain Chatbot
- FinGPT: Open-Source Financial Large Language Models
- Truthful AI: Developing and governing AI that does not lie
- RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
- Training language models to follow instructions with human feedback
- A Survey of Reinforcement Learning from Human Feedback
- Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback
- Language Models are Homer Simpson! Safety Re-Alignment of Fine-tuned Language Models through Task Arithmetic
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- UltraFeedback: Boosting Language Models with Scaled AI Feedback
- AlphaEdit: Null-Space Constrained Knowledge Editing for Language Models
- Gemini: A Family of Highly Capable Multimodal Models
- ARGS: Alignment as Reward-Guided Search
- Qwen Technical Report
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