Exploring Large Language Models for Text-to-SQL Error Correction with LoRA Fine-Tuning

The advent of Large Language Models (LLMs) has significantly advanced Text-to-SQL tasks in recent years. However, these models still face considerable challenges when applied in practice, such as hallucinations inherent in LLMs and the rigid syntactic structure of SQL, which often lead to the generation of erroneous SQL queries. Existing approaches typically rely on older models or simplistic LLM prompts for direct error correction, which is a relatively basic strategy. In this paper, we explore the performance of large models in the Text-to-SQL error correction task, focusing on the combination of LoRA fine-tuning and retrieval-augmented methods. Experimental results demonstrate that our approach achieves state-of-the-art (SOTA) performance on the Splash benchmark, outperforming existing methods and providing more accurate error corrections for SQL generation. Notably, despite using a 7B-parameter model, our method surpasses the performance of much larger 72B-scale models, highlighting the efficiency and effectiveness of our approach.

Authors

Institutions

Publication Details

Published
2025-03-21
DOI
https://doi.org/10.1109/icaace65325.2025.11018984
Citations
2
Primary Topic
Scientific Computing and Data Management
Type
article
Field-Weighted Citation Impact
8.34
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Exploring Large Language Models for Text-to-SQL Error Correction with LoRA Fine-Tuning

Guangxin Jiang, Chao Ma
2 citations
Scientific Computing and Data Management
8.34
article

Exploring Large Language Models for Text-to-SQL Error Correction with LoRA Fine-Tuning

Guangxin Jiang, Chao Ma
article en
2 citations

Abstract

The advent of Large Language Models (LLMs) has significantly advanced Text-to-SQL tasks in recent years. However, these models still face considerable challenges when applied in practice, such as hallucinations inherent in LLMs and the rigid syntactic structure of SQL, which often lead to the generation of erroneous SQL queries. Existing approaches typically rely on older models or simplistic LLM prompts for direct error correction, which is a relatively basic strategy. In this paper, we explore the performance of large models in the Text-to-SQL error correction task, focusing on the combination of LoRA fine-tuning and retrieval-augmented methods. Experimental results demonstrate that our approach achieves state-of-the-art (SOTA) performance on the Splash benchmark, outperforming existing methods and providing more accurate error corrections for SQL generation. Notably, despite using a 7B-parameter model, our method surpasses the performance of much larger 72B-scale models, highlighting the efficiency and effectiveness of our approach.

Liaoning Shihua University (CN)
Quality Education
Openalex Percentile: Top 3%
Scientific Computing and Data Management
8.34
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.