LLMs Encode Their Failures: Predicting Success from Pre-Generation Activations

William Lugoloobi, Thomas Foster, William Bankes, Chris Russell
2/10/2026
cs.CLcs.AIcs.LG

Official code: KabakaWilliam/llms_know_difficulty (7 stars, last commit 2026-04-01).

Abstract

Running LLMs with extended reasoning on every problem is expensive, but determining which inputs actually require additional compute remains challenging. We investigate whether their own likelihood of success is recoverable from their internal representations before generation, and if this signal can guide more efficient inference. We train linear probes on pre-generation activations to predict policy-specific success on math and coding tasks, substantially outperforming surface features such as question length and TF-IDF. Using E2H-AMC, which provides both human and model performance on identical problems, we show that models encode a model-specific notion of difficulty that is distinct from human difficulty, and that this distinction increases with extended reasoning. Leveraging these probes, we demonstrate that routing queries across a pool of models can exceed the best-performing model whilst reducing inference cost by up to 70\% on MATH, showing that internal representations enable practical efficiency gains even when they diverge from human intuitions about difficulty. Our code is available at: https://github.com/KabakaWilliam/llms_know_difficulty

View on arXivView PDF

Code Implementations(1)

Probing LLM hidden states to predict task success before generation, enabling smarter routing across models of varying capability and cost.

71Shell, PythonDec 7, 20256 months ago

Similar Papers

Cite this paper

@article{lugoloobi2026llms,
  title  = {LLMs Encode Their Failures: Predicting Success from Pre-Generation Activations},
  author = {William Lugoloobi and Thomas Foster and William Bankes and Chris Russell},
  year   = {2026},
  eprint = {2602.09924},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.09924v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.09924.svg)](https://codeofpaper.com/paper/2602.09924)

Discussion