[论文解读] FormalJudge: A Neuro-Symbolic Paradigm for Agentic Oversight
FormalJudge 使用一个神经符号的双向 Form of Thought 流水线,其中大型语言模型将高层意图编译为 Dafny 规范,SMT 求解器验证原子事实,从而为代理监督提供形式化保证,并在 LL M 作为评审基线之上实现更好的表现。
As LLM-based agents increasingly operate in high-stakes domains with real-world consequences, ensuring their behavioral safety becomes paramount. The dominant oversight paradigm, LLM-as-a-Judge, faces a fundamental dilemma: how can probabilistic systems reliably supervise other probabilistic systems without inheriting their failure modes? We argue that formal verification offers a principled escape from this dilemma, yet its adoption has been hindered by a critical bottleneck: the translation from natural language requirements to formal specifications. This paper bridges this gap by proposing , a neuro-symbolic framework that employs a bidirectional Formal-of-Thought architecture: LLMs serve as specification compilers that top-down decompose high-level human intent into atomic, verifiable constraints, then bottom-up prove compliance using Dafny specifications and Z3 Satisfiability modulo theories solving, which produces mathematical guarantees rather than probabilistic scores. We validate across three benchmarks spanning behavioral safety, multi-domain constraint adherence, and agentic upward deception detection. Experiments on 7 agent models demonstrate that achieves an average improvement of 16.6% over LLM-as-a-Judge baselines, enables weak-to-strong generalization where a 7B judge achieves over 90% accuracy detecting deception from 72B agents, and provides near-linear safety improvement through iterative refinement.
研究动机与目标
- 在高风险领域日益自主的基于 LLM 的代理需要可靠监督的动机。
- 弥合自然语言需求与形式化验证之间的差距,提供数学保证。
- 提出一个双向架构,将意图分解为原子事实并用 SMT 求解器进行验证。
- 证明形式化验证在多个基准和代理模型中能优于纯概率评判。
提出的方法
- LLMs 充当规范编译器,将用户意图自顶向下分解为原子、可验证的约束。
- 基于上下文的提取通过确定性解析和 LLM 辅助语义提取将轨迹数据分解为有据可证的原子事实。
- 收集对原子事实的布尔逻辑组合进行编码的 Dafny 规范。
- Boogie 和 Z3 SMT 求解对 Dafny 生成的规范进行验证,从而给出正式裁决。
- 该架构将神经语义提取与确定性逻辑验证分离,以提供可证明的保证。

实验结果
研究问题
- RQ1正式验证是否可以提供比概率评判更可靠、可扩展的代理轨迹监督?
- RQ2将监督分解为原子事实并用 SMT 求解器验证,是否在检测安全失效与欺骗方面对不同代理模型具有更高的鲁棒性?
- RQ3LLMs 能否有效地将自然语言意图编译为在不同代理强度下仍保持鲁棒的形式化规范?
- RQ4迭代的形式化反馈是否能够在代理行为上实现逐步的安全改进?
主要发现
- FormalJudge 在三个基准和七个代理模型上平均比 LLM 作为评审基线高出 16.6%。
- 在 FormalJudge 下的 7B 评审对72B 代理的欺骗检测准确率超过 90%,显示出从弱到强的泛化能力。
- 形式化验证反馈通过三轮迭代实现接近线性的安全性提升。
- 结构化输入有帮助但无法实现全面的形式化验证,凸显确定性组合的必要性。
- 可执行的 Python 检查有助于发现问题,但不像 Dafny+Z3 那样提供形式化保证。
- FormalJudge 对攻击复杂度水平和评审模型规模保持高检测准确性,与纯概率基线不同。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。