arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.07313cs.CL
收藏

ETM:大语言模型时代Text-to-SQL评估视角的现代洞见

ETM: Modern Insights into Perspective on Text-to-SQL Evaluation in the Age of Large Language Models

Emory University(埃默里大学)

Benjamin G. Ascoli, Yasoda Sai Ram Kandikonda, Jinho D. Choi

AI总结:

针对现有Text-to-SQL评估指标EXE和ESM存在的性能表征偏差问题,提出结合句法与语义的增强树匹配指标ETM,可大幅降低假阳/假阴性率,且已开源。

摘要:

Text-to-SQL任务支持任何人通过自然语言从SQL数据库中检索信息。尽管该任务已取得长足进展,但两大核心评估指标——执行准确率(Execution Accuracy, EXE)和精确集匹配准确率(Exact Set Matching Accuracy, ESM)存在固有局限性,可能导致性能表征失实。具体而言,ESM的刚性匹配机制会忽略语义正确但表述风格不同的查询,而EXE会忽略那些能输出正确结果的结构错误,从而高估正确率。在评估无需微调的大语言模型(LLM)类方法的输出时,这些缺陷的问题尤为突出——因为与经过微调的同类方法相比,无微调LLM的输出在风格和结构上差异更大。为此,我们提出了一种新指标——增强树匹配(Enhanced Tree Matching, ETM),它通过同时结合句法和语义要素比对查询,从而缓解上述问题。通过对9个基于LLM的模型进行评估,我们发现EXE和ESM的假阳性率和假阴性率可分别高达23.0%和28.9%,而ETM将这两个比率分别降至0.3%和2.7%。我们将ETM脚本开源,为社区提供一种更稳健、更可靠的Text-to-SQL评估方法。

英文摘要:

The task of Text-to-SQL enables anyone to retrieve information from SQL databases using natural language. While this task has made substantial progress, the two primary evaluation metrics - Execution Accuracy (EXE) and Exact Set Matching Accuracy (ESM) - suffer from inherent limitations that can misrepresent performance. Specifically, ESM's rigid matching overlooks semantically correct but stylistically different queries, whereas EXE can overestimate correctness by ignoring structural errors that yield correct outputs. These shortcomings become especially problematic when assessing outputs from large language model (LLM)-based approaches without fine-tuning, which vary more in style and structure compared to their fine-tuned counterparts. Thus, we introduce a new metric, Enhanced Tree Matching (ETM), which mitigates these issues by comparing queries using both syntactic and semantic elements. Through evaluating nine LLM-based models, we show that EXE and ESM can produce false positive and negative rates as high as 23.0% and 28.9%, while ETM reduces these rates to 0.3% and 2.7%, respectively. We release our ETM script as open source, offering the community a more robust and reliable approach to evaluating Text-to-SQL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑