Counterexample Generation via Per-Theorem Symbolic Verifiers: When Imitation Hurts and Reinforcement Repairs
cs.CL, cs.AI
Submitted: 2026-10-01
Updated: 2026-10-01
Comments: Accepted at EMNLP 2026 Findings
Code: https://github.com/ce-rlvr/SymCE
License: http://creativecommons.org/licenses/by/4.0/
The gist: Large language models often solve a theorem forward yet fail to disprove a closely related false one: a falsification gap that supervised fine-tuning does not close and can actively worsen.
Terminology
Abstract
Large language models often solve a theorem forward yet fail to disprove a closely related false one: a falsification gap that supervised fine-tuning does not close and can actively worsen. We frame counterexample generation as constrained witness emission against a deterministic per-theorem Python verifier, and release SymCE, a corpus of 4,707 false undergraduate-algebra and real-analysis conjectures, each paired with executable verifiers. The verifier also serves as the reward function, making SymCE a training environment. Training Qwen3-4B with SFT followed by GRPO under this oracle reveals an imitation trap: counterexample-only SFT collapses true-theorem recognition from 0.27 to 0.00, while RLVR with a sparse outcome-only reward repairs this and exceeds the base, to 0.66. The collapse replicates across four seeds and on Gemma-3-4B. Sparse and dense rewards yield statistically indistinguishable in-domain success yet diverge by 33 points on a held-out calibration probe, a dissociation we trace to the partial-credit term. Our 4B model outperforms every evaluated 7B open-weights math specialist, remains competitive with six frontier commercial APIs, and transfers under unchanged prompting to GSM8K, MATH-500 and MMLU-college-math. A human audit of 177 verifier decisions finds 97.7% accuracy. Code, data, verifier modules and annotations: https://github.com/ce-rlvr/SymCE.
Sources
- Evaluating Large Language Models Trained on Code
- Training Verifiers to Solve Math Word Problems
- Process Reinforcement through Implicit Rewards
- Learning to Disprove: Formal Counterexample Generation with Large Language Models
- TreeCut: A Synthetic Unanswerable Math Word Problem Dataset for LLM Hallucination Evaluation
- Qwen3 Technical Report
- Spurious Rewards: Rethinking Training Signals in RLVR
- DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
- Can Language Models Falsify? Evaluating Algorithmic Reasoning with Counterexample Creation
- The Hallucination Tax of Reinforcement Finetuning
- Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotations
- Alchemy: Amplifying Theorem-Proving Capability through Symbolic Mutation
- Self-rewarding correction for mathematical reasoning
- Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvement
- Future-KL Regularized GRPO: Process-Level Credit Assignment from $f$-Divergence Regularization
- Advancing LLM Reasoning Generalists with Preference Trees
- MAmmoTH2: Scaling Instructions from the Web
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering