Attention Head Entropy of LLMs Predicts Answer Correctness
Abstract
Large language models (LLMs) generate plausible, yet possibly incorrect answers, posing risks in safety-critical settings, such as medical advice. Although both LLM-as-judge and human evaluations are useful, human evaluation is expensive, whereas LLM-as-judge approaches risk introducing additional hidden errors. To address this, we introduce Head Entropy, a white-box and scalable method that uses the attention patterns inside the model itself to determine the likelihood of a correct answer while generating the answer. Our key insight is that certain attention heads exhibit distinct entropy patterns when the model gives correct versus incorrect answers. Using a sparse logistic regression classifier on per-head entropies, Head Entropy achieves 0.07–0.15 AUROC improvements over baselines on 5 instruction-tuned LLMs and 3 QA datasets spanning general knowledge, multi-hop reasoning, and medicine. Through Shapley value analysis, we demonstrate that middle-layer attention heads contribute the most to prediction accuracy providing mechanistic insight into model failure modes. Head Entropy offers a practical, interpretable, and computationally efficient approach for real-time correctness estimation during LLM deployment.
BibTeX
@misc{ostmeier2026attention,
author = {Sophie Ostmeier and Brian Axelrod and Maya Varma and Asad Aali and Magdalini Paschali and Jason Alan Fries and Yabin Zhang and Sanmi Koyejo and Curtis Langlotz and Akshay S Chaudhari},
title = {{Attention Head Entropy of LLMs Predicts Answer Correctness}},
year = {2026},
url = {https://openreview.net/forum?id=HJ6EGxNpgb},
howpublished = {OpenReview},
note = {Submitted to ICLR 2026},
}Ask Althea to put this paper to the test.