arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.17493cs.LOcs.AI
收藏

VeriPIE:面向Text-to-SQL的可核查查询计划与证据引导选择

VeriPIE: Checkable Query Plans and Evidence-Guided Selection for Text-to-SQL

KNOWIDEA Technology(KNOWIDEA 科技);Georgia Tech(佐治亚理工学院)

Piyush Jha, Cruise Song, Zhengyu Li, Yatharth Sejpal

AI总结:

VeriPIE是结合语言模型生成与符号检查的神经符号Text-to-SQL框架,在Spider、BIRD数据集上优于基线模型,可为金融分析提供可审查的计算证据。

摘要:

金融人工智能(AI)治理与模型风险管理(MRM)强调对AI生成计算的独立验证、透明度及有效质疑。Text-to-SQL将自然语言问题转换为结构化查询语言(SQL),但针对同一数据库的查询仍可能表达不同计算。本文提出VeriPIE,一种结合语言模型生成与符号检查的神经符号框架,其集成了直接SQL生成与QuerySketch(一种由定理证明器兼编程语言Lean实现的后端检查的结构化计划语言)。计划诊断在SQL生成前指导修复,而执行一致性与用于区分数据库的有界搜索则为候选选择提供依据。这些检查可在不证明与用户意图一致的情况下,暴露畸形计划与隐藏分歧。在完整Spider开发集的单次运行实验中,VeriPIE的测试套件准确率达72.05%(1034题中答对745题),而DeepEye为65.67%(1034题中答对679题);其两查询候选列表覆盖78.43%(811个问题),DIN-SQL为74.66%(772个),DeepEye为69.05%(714个)。在BIRD数据集上,VeriPIE达到68.90%的执行准确率与73.73%的两查询覆盖率。其核心优势在于为生成的计算提供可审查证据:明确的计划检查、修复诊断及具体分歧,以支持更安全的金融分析。

英文摘要:

Financial Artificial Intelligence (AI) governance and model risk management (MRM) emphasize independent validation, transparency, and effective challenge of AI-generated computations. Text-to-SQL translates natural-language questions into Structured Query Language (SQL), but queries that agree on one database can still express different computations. We present VeriPIE, a neurosymbolic framework combining language-model generation with symbolic checks. It ensembles direct SQL generation with QuerySketch, a structured plan language checked by a backend implemented in Lean, a theorem prover and programming language. Plan diagnostics guide repair before SQL generation, while execution agreement and bounded searches for distinguishing databases inform candidate selection. These checks expose malformed plans and hidden disagreement without proving agreement with the user's intent. In single-run experiments on the complete Spider development set, VeriPIE achieves 72.05% test-suite accuracy (745/1,034), compared with DeepEye's 65.67% (679/1,034). Its two-query shortlist covers 78.43% (811 questions), compared with 74.66% for DIN-SQL (772) and 69.05% for DeepEye (714). On BIRD, VeriPIE reaches 68.90% execution accuracy and 73.73% two-query coverage. The central benefit is reviewable evidence about the generated computation: explicit plan checks, repair diagnostics, and concrete disagreements that support safer financial analysis.

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

↑