LLMs Encode Their Failures: Predicting Success from Pre-Generation Activations
William Lugoloobi, Thomas Foster, William Bankes, Chris Russell
TL;DR
The paper investigates whether LLMs encode their own likelihood of success in pre-generation activations and whether this signal can guide more efficient inference. By training simple linear probes on pre-generation residual streams, the authors show that both human difficulty (IRT) and model-specific difficulty (expected success under stochastic decoding) are linearly decodable, yet they capture distinct information, with model difficulty diverging from human judgments as reasoning increases. They demonstrate that binary success signals under fixed decoding policies are more predictable than continuous success rates and that probe-guided routing across a pool of models can achieve strong cost-accuracy tradeoffs, including cost reductions of up to ~70% on challenging benchmarks like MATH and AIME. However, probe reliability degrades with extended reasoning, highlighting a bottleneck for adaptive inference that depends on the quality of difficulty estimates. Overall, linear probes on pre-generation activations enable practical routing and reveal a model-relative notion of difficulty that becomes increasingly distinct from human difficulty as model reasoning capabilities grow.
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
