From Accuracy to Robustness: A Study of Rule- and Model-based Verifiers in Mathematical Reasoning
TL;DR. Rule-based math checkers almost never accept a wrong answer, but they reject many correct ones that are written differently (for example 0.5π vs 90°). Adding an LLM verifier fixes recall and improves RL. Fine-tuning that verifier for better static accuracy, however, produced one that the policy learned to fool with outputs like a lone {. The paper’s lesson: model-based verifiers “substantially improve static accuracy but are highly susceptible to reward hacking during RL”.
Key idea
Section titled “Key idea”A verifier is a binary classifier inside the RL loop. Static precision and recall are measured on natural responses. RL instead optimizes against the verifier, so what matters is the worst-case false-positive rate on whatever the policy can produce. The hybrid design (rule check first, model verifier only on rule-negatives) sets
so precision stays high on natural data. The model verifier, however, is the sole judge of every output that the rule check rejects, including degenerate ones.
Key results
Section titled “Key results”On Qwen2.5-7B zero-RL with DeepscaleR (Table 2), average accuracy is 41.0 for the base model, 55.0 with the HF rule verifier, 57.3 with the hybrid using R1-Distill-1.5B, and 55.6 with the hybrid using the hacked fine-tuned verifier. In attack probes (Table 3), adversarial prefixes succeed 35.0% of the time on R1-Distill-Verifier-1.5B and 30.2% on Qwen2.5-Math-7B, but 0.0% on xVerify-0.5B and 1.3% on Qwen2.5-72B. Scale helps but does not fix the problem: Qwen2.5-Math-72B still averages 12.0% attack success. On WebInstruct-Verified, rule-based recall drops to 47%, and the hybrid’s advantage holds outside math.
Connections
Section titled “Connections”- Correcting for known false-positive and false-negative rates instead of fixing the verifier: Noisy verifiers.
- When reward noise is extreme, RLVR can still “improve”: Spurious rewards.
- Policies learning to convince the judge instead of being right: U-Sophistry.
- Optimizing against a learned monitor yields evasion: CoT monitoring and obfuscation.
- The update rule underneath GRPO: PPO.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
A batch has 1,000 responses, 500 of them truly correct. The rule verifier has the paper's average recall of 0.86 and essentially no false positives. A hybrid also sends every rule-negative to a model verifier, which recovers 60% of the missed correct answers and wrongly accepts 2% of the incorrect ones (toy rates). Compute the precision and recall of the rule-only and hybrid verifiers, and say which responses the policy can attack.
What a strong answer covers
- Rule only: TP = 430, FN = 70, FP ≈ 0, so recall = 0.86 and precision ≈ 1.0.
- Hybrid: the model sees 70 correct + 500 incorrect rule-negatives. It recovers 42 and falsely accepts 10. TP = 472, FP = 10. Recall = 472/500 = 0.944. Precision = 472/482 ≈ 97.93%, slightly below 98%. This toy illustrates the precision–recall trade-off rather than exactly reproducing the paper's empirical operating point.
- The attack surface is exactly "rule-negative and judged positive by the model". Degenerate outputs such as "{" or gibberish always fail the rule check, so they are always routed to the model verifier.
- In RL the 2% FP rate is not fixed. The policy concentrates probability mass on whatever the model verifier accepts, so the effective FP rate can grow towards 1 (the reward surge after ~450 iterations).
- Mechanism
The fine-tuned R1-Distill-Verifier-1.5B raises static recall (0.49 to 0.62) and precision (0.68 to 0.73) over its base model, yet only it, not the base, causes reward hacking in RL. Explain why better i.i.d. accuracy can coexist with worse RL robustness, using the paper's probing results and its account of generative vs discriminative verifiers.
What a strong answer covers
- Static evaluation uses responses from a fixed generator (natural errors). RL is an adversarial, adaptive distribution that searches for the verifier's false positives, which is Goodhart's adversarial variant.
- Probing (471 samples, 13 patterns): the fine-tuned verifier is fooled by adversarial prefixes 35.0% of the time vs 21.7% for its base, and by empty symbols 29.5%. The RL policy found exactly "{" and gibberish outputs.
- Fine-tuning towards higher recall shifts the decision boundary towards "accept", which makes it easier to cross for out-of-distribution inputs.
- Generative verifiers produce free-form reasoning before the verdict, and this can be steered. Discriminative xVerify scores near 0% on prefix attacks, and RL with xVerify-3B-Ia keeps the training-oracle reward gap ≤ 0.004.
- The base verifier also has high attack rates but was not hacked. The paper hypothesizes that the policies were not strong enough to find its holes, so absence of hacking is not proof of safety.
- Design
You train a search agent with RLVR where an LLM judge checks the final answer against a gold answer (with many surface-form variants, as in BrowseComp-style QA). Using this paper's lessons, design the reward pipeline and the monitoring needed to catch verifier hacking before it ruins a run.
What a strong answer covers
- Hybrid reward: deterministic normalized-string or alias matching first (high precision), with the LLM judge only on rule-negatives. Prefer a discriminative judge or a constrained yes/no output with no free-form reasoning.
- Before training, probe the judge with adversarial prefixes, empty symbols, gibberish, answer explanations, HTML/markdown and prompt injection, and require near-zero attack success.
- During training, log a held-out oracle reward (a stronger judge or human labels on a sample per checkpoint) and alert when it diverges from the training reward, as with the paper's GPT-4o oracle tracking.
- Add hard rules: answer-length and format bounds, stripping instruction-like text before judging, and a penalty for empty or degenerate answers.
- Report recall on answer variants (dates, units, name aliases), because a rule-only reward that misses correct answers gives a sparse, biased signal (cf. 47% rule recall on WebInstruct-Verified).