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

William Lugoloobi, Thomas Foster, William Bankes, Chris Russell

TL;DR

This paper reveals that Large Language Models (LLMs) internally encode their own likelihood of success before generating an answer, using pre-generation activations. These internal signals, extracted via simple linear probes, are more predictive of actual performance than human difficulty estimates and can be used to build efficient routing systems that significantly reduce computational costs without sacrificing accuracy.

What Problem Does This Paper Address?

Running LLMs, especially with complex reasoning like chain-of-thought, is computationally expensive. Determining when to use these expensive models, or how to best route queries among a pool of models with varying capabilities and costs, is a major challenge. Current methods often rely on indirect proxies like input length or perplexity, which are not always reliable. The core problem is efficiently allocating computational resources to LLMs by accurately predicting their success on a given task before incurring the full generation cost.

Methods

The authors train linear probes on the internal activation vectors of LLMs at a specific point before generation begins (post-instruction template position). These probes are trained to predict two main things:

  1. Human difficulty: Using Item Response Theory (IRT) scores, which are standard measures of how hard a question is for humans.
  2. Model difficulty/success: This is framed in two ways:
  3. Success Rate (ŜMC): The expected probability of a correct answer under a stochastic decoding policy.
  4. Binary Success: Whether the model succeeds or fails under deterministic policies like greedy decoding or majority voting (Maj@K).

They also explore non-linear MLP probes to see if they can capture more complex relationships, especially under increased reasoning. The core novelty lies in using these pre-generation activations to predict success, rather than relying on post-hoc analysis or generation-based confidence scores.

Datasets

  • E2H-AMC: A subset of the Easy2Hard-Bench dataset, specifically designed for comparing human and model difficulty. It provides human IRT difficulty labels for mathematics problems and allows for estimating model performance on the same questions.
  • MATH: A large-scale mathematics dataset.
  • GSM8K: A dataset of grade-school math problems.
  • AIME: Problems from the American Invitational Mathematics Examination.
  • LiveCodeBench: A benchmark for evaluating LLMs on coding tasks.

Key Insights and Ideas

  • LLMs have an "internal sense" of their own difficulty: Pre-generation activations contain signals that reliably predict whether the LLM will succeed on a task. This is a significant finding, as it suggests LLMs are not just passive processors but have a form of self-awareness regarding their capabilities.
  • Model difficulty is distinct from human difficulty: The signals LLMs encode about their own difficulty are not the same as human judgments of difficulty. This divergence becomes more pronounced as models engage in more extended reasoning.
  • Extended reasoning changes what "difficulty" means to an LLM: While extended reasoning improves accuracy, it makes the model's internal success signals less linearly accessible. Interestingly, generation length (chain-of-thought) becomes more correlated with human difficulty than with the model's actual success probability, suggesting LLMs might be "over-explaining" problems they can already solve.
  • Linear probes are surprisingly effective: Simple linear models trained on these internal states can achieve strong performance in predicting success, often outperforming more complex baselines like TF-IDF or question length.
  • Probe-guided routing offers substantial cost savings: By using these probes to predict success, routing systems can intelligently select the most appropriate model for a given query, achieving near-oracle performance while reducing inference costs by up to 70%.

Key Results

  • Human IRT difficulty is more linearly accessible (Spearman ρ = 0.83-0.87) than model success rate (ρ = 0.40-0.64) across models, indicating that LLMs robustly encode human-aligned difficulty.
  • Model success rate becomes less accessible with increased reasoning: For GPT-OSS-20B, probe performance (Spearman ρ) dropped from 0.58 (low reasoning) to 0.40 (high reasoning), despite improved task accuracy.
  • Binary success prediction (Maj@5, greedy) is more predictable than success rate: Probes achieve AUROC > 0.7 across most settings for binary success, with several exceeding 0.8.
  • Probe-guided routing achieved significant cost reductions: On MATH, the router matched the highest-performing model's accuracy while reducing cost by approximately 70%. On AIME, it matched the strongest model's performance at a 37% cost reduction. On GSM8K, it identified the cost-optimal model.
  • Non-linear MLP probes offer limited benefits: While they can partially recover discrimination lost by linear probes under increased reasoning for binary classification, they degrade more severely than linear probes for continuous success-rate regression.

Limitations and Future Work

  • Linear probes are sensitive to token position: The effectiveness of probes depends on the chosen layer and token position.
  • Degradation with extended reasoning: While probes are effective, their reliability decreases as reasoning budgets increase, especially for linear probes.
  • Limited scope of current work: The study focuses on linear probes at a single post-instruction position and does not explore cross-domain transfer (e.g., math to code) or adaptive selection of k in majority voting.
  • Future work could explore:
    • Probing during generation.
  • Cross-domain transfer of learned difficulty signals.
  • More sophisticated routing policies beyond fixed-k majority voting.
  • Investigating the underlying mechanisms of representation drift during extended reasoning.

Summary updated

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 likelihood of success is recoverable from their internal representations prior to generation, and whether 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 performance of 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: \url{https://github.com/KabakaWilliam/llms_know_difficulty}
BibTeX
@inproceedings{lugoloobi2026llms,
  author = {William Lugoloobi and Thomas Foster and William Bankes and Chris Russell},
  title = {{LLMs Encode Their Failures: Predicting Success from Pre-Generation Activations}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=kvWnyKEZ54},
}
Figure