arrow
Return

GEMMA-SQL: A Novel Text-to-SQL Model Based on Large Language Models

delete2025-12-31
delete0
PRE
AI
H
Hari Mohan Pandey *
G
Gupta, Anshul
S
Subham Sarkar
M
Minakshi Tomer
J
Johannes J. Schneider
Y
Yan Gong
DOI:10.1080/08839514.2025.2587371delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Text-to-SQL systems enable users to interact with structured databases using natural language, eliminating the need for specialized programming knowledge. In this work, we introduce GEMMA-SQL, a lightweight and efficient text-to-SQL model built upon the open-source Gemma 2B architecture. Unlike many large language models (LLMs), GEMMA-SQL is fine-tuned in a resource-efficient, iterative manner and can be deployed on low-cost hardware. Leveraging the SPIDER benchmark for training and evaluation, GEMMA-SQL combines multiple prompting strategies, including few-shot learning, to enhance SQL query generation accuracy. The instruction-tuned variant, GEMMA-SQL Instruct, achieves 66.8% Test-Suite accuracy and 63.3% Exact Set Match accuracy, outperforming several state-of-the-art baselines such as IRNet, RYANSQL, and CodeXDavinci. The proposed approach demonstrates that effective prompt design and targeted instruction tuning can significantly boost performance while maintaining high scalability and adaptability. These results position GEMMA-SQL as a practical, open-source alternative for robust and accessible text-to-SQL systems.

Journal

A
Applied Artificial Intelligence
IF:
4.3
Papers:
58
Citations:
0

Organization

University of Liechtenstein cover
University of Liechtenstein
Scholars:
167
Papers: 214
Citations: 542
M
maharaja surajmal institute of technology
Scholars:
175
Papers: 149
Citations: 0
B
Bournemouth University
Scholars:
2.7K
Papers: 3.0K
Citations: 3.5K
researcher View more organizations