arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.21480cs.DBcs.CLcs.IR
收藏

两端都算!LLM代理在『文本到大数据SQL』方面表现如何?

Both Ends Count! Just How Good are LLM Agents at "Text-to-Big SQL"?

RWTH Aachen University(亚琛工业大学)

Germán T. Eizaguirre, Lars Tissen, Marc Sánchez-Artigas

AI总结:

本文提出评估『文本到大数据SQL』的新指标,揭示传统文本到SQL指标在处理大规模数据时的不足,展示LLM代理在执行效率、成本及数据规模影响方面的表现。

摘要:

文本到SQL和大数据都是广泛评估的领域,但很少有研究同时评估它们。在现实世界中,文本到SQL系统常嵌入大数据流程,如大规模数据处理或交互式数据分析。我们称之为『文本到大数据SQL』。然而,现有的文本到SQL基准测试范围狭窄,忽略了在大规模情况下产生的成本和性能影响。例如,小数据集中的翻译错误在数据规模扩大时会导致显著的成本和延迟开销,这一问题完全被文本到SQL指标忽视。在本文中,我们通过引入新的、具有代表性的指标来解决这一被忽视的挑战。我们的研究聚焦于生产级别的LLM代理,这是一种数据库无关的系统,能够适应多样化的用户需求。通过广泛评估前沿模型,我们表明文本到SQL指标在大数据处理中是不足的。相反,我们提出的文本到大数据SQL指标准确反映了执行效率、成本以及数据规模的影响。例如,GPT-4o在准确性略低7%的情况下,比顶级后代模型快12.16倍,而GPT-5.2在大数据输入规模下比Gemini 3 Pro更高效。

英文摘要:

Text-to-SQL and Big Data are both extensively benchmarked fields, yet there is limited research that evaluates them jointly. In the real world, Text-to-SQL systems are often embedded with Big Data workflows, such as large-scale data processing or interactive data analytics. We refer to this as ``Text-to-Big SQL''. However, existing text-to-SQL benchmarks remain narrowly scoped and overlook the cost and performance implications that arise at scale. For instance, translation errors that are minor on small datasets lead to substantial cost and latency overheads as data scales, a relevant issue completely ignored by text-to-SQL metrics. In this paper, we overcome this overlooked challenge by introducing novel and representative metrics for evaluating Text-to-Big SQL. Our study focuses on production-level LLM agents, a database-agnostic system adaptable to diverse user needs. Via an extensive evaluation of frontier models, we show that text-to-SQL metrics are insufficient for Big Data. In contrast, our proposed text-to-Big SQL metrics accurately reflect execution efficiency, cost, and the impact of data scale. For example, GPT-4o compensates for roughly 7% lower accuracy than the top-performing later-generation models with up to a 12.16x speedup, while GPT-5.2 is more than twice as cost-effective as Gemini 3 Pro at large input scales.

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

↑