arXiv:2610.12030cs.CLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.12030

Natural Language to First-Order Logic LLM-based Autoformalization

Andrea Brunello, Cristian Curaba, Luca Geatti, Michele Mignani, Angelo Montanari, Nicola Saccomanno

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large Language Models (LLMs) have renewed interest in autoformalization. Yet, when First-Order Logic (FOL) is considered as the target formalism, the field still lacks a unified task formulation and a systematic survey. This paper addresses this gap: we first provide a principled definition for the FOL-autoformalization task by distinguishing Ontology Extraction from Logical Translation, showing how their conflation obscures (cross-study) evaluation; we review existing datasets, evaluation metrics, and LLM-based methods, including fine-tuning, prompting, and verification-based refinement; we identify open challenges in benchmarking, semantic evaluation, ontology-aware methods, and end-to-end applications.

1 Introduction

In the literature, autoformalization is broadly defined as the task of automatically generating statements in a target formalism that capture the semantics of a Natural Language (NL) sentence (Szegedy, 2020; Mensfelt et al., 2026; Wu et al., 2022). Although NL is well-suited for everyday human communication, its flexibility, expressiveness, and inherent ambiguity make it ill-suited for interaction with automated reasoning tools, which require inputs to be unambiguous and specified within a formal semantic framework. Early work relied on rule-based systems (Kamath and Das, 2018) and controlled natural languages (Kuhn, 2014), while more recent approaches have adopted neural network-based methods (Jiang and Cai, 2024). Despite the considerable research effort devoted to autoformalization, the field still lacks a unified formulation and a systematic survey when First-Order Logic (FOL) is considered as the target formalism. Here, we address this gap.

Why this survey. The motivations are threefold. First, Large Language Models (LLMs) have reshaped the autoformalization research landscape: their flexibility and general-purpose linguistic competence make autoformalization feasible across a wide range of domains (Mensfelt et al., 2026). Second, no systematic survey of LLM-based autoformalization for FOL currently exists, despite FOL offering a well-established balance between expressive power and algorithmic tractability. Surveys for other formalisms, such as Linear Temporal Logic (Germiniani et al., 2025) and SQL (Mohammadjafari et al., 2024), already play a pivotal role in their respective landscapes. Third, autoformalization underpins a wide range of relevant applications. In reasoning tasks, symbolic methods such as theorem provers and Satisfiability Modulo Theories (SMT) solvers are reliable and explainable, but require inputs in a precise logical format; autoformalization is thus crucial for converting NL task instances into appropriate representations. Recent work shows that inserting a formalization step and invoking symbolic tools can outperform directly prompting an LLM to solve multi-step logical reasoning problems (Ye et al., 2023; Olausson et al., 2023; Pan et al., 2023; Callewaert et al., 2025), with FOL yielding the best performance in certain settings (Beiser et al., 2025). Beyond reasoning, reliable formalization tools could make formal verification accessible to non-experts and enable scalable verification of large text corpora, an especially important prospect for AI safety approaches that regard formal guarantees as essential (Dalrymple et al., 2024). The significance of autoformalization in FOL has also been demonstrated in logical fallacy detection (Lalwani et al., 2024), argumentation mining (Sun et al., 2025), legal reasoning (Alam et al., 2023), and anomaly detection (Jin et al., 2025).

Our contribution. We provide a detailed description of the FOL-autoformalization task (Section 2) aimed at resolving existing ambiguities. Surveying the existing literature, we then focus on evalua-tion, covering datasets and metrics (Section 3), and methods proposed to achieve autoformalization via LLMs (Section 4). Finally, we highlight open problems and directions for future research (Section 5).