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

VeriMinder:缓解 NL2SQL 中的分析漏洞

VeriMinder: Mitigating Analytical Vulnerabilities in NL2SQL

Cornell University(康奈尔大学)

Shubham Mohole, Sainyam Galhotra

AI总结:

本文提出 VeriMinder 交互式系统,通过上下文语义映射、Hard-to-Vary 分析框架及 LLM 提示优化,检测并缓解 NL2SQL 分析问题中的认知偏差,实验显示其显著提升分析质量。

摘要:

使用数据库自然语言接口(NLIDB)的应用系统已经使数据分析变得更加普及。这一积极发展也带来了一项紧迫挑战:帮助那些可能没有统计分析背景却使用这些系统的用户提出无偏的分析问题。尽管已有大量研究关注 text-to-SQL 生成准确性,但解决分析问题中的认知偏差仍未得到充分探索。我们提出 VeriMinder(https://veriminder.ai),这是一个用于检测和缓解此类分析漏洞的交互式系统。我们的方法包含三项关键创新:(1)一个上下文语义映射框架,用于识别与特定分析上下文相关的偏差;(2)一个分析框架,将 Hard-to-Vary 原则操作化,并引导用户进行系统化数据分析;(3)一个经过优化的、由 LLM 驱动的系统,通过包含多个候选、批评反馈和自我反思的结构化过程,生成高质量、面向具体任务的提示词。用户测试证实了本方法的价值。在直接用户体验评估中,82.5% 的参与者表示其对分析质量产生了积极影响。在比较评估中,VeriMinder 的得分显著高于替代方法;在考察分析的具体性、全面性和准确性等指标时,其表现至少高出 20%。我们的系统以 Web 应用形式实现,旨在帮助用户避免数据分析过程中的“错误问题”漏洞。包含提示词的 VeriMinder 代码库(https://reproducibility.link/veriminder)以 MIT 许可的开源软件形式提供,以促进社区内的进一步研究和采用。

英文摘要:

Application systems using natural language interfaces to databases (NLIDBs) have democratized data analysis. This positive development has also brought forth an urgent challenge to help users who might use these systems without a background in statistical analysis to formulate bias-free analytical questions. Although significant research has focused on text-to-SQL generation accuracy, addressing cognitive biases in analytical questions remains underexplored. We present VeriMinder, https://veriminder.ai, an interactive system for detecting and mitigating such analytical vulnerabilities. Our approach introduces three key innovations: (1) a contextual semantic mapping framework for biases relevant to specific analysis contexts (2) an analytical framework that operationalizes the Hard-to-Vary principle and guides users in systematic data analysis (3) an optimized LLM-powered system that generates high-quality, task-specific prompts using a structured process involving multiple candidates, critic feedback, and self-reflection. User testing confirms the merits of our approach. In direct user experience evaluation, 82.5% participants reported positively impacting the quality of the analysis. In comparative evaluation, VeriMinder scored significantly higher than alternative approaches, at least 20% better when considered for metrics of the analysis's concreteness, comprehensiveness, and accuracy. Our system, implemented as a web application, is set to help users avoid "wrong question" vulnerability during data analysis. VeriMinder code base with prompts, https://reproducibility.link/veriminder, is available as an MIT-licensed open-source software to facilitate further research and adoption within the community.

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

↑