REFORMER: A ChatGPT-Driven Data Synthesis Framework Elevating Text-to-SQL Models

Shenyang Liu, Saleh Almohaimeed, Liqiang Wang
4/6/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

The existing Text-to-SQL models suffer from a shortage of training data, inhibiting their ability to fully facilitate the applications of SQL queries in new domains. To address this challenge, various data synthesis techniques have been employed to generate more diverse and higher quality data. In this paper, we propose REFORMER, a framework that leverages ChatGPT's prowess without the need for additional training, to facilitate the synthesis of (question, SQL query) pairs tailored to new domains. Our data augmentation approach is based on a "retrieve-and-edit" method, where we generate new questions by filling masked question using explanation of SQL queries with the help of ChatGPT. Furthermore, we demonstrate that cycle consistency remains a valuable method of validation when applied appropriately. Our experimental results show that REFORMER consistently outperforms previous data augmentation methods. To further investigate the power of ChatGPT and create a general data augmentation method, we also generate the new data by paraphrasing the question in the dataset and by paraphrasing the description of a new SQL query that is generated by ChatGPT as well. Our results affirm that paraphrasing questions generated by ChatGPT help augment the original data.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025reformer,
  title  = {REFORMER: A ChatGPT-Driven Data Synthesis Framework Elevating Text-to-SQL Models},
  author = {Shenyang Liu and Saleh Almohaimeed and Liqiang Wang},
  year   = {2025},
  eprint = {2504.04363},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.04363v1}
}

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/2504.04363.svg)](https://codeofpaper.com/paper/2504.04363)

Discussion