Comparing Accuracy and Consistency: LLMs vs. SOTA Deep Learning Models in Text-to-SQL

Text-to-SQL is one of the most prominent areas where Large Language Models (LLMs) have seen extensive application. While Text-to-SQL systems using LLMs and pre-trained deep learning models are evaluated using standard metrics such as Exact Match (EM), Execution Accuracy (EX), and Valid Efficiency Score (VES), they overlook a critical aspect: consistency. This paper introduces a Consistency metric that evaluates a model’s reliability in generating the same SQL query for repeated inputs. In the study, we performed a comparative analysis of the pre-trained deep learning models and large language models (LLMs) using the Spider dataset. The study highlights that the pre-trained deep learning models tend to be more accurate, efficient, and consistent compared to LLMs. LLMs are consistently incorrect, and consistency alone does not guarantee correctness. As the difficulty of SQL queries increases, LLMs struggle more with accuracy, while the pre-trained deep learning models remain more robust. The paper’s findings suggest that consistency, combined with existing metrics, is essential for improving Text-to-SQL systems.

Authors

Institutions

Publication Details

Published
2024-12-18
DOI
https://doi.org/10.1109/hipcw63042.2024.00020
Primary Topic
Data Quality and Management
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparing Accuracy and Consistency: LLMs vs. SOTA Deep Learning Models in Text-to-SQL

Sai Vignesh, Pallav Kumar Baruah, A Sai, Sai Hemanth S V
Data Quality and Management
article

Comparing Accuracy and Consistency: LLMs vs. SOTA Deep Learning Models in Text-to-SQL

Sai Vignesh, Pallav Kumar Baruah, A Sai, Sai Hemanth S V
article en

Abstract

Text-to-SQL is one of the most prominent areas where Large Language Models (LLMs) have seen extensive application. While Text-to-SQL systems using LLMs and pre-trained deep learning models are evaluated using standard metrics such as Exact Match (EM), Execution Accuracy (EX), and Valid Efficiency Score (VES), they overlook a critical aspect: consistency. This paper introduces a Consistency metric that evaluates a model’s reliability in generating the same SQL query for repeated inputs. In the study, we performed a comparative analysis of the pre-trained deep learning models and large language models (LLMs) using the Spider dataset. The study highlights that the pre-trained deep learning models tend to be more accurate, efficient, and consistent compared to LLMs. LLMs are consistently incorrect, and consistency alone does not guarantee correctness. As the difficulty of SQL queries increases, LLMs struggle more with accuracy, while the pre-trained deep learning models remain more robust. The paper’s findings suggest that consistency, combined with existing metrics, is essential for improving Text-to-SQL systems.

Sri Sathya Sai Institute of Higher Learning (IN)
Quality Education
Openalex Percentile: Top 66%
Data Quality and Management
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.