超越求解器裁决:用于自动形式化的生成式奖励模型

·

研究论文 · 2026/09/12

神经符号系统依赖数学求解器保证推理正确性,但求解器无法判断形式化翻译是否严格保持与指定形式化的参考等价性。作者将这一漏洞形式化为“保持判定结果的不忠实”(VPU):错误编码成功执行并匹配预期判定。理论证明,仅基于结构或判定结果的验证启发式方法在这类看似有效的轨迹上检测能力受限于随机水平。为此提出生成式验证(GenV),通过复用语言模型原生词汇空间,将离线Z3等价预言机蒸馏为无参考的连续参考等价性分数。基于决策投影logit透镜和稀疏自编码器的机制分析表明,这种生成式读出无需显式定位训练即可提取精确的空间错误坐标。实验上,预言机挖掘的验证器(GenV+HN)在参考等价性验证中达到0.961 AUROC,零样本泛化到未见翻译器和不同形式风格,并在智能体测试时计算分配中带来11.3个百分点的下游准确率提升。

该研究揭示了神经符号系统中求解器验证的盲区,提出了理论证明和实用解决方案,显著提升了形式化翻译验证的可靠性和下游任务性能。

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.

阅读原文

参与讨论