用形式化验证发现传统Text-to-SQL评测遗漏的查询差异
SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verification
- 引入SpotIt验证引擎,通过构造区分性数据库检测生成与真实SQL差异
- 在BIRD数据集上测试10种方法,发现90%以上测试结果无法反映真实差异
- 适用于追求评测严谨性的研究人员和高可靠性系统开发者
社区驱动的Text-to-SQL评估平台在追踪该领域进展中起关键作用。当前评估主要基于测试集,比较生成SQL与人工标注答案在静态数据库上的执行结果。这种方法存在乐观偏差:两个不同查询可能在测试数据库上产生相同输出。本文提出新评估流程SpotIt,利用形式化有界等价验证引擎主动寻找能区分生成查询与真实查询的数据库。我们扩展了现有验证器以支持更丰富的、与Text-to-SQL相关的SQL子集。对十种Text-to-SQL方法在知名BIRD数据集上的评估显示,基于测试的方法常忽略生成查询与真实查询之间的差异。进一步分析揭示了当前Text-to-SQL评估更为复杂的现实。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。