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

跨领域文本到SQL的选择性演示

Selective Demonstrations for Cross-domain Text-to-SQL

The Ohio State University(俄亥俄州立大学)

Shuaichen Chang, Eric Fosler-Lussier

AI总结:

本文提出ODIS框架,通过结合领域外与合成领域内示例构建演示,提升跨领域文本到SQL性能,在两个数据集上执行准确率分别提升1.1和11.8个百分点。

摘要:

大型语言模型(LLMs)结合上下文学习已在跨领域文本到SQL任务中展现出令人印象深刻的泛化能力,无需使用领域内标注。然而,研究发现,加入领域内演示示例能大幅提升LLMs的性能。本文深入探讨了领域内示例中促进性能提升的关键因素,并探索是否能在不依赖领域内标注的情况下利用这些益处。基于我们的发现,我们提出了一种演示选择框架ODIS,该框架利用领域外示例和合成生成的领域内示例来构建演示。通过从混合来源检索演示,ODIS充分利用了两者的优势,与依赖单一数据源的基线方法相比,展示了其有效性。此外,ODIS在两个跨领域文本到SQL数据集上超越了最先进的方法,执行准确率分别提升了1.1和11.8个百分点。

英文摘要:

Large language models (LLMs) with in-context learning have demonstrated impressive generalization capabilities in the cross-domain text-to-SQL task, without the use of in-domain annotations. However, incorporating in-domain demonstration examples has been found to greatly enhance LLMs' performance. In this paper, we delve into the key factors within in-domain examples that contribute to the improvement and explore whether we can harness these benefits without relying on in-domain annotations. Based on our findings, we propose a demonstration selection framework ODIS which utilizes both out-of-domain examples and synthetically generated in-domain examples to construct demonstrations. By retrieving demonstrations from hybrid sources, ODIS leverages the advantages of both, showcasing its effectiveness compared to baseline methods that rely on a single data source. Furthermore, ODIS outperforms state-of-the-art approaches on two cross-domain text-to-SQL datasets, with improvements of 1.1 and 11.8 points in execution accuracy, respectively.

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

↑