DIN-SQL: 带自校正的Text-to-SQL分解式上下文学习
DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
AI总结:
针对text-to-SQL任务中LLM提示方法性能不及微调模型的问题,提出DIN-SQL分解式上下文学习方法,通过拆分子问题提升性能,在Spider和BIRD基准上刷新SOTA。
摘要:
目前在Spider等数据集上评估的具有挑战性的text-to-SQL任务中,微调模型的性能与使用大语言模型(LLM)的提示方法之间存在显著差距。为提升LLM在推理过程中的表现,我们研究了将任务分解为更小的子任务如何能发挥效用。具体而言,我们证明将生成问题拆解为多个子问题,并将这些子问题的解输入LLM,是一种能显著提升其性能的有效方法。我们针对三个LLM开展的实验表明,该方法持续将它们的简单少样本性能提升了约10%,推动LLM的准确率逼近甚至超越当前最优水平(SOTA)。在Spider的留存测试集上,此前执行准确率的SOTA为79.9,而截至本文撰写时,使用我们的方法得到的新SOTA为85.3。我们采用上下文学习的方法比许多经过大量微调的模型至少高出5%。此外,在BIRD基准上评估时,我们的方法取得了55.9%的执行准确率,在其留存测试集上创下了新的SOTA。
英文摘要:
There is currently a significant gap between the performance of fine-tuned models and prompting approaches using Large Language Models (LLMs) on the challenging task of text-to-SQL, as evaluated on datasets such as Spider. To improve the performance of LLMs in the reasoning process, we study how decomposing the task into smaller sub-tasks can be effective. In particular, we show that breaking down the generation problem into sub-problems and feeding the solutions of those sub-problems into LLMs can be an effective approach for significantly improving their performance. Our experiments with three LLMs show that this approach consistently improves their simple few-shot performance by roughly 10%, pushing the accuracy of LLMs towards SOTA or surpassing it. On the holdout test set of Spider, the SOTA, in terms of execution accuracy, was 79.9 and the new SOTA at the time of this writing using our approach is 85.3. Our approach with in-context learning beats many heavily fine-tuned models by at least 5%. Additionally, when evaluated on the BIRD benchmark, our approach achieved an execution accuracy of 55.9%, setting a new SOTA on its holdout test set.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。