One-Shot Learning for Text-to-SQL Generation
Not on the map. Why?
Abstract (arXiv)
Most deep learning approaches for text-to-SQL generation are limited to the WikiSQL dataset, which only supports very simple queries. Recently, template-based and sequence-to-sequence approaches were proposed to support complex queries, which contain join queries, nested queries, and other types. However, Finegan-Dollak et al. (2018) demonstrated that both the approaches lack the ability to generate SQL of unseen templates. In this paper, we propose a template-based one-shot learning model for the text-to-SQL generation so that the model can generate SQL of an untrained template based on a single example. First, we classify the SQL template using the Matching Network that is augmented by our novel architecture Candidate Search Network. Then, we fill the variable slots in the predicted template using the Pointer Network. We show that our model outperforms state-of-the-art approaches for various text-to-SQL datasets in two aspects: 1) the SQL generation accuracy for the trained templates, and 2) the adaptability to the unseen SQL templates based on a single example without any additional training.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 26 Apr 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 2.
5 papers.
- 2021Finding needles in a haystack: Sampling Structurally-diverse Training Sets from Synthetic Data for Compositional Generalizationcited by 27
- 2022Meta-Learning a Cross-lingual Manifold for Semantic Parsingcited by 11
- 2021Few-Shot Semantic Parsing for New Predicatescited by 7
- 2023Compositional Generalization for Multi-label Text Classification: A Data-Augmentation Approachcited by 7
- 2023Semantic Parsing in Limited Resource Conditionscited by 0
- 2023Compositional Generalization for Multi-label Text Classification: A Data-Augmentation Approach18 Dec 2023
- 2023Semantic Parsing in Limited Resource Conditions14 Sep 2023
- 2022Meta-Learning a Cross-lingual Manifold for Semantic Parsing26 Sep 2022
- 2021Finding needles in a haystack: Sampling Structurally-diverse Training Sets from Synthetic Data for Compositional Generalization6 Sep 2021
- 2021Few-Shot Semantic Parsing for New Predicates26 Jan 2021