Selective Demonstrations for Cross-domain Text-to-SQL
Chang, Shuaichen, Fosler-Lussier, Eric
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Oct-10-2023
- Country:
- Asia > China
- Guangxi Province > Nanning (0.04)
- Europe
- France (0.04)
- Netherlands (0.04)
- North America > United States
- Alabama (0.04)
- Alaska (0.04)
- Arizona (0.04)
- California > Los Angeles County
- Los Angeles (0.04)
- Illinois > Cook County
- Chicago (0.04)
- New York (0.04)
- Ohio (0.04)
- Asia > China
- Genre:
- Research Report
- New Finding (0.48)
- Promising Solution (0.66)
- Research Report
- Industry:
- Education (0.68)
- Technology: