TL;DR
Probabilistic Chain-of-Thought (PCoT) treats a reasoning chain not as a series of independent steps, but as a Hidden Markov Model (HMM) where correctness is a latent variable. By using the forward-backward algorithm to account for how errors propagate through autoregressive generation, PCoT reduces calibration error by 74% and boosts math reasoning accuracy by up to 14.7 percentage points.
What Problem Does This Paper Address?
When Large Language Models (LLMs) solve complex problems using Chain-of-Thought (CoT) prompting, they generate reasoning step-by-step. Current methods for evaluating these steps usually treat each one’s confidence score as an independent signal.
However, LLMs are autoregressive: step 5 is conditioned on steps 1 through 4. If the model makes a subtle mistake in step 2, every subsequent step is likely "poisoned," even if those later steps look perfectly logical in isolation. This creates epistemic blind spots: the model might appear locally certain about a step that is globally unreliable because it rests on a faulty foundation. The authors call this "sequential contamination," and it makes standard point-wise scoring (like simply multiplying step-level probabilities) highly unreliable for predicting if the final answer is actually correct.
Methods
The authors introduce PCoT, a framework that models the reasoning process as a first-order HMM:
- Latent States ($Z$): Each step has a hidden binary state—either correct (1) or incorrect (0).
- Emissions ($c$): The observed confidence scores (from log-probs, verbalized confidence, or self-consistency) are treated as "emissions" from these hidden states, modeled using Beta distributions.
- Transitions: The model accounts for "persistence" (the probability of staying correct) and "recovery" (the rare chance of fixing an earlier error).
- Inference: Using the forward-backward algorithm, PCoT computes the marginal posterior probability of correctness for every step. This means the confidence of step 2 is informed not just by its own score, but by the scores of all steps before and after it.
- Reflection Policy: Instead of a fixed threshold for when to "re-try" a step, PCoT derives a position-dependent threshold ($\tau^*_i$). It calculates the "downstream value" of reflecting, recognizing that fixing an error in step 1 is much more valuable than fixing one in step 10.
Datasets
The researchers evaluated PCoT using:
- PRM800K: A large dataset of step-level human annotations for math problems, used here to estimate the HMM’s transition and emission parameters.
- MATH: A benchmark of 7,500 challenging competition-level mathematics problems.
- GSM8K: A dataset of 1,318 grade-school word math problems.
- Meta-Llama-3-8B-Instruct: Used as the base model for all experiments.
Key Insights and Ideas
- Sequential Contamination is Measurable: The paper formalizes why point-wise scoring fails. A confirmed error early in a chain suppresses the posterior probability of all downstream steps, even if those steps have high "raw" confidence scores.
- The "Future" Informs the "Past": Because of the backward pass in the HMM, a low-confidence score in step 5 can actually lower our belief in the correctness of step 2. This "holistic" view is missing in standard greedy decoding or simple reward models.
- Position-Dependent Reflection: The authors prove that the optimal threshold for resampling a step should decrease as the chain progresses. Early steps warrant a more aggressive "perfectionist" approach because their errors propagate further.
- Robustness: The gains from PCoT aren't tied to a specific way of measuring confidence. Whether you use token log-probabilities or ask the model "How sure are you?", the HMM structure consistently improves the results.
Key Results
- Calibration: PCoT achieved an Expected Calibration Error (ECE) of 0.028, a 74% reduction over the best heuristic baseline (position-weighted scoring). This means the model's "confidence" now much more closely matches its actual "accuracy."
- Accuracy Boost: On the MATH benchmark, PCoT improved accuracy by 14.7 percentage points (from 62.1% to 74.8%) at a 2× token budget compared to no reflection.
- Efficiency: PCoT Pareto-dominated all raw-score baselines, meaning it achieved higher accuracy for the same computational cost (token budget) across the board.
- Ablation: The biggest contributor to performance was the Markov structure itself; replacing the HMM with an "independence" model caused accuracy to drop by 5.5 points.
Limitations and Future Work
- First-Order Assumption: The model assumes a step only depends on the one immediately preceding it. In reality, a mistake in step 2 might only manifest as a contradiction in step 10. Higher-order HMMs could address this but would be more computationally expensive.
- Binary Correctness: The current model treats steps as strictly "right" or "wrong." It doesn't account for "partially correct" steps or "neutral" filler text.
- Beta Distribution Simplicity: While the Beta distribution is a natural fit for [0, 1] scores, real-world confidence distributions might be multimodal, suggesting a need for more complex "mixture models" in the future.
- Label Transfer: The HMM parameters were trained on PRM800K and applied to MATH/GSM8K. While this worked well, the authors note that "step correctness" and "final answer correctness" aren't always perfectly synonymous.
Summary updated