Revisiting over-refusal in safety-aligned large language models from representation and optimization perspectivesRevisiting Over-refusal in Safety-aligned Large Language Models: A Representation and Optimization Perspective
Translation in progress — untranslated text is omitted.
Researchers propose a safety alignment framework GOAL (Gradient Orthogonalization with contrAstive Learning), which mitigates over-refusal in safety-aligned large language models through gradient orthogonalization and contrastive learning; experiments across multiple models and benchmarks show that it reduces erroneous refusals of harmless requests while maintaining safety performance and general capability. The paper analyzes the causes of over-refusal from representation and optimization perspectives, observing that the representations of harmful samples and over-refusal samples are distinguishable at some intermediate layers but gradually overlap at deeper layers; harmful sample gradients have high intra-class similarity and concentrate in a low-rank subspace, and on over-refusal prompts their alignment with the refusal-objective gradient is stronger than with the correct helpful-objective gradient, and this imbalanced gradient coupling biases over-refusal samples toward refusal. Based on this, GOAL orthogonalizes the over-refusal gradient pair against the low-rank refusal subspace extracted from harmful gradients, to prevent optimization from biasing toward refusal, and introduces a contrastive learning objective to explicitly enhance the separation of harmful and over-refusal representations.