The Density of Thought: Predicting and Steering Reasoning in Large Language Models
Organizations: Plaksha University · Nanyang Technological University · Interview Street Technologies Pvt. Ltd. (HackerRank) · Indian Statistical Institute
Abstract
We investigate whether variation in information density across chain-of-thought (CoT) reasoning steps predicts answer correctness and can serve as a controllable inference-time target. We prompt frozen pretrained models to solve problems via CoT and measure the density of each reasoning step with two independent metrics: LP variance (how unevenly information is distributed across steps, computed as the variance in mean per-token negative log-likelihood) and the Caveman compression ratio. We then test whether density correlates with, and can be steered to improve, answer correctness. Experiments across six model scales, two training paradigms, and 60 GSM8K problems yield four main findings. First, lower LP variance predicts correctness in supervised fine-tuned (SFT) models, but this relationship weakens with scale and reverses in reinforcement-learning (RL) distilled models. Training paradigm therefore appears more influential than model size in determining density behaviour. Second, synthetic experiments reveal an intrinsic complexity preference: models trained on uniformly distributed data learn complexity-favouring distributions 2.0 to 2.6 times more accurately than simplicity-favouring ones. Third, direct inference-time density steering reduces accuracy from 60.0% to 8.3%, indicating that natural density patterns are functionally important to reasoning. Fourth, pre-generation nudging combining hint injection with contrastive KV-cache steering improves accuracy by 13.3 percentage points, consistent across both metrics. Finally, we introduce Entropy-Gated Density Routing (EGDR), a self-supervised method using token-level Shannon entropy to gate proportional KVcache adjustments during generation, improving accuracy by 10.0 percentage points without any external guidance.
Figures & tables
| Comparison | Base | Max | Change |
|---|---|---|---|
| GPT-2 (124M 1.5B) | 0.3190 | 0.3378 | |
| Pythia (70M 2.8B, ctrl.) | 0.2935 | 0.3323 | |
| Cross-gen. (2019 2023) | 0.3343 | 0.4054 |
| Corpus | KL (avg) | Bias | Spear. | KL ratio |
|---|---|---|---|---|
| Uniform | 0.0038 | – | ||
| Linear | 0.0409 | |||
| Inverse | 0.0967 | 0.21 n.s. |
| Model | Paradigm | Acc. | Regime | |
| Qwen2.5-0.5B | SFT | 26.7% | Reversed | |
| Qwen2.5-1.5B | SFT | 51.7% | UID | |
| Qwen2.5-3B | SFT | 60.0% | Collapsed | |
| Qwen2.5-7B | SFT | 63.3% | Collapsed | |
| R1-Distill-1.5B | RL | 66.7% | Dual-density | |
| R1-Distill-7B | RL | 76.7% | Dual-density |
| Condition | Accuracy | vs. Baseline |
|---|---|---|
| Baseline (greedy CoT) | 60.0% | – |
| High-density prompting | 50.0% | pp |
| Adaptive mid-step steering | 8.3% | pp |
| Cond. | Acc. | vs. A | |||
|---|---|---|---|---|---|
| A: Baseline | 51.7% | – | n.s. | ||
| B: Hint | 46.7% | pp | 0.017 | ||
| C: Cache | 53.3% | pp | n.s. | ||
| D: Hint+Cache | 65.0% | pp | n.s. |
| Accuracy | vs. A | vs. D | |
|---|---|---|---|
| 0.05 | 58.3% | pp | pp |
| 0.10 | 55.0% | pp | pp |
| 0.15 | 56.7% | pp | pp |
| 0.20 | 58.3% | pp | pp |
| 0.30 | 61.7% | pp | pp |
| Cond. | Acc. | vs. A | |||
|---|---|---|---|---|---|
| A: Baseline | 51.7% | – | – | – | |
| B: Hint | 46.7% | pp | – | – | |
| C: Cache | 53.3% | pp | – | – | |
| D: Hint+Cache | 65.0% | pp | – | – | |
| F: EGDR | 61.7% | pp | 0.019 | ||
| G: Hint+EGDR | 63.3% | pp | 0.021 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Model | Yr | Change | KS (next) | |
| GPT-2 Small (124M) | 2019 | 0.3190 | – | |
| GPT-2 Medium (355M) | 2019 | 0.3378 | n.s. | |
| GPT-2 Large (774M) | 2019 | 0.3343 | n.s. | |
| GPT-2 XL (1.5B) | 2019 | 0.3343 | – | |
| Pythia 70M | 2021 | 0.2935 | – | |
| Pythia 160M | 2021 | 0.3063 |
Language Model Steering
Language model steering controls a model’s behavior at inference time by intervening in its representations, components, or decoding process.
See all 282 papers