← Latest papers
💻 computer science

Geometric Deviation as an Unsupervised Pre-Generation Reliability Signal: Probing LLM Representations for Answerability

This article demonstrates that measuring the geometric deviation of hidden states from an answerable reference set provides a reliable, unsupervised signal prior to generation for detecting unanswerable queries in structured domains such as mathematics and code, although this effect does not generalize to factual prompts.

Original authors: Yucheng Du

Published 2026-05-06
📖 5 min read🧠 Deep dive

Original authors: Yucheng Du

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart, well-educated librarian (the AI) about to answer a question. Normally, we only find out whether the librarian is making something up after she has given the answer. But what if the librarian's brain could give us a subtle "warning sign" before she even opens her mouth?

This article explores exactly that. The researchers asked: Can we tell, based on the "shape" of the AI's thoughts (its internal geometry), whether a question is unanswerable, without waiting for the answer or needing a teacher to evaluate the AI's mistakes?

Here is a summary of their findings using simple analogies:

1. The AI's Brain "GPS"

Imagine the AI's internal state as a vast map. When the AI sees a question it can answer (like "What is 2+2?"), its thoughts cluster tightly together in a specific neighborhood on this map. The researchers call this the "Answerable Neighborhood."

They hypothesized that if you ask a question the AI cannot answer (like "What is the square root of a negative number in the real world?"), the AI's thoughts would "get lost" and drift away from this neighborhood. They measured this drift using a tool called Geometric Deviation. It's like checking how far a car has strayed from the main road.

2. The Results: It Depends on the "Shape" of the Question

The researchers tested this on three types of questions: Math, Facts, and Code. The results were surprising and depended entirely on the type of question.

  • Math Questions (The Clear Signal):
    Imagine a math problem with a missing piece, like "What is the largest prime number?" (There isn't one).

    • The Finding: When the AI saw these "broken" math questions, its thoughts immediately drifted far away from the "Answerable Neighborhood." The signal was loud and clear.
    • The Analogy: It's like a compass needle spinning wildly when brought near a magnet. The geometry of the AI's brain knew instantly: "This doesn't fit the mathematical rules," even before it tried to give an answer.
    • Performance: This method was better than waiting to see if the AI said "I don't know" (refusal) and even better than asking the same question five times to see if it gets confused (self-consistency).
  • Fact Questions (The Silent Signal):
    Now imagine asking a fact question about something that doesn't exist, like "What is the capital of Atlantis?"

    • The Finding: The AI's thoughts did not drift away. They remained exactly in the "Answerable Neighborhood," looking precisely the same as if the question had been about Paris or Tokyo.
    • The Analogy: The AI's brain treats "Atlantis" and "Paris" in the same way because they look grammatically and structurally identical. The "GPS" didn't blink. The article concludes that this geometric trick does not work for general facts.
  • Code Questions (The Mixed Signal):
    For questions about code that would crash (like dividing by zero), the AI's thoughts drifted away similarly to math. However, the signal was somewhat "louder" and less consistent than with math, suggesting it works but may need more data to be perfectly reliable.

3. When Does the Signal Appear? (The "Early Warning System")

The researchers examined the AI layer by layer, like peeling an onion.

  • The Finding: The "drift" signal appeared very early in the AI's processing (in the first few layers) and actually became weaker the closer the AI got to generating the final answer.
  • The Analogy: It's like a smoke alarm that goes off immediately when a spark flies, but then gets quieter as the fire (the answer) begins to grow. The AI knows the question is "broken" right at the start, but by the time it is ready to speak, it has smoothed out that feeling to still provide an answer.

4. The "Refusal" vs. "Hallucination" Twist

The researchers also noticed something interesting about how different AI models responded to these "broken" questions, even though their brains looked geometrically identical.

  • The Finding: Two different AI models (Llama and Qwen) showed the exact same "drift" signal for a broken math question. However, Qwen said: "I cannot answer this," while Llama confidently invented a wrong answer.
  • The Analogy: Imagine two drivers seeing a red light (the geometric signal). One driver (Qwen) stops the car. The other driver (Llama) keeps going but claims they didn't see the light. The "signal" (the red light) was there for both, but their training (alignment) taught them to react differently.

Summary

This article proves that for structured tasks like math, we can tell whether a question is unanswerable based on the AI's internal "shape" before the AI speaks. It is a fast, free, and reliable warning system for math errors.

However, for general facts, this trick does not yet work because the AI's brain does not visually distinguish between "true facts" and "false facts" in the same way. The signal is real, but it only works when the question breaks the structure of the rules (as with math or code), not just when the content is wrong.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →