Enhancing LLM Fine-tuning for Text-to-SQLs by SQL Quality Measurement

Shouvon Sarker, Xishuang Dong, Xiangfang Li, Lijun Qian
10/2/2024
cs.DBcs.AIcs.SE

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Text-to-SQLs enables non-expert users to effortlessly retrieve desired information from relational databases using natural language queries. While recent advancements, particularly with Large Language Models (LLMs) like GPT and T5, have shown impressive performance on large-scale benchmarks such as BIRD, current state-of-the-art (SOTA) LLM-based Text-to-SQLs models often require significant efforts to develop auxiliary tools like SQL classifiers to achieve high performance. This paper proposed a novel approach that only needs SQL Quality Measurement to enhance LLMs-based Text-to-SQLs performance. It establishes a SQL quality evaluation mechanism to assess the generated SQL queries against predefined criteria and actual database responses. This feedback loop enables continuous learning and refinement of model outputs based on both syntactic correctness and semantic accuracy. The proposed method undergoes comprehensive validation on the BIRD benchmark, assessing Execution Accuracy (EX) and Valid Efficiency Score (VES) across various Text-to-SQLs difficulty levels. Experimental results reveal competitive performance in both EX and VES compared to SOTA models like GPT4 and T5.

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. 3 weaker matches are hidden by default — 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{sarker2024enhancing,
  title  = {Enhancing LLM Fine-tuning for Text-to-SQLs by SQL Quality Measurement},
  author = {Shouvon Sarker and Xishuang Dong and Xiangfang Li and Lijun Qian},
  year   = {2024},
  eprint = {2410.01869},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.01869v1}
}

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

Discussion