Smaller Large Language Models for Text-To-Sql: Performance Analysis and Optimal Performance

Text-to-SQL aims to transform natural language queries into executable SQL, a task in which Large Language Models (LLMs) have demonstrated significant success. However, their extremely high computational demands often make practical implementation challenging. This study investigates the performance of smaller models, ranging from 0.5B to 3.8 B parameters, after fine-tuning with Parameter-Efficient Fine-Tuning (PEFT) techniques, namely LoRA and QLoRA. Experimental results indicate that such small models can achieve execution accuracy as high as <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$7 6. 8 3 \%$</tex>, comparable to much larger models such as Mistral, Gemma-2, and Qwen2.5 Coder 7B, while requiring significantly fewer computational resources. These findings highlight the feasibility of smaller models for real-world Text-to-SQL applications and challenge the prevailing assumption that high accuracy and efficiency are attainable only through large-scale models.

Authors

Institutions

Publication Details

Published
2025-04-23
DOI
https://doi.org/10.1109/icict64420.2025.11005216
Primary Topic
Web Data Mining and Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Smaller Large Language Models for Text-To-Sql: Performance Analysis and Optimal Performance

Tantra Nath Jha, Sujan Karki, B Shrestha, P Karki
Web Data Mining and Analysis
article

Smaller Large Language Models for Text-To-Sql: Performance Analysis and Optimal Performance

Tantra Nath Jha, Sujan Karki, B Shrestha, P Karki
article en

Abstract

Text-to-SQL aims to transform natural language queries into executable SQL, a task in which Large Language Models (LLMs) have demonstrated significant success. However, their extremely high computational demands often make practical implementation challenging. This study investigates the performance of smaller models, ranging from 0.5B to 3.8 B parameters, after fine-tuning with Parameter-Efficient Fine-Tuning (PEFT) techniques, namely LoRA and QLoRA. Experimental results indicate that such small models can achieve execution accuracy as high as <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$7 6. 8 3 \%$</tex>, comparable to much larger models such as Mistral, Gemma-2, and Qwen2.5 Coder 7B, while requiring significantly fewer computational resources. These findings highlight the feasibility of smaller models for real-world Text-to-SQL applications and challenge the prevailing assumption that high accuracy and efficiency are attainable only through large-scale models.

Institute of Engineering (NP)
Openalex Percentile: Top 84%
Web Data Mining and Analysis
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.

Smaller Large Language Models for Text-To-Sql: Performance Analysis and Optimal Performance — Tantra Nath Jha, Sujan Karki, et al. · (2025) | TGRS Research Map | TGRS