Recognition-Refusal Misalignment in LLMs: Why Models Answer Structurally Unanswerable Questions
Abstract
Large language models encode whether structurally impossible math or code prompts are unanswerable via a hidden-state direction, but fail to abstain because this recognition signal is misaligned with safety-refusal pathways, indicating a routing rather than encoding failure.
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.
Community
Accepted to EMNLP main 2026.
I'm the first author of this paper. We study why LLMs answer structurally unanswerable math and code questions even when their hidden states encode a signal of unanswerability.
Across instruction-tuned models from 1.7B to 70B parameters, this recognition direction is nearly orthogonal to safety-refusal directions. Steering along it changes invalidity-aware behavior, supporting a mismatch between recognition and behavioral routing.
Code: https://github.com/yucheng-du/recognition-refusal-misalignment
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Broken Symmetry in LLM Refusal: Answer Release Is More Local Than Refusal Restoration (2026)
- Locating and Steering Refusal Beyond Attention (2026)
- Breaking Refusal in the First Half: A Mechanistic Study of the Prefill Jailbreak (2026)
- The Entanglement Wall: Activation-Space Probes as Risk Detectors, Not Context Adjudicators (2026)
- Wrong Prediction, Right Answer: Recovering Evidence from Collapsed LLM Sequence Scores (2026)
- A Unified Mechanistic Analysis of Knowledge- and Safety-Based Refusals (2026)
- When Skills Meet Safety: Benchmarking and Characterizing the Adaptive Jailbreak Robustness of Skill-Merged LLMs (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2608.29109 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper