arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.22937cs.CLcs.LGcs.PL
收藏

AutoPyVerifier: 为大语言模型输出学习紧凑的可执行验证器

AutoPyVerifier: Learning Compact Executable Verifiers for Large Language Model Outputs

Megagon Labs(梅加戈恩实验室)

Pouya Pezeshkpour, Estevam Hruschka

AI总结:

本文提出AutoPyVerifier框架,通过LLM生成候选验证器并利用DAG搜索优化,提升验证器集对目标任务的预测精度,实验表明在多个基准测试中性能提升显著。

摘要:

验证在基于强化学习的训练和推理时间控制大语言模型(LLMs)中变得至关重要。然而,当前验证器面临根本性的权衡:基于LLM的验证器具有表达力但难以控制且易出错,而确定性可执行验证器可靠且可解释但能力有限。我们研究的问题是:给定一个LLM输出的发展集和目标对象的标签(如正确性),能否自动诱导一个最小的Python验证器集,其联合满足程度接近该目标?我们提出了AutoPyVerifier框架,该框架使用LLM生成候选验证器函数,然后通过有向无环图(DAG)上的搜索进行优化。通过导航DAG,AutoPyVerifier系统地探索确定性可执行验证器的空间,并选择一个紧凑的验证器集,其联合满足程度最接近目标对象。在数学推理、编程、函数调用和指令遵循基准测试中,针对几种最先进的LLMs,AutoPyVerifier在目标对象预测上比初始的LLM生成验证器集提高了高达55.0个F1点。进一步分析显示,最有用的验证目标因基准和模型而异,并且基于DAG的搜索使学习的验证器集更倾向于结构和语义基础的检查。我们还展示将发现的验证器集暴露给LLM作为外部工具可提高下游准确性高达17.0个点。我们发布了代码

英文摘要:

Verification is becoming central to both reinforcement-learning-based training and inference-time control of large language models (LLMs). Yet current verifiers face a fundamental trade-off: LLM-based verifiers are expressive but hard to control and prone to error, while deterministic executable verifiers are reliable and interpretable but often limited in capability. We study the following question: given a development set of LLM outputs and labels for a target objective, such as correctness, can we automatically induce a minimal set of Python verifiers whose joint satisfaction closely matches that objective? We propose AutoPyVerifier, a framework that uses an LLM to synthesize candidate verifier functions and then refines them through search over a directed acyclic graph (DAG). By navigating the DAG, AutoPyVerifier systematically explores the space of deterministic executable verifiers and selects a compact verifier set whose joint satisfaction best approximates the target objective. Across mathematical reasoning, coding, function calling, and instruction-following benchmarks for several state-of-the-art LLMs, AutoPyVerifier improves target-objective prediction by up to 55.0 F1 points over the initial LLM-generated verifier sets. Additional analyses show that the most useful verification targets vary by benchmark and model, and that the DAG-based search shifts the learned verifier sets toward more structural and semantically grounded checks. We further show that exposing the discovered verifier set to an LLM as an external tool improves downstream accuracy by up to 17.0 points. We release our code

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑