Spilled Energy in Large Language Models
Not on the map. Why?
Abstract (arXiv)
We reinterpret the final Large Language Model (LLM) softmax classifier as an Energy-Based Model (EBM), decomposing the sequence-to-sequence probability chain into multiple interacting EBMs at inference. This principled approach allows us to track "energy spills" during decoding, which we empirically show correlate with factual errors, biases, and failures. Similar to Orgad et al. (2025), our method localizes the exact answer token and subsequently tests for hallucinations. Crucially, however, we achieve this without requiring trained probe classifiers or activation ablations. Instead, we introduce two completely training-free metrics derived directly from output logits: spilled energy, which captures the discrepancy between energy values across consecutive generation steps that should theoretically match, and marginalized energy, which is measurable at a single step. Evaluated on nine benchmarks across state-of-the-art LLMs (including LLaMA, Mistral, and Gemma) and on synthetic algebraic operations (Qwen3), our approach demonstrates robust, competitive hallucination detection and cross-task generalization. Notably, these results hold for both pretrained and instruction-tuned variants without introducing any training overhead. Code available at: github.com/OmnAI-Lab/spilled-energy
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 38 of its 54 references that are in the map. First posted on arXiv 21 Feb 2026.
Builds on
38 of 54 references.
References · 38
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2022Survey of Hallucination in Natural Language Generationcited by 2,056
- 2022Language Models (Mostly) Know What They Knowcited by 1,783
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
26 more
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
- 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 795
- 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 657
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
- 2019Your Classifier is Secretly an Energy Based Model and You Should Treat it Like Onecited by 402
- 2023Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedbackcited by 351
- 2024Hallucination is Inevitable: An Innate Limitation of Large Language Modelscited by 329
- 2024Semantic Entropy Probes: Robust and Cheap Hallucination Detection in LLMscited by 246
- 2023Do Large Language Models Know What They Don't Know?cited by 238
- 2024LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinationscited by 230
- 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 217
- 2025Why Language Models Hallucinatecited by 205
- 2023Personality Traits in Large Language Modelscited by 166
- 2024Fact-Checking the Output of Large Language Models via Token-Level Uncertainty Quantificationcited by 159
- 2021A Token-level Reference-free Hallucination Detection Benchmark for Free-form Text Generationcited by 137
- 2023The Troubling Emergence of Hallucination in Large Language Models -- An Extensive Definition, Quantification, and Prescriptive Remediationscited by 130
- 2022CLAM: Selective Clarification for Ambiguous Questions with Generative Language Modelscited by 66
- 2025One-shot Optimized Steering Vectors Mediate Safety-relevant Behaviors in LLMscited by 27
- 2025Revisiting Uncertainty Quantification Evaluation in Language Models: Spurious Interactions with Response Length Bias Resultscited by 21
- 2024Language Writ Large: LLMs, ChatGPT, Grounding, Meaning and Understandingcited by 12
- 2024Shedding More Light on Robust Classifiers under the lens of Energy-based Modelscited by 9
- 2025On the Fundamental Impossibility of Hallucination Control in Large Language Modelscited by 6
- 2025Understanding Adversarial Training with Energy-based Modelscited by 2
- 2025Review of Hallucination Understanding in Large Language and Vision Modelscited by 2
Built on by
Not cited yet.