arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2607.06229cs.CLcs.AIcs.DB
收藏

Spider 2.0-AIFunc:将现实世界的文本到SQL扩展到人工智能原生SQL工作流程

Spider 2.0-AIFunc: Extending Real-World Text-to-SQL to AI-Native SQL Workflows

UC San Diego(加州大学圣地亚哥分校);Snowflake AI Research(Snowflake人工智能研究院);University of Hong Kong(香港大学)

Tianyang Liu, Canwen Xu, Fangyu Lei, Nikki Lijing Kuang, Jixuan Chen, Tao Yu, Julian McAuley, Zhewei Yao, Yuxiong He

AI总结:

研究针对现有文本到SQL基准无法评估模型生成人工智能原生SQL能力的问题,构建Spider 2.0-AIFunc基准,经特定管道和多轮验证,评估十个先进语言模型,发现准确率差距及传统代理框架转移无效等情况。

摘要:

主要云数据平台将大语言模型功能作为原生SQL函数公开,使分析师能在普通SQL查询中执行多种操作。但现有文本到SQL基准仅评估传统SQL,无法体现模型生成人工智能原生SQL的能力。为此引入Spider 2.0-AIFunc基准,含465个经过验证的实例,覆盖125个真实世界数据库及六种人工智能函数。通过基于代理的管道构建该基准,所有实例经多轮重复执行协议确保结果稳定性。评估十个先进语言模型发现,最强专有模型执行准确率达67-70%,最佳开源模型为58.1%,差距主要源于谓词规范、模式基础和人工智能函数参数化方面的错误。为传统文本到SQL挑战设计的代理框架不能有效转移到人工智能原生SQL。

英文摘要:

Major cloud data platforms now expose large language model capabilities as native SQL functions, enabling analysts to perform classification, filtering, sentiment analysis, extraction, similarity search, and aggregation within ordinary SQL queries. Yet existing text-to-SQL benchmarks evaluate only conventional SQL and provide no signal on whether models can generate such AI-native SQL. We introduce Spider 2.0-AIFunc, a benchmark of 465 verified instances across 125 real-world databases covering six types of AI functions on the Snowflake platform. Starting from an existing enterprise text-to-SQL benchmark, we construct Spider 2.0-AIFunc through an agent-based pipeline that rewrites source tasks into AI-native form, simultaneously transforming target queries and refining natural language instructions to make the intended AI-native solution explicit and reduce ambiguity. All instances pass a multi-round repeated execution protocol across temporally separated windows to confirm result stability before release. Evaluating ten state-of-the-art language models, we find that the strongest proprietary models reach 67-70% execution accuracy while the best open-source model achieves 58.1%, a gap driven primarily by errors in predicate specification, schema grounding, and AI function parameterization. Agent frameworks designed for traditional text-to-SQL challenges, such as schema retrieval and relevant table selection, do not transfer effectively to AI-native SQL: a minimal agent setup consistently matches or outperforms more elaborate alternatives, suggesting that the strategies these frameworks employ are less critical in this setting. Data are available at https://github.com/Leolty/Spider2-AIFunc .

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

↑