arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.14718cs.DBcs.HC
收藏

数据库的自然语言接口:对用户有何改变?

Natural Language Interfaces for Databases: What Changes for SQL-Literate Users?

Stern School of Business, New York University(纽约大学斯特恩商学院);Tandon School of Engineering, New York University(纽约大学坦登工程学院)

Panos Ipeirotis, Haotian Zheng

AI总结:

研究比较基于GPT-4o的NLIDB SQL-LLM与传统SQL平台Snowflake,发现接口改变工作类型非工作量,SQL-LLM用户查询速度快但准确性低,熟悉SQL的参与者转向自然语言后仍有验证负担。

摘要:

数据库自然语言接口(NLIDBs)使用户能用日常语言提问来查询数据,近期系统能准确翻译这些问题。但准确性对查询的认知工作量说明甚少:NLIDB是减少了工作量还是只是转移了它?我们报告了一项混合方法、被试间用户研究,比较了基于GPT-4o的NLIDB SQL-LLM和传统SQL分析平台Snowflake。20名熟悉SQL的专业人员和研究生(70%中级,30%高级),每种接口10人,每人完成12个从BIRD数据集抽取的查询任务。对11个有声思维记录会话的行为编码显示了工作量的去向:SQL-LLM用户将模式导航交给模型,努力验证生成的SQL是否符合其意图,而Snowflake用户手动探索模式和构建语法花费了相当的精力。各小组的挫败事件和重新表述次数相似。接口改变了工作类型而非工作量。线性混合效应模型控制查询难度和数据库后发现,SQL-LLM用户平均每个查询快212秒(p = 0.044)。然而,速度提升并未带来准确性:与BIRD黄金答案相比,SQL-LLM用户查询正确率为46%,Snowflake为64%,虽有利于Snowflake但差异不显著(p = 0.06)。对于熟悉SQL的参与者,转向自然语言后验证负担依然存在,所以隐藏生成SQL的NLIDB会消除这些用户信任答案所依赖的步骤。

英文摘要:

Natural Language Interfaces for Databases (NLIDBs) let users query data in everyday language instead of SQL, and modern systems translate most questions accurately. Does an NLIDB remove the work of querying, or move it? We compared SQL-LLM, a GPT-4o-backed NLIDB, with Snowflake, a manual-SQL platform. Twenty SQL-literate professionals and graduate students, ten per interface, each completed 12 BIRD benchmark tasks with hints naming target columns and operators. SQL-LLM cut completion time per query by 31%. It did not improve accuracy: SQL-LLM users answered 46% of queries correctly versus 64% for Snowflake, a gap this sample cannot confirm ($p = 0.08$) that narrows to 14 points without one session where the system timed out. Think-aloud audio from 11 participants (4 SQL-LLM, 7 Snowflake) showed how the work shifted: SQL-LLM users left initial schema navigation to the model, mainly on easier tasks, and focused on checking the generated SQL, while Snowflake users explored the schema and wrote queries by hand. Coded behavior rates did not differ detectably between arms, and positive remarks during a task did not reliably predict a correct answer. The evidence fits a reallocation of querying work, not its removal: users still had to check the generated SQL.

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

↑