计算机科学 > 人工智能
[提交于 2026年1月12日 (v1),最后修订于 2026年11月25日 (此版本, v2)]
标题:Semantic Gravity Wells: Why Negative Constraints Backfire
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要: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 a mechanistic investigation of negative instruction failure in Qwen2.5-7B-Instruct. We introduce semantic pressure, a quantitative measure of the model's intrinsic probability of generating the forbidden word, and show that violation probability rises with pressure ($p = \sigma(-2.95 + 2.76 P_0)$; $n=40{,}000$ samples from 2,500 prompts; prompt-bootstrap 95% CI for slope: [2.53, 3.01]), from 5% of samples at low pressure to 44% at high pressure. Comparing prompts of equal pressure, we find that the suppression induced by negative instructions is far weaker in failures: within pressure bins, the instruction lowers target probability by 0.63 less in failures than in successes (95% CI [0.61, 0.65]), and at low pressure it raises the target's probability in failures. The logit lens and direct logit attribution locate the divergence in layers 22-27, where feed-forward networks push toward the target more strongly in failures and attention pushes against it less. Activation patching shows that these late layers carry the instruction's effect in both directions. An attention-based "priming" signature does not distinguish failures from successes once its base rate is measured (90% vs. 93%); a probability-based one does (instruction raises target probability in 27% of failures vs. 13% of successes). Naming a forbidden word can prime the model to produce it, but most failures are better described as suppression that never takes hold in the final layers.
提交历史
来自:Shailesh Rana[v1] 2026年1月12日 星期一 23:30:18 UTC (56 KB)
[v2] 2026年11月25日 星期三 08:45:36 UTC (1,121 KB)