当安全阻止感知:测量大语言模型拒绝中的语义混淆
How Semantically Stable Are LLM Refusals? Measuring Confusion in Local Safety Boundaries
AI总结:
本文提出语义混淆的概念及测量框架,通过ParaGuard语料库和三种模型无关指标,揭示大语言模型拒绝中的局部不一致问题,帮助开发者优化安全与准确性平衡。
摘要:
安全对齐的语言模型经常拒绝那些实际上无害的提示。当前的评估大多报告全局比率,如假拒绝或合规率。这些分数将每个提示单独考虑,忽略了局部不一致,即模型接受一个意图的表达方式,但拒绝一个相近的改写方式。这一差距限制了诊断和调整。我们引入了“语义混淆”,一种捕捉此类局部不一致的失败模式,以及一个测量它的框架。我们构建了ParaGuard,一个包含10000个提示的受控改写簇语料库,其意图固定而表面形式变化。然后我们提出了三种模型无关的指标,在词级别上:混淆指数、混淆率和混淆深度。这些指标将每个拒绝与最近的接受邻居进行比较,并使用词嵌入、下一个词概率和困惑度信号。在不同模型家族和部署防护措施上的实验表明,全局假拒绝率隐藏了关键结构。我们的指标揭示了某些情况下全局不稳定边界,其他情况下局部不一致的区域,以及严格拒绝不会增加不一致性的案例。我们还展示了具有混淆意识的审计如何区分系统拒绝的频率以及其拒绝的合理性。这为开发者提供了一个实用的信号,以减少假拒绝同时保持安全性。
英文摘要:
As safety alignment becomes standard in large language models, refusal behavior has become an important part of model reliability. However, models may still reject benign prompts, especially when the wording resembles risky content. Existing evaluations usually report global scores, such as false rejection rate or compliance rate. These scores are useful, but they treat each prompt independently. As a result, they miss local inconsistency, where a model accepts one phrasing of an intent but rejects a close paraphrase. This makes it difficult to understand whether refusals are only frequent or also semantically unstable. We address this gap by introducing Semantic Confusion, a failure mode that captures contradictory refusal decisions across meaning-preserving paraphrases. We build ParaGuard, a 10k-prompt corpus of controlled paraphrase clusters that keep intent fixed while varying surface form. We also propose three model-agnostic token-level metrics: Confusion Index, Confusion Rate, and Confusion Depth. These metrics compare each rejected prompt with its nearest accepted neighbors using token embeddings, next-token probabilities, and perplexity signals. Experiments across diverse model families show that global false rejection rate can hide important structure in the refusal boundary. Our metrics reveal cases where confusion is spread broadly, cases where it appears only in specific semantic regions, and cases where stricter refusal does not lead to more local inconsistency. These findings show that refusal evaluation should measure not only how often a model refuses, but also how consistently it refuses across nearby paraphrases. This gives developers a practical signal for reducing false refusals while preserving safety.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。