TL;DR
Verifying the reasoning steps of Large Language Models (LLMs) is more effective and efficient when framed as a simple classification task rather than a generative one. The authors demonstrate that a tiny 0.15B parameter encoder can outperform generative verifiers with up to 4B parameters, often reaching comparable performance with just 10% of the annotated training data.
What Problem Does This Paper Address?
As LLMs are increasingly used for complex math and science, we need ways to ensure their "workings" are actually correct. A correct final answer doesn't guarantee sound logic—models often arrive at the right conclusion through flawed intermediate steps (hallucinations).
Current "Stepwise Reasoning Verifiers" typically use large decoder models to either generate a "Yes/No" verdict or a full rationale. However, running a multi-billion parameter model to check every single line of a solution is computationally expensive and slow. This paper asks: Do we really need these massive generative models for verification, or is there a more efficient way?
Methods
The authors propose casting stepwise verification as a Natural Language Inference (NLI) task. In this setup:
- Premise: The original problem statement plus all reasoning steps leading up to the current one.
- Hypothesis: The current reasoning step being verified.
- Task: Classify the hypothesis as either "entailed" (valid) or "non-entailed" (invalid) based on the premise.
They compared three distinct paradigms across various model scales:
- Encoder Classification: Using standard encoders (like BERT, RoBERTa, and the recent ModernBERT) with a simple binary head.
- Decoder Classification: Taking a decoder backbone (like Qwen2.5) and adding a classification head to its final hidden state.
- Decoder Verdict Generation: Fine-tuning a decoder to literally generate the tokens "Yes" or "No."
A key technical contribution is verbalizer initialization: for decoder classifiers, they initialized the classification head using the pre-trained embeddings of the "Yes" and "No" tokens, which significantly improved training stability and performance.
Datasets
The study evaluates these methods across five diverse English datasets covering math, formal logic, and multi-domain reasoning:
- PRM800K: High-quality human-annotated math steps.
- MathShepherd (MS): Automatically labeled math steps based on whether a step can still reach the correct answer (rollouts).
- Epic50K: Contribution-based automatic annotations for math.
- FoVer: Formal logic and proofs verified by tools like Z3 and Isabelle.
- MMLU-Pro-CoT: Multi-domain synthetic reasoning steps.
Key Insights and Ideas
- Classification is the Pareto Frontier: Classifiers consistently provide better performance per parameter than generative verifiers. As shown in Figure 1, the "empirical Pareto frontier" is dominated by encoder and decoder classifiers.
- Data Efficiency is the "Aha!" Moment: Classification is remarkably sample-efficient. On average, a classifier trained on only ~4,000 problems matches the performance of a generative verifier trained on the full dataset (~40,000+ problems).
- Architecture > Size: How a model is trained matters more than how many parameters it has. A 0.15B ModernBERT encoder beats almost every generative decoder up to 4B parameters.
- The Normalization Advantage: Generative models must learn to suppress the entire vocabulary to output a "Yes" or "No," whereas classifiers only ever "see" the two target labels. This makes the learning task much simpler and more robust for the model.
Key Results
- ModernBERT-Base (0.15B) achieved an average AUC of 0.847, outperforming the generative version of Qwen2.5-1.5B (0.780) and even Llama-3.2-3B (0.823).
- Direct Comparison: On identical 1.5B decoder backbones, classification outperformed generation by a massive 0.097 AUC on average.
- Scaling: The advantage of classification is most pronounced at smaller scales (0.5B to 4B). At the 7B parameter mark (using Qwen2.5-Math), classification and generation performance eventually converge.
- Probing: Layer-wise analysis (Figure 5) shows that classification training makes error signals "linearly recoverable" in the model's internal representations much earlier in the network compared to generative training.
Limitations and Future Work
- First-Error Focus: The evaluation stops at the first annotated error. It doesn't measure if a model can detect subsequent errors or if it can recognize when a model "recovers" from a previous mistake.
- Context Windows: While encoders are efficient, they often have smaller context windows (e.g., 512 tokens) than decoders. This might limit their use in extremely long, multi-page formal proofs.
- Rationale Generation: This paper focused on direct verdicts. Future work could explore if generating a "chain-of-thought" before classifying (rather than instead of it) provides further gains.
- Beyond 7B: It remains an open question whether the generative objective eventually overtakes classification at massive scales (e.g., 70B+ parameters).
Summary updated