English

Mitigating Over-Refusal in Aligned Large Language Models via Inference-Time Activation Energy

Machine Learning 2026-03-04 v2 Artificial Intelligence Computation and Language Machine Learning

Abstract

Safety alignment of large language models currently faces a central challenge: existing alignment techniques often prioritize mitigating responses to harmful prompts at the expense of overcautious behavior, leading models to incorrectly refuse benign requests. A key goal of safe alignment is therefore to improve safety while simultaneously minimizing false refusals. In this work, we introduce Energy Landscape Steering (ELS), a novel, fine-tuning free framework designed to resolve this challenge through dynamic, inference-time intervention. We train a lightweight external Energy-Based Model (EBM) to assign high energy to undesirable states (false refusal or jailbreak) and low energy to desirable states (helpful response or safe reject). During inference, the EBM maps the LLM's internal activations to an energy landscape, and we use the gradient of the energy function to steer the hidden states toward low-energy regions in real time. This dynamically guides the model toward desirable behavior without modifying its parameters. By decoupling behavioral control from the model's core knowledge, ELS provides a flexible and computationally efficient solution. Extensive experiments across diverse models demonstrate its effectiveness, raising compliance on the ORB-H benchmark from 57.3 percent to 82.6 percent while maintaining baseline safety performance. Our work establishes a promising paradigm for building LLMs that simultaneously achieve high safety and low false refusal rates.

Keywords

Cite

@article{arxiv.2510.08646,
  title  = {Mitigating Over-Refusal in Aligned Large Language Models via Inference-Time Activation Energy},
  author = {Eric Hanchen Jiang and Weixuan Ou and Run Liu and Shengyuan Pang and Guancheng Wan and Ranjie Duan and Wei Dong and Kai-Wei Chang and XiaoFeng Wang and Ying Nian Wu and Xinfeng Li},
  journal= {arXiv preprint arXiv:2510.08646},
  year   = {2026}
}
R2 v1 2026-07-01T06:27:47.316Z