Key points
A zhichai.net paper-reading post introduces an "ECG for AI": instead of trusting a model's final confidence, we can diagnose reasoning quality by watching how its uncertainty changes during chain-of-thought (CoT) inference.
The method
1. Let the model generate a step-by-step CoT. 2. At each step, sample 5 short answer completions. 3. Compute the entropy across those completions. 4. Plot the per-step values — the entropy trajectory.
Example (simple word problem): trajectory [0.8, 0.7, 0.5, 0.3, 0.1] — entropy steadily falls as the model converges on the answer.
Core finding: monotonicity matters
- Monotonic (never-rising) trajectories strongly predict correct answers.
- Non-monotonic trajectories (entropy rising mid-chain) strongly predict errors.
- Token log-probability calibration worsens over later reasoning steps: ECE grows from 0.186 (step 0) to 0.312 (step 7) on Qwen2.5-7B.
- Self-consistency works but costs 10–40 full CoT samples. The entropy-trajectory method needs 1 CoT plus 5 short completions per step — about 1,500 tokens per question, ~1/8 the cost.
- Weak baselines: final-step entropy (+2.2 pp), chain length (+2.6 pp), scalar coherence (−0.6 pp, worse than chance).
- Selective prediction: accept monotonic chains, flag non-monotonic ones for review (+5.8 pp accuracy at 73.7% coverage).
- Early warning: intervene when entropy spikes mid-reasoning.
- Answer reranking: prefer candidates with monotonic trajectories.
- Debugging/teaching: identify problem types where the model "hesitates" most.
Results on GSM8K (n=300):
| Model | Monotonic accuracy | Non-monotonic accuracy | Gap | |---|---|---|---| | Qwen2.5-7B | 68.8% | 46.8% | +21.9 pp | | Mistral-7B | 72.3% | 37.6% | +34.7 pp |
Odds ratios: 2.50 (Qwen) and 4.33 (Mistral); p = 0.0005. Accuracy also degrades with the number of monotonicity violations: 68.8% (0 violations) → 50.8% (1) → 28.6% (2+).
Shape beats magnitude
Surprisingly, the total entropy drop ("scalar coherence" = initial entropy − final entropy) does not predict correctness: ρ = −0.06, p = 0.31. Some wrong answers show larger entropy drops than correct ones — high confidence ≠ correct. What matters is whether uncertainty is resolved stably and consistently.
Why traditional signals fail
Robustness
The gap holds across m = 3/5/10 completions (+20.4 to +21.9 pp), temperatures 0.3–1.0 (+14.4 to +23.1 pp), with Miller–Madow bias correction, and after controlling for problem difficulty and CoT length (OR ≈ 2.37). It generalizes across model families.
Practical applications
Interpretation and limitations
The authors link monotonic trajectories to cognitive fluency, logical consistency, and steady information accumulation; non-monotonic trajectories expose contradictions, backtracking, or confusion. Limitations: validated only on math (GSM8K), more expensive than a single generation, and the binary monotonicity signal could be refined into finer-grained severity measures. Future work: multi-domain validation (code, medicine, law), real-time intervention, and hybrid signals combining trajectories with self-consistency.
Reference
Zhao, X. (2026). *Entropy trajectory shape predicts LLM reasoning reliability: A diagnostic study of uncertainty dynamics in chain-of-thought*. arXiv:2603.18940.