arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.02840cs.CLcs.AI
收藏

基于精简测试集的Text-to-SQL语义评估

Semantic Evaluation for Text-to-SQL with Distilled Test Suites

University of California, Berkeley(加州大学伯克利分校);Yale University(耶鲁大学)

Ruiqi Zhong, Tao Yu, Dan Klein

摘要:

我们建议测试套件的准确性,以近似的文本到SQL模型的语义准确性。我们的方法从大量随机生成的数据库中提取一个小的数据库测试套件,该数据库实现了高代码覆盖率的黄金查询。在评估时,它计算预测的查询在提取的测试套件上的表示准确度,从而有效地计算语义准确度的严格上限。我们使用我们提出的方法来评估提交给Spider领导委员会的21个模型,并手动验证我们的方法在100个示例中始终正确。相比之下,当前的Spider度量导致平均2.5%的假阴性率,在最坏的情况下为8.1%,这表明需要测试套件的准确性。我们的实现,以及11个Text-to-SQL数据集的测试套件,是公开的。

英文摘要:

We propose test suite accuracy to approximate semantic accuracy for Text-to-SQL models. Our method distills a small test suite of databases that achieves high code coverage for the gold query from a large number of randomly generated databases. At evaluation time, it computes the denotation accuracy of the predicted queries on the distilled test suite, hence calculating a tight upper-bound for semantic accuracy efficiently. We use our proposed method to evaluate 21 models submitted to the Spider leader board and manually verify that our method is always correct on 100 examples. In contrast, the current Spider metric leads to a 2.5% false negative rate on average and 8.1% in the worst case, indicating that test suite accuracy is needed. Our implementation, along with distilled test suites for eleven Text-to-SQL datasets, is publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑