Research arXiv cs.CL

Correctness Is a Direction: Geometric Answer Selection in Language Models

representation geometryanswer selectionTruthfulQAhallucination detection

The paper investigates how correctness is represented internally in language models, asking whether correct versus incorrect answers occupy a recoverable direction in hidden-state space. The authors compute the mean displacement from incorrect to correct answer representations using fifty labeled examples and no parameter updates, at approximately 70% of model depth.

This scoring direction requires only one forward pass and one dot product per candidate, with no generation at inference. It is evaluated across five models from 1B to 8B parameters in three architecture families: Llama, Qwen, and Gemma. The benchmarks include ARC-Challenge and MMLU for factual accuracy and TruthfulQA for truthfulness.

The method outperforms zero-shot log-probability scoring by up to +32.0 percentage points on ARC-Challenge and MMLU, and by +38.1 to +51.8 percentage points on TruthfulQA. Used as a hallucination detector on individual question-answer pairs, the recovered direction achieves 0.693 AUROC versus 0.578 for log-probability scoring.

The authors also find that correctness directions for factual reasoning, domain knowledge, and calibrated truthfulness are near-orthogonal in representation space, indicating that models allocate geometrically independent subspaces to distinct notions of correct answer, with architecture-dependent variation in separation. This structure explains the observed transfer pattern: a direction calibrated on factual questions transfers within task type but not across task types. The results suggest that LLM calibration failures may reflect a routing problem, where internal representations contain more correctness signal than output behavior exploits.

Read original →

← Back to home