Sampling-Free Uncertainty Quantification via Hidden State Dynamics in Language Models

Authors

  • Yixin Bu Nanjing University of Aeronautics and Astronautics. The Key Laboratory of Brain-Machine Intelligence Technology, Ministry of Education, Nanjing.
  • Guanyun Zou Nanjing University of Aeronautics and Astronautics. The Key Laboratory of Brain-Machine Intelligence Technology, Ministry of Education, Nanjing.
  • Renzhi Wang Nanjing University of Aeronautics and Astronautics. The Key Laboratory of Brain-Machine Intelligence Technology, Ministry of Education, Nanjing.
  • Runze Xia Nanjing University of Aeronautics and Astronautics. The Key Laboratory of Brain-Machine Intelligence Technology, Ministry of Education, Nanjing.
  • Cunjun Wang COMAC Shanghai Aircraft Design and Research Institute, Shanghai
  • Hongliang Dai Nanjing University of Aeronautics and Astronautics. The Key Laboratory of Brain-Machine Intelligence Technology, Ministry of Education, Nanjing.
  • Xiaoqing Ma COMAC Shanghai Aircraft Design and Research Institute, Shanghai
  • Piji Li Nanjing University of Aeronautics and Astronautics. The Key Laboratory of Brain-Machine Intelligence Technology, Ministry of Education, Nanjing.

DOI:

https://doi.org/10.1609/aaai.v40i36.40259

Abstract

Large language models (LLMs) demonstrate remarkable capabilities in various complex language tasks, yet they face significant reliability challenges, including factual inaccuracies and generated biases. Uncertainty quantification (UQ) plays a pivotal role in assessing model trustworthiness, particularly for high-stakes applications. However, current UQ methods for LLMs encounter computational efficiency bottlenecks due to their reliance on extensive sampling or external model invocations. In this work, we introduce a novel, sampling-free uncertainty quantification framework centered on hidden layer representation analysis. Our method facilitates real-time uncertainty quantification by modeling hierarchical internal semantic dynamics during the generation process. Through comprehensive experiments on multiple QA datasets and diverse model scales, we show that our approach consistently outperforms existing uncertainty quantification techniques in distinguishing correct from incorrect generations. Our results reveal that analyzing the dynamic evolution of hidden states provides a potent and computationally efficient signal for uncertainty quantification, directly from the model's internal workings, surpassing methods that depend solely on output probabilities or approximations via multiple samples.

Downloads

Published

2026-03-14

How to Cite

Bu, Y., Zou, G., Wang, R., Xia, R., Wang, C., Dai, H., … Li, P. (2026). Sampling-Free Uncertainty Quantification via Hidden State Dynamics in Language Models. Proceedings of the AAAI Conference on Artificial Intelligence, 40(36), 30104–30111. https://doi.org/10.1609/aaai.v40i36.40259

Issue

Section

AAAI Technical Track on Natural Language Processing I