arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.08070cs.AIcs.CL
收藏

语义重力井:为何负约束失效

Semantic Gravity Wells: Why Negative Constraints Backfire

Independent Researcher(独立研究者)

Shailesh Rana

AI总结:

本文研究了负约束失效的机制,发现其失效源于语义压力与抑制信号的不对称性,揭示了命名禁止词会激活模型生成该词的矛盾现象。

摘要:

负约束(形式为“不要使用词X”的指令)代表了大型语言模型指令遵循能力的基本测试。尽管其看似简单,但这些约束却频繁失效,其失效的条件一直缺乏深入理解。本文首次对负指令失效进行了全面的机制研究。我们引入了语义压力,即模型生成禁止标记的内在概率的定量度量,并证明违反概率与压力之间存在紧密的逻辑关系(p=σ(-2.40+2.27·P₀);n=40,000样本;bootstrap 95%置信区间对于斜率:[2.21,2.33])。通过使用对数刻度镜头技术进行逐层分析,我们发现负指令诱导的抑制信号存在但系统性地在失效中更弱:指令在失效中将目标概率降低5.2个百分点,而在成功时降低22.8个百分点——一个4.4倍的不对称性。我们追溯这种不对称性到两种机理不同的失效模式。在启动失败(87.5%的失效)中,指令对禁止词的明确提及反而激活而非抑制目标表示。在覆盖失败(12.5%)中,后期层前馈网络对目标概率的贡献为+0.39——接近成功时的4倍,超过早期抑制信号。激活补丁确认第23-27层是因果责任的:替换这些层的激活会翻转约束效应的符号。这些发现揭示了负约束设计中的根本矛盾:命名禁止词本身会促使模型生成它。

英文摘要:

Negative constraints (instructions of the form "do not use word X") represent a fundamental test of instruction-following capability in large language models. Despite their apparent simplicity, these constraints fail with striking regularity, and the conditions governing failure have remained poorly understood. This paper presents the first comprehensive mechanistic investigation of negative instruction failure. We introduce semantic pressure, a quantitative measure of the model's intrinsic probability of generating the forbidden token, and demonstrate that violation probability follows a tight logistic relationship with pressure ($p=σ(-2.40+2.27\cdot P_0)$; $n=40{,}000$ samples; bootstrap $95%$ CI for slope: $[2.21,,2.33]$). Through layer-wise analysis using the logit lens technique, we establish that the suppression signal induced by negative instructions is present but systematically weaker in failures: the instruction reduces target probability by only 5.2 percentage points in failures versus 22.8 points in successes -- a $4.4\times$ asymmetry. We trace this asymmetry to two mechanistically distinct failure modes. In priming failure (87.5% of violations), the instruction's explicit mention of the forbidden word paradoxically activates rather than suppresses the target representation. In override failure (12.5%), late-layer feed-forward networks generate contributions of $+0.39$ toward the target probability -- nearly $4\times$ larger than in successes -- overwhelming earlier suppression signals. Activation patching confirms that layers 23--27 are causally responsible: replacing these layers' activations flips the sign of constraint effects. These findings reveal a fundamental tension in negative constraint design: the very act of naming a forbidden word primes the model to produce it.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑