Manuscript Offprint

arXiv:2611.00340

Autoformalization for Ambiguous Inputs: Precision, Coverage, and Cost across SQL and Logical Forms

Henry Shen, Xinling Liao, Adarsh Vatsa, William Eiers

ABSTRACT

Agentic systems translate natural-language requests into executable artifacts while managing ambiguity and inference cost. We evaluate seven autoformalization workflows on SQL and first-order logic benchmarks for ambiguous inputs. Across five SQL workflows, the raw model leads with F1 of 53.35% on AMBROSIA and 60.85% on AmbiQT. On AmP, DRIFT gains 15.98 F1 points over the raw model at 2.03 times its token cost, whereas LoC uses 18.65 times the raw model's tokens with lower F1. Within AutoCedar, structured interpretation lowers F1 by 6.44–6.95 points and raises AMBROSIA token use 2.2-fold. Paired reviewer comparisons show modest Kimi K3 gains of 1.93 points on AMBROSIA and 2.04 on AmbiQT. Clear–ambiguous AMBROSIA analysis shows greater relative stability for AutoCedar, with a smaller F1 drop than the raw model (11.46 vs. 16.68 points), alongside lower aggregate F1 (50.16% vs. 53.35%). Autoformalization alone does not guarantee robustness to ambiguity: the tested additions offer no uniformly effective remedy, making accuracy, ambiguity handling, and inference cost joint design requirements.

1 INTRODUCTION

Agentic systems combine language models with tools to turn natural-language requests into actions over software and data. Database agents inspect schemas, generate and execute queries, and revise them using feedback (Lei et al., 2025). In prior work, access-control workflows translate requirements into policies governing which users or services may act on protected resources (Vatsa et al., 2026). These applications place interpretation at an operational boundary: a query determines which records are retrieved, while an authorization policy determines who may read or modify them. Preserving the intended scope is essential to useful data access and privacy protection (Cutler et al., 2024).

Ambiguity can alter that scope before execution. A broad interpretation may include unintended records or permissions, while a narrow one may omit required results or deny legitimate access. A SQL query can execute successfully while committing to one of several meanings. Consider the request for singers' “names, countries, and ages” in Figure 1. The schema offers both nationality and citizenship for “countries,” and AmbiQT records a reference query for each.

A workflow can recover both readings yet also return additional answers, or return an internally consistent query that misses both references. This distinction matters in batch translation, autonomous agents, and offline requirements re-

AmbiQT 000005. “What are the names, countries, and ages for every singer in descending order of age.”
Two reference readings. Countries denotes nationality or citizenship. The reference queries differ in the selected column:SELECT name, nationality, ageFROM singer ORDER BY age DESC;SELECT name, citizenship, ageFROM singer ORDER BY age DESC;
Returned setPrecisionRecallF1
Direct (raw model)66.67100.0080.00
Roundtrip100.00100.00100.00

Figure 1. Coverage and precision can separate on the same ambiguous input. Both workflows recover the two reference answer classes; Direct also returns an additional prediction after grouping. Scores are percentages. Supplementary Table S28 gives the saved outputs and intermediate representations.

view, where an ambiguous input can reach execution before a user clarifies it.

We study ambiguity-aware formalization as recovery of a set of supported readings: one for a clear input and several for an ambiguous one. This set is useful both for automated processing and as the candidate set presented to a later clarification step. Methods such as ARTEMIS and Monty use human judgments to resolve competing specifications (Mendoza et al., 2026; Liu et al., 2026). Our experiments examine the preceding problem of producing candidates from the input and its context, using model feedback and formal checks.

¹YH Intelligence Technology, Co., Ltd. ²Stevens Institute of Technology. ³King's College London.

The central question is how generation, checking, repair, and retrieval change the returned set. We evaluate seven workflows on three benchmarks: AMBROSIA and AmbiQT for SQL, and AmP for first-order logical forms (Saparina & Lapata, 2024; Bhaskar et al., 2023; Stengel-Eskin et al., 2024). We then use AutoCedar as a common pipeline to study two placements of additional model information: interpretation before generation and feedback during review. We evaluate precision, recall, and token counts across the different modalities.

Four findings connect workflow design to the formal target, the placement of feedback, and input ambiguity:

(1) Workflow value varies across formal targets and benchmarks. Direct, the raw model baseline, leads the five-workflow SQL comparison in F1, while DRIFT improves both precision and recall on AmP. On AmP, DRIFT gains 15.98 F1 points at 2.03 times Direct's token cost; LoC uses 18.65 times Direct's tokens with lower F1.

(2) Explicit interpretation introduces a coverage-precision tradeoff. Within AutoCedar, interpretation before generation lowers SQL F1 and increases AMBROSIA token use. On AMBROSIA, free prose recovers more reference readings while admitting more unmatched outputs.

(3) Review feedback provides modest improvements. Adding Kimi at AutoCedar's review stage improves SQL F1, with K3 providing larger gains than K2.6.

(4) AutoCedar shows greater relative stability across input ambiguity. Its smaller clear-to-ambiguous F1 decline suggests potential for handling ambiguity, while lower aggregate F1 leaves a net performance benefit unestablished.

Together, these analyses help evaluate how autoformalization workflows handle the complex inputs expected in real-world operation.

References (18)