Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Amrollahi, Daneshvar, Lopez, Jerry, Barrett, Clark
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2604.25031
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910202369933312
author Amrollahi, Daneshvar
Lopez, Jerry
Barrett, Clark
author_facet Amrollahi, Daneshvar
Lopez, Jerry
Barrett, Clark
contents When an LLM formalizes natural language, how do we know the output is faithful? We propose a roundtrip verification approach which does not require ground-truth annotations: formalize a statement, translate the result back to natural language, re-formalize, and use a formal tool to check logical equivalence. When the two formalizations agree, this provides evidence of a faithful formalization. When they disagree, a stage-level diagnosis localizes the error to a specific translation step, and a scoped repair operator attempts to correct that step. We evaluate the framework on two statutory domains (the Texas Transportation Code and the Texas Parks and Wildlife Code) using two LLMs (Claude Opus~4.6 and GPT-5.2) with three repair baselines. Diagnosis-guided scoped repair is the most effective method, with effectiveness contingent on the reliability of the diagnosis function. Across both domains and both models, under our full repair system, rules that fail the equivalence check show 1.4x-2.5x more NLI drift than rules that pass it.
format Preprint
id arxiv_https___arxiv_org_abs_2604_25031
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Faithful Autoformalization via Roundtrip Verification and Repair
Amrollahi, Daneshvar
Lopez, Jerry
Barrett, Clark
Computation and Language
Artificial Intelligence
When an LLM formalizes natural language, how do we know the output is faithful? We propose a roundtrip verification approach which does not require ground-truth annotations: formalize a statement, translate the result back to natural language, re-formalize, and use a formal tool to check logical equivalence. When the two formalizations agree, this provides evidence of a faithful formalization. When they disagree, a stage-level diagnosis localizes the error to a specific translation step, and a scoped repair operator attempts to correct that step. We evaluate the framework on two statutory domains (the Texas Transportation Code and the Texas Parks and Wildlife Code) using two LLMs (Claude Opus~4.6 and GPT-5.2) with three repair baselines. Diagnosis-guided scoped repair is the most effective method, with effectiveness contingent on the reliability of the diagnosis function. Across both domains and both models, under our full repair system, rules that fail the equivalence check show 1.4x-2.5x more NLI drift than rules that pass it.
title Faithful Autoformalization via Roundtrip Verification and Repair
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2604.25031