Lune

EMNLP2021Top-tier venue

Data Augmentation with Hierarchical SQL-to-Question Generation for Cross-domain Text-to-SQL Parsing

Kun Wu, Lijie Wang, Zhenghua Li, Ao Zhang, Xinyan Xiao, Hua Wu, Min Zhang, Haifeng Wang

Abstract

Data augmentation has attracted a lot of research attention in the deep learning era for its ability in alleviating data sparseness. The lack of labeled data for unseen evaluation databases is exactly the major challenge for cross-domain text-to-SQL parsing. Previous works either require human intervention to guarantee the quality of generated data, or fail to handle complex SQL queries. This paper presents a simple yet effective data augmentation framework. First, given a database, we automatically produce a large number of SQL queries based on an abstract syntax tree grammar. For better distribution matching, we require that at least 80% of SQL patterns in the training data are covered by generated queries. Second, we propose a hierarchical SQL-to-question generation model to obtain high-quality natural language questions, which is the major contribution of this work. Finally, we design a simple sampling strategy that can greatly improve training efficiency given large amounts of generated data. Experiments on three cross-domain datasets, i.e., WikiSQL and Spider in English, and DuSQL in Chinese, show that our proposed data augmentation framework can consistently improve performance over strong baselines, and the hierarchical generation component is the key for the improvement.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
  • OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
  • OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
  • OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systems
  • OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites CodeS: Towards Building Open-source Language Models for Text-to-SQL
  • SQL-Factory: A Multi-Agent Framework for High-Quality and Large-Scale SQL Generation cites OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale
  • SQL-Factory: A Multi-Agent Framework for High-Quality and Large-Scale SQL Generation cites ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systems
  • SQL-Factory: A Multi-Agent Framework for High-Quality and Large-Scale SQL Generation cites CodeS: Towards Building Open-source Language Models for Text-to-SQL
  • GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing cites RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
  • GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing cites TaPas: Weakly Supervised Table Parsing via Pre-training
  • GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing cites TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
  • TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data cites RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
  • DuSQL: A Large-Scale and Pragmatic Chinese Text-to-SQL Dataset cites RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
  • ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systems cites RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
  • ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systems cites GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
  • CodeS: Towards Building Open-source Language Models for Text-to-SQL cites RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
  • CodeS: Towards Building Open-source Language Models for Text-to-SQL cites GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
  • CodeS: Towards Building Open-source Language Models for Text-to-SQL cites TaPas: Weakly Supervised Table Parsing via Pre-training
  • CodeS: Towards Building Open-source Language Models for Text-to-SQL cites TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
  • CodeS: Towards Building Open-source Language Models for Text-to-SQL cites ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systems
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. CodeS: Towards Building Open-source Language Models for Text-to-SQLHaoyang Li, Jing Zhang, Hanbing Liu, Ju Fan et al.SIGMOD 2024 · 124 citations
  2. OmniSQL: Synthesizing High-quality Text-to-SQL Data at ScaleHaoyang Li, Shang Wu, Xiaokang Zhang, Xinmei Huang et al.VLDB 2025 · 90 citations
  3. ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL SystemsYi Zhang, Jan Deriu, George Katsogiannis-Meimarakis, Catherine Kosten et al.VLDB 2024 · 65 citations
  4. Improving Neural Cross-Lingual Abstractive Summarization via Employing Optimal Transport Distance for Knowledge DistillationThong Thanh Nguyen, Anh Tuan LuuAAAI 2022 · 46 citations
  5. SQL-Factory: A Multi-Agent Framework for High-Quality and Large-Scale SQL GenerationJiahui Li, Tongwang Wu, Yuren Mao, Yunjun Gao et al.VLDB 2026 · 7 citations

Builds on5

  1. TaBERT: Pretraining for Joint Understanding of Textual and Tabular DataPengcheng Yin, Graham Neubig, Wen-tau Yih, Sebastian RiedelACL 2020 · 417 citations
  2. GraPPa: Grammar-Augmented Pre-Training for Table Semantic ParsingTao Yu, Chien-Sheng Wu, Xi Victoria Lin, Bailin Wang et al.ICLR 2021 · 59 citations
  3. DuSQL: A Large-Scale and Pragmatic Chinese Text-to-SQL DatasetLijie Wang, Ao Zhang, Kun Wu, Ke Sun et al.EMNLP 2020 · 40 citations
  4. RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL ParsersBailin Wang, Richard Shin, Xiaodong Liu, Oleksandr Polozov et al.ACL 2020 · 39 citations
  5. TaPas: Weakly Supervised Table Parsing via Pre-trainingJonathan Herzig, Pawel Krzysztof Nowak, Thomas Müller, Francesco Piccinno et al.ACL 2020 · 19 citations

Related papers

  1. Importance of Synthesizing High-quality Data for Text-to-SQL ParsingYiqun Hu, Yiyun Zhao, Jiarong Jiang, Wuwei Lan et al.ACL Findings 2023 · 24 citations
  2. Diverse Parallel Data Synthesis for Cross-Database Adaptation of Text-to-SQL ParsersAbhijeet Awasthi, Ashutosh Sathe, Sunita SarawagiEMNLP 2022 · 7 citations
  3. Text2sql-Flow: a Robust Sql-Aware Data Augmentation Framework for Text-To-SqlQifeng Cai, Hao Liang, Chang Xu, Tao Xie et al.ICDE 2026 · 1 citation
  4. Exploring Schema Generalizability of Text-to-SQLJieyu Li, Lu Chen, Ruisheng Cao, Su Zhu et al.ACL Findings 2023 · 3 citations
  5. Towards Generalizable and Robust Text-to-SQL ParsingChang Gao, Bowen Li, Wenxuan Zhang, Wai Lam et al.EMNLP Findings 2022 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines