arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.13888cs.DBcs.AIcs.SE
收藏

使用神经符号推理增强SQL查询生成

Enhancing SQL Query Generation with Neurosymbolic Reasoning

University of Cambridge(剑桥大学);University of Bristol(布里斯托尔大学)

Henrijs Princis, Cristina David, Alan Mycroft

AI总结:

提出一种结合语言模型与符号模块的神经符号架构Xander,通过最佳优先搜索和回溯生成SQL查询,显著提升了小规模开源模型的准确率并降低运行时间,使其性能超越四倍大的模型。

摘要:

神经符号方法结合了符号推理的有效性与神经网络的灵活性。在本研究中,我们提出了一种用于生成SQL查询的神经符号架构,该架构使用最佳优先搜索构建并探索解空间树,并支持回溯。为此,它将语言模型(LM)与符号模块集成在一起,这些模块有助于捕获并纠正LM在SQL查询中犯的错误,同时引导解空间树的探索。我们专注于提升较小规模开源LM的性能,并发现我们的工具Xander与未使用Xander的LM相比,平均提高了10.9%的准确率,并平均减少了28%的运行时间,使得较小的LM(结合Xander)能够超越其四倍大小的同类模型(未使用Xander)。

英文摘要:

Neurosymbolic approaches blend the effectiveness of symbolic reasoning with the flexibility of neural networks. In this work, we propose a neurosymbolic architecture for generating SQL queries that builds and explores a solution tree using Best-First Search, with the possibility of backtracking. For this purpose, it integrates a Language Model (LM) with symbolic modules that help catch and correct errors made by the LM on SQL queries, as well as guiding the exploration of the solution tree. We focus on improving the performance of smaller open-source LMs, and we find that our tool, Xander, increases accuracy by an average of 10.9% and reduces runtime by an average of 28% compared to the LM without Xander, enabling a smaller LM (with Xander) to outperform its four-times larger counterpart (without Xander).

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

↑