Synthesizing Text-to-SQL Data from Weak and Strong LLMs

Jiaxi Yang, Binyuan Hui, Min Yang, Jian Yang, Junyang Lin +1 more
8/6/2024
cs.CL

No official code found. Best implementation: Yangjiaxi/Sense (66 stars, last commit 2026-03-06).

Abstract

The capability gap between open-source and closed-source large language models (LLMs) remains a challenge in text-to-SQL tasks. In this paper, we introduce a synthetic data approach that combines data produced by larger, more powerful models (strong models) with error information data generated by smaller, not well-aligned models (weak models). The method not only enhances the domain generalization of text-to-SQL models but also explores the potential of error data supervision through preference learning. Furthermore, we employ the synthetic data approach for instruction tuning on open-source LLMs, resulting SENSE, a specialized text-to-SQL model. The effectiveness of SENSE is demonstrated through state-of-the-art results on the SPIDER and BIRD benchmarks, bridging the performance gap between open-source models and methods prompted by closed-source models.

View on arXivView PDF

Code Implementations(1)

Yangjiaxi/SenseCommunity65%

[ACL24] Official repo for "Synthesizing Text-to-SQL Data from Weak and Strong LLMs"

662Shell, PythonJun 2, 20247 months ago

Similar Papers

Cite this paper

@article{yang2024synthesizing,
  title  = {Synthesizing Text-to-SQL Data from Weak and Strong LLMs},
  author = {Jiaxi Yang and Binyuan Hui and Min Yang and Jian Yang and Junyang Lin and Chang Zhou},
  year   = {2024},
  eprint = {2408.03256},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.03256v1}
}

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

Discussion