通过推理时激活能量缓解对齐大语言模型的过度拒绝 Mitigating Over-Refusal in Aligned Large Language Models via Inference-Time Activation Energy 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2025-10-09
👁️ 预览文献
💡 AI 中文简介
大语言模型的安全对齐常导致过度拒绝,即错误拒绝无害请求。本文提出能量景观引导(ELS),一种无需微调的推理时干预框架。它训练轻量级外部能量模型,为不良状态(错误拒绝或越狱)分配高能量,为理想状态(有用回答或安全拒绝)分配低能量。推理时,能量模型将大模型内部激活映射到能量景观,并利用能量梯度实时引导隐藏状态向低能量区域移动,从而动态引导模型行为而不修改其参数。实验表明,该方法在ORB-H基准上将合规率从57.3%提升至82.6%,同时保持基线安全性能。
领域自然语言处理 / 大语言模型安全与对齐
适合谁读需要一定专业背景(了解大语言模型对齐、推理机制)
核心贡献提出无需微调的推理时干预框架ELS,通过外部能量模型动态引导隐藏状态,解耦行为控制与核心知识;在提升合规率的同时保持安全性,为安全对齐提供灵活高效的解决方案。
关键数据在ORB-H基准上,合规率从57.3%提升至82.6%,同时保持基线安全性能。
推荐理由如果你关心大模型‘过度拒绝’问题,这篇工作提供了一种即插即用、不微调就能提升模型有用性的新思路,效果显著且实用。
关键词["大语言模型", "安全对齐", "过度拒绝", "推理时干预", "能量模型", "激活引导"]

原文摘要

查看英文原文摘要

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.