arXivDaily arXiv每日学术速递 周一至周五更新
​通知:联邦节假日调休:哥伦布日 / 原住民日(Columbus Day / Indigenous Peoples' Day),今日(13日)无更新。
arXiv 2408.14717cs.DBcs.AI

Text2SQL是不够的:用TAG统一AI与数据库

Text2SQL is Not Enough: Unifying AI and Databases with TAG

UC Berkeley(加州大学伯克利分校);Stanford University(斯坦福大学)

Asim Biswal, Liana Patel, Siddarth Jha, Amog Kamsetty, Shu Liu, Joseph E. Gonzalez, Carlos Guestrin, Matei Zaharia

AI总结:

针对现有Text2SQL和RAG在处理数据库自然语言查询时的局限性,提出了统一且通用的Table-Augmented Generation (TAG)范式,并构建基准揭示标准方法准确率极低,指明了新研究方向。

摘要:

在数据库上处理自然语言问题的AI系统有望释放巨大价值。此类系统将允许用户利用语言模型(LM)强大的推理和知识能力,以及数据管理系统的可扩展计算能力。这些结合的能力将使用户能够针对自定义数据源提出任意自然语言问题。然而,现有方法和基准对这一场景的探索并不充分。Text2SQL方法仅关注可用关系代数表达的自然语言问题,这只占真实用户希望提出问题的很小一部分。同样,Retrieval-Augmented Generation (RAG) 仅考虑了可通过数据库内一条或少数几条数据记录的点查询来回答的有限查询子集。我们提出了Table-Augmented Generation (TAG),这是一种用于回答数据库上自然语言问题的统一且通用的范式。TAG模型代表了LM与数据库之间一系列此前未被探索的广泛交互,为在数据上利用LM的世界知识和推理能力创造了激动人心的研究机会。我们系统地开发了基准来研究TAG问题,发现标准方法最多只能正确回答20%的查询,证实了该领域需要进一步研究。我们在 https://github.com/TAG-Research/TAG-Bench 发布了基准代码。

英文摘要:

AI systems that serve natural language questions over databases promise to unlock tremendous value. Such systems would allow users to leverage the powerful reasoning and knowledge capabilities of language models (LMs) alongside the scalable computational power of data management systems. These combined capabilities would empower users to ask arbitrary natural language questions over custom data sources. However, existing methods and benchmarks insufficiently explore this setting. Text2SQL methods focus solely on natural language questions that can be expressed in relational algebra, representing a small subset of the questions real users wish to ask. Likewise, Retrieval-Augmented Generation (RAG) considers the limited subset of queries that can be answered with point lookups to one or a few data records within the database. We propose Table-Augmented Generation (TAG), a unified and general-purpose paradigm for answering natural language questions over databases. The TAG model represents a wide range of interactions between the LM and database that have been previously unexplored and creates exciting research opportunities for leveraging the world knowledge and reasoning capabilities of LMs over data. We systematically develop benchmarks to study the TAG problem and find that standard methods answer no more than 20% of queries correctly, confirming the need for further research in this area. We release code for the benchmark at https://github.com/TAG-Research/TAG-Bench.

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

↑