Fundamental Challenges in Evaluating Text2SQL Solutions and Detecting Their Limitations
Cedric Renggli, Ihab F. Ilyas, Theodoros Rekatsinas
TL;DR
This paper tackles fundamental challenges in evaluating Text2SQL systems, arguing that end-to-end performance hinges not only on model quality but also on data quality, ground-truth labeling, and the design of evaluation metrics. It introduces a unified taxonomy separating prediction, data, and metric limitations, and provides concrete mitigation ideas and open challenges grounded in state-of-the-art benchmarks like Spider. The authors discuss data-quality issues such as NL ambiguity and schema information loss, as well as the inherent difficulty of testing SQL equivalence with semantic and execution-based match functions. They advocate for more robust evaluation paradigms, including multiple GT variants, verification steps, and interactive or multi-turn approaches to handle ambiguity, alongside new benchmarks that cover unanswerable and multi-answer cases. Overall, the work aims to make Text2SQL benchmarks more reliable and informative for real-world deployment by systematically diagnosing where current evaluations misrepresent system capabilities and proposing principled paths forward.
Abstract
In this work, we dive into the fundamental challenges of evaluating Text2SQL solutions and highlight potential failure causes and the potential risks of relying on aggregate metrics in existing benchmarks. We identify two largely unaddressed limitations in current open benchmarks: (1) data quality issues in the evaluation data, mainly attributed to the lack of capturing the probabilistic nature of translating a natural language description into a structured query (e.g., NL ambiguity), and (2) the bias introduced by using different match functions as approximations for SQL equivalence. To put both limitations into context, we propose a unified taxonomy of all Text2SQL limitations that can lead to both prediction and evaluation errors. We then motivate the taxonomy by providing a survey of Text2SQL limitations using state-of-the-art Text2SQL solutions and benchmarks. We describe the causes of limitations with real-world examples and propose potential mitigation solutions for each category in the taxonomy. We conclude by highlighting the open challenges encountered when deploying such mitigation strategies or attempting to automatically apply the taxonomy.
