Can LLMs Predict Their Own Failures? Self-Awareness via Internal Circuits
Amirhosein Ghasemabadi, Di Niu
TL;DR
This work tackles the unreliability of LLMs in judging their own outputs by introducing Gnosis, a lightweight, fixed-budget self-awareness mechanism that decodes internal traces from frozen LLMs to predict correctness without external supervision. Gnosis combines hidden-state and attention-circuit encoders to produce compact descriptors, enabling near-zero inference cost and only ~5M additional parameters. It achieves state-of-the-art discrimination and calibration across math reasoning, open-domain QA, and academic knowledge benchmarks, with zero-shot transfer across model scales and substantial compute savings compared to external reward models. Additionally, Gnosis enables early detection of failing trajectories, supporting compute-aware control and efficient deployment of reliable language systems.
Abstract
Large language models (LLMs) generate fluent and complex outputs but often fail to recognize their own mistakes and hallucinations. Existing approaches typically rely on external judges, multi-sample consistency, or text-based self-critique, which incur additional compute or correlate weakly with true correctness. We ask: can LLMs predict their own failures by inspecting internal states during inference? We introduce Gnosis, a lightweight self-awareness mechanism that enables frozen LLMs to perform intrinsic self-verification by decoding signals from hidden states and attention patterns. Gnosis passively observes internal traces, compresses them into fixed-budget descriptors, and predicts correctness with negligible inference cost, adding only ~5M parameters and operating independently of sequence length. Across math reasoning, open-domain question answering, and academic knowledge benchmarks, and over frozen backbones ranging from 1.7B to 20B parameters, Gnosis consistently outperforms strong internal baselines and large external judges in both accuracy and calibration. Moreover, it generalizes zero-shot to partial generations, enabling early detection of failing trajectories and compute-aware control. These results show that reliable correctness cues are intrinsic to generation process and can be extracted efficiently without external supervision.
