构建首个面向复杂分析推理的结构化数据库问答数据集
STARQA: A Question Answering Dataset for Complex Analytical Reasoning over Structured Databases
- 提出Text2SQLCode框架,分离数据获取与逻辑推理任务
- 在三个专业数据库上验证,现有大模型仍难以应对复杂问题
- 适合研究自然语言转代码、数据分析智能系统的学者
语义解析方法可将自然语言转换为SQL查询,助力分析师在大型关系型数据库中开展复杂分析。尽管已有多个文本转SQL基准,但其问题复杂度受限于查询语言表达能力,且未聚焦涉及聚合计算、时间序列分析或情景理解等复杂分析推理任务。本文提出STARQA,首个公开的人工构建的复杂分析推理问答数据集,涵盖三个专业领域数据库。除直接使用大模型生成SQL外,我们评估了一种新方法Text2SQLCode:将任务分解为SQL(数据提取)与Python(逻辑推理)协同完成。实验表明,结合两者能力优于仅用SQL,但该数据集对当前最先进大模型仍具挑战性。
原文摘要 · Abstract (English)
Semantic parsing methods for converting text to SQL queries enable question answering over structured data and can greatly benefit analysts who routinely perform complex analytics on vast data stored in specialized relational databases. Although several benchmarks measure the abilities of text to SQL, the complexity of their questions is inherently limited by the level of expressiveness in query languages and none focus explicitly on questions involving complex analytical reasoning which require operations such as calculations over aggregate analytics, time series analysis or scenario understanding. In this paper, we introduce STARQA, the first public human-created dataset of complex analytical reasoning questions and answers on three specialized-domain databases. In addition to generating SQL directly using LLMs, we evaluate a novel approach (Text2SQLCode) that decomposes the task into a combination of SQL and Python: SQL is responsible for data fetching, and Python more naturally performs reasoning. Our results demonstrate that identifying and combining the abilities of SQL and Python is beneficial compared to using SQL alone, yet the dataset still remains quite challenging for the existing state-of-the-art LLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。