arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.12064cs.DB
收藏

DIVER: 一种具有动态交互值链接和证据推理的鲁棒文本到SQL系统

DIVER: A Robust Text-to-SQL System with Dynamic Interactive Value Linking and Evidence Reasoning

Beijing University of Posts and Telecommunications(北京邮电大学);Tsinghua University(清华大学)

Yafeng Nan, Haifeng Sun, Zirui Zhuang, Qi Qi, Guojun Chu, Jianxin Liao, Dan Pei, Jingyu Wang

AI总结:

DIVER通过动态交互值链接和证据推理,提升文本到SQL系统的鲁棒性,实验显示其在执行准确率和验证效率分数上均有显著提升。

摘要:

在大型语言模型的时代,文本到SQL作为一种数据库的自然语言接口,正发挥着越来越重要的作用。当前最先进的文本到SQL模型已经取得了令人印象深刻的准确性,但其性能严重依赖于专家撰写的证据,通常会澄清模式和值链接,而现有模型往往难以识别。这种限制源于用户查询的歧义性,更重要的是,理解大规模和动态数据库值的复杂性。因此,在现实场景中,当没有专家帮助时,现有方法会遭受严重的性能崩溃,执行准确率会下降超过10%。这凸显了其缺乏鲁棒性。为了解决这一问题,我们提出了DIVER,一种能够自动化证据推理的系统,通过动态交互值链接。它利用包含多种工具的兼容工具箱来探测数据库。然后,受限于一个结构化的工作空间(CoTF,思路和事实链),它基于探测结果进行反思,并选择下一个轮次的工具。通过这种自动迭代的过程,DIVER识别出现有方法遗漏的模式和值链接。基于这些准确的链接,DIVER能够推断正确的SQL函数和公式的使用方式,并生成高质量的证据,从而在没有专家帮助的情况下实现鲁棒的文本到SQL。广泛的实验表明:1)DIVER系统显著增强了各种文本到SQL模型的鲁棒性,执行准确率(EX)提高了最高10.82%,验证效率分数(VES)提高了16.09%。2)我们的动态交互值链接显著提高了现有系统的鲁棒性以及模式和值链接的准确性,尤其是在面对大规模和动态数据库值带来的挑战时。

英文摘要:

In the era of large language models, Text-to-SQL, as a natural language interface for databases, is playing an increasingly important role. The sota Text-to-SQL models have achieved impressive accuracy, but their performance critically relies on expert-written evidence, which typically clarifies schema and value linking that existing models struggle to identify. Such limitations stem from the ambiguity of user queries and, more importantly, the complexity of comprehending large-scale and dynamic database values. Consequently, in real-world scenarios where expert assistance is unavailable, existing methods suffer a severe performance collapse, with execution accuracy dropping by over 10%. This underscores their lack of robustness. To address this, we propose DIVER, a robust system that automates evidence reasoning with dynamic interactive value linking. It leverages a compatible toolbox containing diverse tools to probe the database. Then, restricted by a structured workspace (CoTF, Chain of Thoughts and Facts), it reflects based on probe results and selects a new tool for next round of probing. Through this automatically iterative process, DIVER identifies schema and value linking missed by existing methods. Based on these accurate linkings, DIVER is able to infer correct usage of SQL functions and formulas and generate high-quality evidence, achieving robust Text-to-SQL without expert assistance. Extensive experiments demonstrate that: 1) The DIVER system significantly enhances the robustness of various Text-to-SQL models, improving performance by up to 10.82% in Execution Accuracy (EX) and 16.09% in Valid Efficiency Score (VES). 2) Our dynamic interactive value linking significantly improves the robustness of existing systems and the accuracy of schema and value linking, especially when confronted with challenges posed by large-scale, dynamic database values.

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

↑