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
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale 引用了 RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale 引用了 GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale 引用了 TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale 引用了 ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systems
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale 引用了 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 引用了 OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale
- SQL-Factory: A Multi-Agent Framework for High-Quality and Large-Scale SQL Generation 引用了 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 引用了 CodeS: Towards Building Open-source Language Models for Text-to-SQL
- GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing 引用了 RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
- GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing 引用了 TaPas: Weakly Supervised Table Parsing via Pre-training
- GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing 引用了 TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
- TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data 引用了 RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
- DuSQL: A Large-Scale and Pragmatic Chinese Text-to-SQL Dataset 引用了 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 引用了 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 引用了 GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
- CodeS: Towards Building Open-source Language Models for Text-to-SQL 引用了 RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
- CodeS: Towards Building Open-source Language Models for Text-to-SQL 引用了 GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
- CodeS: Towards Building Open-source Language Models for Text-to-SQL 引用了 TaPas: Weakly Supervised Table Parsing via Pre-training
- CodeS: Towards Building Open-source Language Models for Text-to-SQL 引用了 TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
- CodeS: Towards Building Open-source Language Models for Text-to-SQL 引用了 ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systems
引用它的顶会 Paper9
- CodeS: Towards Building Open-source Language Models for Text-to-SQLHaoyang Li, Jing Zhang, Hanbing Liu, Ju Fan 等SIGMOD 2024 · 124 次引用
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at ScaleHaoyang Li, Shang Wu, Xiaokang Zhang, Xinmei Huang 等VLDB 2025 · 90 次引用
- ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL SystemsYi Zhang, Jan Deriu, George Katsogiannis-Meimarakis, Catherine Kosten 等VLDB 2024 · 65 次引用
- Improving Neural Cross-Lingual Abstractive Summarization via Employing Optimal Transport Distance for Knowledge DistillationThong Thanh Nguyen, Anh Tuan LuuAAAI 2022 · 46 次引用
- SQL-Factory: A Multi-Agent Framework for High-Quality and Large-Scale SQL GenerationJiahui Li, Tongwang Wu, Yuren Mao, Yunjun Gao 等VLDB 2026 · 7 次引用
它引用的 Paper5
- TaBERT: Pretraining for Joint Understanding of Textual and Tabular DataPengcheng Yin, Graham Neubig, Wen-tau Yih, Sebastian RiedelACL 2020 · 417 次引用
- GraPPa: Grammar-Augmented Pre-Training for Table Semantic ParsingTao Yu, Chien-Sheng Wu, Xi Victoria Lin, Bailin Wang 等ICLR 2021 · 59 次引用
- DuSQL: A Large-Scale and Pragmatic Chinese Text-to-SQL DatasetLijie Wang, Ao Zhang, Kun Wu, Ke Sun 等EMNLP 2020 · 40 次引用
- RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL ParsersBailin Wang, Richard Shin, Xiaodong Liu, Oleksandr Polozov 等ACL 2020 · 39 次引用
- TaPas: Weakly Supervised Table Parsing via Pre-trainingJonathan Herzig, Pawel Krzysztof Nowak, Thomas Müller, Francesco Piccinno 等ACL 2020 · 19 次引用
相关 Paper
- Importance of Synthesizing High-quality Data for Text-to-SQL ParsingYiqun Hu, Yiyun Zhao, Jiarong Jiang, Wuwei Lan 等ACL Findings 2023 · 24 次引用
- Diverse Parallel Data Synthesis for Cross-Database Adaptation of Text-to-SQL ParsersAbhijeet Awasthi, Ashutosh Sathe, Sunita SarawagiEMNLP 2022 · 7 次引用
- Text2sql-Flow: a Robust Sql-Aware Data Augmentation Framework for Text-To-SqlQifeng Cai, Hao Liang, Chang Xu, Tao Xie 等ICDE 2026 · 1 次引用
- Exploring Schema Generalizability of Text-to-SQLJieyu Li, Lu Chen, Ruisheng Cao, Su Zhu 等ACL Findings 2023 · 3 次引用
- Towards Generalizable and Robust Text-to-SQL ParsingChang Gao, Bowen Li, Wenxuan Zhang, Wai Lam 等EMNLP Findings 2022 · 9 次引用
