arXiv:2609.11085cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.11085

Beyond Solver Verdicts: Generative Reward Models for Autoformalization

Vikash Singh, Debargha Ganguly, Aman Goel, Ali Torkamani, Xiaoxue Han, Joseph Lilien, Ferhat Erata, Vipin Chaudhary

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Neurosymbolic systems rely on mathematical solvers to guarantee reasoning correctness, yet solvers are fundamentally blind to whether a formal translation maintains strict reference-equivalence to a designated formalization. We formalize this vulnerability as Verdict-Preserving-Unfaithfulness (VPU): a failure mode where an incorrect encoding executes successfully and matches the expected verdict. We theoretically prove that structural, verdict-only verification heuristics are mathematically bounded to chance-level detection on these deceptively valid traces. To resolve this, we introduce Generative Verification (GenV), which distills an offline Z3-equivalence oracle into a reference-free, continuous reference-equivalence score by repurposing the language model's native vocabulary space. Mechanistic analysis via decision-projected logit lenses and sparse autoencoders shows this generative readout natively extracts precise spatial error coordinates without explicit localization training. Empirically, our oracle-mined verifier (GenV+HN) achieves 0.961 AUROC in reference-equivalence verification, generalizes zero-shot across unseen translators and divergent formal styles, and yields an 11.3-point downstream accuracy gain in agentic test-time compute allocation.

1 Introduction

Neurosymbolic systems promise a clean division of effort, a language model translates a natural-language problem into formal logic, and a sound solver such as Z3 (de Moura and Bjørner, 2008) performs the deduction. This architecture underlies satisfiability-aided language models (Ye et al., 2023), logical question answering (Pan et al., 2023; Olausson et al., 2023), autoformalization (Wu et al., 2022; Ganguly et al., 2024, 2025), and deployed policy checks (Amazon Web Services,

Figure

Figure 1: Identical solver verdicts do not imply equivalent formalizations. Reversing (> to (<) creates a valid, satisfiable candidate that is not logically equivalent to the reference. While a shared sat verdict cannot distinguish the pair, GenV+HN successfully separates them using only the source problem and candidate encoding.

2025; Bayless et al., 2025). The resulting guarantee is powerful but conditional. A sound solver certifies what follows from the supplied encoding, it does not certify that the encoding accurately represents the source problem. The translation step is therefore an independent point of failure. An encoding may parse, execute and receive a valid solver certificate while changing a comparison operator, omitting a requirement, reverse implication or binding the wrong variable. Figure 1 illustrates a minimal example: two encodings return the same satisfiability verdict even though they are not logically equivalent. The solver is correct in both cases. The failure lies in the correspondence between the source problem and the formal program. We study this failure relative to a designated reference formalization s∗s^*. A candidate is Verdict-Preserving-Unfaithfulness (VPU) when it is syntactically valid, returns the same solver verdict as s∗s^* and is not logically equivalent to s∗s^*. This is an operational, reference-relative definition. It gives a deterministic target for training and evaluation,

∗^{*}Work done during internship at Amazon Web Services but it does not assume that every natural language problem has a unique formal expression or a reference fully captures subjective source intent.

Standard safeguards address related but different failures. Parsing and type checking reject malformed programs, solver execution rejects inconsistent or unsupported outcomes, and self-consistency rewards repeated answers. These signals remain valuable, but the binary solver verdict itself cannot distinguish two candidates constructed to share that verdict. Learned reward models may inspect richer representations, so their ability to detect VPU is an empirical question rather than a consequence of our theorem.

Section 3 formalizes the information limit of binary verdict-only scoring: on matched pairs with identical solver verdicts, every score that is a function only of that verdict assigns tied scores and has AUROC 0.5. This result does not apply to systems that inspect the source problem, candidate program, execution trace, or internal model states. Our central design choice separates strict oracle supervision from test-time deployment. Bidirectional Z3 checks generate decisive reference-equivalence labels. At deployment, where the designated reference is absent, GenV distills this offline signal into a functional, reference-free score. GenV repurposes the model's standard token-prediction capabilities to produce a holistic Yes/No judgment, using normalized token probability as a continuous equivalence score instead of appending specialized classification layers or aggregating local step scores. Concentrating this supervision on oracle-certified VPUs through targeted mining yields the deployed GenV+HN verifier.

Our contributions are:

• Reference-relative failure formulation: We formalize VPU as verdict-preserving non-equivalence to a designated reference and characterize the information limit of binary verdict-only scoring on matched pairs.

• Reference-free generative verification: We distill offline bidirectional-equivalence labels into a continuous next-token score requiring only the source problem and candidate encoding at inference time.

• Controlled empirical evaluation: We evaluate authentic translator errors, held-out translator architectures, shifted formal styles, matched reward-model baselines, input-dependence controls, calibration, and static and adaptive deployment settings.

• Diagnostic representation analysis: We show that error-position and VPU information can be recovered from the verifier’s hidden states using prefix scores, gradient-based attribution, and sparse-feature probes, while treating these analyses as diagnostic rather than causal.

References (54)