Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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

William Lugoloobi, Thomas Foster, William Bankes, Chris Russell• 2026

Related benchmarks

TaskDatasetResultRank
Mathematical Problem SolvingAIME 25
Accuracy93.3
54
CodingLiveCodeBench--
23
Mathematical Problem SolvingMATH
Accuracy93
13
Mathematical ReasoningGSM8K (test)
Accuracy94.6
13
Math ReasoningMATH, GSM8K, and AIME Average 2025--
9
Showing 5 of 5 rows

Other info

GitHub

Follow for update