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

ChatGPT的zero-shot Text-to-SQL能力的综合评估

A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capability

Tsinghua University(清华大学);University of Illinois at Chicago(伊利诺伊大学芝加哥分校)

Aiwei Liu, Xuming Hu, Lijie Wen, Philip S. Yu

摘要:

本文首次全面分析了ChatGPT的文本到SQL的能力。鉴于最近出现的大规模会话语言模型ChatGPT及其在会话能力和代码生成方面令人印象深刻的能力,我们试图评估其文本到SQL的性能。我们在12个具有不同语言、设置或场景的基准数据集上进行了实验,结果表明ChatGPT具有强大的文本到SQL的能力。虽然与目前最先进的(SOTA)模型性能仍有差距,但考虑到实验是在zero-shot场景下进行的,ChatGPT的表现仍然令人印象深刻。值得注意的是,在ADVETA(RPL)场景中,zero-shot ChatGPT甚至比需要对Spider数据集进行微调的SOTA模型的性能高出4.1%,这表明了其在实际应用中的潜力。为了支持相关领域的进一步研究,我们在https://github.com/THU-BPM/chatgpt-sql上公开了ChatGPT生成的数据。

英文摘要:

This paper presents the first comprehensive analysis of ChatGPT's Text-to-SQL ability. Given the recent emergence of large-scale conversational language model ChatGPT and its impressive capabilities in both conversational abilities and code generation, we sought to evaluate its Text-to-SQL performance. We conducted experiments on 12 benchmark datasets with different languages, settings, or scenarios, and the results demonstrate that ChatGPT has strong text-to-SQL abilities. Although there is still a gap from the current state-of-the-art (SOTA) model performance, considering that the experiment was conducted in a zero-shot scenario, ChatGPT's performance is still impressive. Notably, in the ADVETA (RPL) scenario, the zero-shot ChatGPT even outperforms the SOTA model that requires fine-tuning on the Spider dataset by 4.1\%, demonstrating its potential for use in practical applications. To support further research in related fields, we have made the data generated by ChatGPT publicly available at https://github.com/THU-BPM/chatgpt-sql.

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

↑