ICLR 2026poster0 citations

SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verification

Rocky Klopfenstein, YANG HE, Andrew Tremante, Yuepeng Wang, Nina Narodytska, Haoze Wu

Abstract

Community-driven Text-to-SQL evaluation platforms play a pivotal role in tracking the state of the art of Text-to-SQL performance. The reliability of the evaluation process is critical for driving progress in the field. Current evaluation methods are largely test-based, which involves comparing the execution results of a generated SQL query and a human-labeled ground-truth on a static test database. Such an evaluation is optimistic, as two queries can coincidentally produce the same output on the test database while actually being different. In this work, we propose a new alternative evaluation pipeline, called *SpotIt*, where a formal bounded equivalence verification engine actively searches for a database that differentiates the generated and ground-truth SQL queries. We develop techniques to extend existing verifiers to support a richer SQL subset relevant to Text-to-SQL. A performance evaluation of ten Text-to-SQL methods on the high-profile BIRD dataset suggests that test-based methods can often overlook differences between the generated query and the ground-truth. Further analysis of the verification results reveals a more complex picture of the current Text-to-SQL evaluation.

Text-to-SQLFormal Equivalence CheckingSatisfiability modulo Theories
BibTeX
@inproceedings{
klopfenstein2026spotit,
title={SpotIt: Evaluating Text-to-{SQL} Evaluation with Formal Verification},
author={Rocky Klopfenstein and YANG HE and Andrew Tremante and Yuepeng Wang and Nina Narodytska and Haoze Wu},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={https://openreview.net/forum?id=iMkvR2ICSE}
}
SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verification · ICLR 2026