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.

Keywords

Subject

Publication details

Journal
Not available
Open access
Green open access

Cite this article

APA 7

Dang, J., Zhao, Y., Liu, D., Fang, J., Wang, B., Rao, T., Peng, H., Hu, B., & Chua, T. S. (2026). DNAlign: Dynamic Null-Space Safe Alignment for LLMs. https://omanscience.com/en/articles/dnalign-dynamic-null-space-safe-alignment-for-llms

MLA 9

Dang, Jisheng, et al. "DNAlign: Dynamic Null-Space Safe Alignment for LLMs." https://omanscience.com/en/articles/dnalign-dynamic-null-space-safe-alignment-for-llms.

Chicago (author–date)

Dang, Jisheng, Yushuo Zhao, Dewei Liu, Junfeng Fang, Bimei Wang, Tiantian Rao, Hong Peng, Bin Hu, and Tat-Seng Chua. 2026. "DNAlign: Dynamic Null-Space Safe Alignment for LLMs." https://omanscience.com/en/articles/dnalign-dynamic-null-space-safe-alignment-for-llms.

Harvard

Dang, J., Zhao, Y., Liu, D., Fang, J., Wang, B., Rao, T., Peng, H., Hu, B. and Chua, T. S. (2026) 'DNAlign: Dynamic Null-Space Safe Alignment for LLMs', Available at: https://omanscience.com/en/articles/dnalign-dynamic-null-space-safe-alignment-for-llms.

Vancouver

Dang J, Zhao Y, Liu D, Fang J, Wang B, Rao T, et al. DNAlign: Dynamic Null-Space Safe Alignment for LLMs. https://omanscience.com/en/articles/dnalign-dynamic-null-space-safe-alignment-for-llms

IEEE

J. Dang, Y. Zhao, D. Liu, J. Fang, B. Wang, T. Rao, H. Peng, B. Hu, and T. S. Chua, "DNAlign: Dynamic Null-Space Safe Alignment for LLMs," https://omanscience.com/en/articles/dnalign-dynamic-null-space-safe-alignment-for-llms.