QDA-SQL: Questions Enhanced Dialogue Augmentation for Multi-Turn Text-to-SQL

Yinggang Sun, Ziming Guo, Haining Yu, Chuanyi Liu, Xiang Li +3 more
6/15/2024
cs.AIcs.DBcs.IR

Official code: mcxiaoxiao/QDA-SQL (15 stars, MIT, last commit 2026-01-31).

Abstract

Fine-tuning large language models (LLMs) for specific domain tasks has achieved great success in Text-to-SQL tasks. However, these fine-tuned models often face challenges with multi-turn Text-to-SQL tasks caused by ambiguous or unanswerable questions. It is desired to enhance LLMs to handle multiple types of questions in multi-turn Text-to-SQL tasks. To address this, we propose a novel data augmentation method, called QDA-SQL, which generates multiple types of multi-turn Q\&A pairs using LLMs. In QDA-SQL, we introduce a method incorporating validation and correction mechanisms to handle complex multi-turn Text-to-SQL tasks. Experimental results demonstrate that QDA-SQL enables fine-tuned models to exhibit higher performance on SQL statement accuracy and enhances their ability to handle complex, unanswerable questions in multi-turn Text-to-SQL tasks. The generation script and test set are released at https://github.com/mcxiaoxiao/QDA-SQL

View on arXivView PDF

Code Implementations(1)

mcxiaoxiao/QDA-SQLOfficial100%
MIT

Efficiently creating diverse multi-turn Text-to-SQL training samples in just 3 steps! 🚀

151Python, Jupyter NotebookJun 11, 20248 months agoMIT
augmentationllmnlptext-to-sql

Cite this paper

@article{sun2024qdasql,
  title  = {QDA-SQL: Questions Enhanced Dialogue Augmentation for Multi-Turn Text-to-SQL},
  author = {Yinggang Sun and Ziming Guo and Haining Yu and Chuanyi Liu and Xiang Li and Bingxuan Wang and Xiangzhan Yu and Tiancheng Zhao},
  year   = {2024},
  eprint = {2406.10593},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.10593v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.10593.svg)](https://codeofpaper.com/paper/2406.10593)

Discussion