Rethinking Deep Alignment Through The Lens Of Incomplete Learning
Thong Bach, Dung Nguyen, Thao Minh Le, Truyen Tran
TL;DR
The paper analyzes why safety alignment in large language models remains incomplete, identifying gradient concentration and signal decay in autoregressive training as the root cause of stronger safety changes in early tokens and weak changes later on. It introduces base-favored tokens as fine-grained indicators of undertrained regions and validates a two-pronged remedy: inference-time contrastive decoding to demonstrate mechanistic control, and a training-time targeted completion framework that applies adaptive penalties and a hybrid teacher to finish the learned safety distribution across all positions. Across multiple model families (e.g., Llama and Qwen), the approach yields substantial improvements in adversarial robustness (attack reductions of roughly 48–96%) while preserving utility, and enables deep safety alignment that enhances proactive deliberative reasoning under attack. The work offers a principled, mechanistic path to complete safety learning without broad retraining, with strong implications for production deployment, scalability, and safer AI systems.
Abstract
Large language models exhibit systematic vulnerabilities to adversarial attacks despite extensive safety alignment. We provide a mechanistic analysis revealing that position-dependent gradient weakening during autoregressive training creates signal decay, leading to incomplete safety learning where safety training fails to transform model preferences in later response regions fully. We introduce base-favored tokens -- vocabulary elements where base models assign higher probability than aligned models -- as computational indicators of incomplete safety learning and develop a targeted completion method that addresses undertrained regions through adaptive penalties and hybrid teacher distillation. Experimental evaluation across Llama and Qwen model families demonstrates dramatic improvements in adversarial robustness, with 48--98% reductions in attack success rates while preserving general capabilities. These results establish both a mechanistic understanding and practical solutions for fundamental limitations in safety alignment methodologies.
