Measuring In-Context Computation Complexity via Hidden State Prediction
Not on the map. Why?
Abstract (arXiv)
Detecting when a neural sequence model does "interesting" computation is an open problem. The next token prediction loss is a poor indicator: Low loss can stem from trivially predictable sequences that are uninteresting, while high loss may reflect unpredictable but also irrelevant information that can be ignored by the model. We propose a better metric: measuring the model's ability to predict its own future hidden states. We show empirically that this metric -- in contrast to the next token prediction loss -- correlates with the intuitive interestingness of the task. To measure predictability, we introduce the architecture-agnostic "prediction of hidden states" (PHi) layer that serves as an information bottleneck on the main pathway of the network (e.g., the residual stream in Transformers). We propose a novel learned predictive prior that enables us to measure the novel information gained in each computation step, which serves as our metric. We show empirically that our metric predicts the description length of formal languages learned in-context, the complexity of mathematical reasoning problems, and the correctness of self-generated reasoning chains.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 28 of its 54 references that are in the map. First posted on arXiv 17 Mar 2025.
Builds on
28 of 54 references.
References · 28
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2017Neural Discrete Representation Learningcited by 4,712
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2022Toy Models of Superpositioncited by 971
16 more
- 2022STaR: Bootstrapping Reasoning With Reasoningcited by 940
- 2015Deep Learning and the Information Bottleneck Principlecited by 802
- 2014Neural Turing Machinescited by 644
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2020Data-Efficient Reinforcement Learning with Self-Predictive Representationscited by 318
- 2023Language Modeling Is Compressioncited by 225
- 2018Disentangled Sequential Autoencodercited by 120
- 2016Composing graphical models with neural networks for structured representations and fast inferencecited by 113
- 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 105
- 2020Bootstrap Latent-Predictive Representations for Multitask Reinforcement Learningcited by 102
- 2024In-Context Language Learning: Architectures and Algorithmscited by 89
- 2024Open-Endedness is Essential for Artificial Superhuman Intelligencecited by 80
- 2018The Description Length of Deep Learning Modelscited by 72
- 2024Bridging State and History Representations: Understanding Self-Predictive RLcited by 54
- 2022Forget-me-not! Contrastive Critics for Mitigating Posterior Collapsecited by 6
- 2022Learning One Abstract Bit at a Time Through Self-Invented Experiments Encoded as Neural Networkscited by 4
Built on by
Citing papers per year: 2025: 2; 2026: 1.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2024States Hidden in Hidden States: Implicit Discrete State Representations Emerge in LLMs' Hidden States
- 2023Auto-Regressive Next-Token Predictors are Universal Learners
- 2026State commitment learning: training language models to distinguish computation from memory
- 2025RELIC: Evaluating Complex Reasoning via the Recognition of Languages In-Context
- 2026Understanding the Emergence of Seemingly Useless Features in Next-Token Predictors
- 2025CLUE: Non-parametric Verification from Experience via Hidden-State Clustering
- 2026The Complexity Ceiling Benchmark: A Multi-Domain Evaluation of Sequential Reasoning Under Depth Scaling
- 2024Limits of Deep Learning: Sequence Modeling through the Lens of Complexity Theory