跳到正文
arXiv cs.AI· Umut A. Acar, Eli Goldweber·· 1 小时前AI 评分46

基于蕴含图的安全自动形式化:充分性与必要性

Safe Autoformalization: Sufficiency and Necessity with Entailment Graphs

AI 导读

一项 arXiv 研究提出安全自动形式化技术,用 LLM 生成候选公式并按逻辑强度排成蕴含图(Entailment Graph),由求解器确定充分前沿与必要前沿,为自然语言陈述到公式的转换提供单侧逻辑保证。

正文 · 原文

View PDF HTML (experimental)

Abstract:Autoformalization translates a natural-language statement into a formula that captures its intent, which depends on the statement's context: the background that disambiguates it. LLMs make autoformalization practical, but their probabilistic output carries no formal guarantees. We propose techniques for safe autoformalization that certify one-sided logical adequacy: a formula sufficient for the intent is safe to enforce, and a formula necessary for it is safe to rely on. We use LLMs to generate candidate formulas and order them by logical strength in an Entailment Graph (EG), an ordering a solver decides. Each edge carries a residual and a co-residual, the two adjoints of the entailment order, all fixed by the candidate pool alone. In a context, two searches return the sufficient frontier, the weakest candidates that entail the statement, and the necessary frontier, the strongest candidates the statement entails; each step is one local check against an edge's residual or co-residual. The frontiers bracket the statement and yield the ambiguity residue, which holds exactly of the situations the candidates certify neither as satisfying nor as violating it; the statement is ambiguous precisely when the residue is satisfiable. For natural-language statements and contexts, an LLM entailment oracle decides the checks; it is sound if it accepts only checks that hold, and complete if it accepts every check that holds. We prove that a sound oracle makes the search safe regardless of pool quality, and that a complete one makes the frontiers tight. On security-critical AWS properties, EGs are safe in all 20 cases of an expert-adjudicated study, where majority vote over equivalence clusters and Universal Self-Consistency are unsafe in 25% and 10%. An ablation with the same oracle but no graph is unsafe in 25% and rejects every candidate in another 30%. We machine-checked our proofs in Lean.
Comments: 34 pages, 7 figures, 4 tables. The results are machine-checked in Lean 4
Subjects: Artificial Intelligence (cs.AI); Logic in Computer Science (cs.LO)
Cite as: arXiv:2611.31571 [cs.AI]
  (or arXiv:2611.31571v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2611.31571

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Eli Goldweber [view email]
[v1] Mon, 23 Nov 2026 21:13:39 UTC (90 KB)

来源:arXiv cs.AI · arxiv.org