FLEX: Expert-level False-Less EXecution Metric for Reliable Text-to-SQL Benchmark

Heegyu Kim, Taeyang Jeon, Seunghwan Choi, Seungtaek Choi, Hyunsouk Cho
9/24/2024
14 citations
cs.CLcs.IRcs.LG

Official code: HeegyuKim/FLEX (12 stars, Python, Apache-2.0, last commit 2025-02-13).

Abstract

Text-to-SQL systems have become crucial for translating natural language into SQL queries in various industries, enabling non-technical users to perform complex data operations. The need for accurate evaluation methods has increased as these systems have grown more sophisticated.

Show full abstract

However, the Execution Accuracy (EX), the most prevalent evaluation metric, still shows many false positives and negatives. Thus, this paper introduces FLEX (False-Less EXecution), a novel approach to evaluating text-to-SQL systems using large language models (LLMs) to emulate human expert-level evaluation of SQL queries. Our metric improves agreement with human experts (from 62 to 87.04 in Cohen's kappa) with comprehensive context and sophisticated criteria. Our extensive experiments yield several key insights: (1) Models' performance increases by over 2.6 points on average, substantially affecting rankings on Spider and BIRD benchmarks; (2) The underestimation of models in EX primarily stems from annotation quality issues; and (3) Model performance on particularly challenging questions tends to be overestimated. This work contributes to a more accurate and nuanced evaluation of text-to-SQL systems, potentially reshaping our understanding of state-of-the-art performance in this field.

View on arXivView PDF

Code Implementations(1)

HeegyuKim/FLEXOfficial100%
Apache-2.0

FLEX: Expert-level False-Less EXecution Metric for Reliable Text-to-SQL Benchmark (NAACL 2025 Main)

122Python, ShellOct 16, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{kim2024flex,
  title  = {FLEX: Expert-level False-Less EXecution Metric for Reliable Text-to-SQL Benchmark},
  author = {Heegyu Kim and Taeyang Jeon and Seunghwan Choi and Seungtaek Choi and Hyunsouk Cho},
  year   = {2024},
  eprint = {2409.19014},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.19014v4}
}

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

Discussion