arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.18538cs.CLcs.DBcs.LG
收藏

评估跨领域文本到SQL模型与基准

Evaluating Cross-Domain Text-to-SQL Models and Benchmarks

University of Alberta(阿尔伯塔大学)

Mohammadreza Pourreza, Davood Rafiei

AI总结:

本文通过人工评估和等价改写重新评估跨领域文本到SQL基准及顶尖模型,发现完美性能不可行、模型真实性能被低估,且GPT4模型在Spider上超越黄金标准参考查询,强调独立评估的重要性。

摘要:

文本到SQL基准在评估该领域的进展以及不同模型的排名方面发挥着关键作用。然而,由于多种原因,将模型生成的SQL查询与基准中的参考SQL查询进行精确匹配会失败,这些原因包括自然语言查询说明不足、模型生成查询和参考查询中固有的假设,以及在某些条件下SQL输出的非确定性。在本文中,我们对几个著名的跨领域文本到SQL基准进行了广泛研究,并通过人工评估SQL查询以及将其改写为等价表达式,重新评估了这些基准中一些表现最好的模型。我们的评估表明,由于可以从提供的样本中得出多种解释,在这些基准上达到完美性能是不可行的。此外,我们发现模型的真实性能被低估了,并且在重新评估后它们的相对性能发生了变化。最值得注意的是,我们的评估揭示了一个令人惊讶的发现:在我们的人工评估中,一个近期基于GPT4的模型超越了Spider基准中的黄金标准参考查询。这一发现强调了谨慎解释基准评估的重要性,同时也承认了额外的独立评估在推动该领域进步中的关键作用。

英文摘要:

Text-to-SQL benchmarks play a crucial role in evaluating the progress made in the field and the ranking of different models. However, accurately matching a model-generated SQL query to a reference SQL query in a benchmark fails for various reasons, such as underspecified natural language queries, inherent assumptions in both model-generated and reference queries, and the non-deterministic nature of SQL output under certain conditions. In this paper, we conduct an extensive study of several prominent cross-domain text-to-SQL benchmarks and re-evaluate some of the top-performing models within these benchmarks, by both manually evaluating the SQL queries and rewriting them in equivalent expressions. Our evaluation reveals that attaining a perfect performance on these benchmarks is unfeasible due to the multiple interpretations that can be derived from the provided samples. Furthermore, we find that the true performance of the models is underestimated and their relative performance changes after a re-evaluation. Most notably, our evaluation reveals a surprising discovery: a recent GPT4-based model surpasses the gold standard reference queries in the Spider benchmark in our human evaluation. This finding highlights the importance of interpreting benchmark evaluations cautiously, while also acknowledging the critical role of additional independent evaluations in driving advancements in the field.

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

↑