Beyond solver verdicts: a generative reward model for automated formalizationBeyond Solver Verdicts: Generative Reward Models for Autoformalization
The paper defines VPU as formal distortions that solver verdicts cannot distinguish, and uses GenV+HN to distill offline Z3 equivalence supervision into a reference-free Yes/No score, achieving AUROC 0.961 on a 950-item benchmark.
The victim system is a neurosymbolic pipeline that translates natural language into SMT-LIB and then hands it to Z3. Relative to the specified reference s⋆, a candidate is a VPU if it is syntactically valid, shares the solver verdict with s⋆, and does not satisfy bidirectional implication. At deployment, s⋆ is absent; the verifier only sees the source problem x and the candidate s.
- Neurosymbolic systems use solvers like Z3 to guarantee derivation correctness, but the solver cannot see whether the formalization is strictly equivalent to the specified reference. Incorrect encodings that share the verdict (VPUs) pass existing structural checks.
- GenV labels offline with a bidirectional Z3 equivalence oracle, then uses a frozen 27B model with LoRA supervising only the Yes/No answer tokens, normalizing probabilities into a reference-free continuous score; GenV+HN adds programmatic hard negatives.
- On the 950-line real translation benchmark, GenV+HN has an AUROC of 0.961, while using only the solver verdict is 0.500. On the same recorded pool, the full adaptive allocation improves accuracy from 0.655 to 0.768 relative to single-shot Proof of Thought.
- The authors note the target is Z3 reference equivalence rather than subjective intent, supervision is constrained by SMT decidability and complete gold references, mining is primarily single-edit, and gradient lenses and SAE are only diagnostic. Appendix C also reports that severe formal style shifts change score distributions and degrade threshold calibration.
- Evaluated models
- GenV+HNGenV27B LM (LoRA)Claude Opus 4.7Claude Sonnet 4.5Claude Opus 4.1Claude Haiku 4.5gpt-oss-120bQwen3-32BGLM-4.7-flashgpt-oss-20bQwen3-Next-80BSequent-Prover-27B
- Benchmarks
- authentic translator-output benchmark (950 rows, 197 problems)normalized-text-disjoint subset (652 rows)expanded split (488 rows)FOLIOProofWriterMALLSProverQAProntoQALogicNLIGSMSVAMPMAWPSASDivAQuADROPSpartQAStepGame
- Metrics
- AUROCanswer accuracyΔpts
The research proposes the Verdict-Preserving-Unfaithfulness (VPU) failure mode: erroneous formal translations can still pass the solver and obtain the expected verdict, and proves that structural verification heuristics based solely on verdicts are mathematically limited to chance level in detection capability. To this end, it proposes Generative Verification (GenV), distilling an offline Z3 equivalence oracle into a reference-free continuous reference-equivalence score; mechanism analysis shows it can natively extract precise spatial error coordinates. The oracle-mined verifier GenV+HN achieves 0.961 AUROC on reference-equivalence verification, generalizes zero-shot to unseen translators and different formal styles, and brings an 11.3 percentage point downstream accuracy improvement in agent test-time compute allocation.
Paper analysis
What problem does this paper attempt to solve?
Solver verdicts being identical does not mean the formalization is equivalent to the specified reference; the authors define this distortion as VPU.
A solver can prove what a given encoding entails, but cannot prove that the encoding is strictly equivalent to a specified reference formalization; unfaithful encodings that preserve the decision (VPU) therefore pass existing checks.
- Scenario and importance: Neuro-symbolic systems let language models translate natural language into formal logic, which is then given to a sound solver such as Z3 for deduction. The authors argue that this guarantee is conditional: translation is an independent point of failure, and an encoding can parse, execute, and receive a valid certificate while changing comparison operators, dropping constraints, reversing implications, or binding the wrong variables.
- Limitations of existing methods: Parsing and type checking reject malformed programs, solvers reject inconsistent or unsupported results, and self-consistency rewards repeated answers. The authors argue these signals are still useful, but a binary solver decision cannot distinguish two candidates that are constructed to share that decision. Section 3 states: on pairs where the decision matches, any score that depends only on that decision will tie, with an AUROC of 0.5.
- Core observation: Relative to a specified reference s⋆, faithfulness is a model-theoretic bidirectional implication, not "runs and has the same decision." The authors separate supervision from deployment: bidirectional Z3 checking is used only to generate offline labels; at deployment, the specified reference does not exist.
- Threat model:
- Victim system: A neuro-symbolic pipeline that translates natural language problems into SMT-LIBv2 and hands them to a solver; the evaluation covers only candidates that are decidable, syntactically valid, and do not return unknown.
- Failure definition: Relative to a specified reference s⋆, a candidate is a VPU if it is syntactically valid, the solver decision matches s⋆, and Eq(s, s⋆) is not satisfied (Definition 1). This is an operational, reference-relative definition that does not assume every natural language problem has a unique formalization.
- Attacker knowledge and capabilities: The paper does not use terms like white-box / black-box. During training, s⋆ and Z3 are available; at deployment, the verifier receives only the source problem x and the candidate s. Hard negatives come from programmatic mutations μ of the gold reference, keeping only those that satisfy the VPU condition.
- Success criteria: Detection is measured by AUROC for reference equivalence; downstream, by answer accuracy under Proof of Thought adaptive allocation versus static Best-of-N.
- What the paper proposes: The authors propose Generative Verification (GenV), which distills an offline Z3 equivalence oracle into a reference-free, continuous next-token equivalence score; the deployed model is GenV+HN, further trained with hard negative mining. Contributions also include the VPU formalization, evaluation across translators and formal styles, and diagnostic analysis using a decision-projected logit lens and sparse autoencoders.
What related research exists?
Related work is divided into conditional guarantees, structural checking, and learned verification; the authors position this paper as distilling an exact SMT equivalence oracle.
- Conditional guarantees and automated formalization: Wu et al. (2022), Ye et al. (2023), Pan et al. (2023), Ganguly et al. (2024), and Amazon Web Services (2025) use solver-assisted reasoning; Azerbayev et al. (2023) and Jiang et al. (2023) are used by the authors to illustrate that formal deduction assumes initial translation precision. Li et al. (2024) and Ganguly et al. (2025) are placed by the authors under the upstream problem of "strict reference equivalence rather than merely structural execution."
- Structural checking: Wang et al. (2023) and Singh et al. (2026)'s self-consistency, Lu et al. (2025) and Amrollahi et al. (2026)'s backtranslation are called by the authors as reliably rejecting invalid encodings. Beer et al. (2001) and Ammons et al. (2002) are cited to show that passing structural checks does not guarantee reference equivalence. The authors argue that if reference-equivalent encodings and VPU mutations give the same solver verdict, these checks cannot separate them.
- Learned verification and test-time compute: Zhang et al. (2025a)'s generative verifiers and Lightman et al. (2024)'s reward models improve test-time compute allocation (Kang et al., 2025). Bengio et al. (2009)'s curriculum hard examples and Chen et al. (2024)'s selective allocation are used by the authors as training and deployment background. The authors claim GenV+HN differs from standard verifiers: it learns a diagnostic, reference-free generative readout from oracle labels and optimizes with programmatic hard negatives.
- Baselines and benchmarks: Comparisons in Section 5 include K=5 self-consistency, direct solver verdict, Process RM (Zhang et al., 2025b) and Outcome RM (Lyu et al., 2025) on the same 27B base as GenV, as well as GTED (Liu et al., 2025), FormalAlign-style bidirectional alignment (Lu et al., 2025), and back-and-forth translation (Amrollahi et al., 2026). The main benchmark is 950 real translator outputs; OOD formal styles come from FOLIO, ProofWriter, MALLS, ProverQA, ProntoQA, LogicNLI.
The authors distinguish this paper from the above by: training a deployment-time continuous score requiring only (x, s) with offline bidirectional Z3 equivalence labels, and setting the evaluation goal as verdict-preserving non-equivalence rather than structural executability.
How does the paper address this problem?
Offline, uses bidirectional Z3 to label reference equivalence; at deployment, uses the Yes/No probabilities of a frozen 27B model as a reference-free score.
The overall idea is to keep privileged information in training: use Z3 to produce precise labels, then distill that signal into the native vocabulary readout of GenV; the deployed GenV+HN no longer needs a specified reference.
Problem setup and formalization
- Objects: x is a natural language question, s is a candidate SMT-LIBv2 encoding, s⋆ is the specified reference. A(s) is the logical conjunction of assertions in s, v(s) ∈ {sat, unsat}.
- Reference equivalence: For candidates compatible with the reference signature, Eq(s, s⋆) is a bidirectional implication indicator: A(s) ∧ ¬A(s⋆) is unsatisfiable, and A(s⋆) ∧ ¬A(s) is unsatisfiable. The authors state this test is model-theoretic equivalence under the chosen signature, exact for the operational goal, but still relative to s⋆; signature-incompatible meaning-preserving refactorings, or legitimate additions to underspecified s⋆, may require further normalization to obtain the intended label.
- VPU and information bound: VPU(s; s⋆) requires identical verdicts and Eq false. Proposition 1 states that in the paired set, positives are reference-equivalent, negatives are VPU, and both have identical verdicts; any g(s)=h(v(s)) gives the same score to both pairs, and with half-credit ties the empirical AUROC is 0.5. The authors state this proposition does not apply to systems that inspect x, s, execution traces, or internal states.
Offline labels and hard negatives
- Labels: For each problem, hold s⋆. Candidates come from real translator outputs and small edits μ(s⋆) to s⋆, such as flipping comparisons. Z3 checks bidirectionally; one-way consistency is insufficient; those passing are reference-equivalent, those that still run, have identical verdicts, but differ semantically are VPU. The authors state labels are deterministic under the specified signature and resource limits, without item-by-item human annotation. Training labels y_ref = Eq(s, s⋆).
- Hard negatives: Mutations include flipping relational operators, perturbing constants, or reversing implications. s′=μ(s⋆) is retained only if syntactically correct and satisfies Definition 1; Z3 discards mutations that accidentally preserve semantics. The authors state that in initial analysis, residual errors concentrate in highly structured theories (such as bitvectors and uninterpreted functions), and mining is used to isolate that boundary.
- Data split: GenV uses only 2,591 LM-generated items (1,894 equivalent, 697 VPU). GenV+HN continues training on 732 mined hard negatives, with equivalent:VPU at 57:43. The natural language questions used for training and mining are strictly disjoint from all evaluation splits.
Generative readout and training
- Readout: A fixed system prompt constrains the model to act as a judge, outputting a single judgment token (full prompt in Appendix D). c(x, s) is the context, π is the next-token distribution. Y and N are the vocabulary token IDs for positive and negative answers. After one forward pass, normalize the two probability masses: f_θ(x, s) = (Σ_{u∈Y} π_u) / (Σ_{u∈Y} π_u + Σ_{u∈N} π_u + ε), ε=10^{-9}. The authors state that near 1 indicates equivalence, near 0 indicates VPU.
- Optimization: 27B instruction-tuned backbone frozen, only LoRA trained. Loss on context tokens is masked, only causal cross-entropy on answer tokens; the authors state no randomly initialized classifier is added. s⋆ is used only to construct labels; inference input is (x, s).
- Score use: Figure 2 states the score is used for VPU labeling, Best-of-N selection, and agent gating. The authors state in limitations that it is designed for detection and compute allocation, not generative steering.
Diagnostic localization (not causal mechanism)
- Prefix scores: F_t = f_θ(x, s_{≤t}), F_0 is the prefix with only declarations; the predicted error step is the assertion with the largest drop. The authors state that a verifier explicitly trained to score prefixes localizes correctly on all 150 held-out mutations; a stronger test uses the frozen, detection-only GenV+HN.
- Decision projection: The decision margin g is the logsumexp difference between Yes and No logits; q_{ℓ,t} is the inner product of the gradient of g with respect to intermediate activation h_{ℓ,t} and that activation. The authors state this is a first-order attribution, used as a diagnostic, not claiming causal mechanism or local workspace. SAE operates on layer 48: z = TopK(W_E(h−b), K), reconstruction is bias plus decoding. The authors call these analyses diagnostic, not causal.
What experiments did the paper conduct?
GenV+HN achieves AUROC 0.961 on the 950-item benchmark; on the same record pool, the adaptive system is 11.3 points higher than single-shot PoT.
Experimental setup
- Verifier: Frozen 27B instruction-tuned backbone, LoRA training. GenV is the variant without mined negatives; GenV+HN is the deployed model. Baselines are Process RM, Outcome RM (token head), K=5 self-consistency, and solver verdict matching, all on the same base, training manifold, and optimization budget. Extended split additionally compares GTED, FormalAlign (fwd+bwd), and reference-free round-trip back-translation.
- Main detection set: 950 real translator encodings from 197 source problems, excluding mutation-generated test negatives, containing 260 VPUs; evaluation IDs are disjoint from training IDs. Text normalization audit found 298 rows whose source statements were seen during training under different IDs, so an additional conservative subset of 652 rows is reported. Extended split is 488 rows, 184 VPUs.
- OOD and downstream: Specified references from FOLIO, ProofWriter, MALLS, ProverQA, ProntoQA, LogicNLI are translated to SMT-LIBv2 and mined for verdict-preserving mutations. Downstream is adaptive Proof of Thought and static Best-of-N. Agent table covers 12 backends, 9 reasoning benchmarks; significance in Table 6 is exact paired McNemar on 8,420 merged trajectories, p<0.05. Table 7 is 8 backends × 9 datasets = 7,200 K=5 pools.
- Metrics: Detection is AUROC; downstream is answer accuracy and point differences. The paper does not report repetitions for main detection AUROC. Disputed slices additionally have an independent LLM review panel comparing Z3 reference equivalence with panel majority intent; review model names are not stated in the main text.
- Training budget: The authors state LoRA is about 12 GPU hours on a single NVIDIA H100-80GB; evaluation and agent loops use bf16.
Main results
Per Table 1. Panel (a) is 950 rows, 260 VPUs; panel (b) is 488 rows, 184 VPUs, "rf" means reference-free at inference.
System Split AUROC GenV+HN (a) 950 rows 0.961 GenV (no mined negatives) (a) 0.956 Self-consistency vote (K=5) (a) 0.863 Outcome RM (token head) (a) 0.762 Process RM (token head) (a) 0.756 Solver-only (verdict match) (a) 0.500 Generative readout, ours rf (b) 488 rows 0.950 GTED / FormalAlign / Round-trip (b) 0.835 / 0.752 / 0.578 - Author interpretation: The authors state solver verdict matching is at chance level 0.500; Process RM and Outcome RM are 0.756 and 0.762 respectively; K=5 self-consistency is 0.863, lower than a single generative equivalence forward. On the text-disjoint 652-row subset, GenV+HN is 0.955.
- Readout ablation (Table 2, original split): Under whole-encoding supervision, generative P(Yes) is 0.983; binary head warm-start 0.921, cold-start 0.920. Stepwise token head with min aggregation: PRM labels 0.633, ORM labels 0.827. The authors state that under the evaluated supervision and initialization, vocabulary-space readout still has additional gains over binary heads, and swapping Yes/No to A/B or X/Y remains robust; the paper does not give numbers for the latter replacement in the table.
- Exception: Table 2's 0.983 is higher than Table 1's 0.961, but the splits differ (original split vs. combined benchmark), and the paper does not present them as the same setting.
Zero-shot formal styles
- What was tested: Table 3 compares G-20 readout, GenV, Process RM, Outcome RM, and GenV+HN on public VPU sets. These sets are synthetic, oracle-certified mutations of each dataset's specified reference.
- Results: GenV+HN is ProverQA 0.964, MALLS 0.925, ProntoQA 0.915, ProofWriter 0.842, FOLIO 0.830, LogicNLI 0.642; in-domain rows GenV+HN 0.961, GenV 0.956. The authors state Process RM and Outcome RM do not exceed 0.600 on ProverQA and LogicNLI: in the table, Process RM is 0.588 and 0.559, Outcome RM is 0.528 and 0.577.
- Author interpretation and exceptions: The authors state generative readout can generalize beyond specific theories in training. On FOLIO, Process RM is 0.774, higher than GenV's 0.595, lower than GenV+HN's 0.830; G-20 in-domain is 0.959, slightly lower than GenV+HN.
Intent alignment and test-time allocation
- Disputed slices (Table 4): With Z3 equivalence to the specified reference as target, GenV+HN is 0.907, Judge is 0.654; with panel majority intent as target, GenV+HN is 0.679, Judge is 0.778. The authors state strict reference equivalence is a reproducible formal evaluation goal and consider resolving informal ambiguity still open. Table 1(b) generative readout is 0.950, higher than GTED 0.835, FormalAlign 0.752, back-translation 0.578.
- Same record pool replay (Table 5): Single-shot PoT 0.655; Best-of-N (vote@5 vs single) to 0.748 (+9.3); GenV+HN gating upgrade to 0.760 (+1.2); verifier selection to 0.768 (+0.9). Full adaptive system is +11.3 points over single-shot PoT. Solver gating control is 0.768→0.758 (−1.0); equal-budget suggested feedback vs no feedback, 71/72 flips, the authors record as about 0.
- Per-backend: Table 6 merged Δpts ranges from Qwen3-32B +2.3 (not starred in text) to gpt-oss-20b +42.6∗; Claude Opus 4.7 is +2.6∗. The authors state individual datasets have small positive and negative fluctuations. Table 7 static reranking: gpt-oss-20b +14.2∗ over 1-shot, Qwen3-32B +11.8∗; merged +7.0∗ / +0.6∗ over Vote@3. The authors state there is a slight regression relative to vote@5 at equal K=5 budget, so they attribute the advantage to dynamic gating rather than static reranker. Main text examples "+14.2, +11.8" are consistent with Table 7.
Other ablations and analyses
- Figure 3A: The authors state the detection-specialized GenV lens localizes held-out mutations without localization training; the figure labels GenV lens 0.82, GenV prefix 0.75, ORM head 0.36, PRM head 0.22, chance marked at 0.2. The explicit prefix model localizes all 150 held-out mutations correctly.
- Figure 3B and SAE: The figure labels GenV+HN output, SAE, 1 feature as 0.96, 0.90, 0.88. The text states sparse feature linear probes recover 0.960 AUROC; PRM and ORM hidden states expose more VPU information than their deployed outputs. The authors state the analysis does not intervene on activations, so it does not establish causal mechanism.
- Appendix stepwise example: On four pairs, GenV+HN min-aggregation average Δ is +0.9431, independent per-conjunction localization 4/4; PRM is 1/4, the authors state causal attention leaks defects to later steps; ORM has no step axis. The example denominator is 4.
- Negative results: On LogicNLI, GenV+HN is 0.642; solver gating is 1.0 point lower than delivered gating; suggested feedback without expanding sampling budget, the authors state, brings no measurable accuracy improvement. Unsatisfiable formulas are vacuously equivalent under standard Z3 model checking, the authors state omissions cannot be identified by equivalence; gold references in the benchmark are verified satisfiable before evaluation.
What are some points that can be further explored?
The authors place limitations in intent gap, SMT decidability, single-edit mining, and that diagnostic signals are not yet used for causal repair.
Limitations and future directions noted by the authors
- Intent gap: Section 9 states that GenV+HN optimizes for strict reference equivalence under the Z3 oracle, not subjective human intent; closing this semantic gap requires a future human-annotated benchmark (Appendix B).
- Supervision boundary: Section 9 states that supervision is limited by SMT decidability and assumes the gold reference is fully specified.
- Distribution shift: Section 9 states that the verifier transfers zero-shot across architectures, but severe out-of-distribution shifts in formal logic style change the score distribution and degrade threshold calibration (Appendix C).
- Mutation types: Section 9 states that VPU mining relies on synthetic single edits and may not fully capture relevant, multi-error distributions in natural programs.
- Use and mechanism: Section 9 states that in deployment it is used for detection and compute allocation, not generative steering; treating the score as advisory feedback does not yield measurable accuracy gains without expanding the sampling budget (Appendix C.3). Gradient lenses and SAE are called diagnostic tools by the authors; extending these internal representations to causally guide multi-error repair pipelines is written as an open frontier for neurosymbolic architectures.
- Unsatisfiable cases: Section 9 states that the logical equivalence guarantee applies to satisfiable formal specifications; under standard Z3 model checking, two unsatisfiable formulas are vacuously equivalent, so omissions in inconsistent reference formulas cannot be identified via equivalence.
Experimental coverage
- Detection data: Main results are reported on 950 lines of real translator outputs (197 source problems, 260 VPUs) and a disjoint 652-line normalized-text subset; extended alignment comparisons cover 488 lines, 184 VPUs (Sections 5–6, Table 1).
- Training composition: GenV uses 2,591 language-model candidates (1,894 equivalent, 697 VPU); GenV+HN adds 732 hard negatives, class distribution 57:43 (Section 5).
- OOD styles: Zero-shot AUROC covers FOLIO, ProofWriter, MALLS, ProverQA, ProntoQA, LogicNLI, with negatives as synthetic mutations of each dataset's specified reference (Table 3).
- Downstream protocol: Adaptive results compare PoT vs. +GenV on 12 backends and 9 benchmarks, significance testing on 8,420 merged trajectories (Table 6); static reranking covers 8 backends × 9 datasets for 7,200 K=5 pools (Table 7). Mechanism replay uses the same recorded pool (Table 5).
- Analysis scope: Localization experiments use synthetic examples with known single edits; the explicit prefix scoring model covers 150 held-out mutations. SAE takes layer 48. The paper states the main detection metric is AUROC, without reporting the number of repetitions for that AUROC; the reviewer model name for the disputed slice is not written in the main text. Appendix D gives the judge prompt.
Summarize the main content of the paper
GenV+HN trains a reference-free Yes/No score on offline Z3 equivalence labels, used to flag VPUs and allocate test-time compute.
GenV+HN targets the corresponding failure after neurosymbolic translation and before the solver certificate: an encoding can share the solver verdict with the specified reference while not being equivalent.
- Problem: The authors define candidates that are syntactically valid, share the verdict with s⋆, and fail bidirectional implication as VPUs. Proposition 1 states that scores based only on binary verdicts have AUROC 0.5 on such pairs.
- Method: At training time, Z3 is used for bidirectional equivalence labeling; candidates come from translator outputs and programmatic mutations of the gold reference. A frozen 27B backbone is used, training only LoRA, with loss on Yes/No answer tokens only; one forward pass normalizes the two class probabilities into a [0,1] score. Deployment no longer uses s⋆. GenV+HN adds 732 hard negatives to the 2,591 real candidates.
- Detection: On the 950-line, 260-VPU real-output benchmark, GenV+HN is 0.961, GenV is 0.956, K=5 self-consistency is 0.863, Outcome RM and Process RM are 0.762 and 0.756, and solver verdict matching is 0.500 (Table 1a). The 652-line text-disjoint subset is 0.955. Whole-encoding, generative P(Yes) is 0.983 in Table 2.
- Transfer and downstream: In Table 3, GenV+HN is 0.964 on ProverQA and 0.642 on LogicNLI. On the same recorded pool, the full adaptive system improves from 0.655 to 0.768 (+11.3 points, Table 5) relative to single-shot PoT, with Best-of-N itself contributing +9.3. When targeting panel majority intent, GenV+HN is 0.679, lower than Judge's 0.778 (Table 4).
- Authors' conclusion: The authors argue that verdict validity cannot replace reference equivalence; the generative readout maintains about 0.96 AUROC on unseen translators and formal styles and exposes internal signals as diagnosable localization information. They also state the guarantee is limited to satisfiable specifications, constrained by formal style shift and human intent ambiguity, and that the current internal analysis is not a causal repair mechanism.