arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.08349cs.DBcs.AIcs.CL
收藏

基于真实用户查询评估文本转SQL系统的数据模型鲁棒性

Evaluating the Data Model Robustness of Text-to-SQL Systems Based on Real User Queries

Zurich University of Applied Sciences(苏黎世应用科技大学)

Jonathan Fürst, Catherine Kosten, Farhad Nooralahzadeh, Yi Zhang, Kurt Stockinger

AI总结:

针对文本转SQL系统在真实场景中对不同数据模型鲁棒性研究的缺失,本文基于FootballDB真实部署数据评估其性能,量化多因素影响并提出新基准,填补了该领域空白。

摘要:

文本转SQL系统(也称为自然语言转SQL系统)已成为弥合用户能力与基于SQL的数据访问之间差距的日益流行的解决方案。这些系统将自然语言的用户请求转换为针对特定数据库的有效SQL语句。近年来的文本转SQL系统受益于基于Transformer的语言模型的快速改进。然而,尽管集成此类模型的文本转SQL系统在通常为合成的基准数据集上不断取得新高分,但在真实、现实场景中对不同数据模型的鲁棒性的系统性探索却明显缺失。本文基于一个专注于文本转SQL接口的多年国际项目,首次对文本转SQL系统在实际应用中的数据模型鲁棒性进行了深入评估。我们的评估基于FootballDB的真实部署——该系统在2022年FIFA世界杯期间部署了9个月,期间约有6000个自然语言问题被提出并执行。我们所有的数据均基于用户向系统实时提出的真实问题。我们手动标记并翻译了这些问题的子集,针对三种不同的数据模型进行评估。对于每个数据模型,我们探索了代表性文本转SQL系统和语言模型的性能。我们进一步量化了训练数据规模、预处理和后处理步骤以及语言模型推理时间的影响。我们的综合评估揭示了真实世界文本转SQL系统的设计选择及其对从研究原型向实际部署过渡的影响。最后,我们向社区提供了一个新的基准数据集,这是首个能够针对同一数据集评估不同数据模型的基准,且在查询复杂度方面显著高于大多数先前的数据集。

英文摘要:

Text-to-SQL systems (also known as NL-to-SQL systems) have become an increasingly popular solution for bridging the gap between user capabilities and SQL-based data access. These systems translate user requests in natural language to valid SQL statements for a specific database. Recent Text-to-SQL systems have benefited from the rapid improvement of transformer-based language models. However, while Text-to-SQL systems that incorporate such models continuously reach new high scores on -- often synthetic -- benchmark datasets, a systematic exploration of their robustness towards different data models in a real-world, realistic scenario is notably missing. This paper provides the first in-depth evaluation of the data model robustness of Text-to-SQL systems in practice based on a multi-year international project focused on Text-to-SQL interfaces. Our evaluation is based on a real-world deployment of FootballDB, a system that was deployed over a 9 month period in the context of the FIFA World Cup 2022, during which about 6K natural language questions were asked and executed. All of our data is based on real user questions that were asked live to the system. We manually labeled and translated a subset of these questions for three different data models. For each data model, we explore the performance of representative Text-to-SQL systems and language models. We further quantify the impact of training data size, pre-, and post-processing steps as well as language model inference time. Our comprehensive evaluation sheds light on the design choices of real-world Text-to-SQL systems and their impact on moving from research prototypes to real deployments. Last, we provide a new benchmark dataset to the community, which is the first to enable the evaluation of different data models for the same dataset and is substantially more challenging than most previous datasets in terms of query complexity.

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

↑