arXiv 论文解析 Qwen2.5-7B-Instruct 负向约束失效机制
Semantic Gravity Wells: Why Negative Constraints Backfire
AI 导读
论文对 Qwen2.5-7B-Instruct 中负向指令失效做了机制性研究,提出语义压力指标,发现违规概率随压力从低压力时 5% 的样本升至高压力时 44%(n=40,000 样本、2,500 条提示词)。失败样本中负向指令的压制在 22-27 层明显更弱,多数失效并非提示词引发,而是压制未能在最终层生效。
正文 · 原文
Abstract: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.
| Comments: | 12 pages, 6 figures, 4 tables. Code and data: this https URL |
| Subjects: | Artificial Intelligence (cs.AI); Computation and Language (cs.CL) |
| Cite as: | arXiv:2601.08070 [cs.AI] |
| (or arXiv:2601.08070v2 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2601.08070 arXiv-issued DOI via DataCite |
Submission history
From: Shailesh Rana [view email]
[v1]
Mon, 12 Jan 2026 23:30:18 UTC (57 KB)
[v2]
Wed, 25 Nov 2026 08:45:36 UTC (1,121 KB)
来源:arXiv cs.AI · arxiv.org