识别-拒绝错位在大语言模型中的表现:为何模型会回答结构上无法回答的问题
研究论文 · 2026/09/09
大型语言模型经常回答结构上无法回答的问题,如计算 cot(-540°) 或评估 (1).startswith("1"),而不是拒绝回答。我们探究这种失败是源于缺乏识别,还是从识别到拒绝的路径失败。在 1.7B 到 70B 参数的指令微调模型中,隐藏状态中的单一线性方向区分了可回答与结构上不可能的数学和代码提示,表明模型在生成前就表征了不可能性。然而,这一识别方向与调节训练过的有害内容拒绝的典型安全拒绝方向几乎正交。一个领域内的行为定义的无效感知方向更接近识别,但仅部分对齐,且仍与安全拒绝近似正交。生成时沿识别方向进行干预,会在结构数学和代码单元上双向且剂量依赖地改变无效感知行为,而随机方向则无此效果。基础/指令微调对比进一步表明,低余弦几何在预训练结束时已存在。因此,对不可能问题的自信回答失败更可能是路径失败而非编码失败:模型具有可用的“无有效答案”信号,但安全拒绝路径未与之对齐。
该研究通过机制性分析揭示了 LLM 在结构上无法回答的问题上过度自信的根源,区分了识别失败与路由失败,并提供了可干预的方向,对理解模型内部机制和提升可靠性有重要价值。
Large language models often answer structurally unanswerable questions, such as computing cot(-540°) or evaluating (1).startswith("1"), instead of abstaining. We ask whether this failure reflects missing recognition or failed routing from recognition to abstention. Across instruction-tuned models from 1.7B to 70B parameters, a single linear direction in the hidden state separates answerable from structurally impossible math and code prompts, showing that models represent impossibility before generation. Yet this recognition direction is nearly orthogonal to the canonical safety-refusal direction that mediates trained harmful-content refusal. An in-domain behavior-defined invalidity-aware direction is closer to recognition, but only partially aligned with it, and remains near-orthogonal to safety refusal. Generation-time steering along the recognition direction changes invalidity-aware behavior bidirectionally and dose-responsively on structural math and code cells, while random directions do not. Base/instruct comparisons further show that the low-cosine geometry is already present at the pretraining endpoint. The confident-on-impossible failure is therefore better explained as a routing failure than as an encoding failure: the model has a usable "no admissible answer" signal, but the safety-refusal pathway is not aligned to use it.