Why Is RLHF Alignment Shallow? A Gradient Analysis
Robin Young

TL;DR
This paper analyzes why reinforcement learning with human feedback (RLHF) produces shallow alignment in large language models, revealing that gradient signals focus only on early harm-determining tokens and proposing a new objective to address this limitation.
Contribution
It provides a theoretical gradient analysis explaining the shallow nature of RLHF alignment and introduces a new objective to generate deeper alignment signals.
Findings
Gradient signals concentrate on early tokens where harm is decided.
Standard alignment objectives cannot produce deep alignment.
A new recovery penalty objective creates gradient signals at all positions.
Abstract
Why is safety alignment in LLMs shallow? We prove that gradient-based alignment inherently concentrates on positions where harm is decided and vanishes beyond. Using a martingale decomposition of sequence-level harm, we derive an exact characterization of alignment gradients. The gradient at position equals the covariance between the conditional expected harm and the score function. This implies that positions beyond the harm horizon where the output's harmfulness is already determined receive zero gradient signal during training. This explains empirical observations that KL divergence between aligned and base models concentrates on early tokens. Consequently, standard alignment objectives cannot produce deep alignment, regardless of optimization quality. We introduce the concept of harm information , which quantifies each position's influence on harm, and prove that…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Explainable Artificial Intelligence (XAI) · Imbalanced Data Classification Techniques
