Abstract
Large Language Models (LLMs) frequently generate plausible but incorrect responses when faced with questions that cannot be answered from a given context. This paper identifies a specific linear direction within the internal activation space of LLMs that encodes "unanswerability." By projecting a model's hidden states onto this "unanswerability vector," the authors develop a robust method for detecting when a model should abstain. This approach demonstrates superior generalization across diverse datasets compared to traditional supervised classifiers, providing a more reliable signal for model trustworthiness.
Introduction
LLMs are notoriously overconfident, often hallucinating answers rather than admitting ignorance. This research from Tel Aviv University reveals that the concept of "I don't know" is not a complex, non-linear feature but is instead represented as a simple linear direction in the model's internal activation space. Identifying this signal allows for more reliable "abstention" behavior, enhancing the trustworthiness of AI systems in extractive question-answering (QA) tasks.
The Challenge of Trustworthiness
In extractive QA, models are expected to find answers within a provided text. If the answer is missing, the ideal behavior is to abstain. However, current methods like "abstain-aware" prompting are inconsistent across models and datasets.
As shown in the figure above, prompting strategies (Standard vs. Abstain-aware) lead to widely varying abstention rates, highlighting the need for a more stable, internal signal of uncertainty that transcends surface-level prompting.
Methodology: Finding the "I Don't Know" Vector
The researchers propose a three-step pipeline to isolate and utilize the unanswerability signal:
- Deriving Candidate Directions: Using a difference-in-means technique, they calculate the average internal activations for "answerable" vs. "unanswerable" examples across all layers and token positions.
- Causal Steering Selection: To ensure the vector is functional and not just correlational, they perform causal interventions. They select the direction that, when added to the model's state during a live run, most effectively forces it to output "unanswerable."
- Classification via Projection: For inference, the model's internal state is projected onto this optimal vector. The resulting scalar score indicates the likelihood of unanswerability, allowing for a simple threshold-based decision to abstain.
Key Results and Generalization
The method was evaluated on major benchmarks including SQuAD 2.0, REPLIQA, Natural Questions (NQ), and MuSiQue.
The results indicate high performance, with F1 scores consistently reaching high levels across different training and testing pairs. Crucially, the linear direction method generalizes remarkably well. While standard classifiers often fail when moved to a new domain, this "native" signal remains robust, with performance drops significantly lower than those of traditional logistic regression models.
Insights into Model Internals
- Linearity of Abstraction: The discovery that unanswerability is linear suggests that high-level semantic concepts are organized geometrically within LLMs.
- Layer Localization: The most effective signals were found in the middle layers (e.g., layer 16 of 32 in Llama-3), suggesting these layers manage abstract semantic concepts while early layers handle syntax and late layers handle task-specific outputs.
- Causal Validity: Steering experiments proved that these vectors are causal; adding them induces abstention, while subtracting them forces the model to attempt an answer even for impossible questions.
Conclusion and Future Work
Detecting unanswerability via linear directions provides a lightweight and robust alternative to prompting and external classifiers. While the method requires threshold calibration when switching datasets, its ability to capture a fundamental signal of "unknowability" marks a significant step toward more reliable LLMs. Future research may explore multi-directional signals or non-linear refinements to further reduce hallucination rates in more complex reasoning tasks.
Summary updated