DeepEye-SQL: 一种受软件工程启发的文本到SQL框架
DeepEye-SQL: A Software-Engineering-Inspired Text-to-SQL Framework
AI总结:
DeepEye-SQL通过结构化协作提升文本到SQL的可靠性,采用软件开发生命周期指导,实现73.5%的BIRD-Dev准确率和89.8%的Spider-Test表现,优于现有方法。
摘要:
大型语言模型(LLMs)已推动文本到SQL的发展,但现有方案在系统级可靠性上仍不足。问题不仅在于单个模块,如模式链接、推理和验证,更在于缺乏结构化协作以确保整个工作流的正确性。本文提出DeepEye-SQL,将文本到SQL视为软件工程问题,通过软件开发生命周期(SDLC)指导的可验证流程开发。DeepEye-SQL整合四个协同阶段:通过稳健的模式链接确定用户意图,强制关系闭包;通过N版本SQL生成增强容错性;通过“语法-逻辑-质量”工具链确保确定性验证;并引入自信度感知选择,利用执行引导的裁决解决超越简单多数投票的歧义。利用开源MoE LLMs(总计约300亿参数,激活约30亿参数)无需微调,DeepEye-SQL在BIRD-Dev上达到73.5%的执行准确率,在官方BIRD-Test排行榜上达到75.07%,在Spider-Test上达到89.8%,优于依赖更大模型或大量训练的现有方法。这表明,原则性的协作而非LLM扩展是实现文本到SQL系统级可靠性的关键。
英文摘要:
Large language models (LLMs) have advanced Text-to-SQL, yet existing solutions still fall short of system-level reliability. The limitation is not merely in individual modules -- e.g., schema linking, reasoning, and verification -- but more critically in the lack of structured orchestration that enforces correctness across the entire workflow. This gap motivates a paradigm shift: treating Text-to-SQL not as free-form language generation but as a software-engineering problem that demands structured, verifiable orchestration. We present DeepEye-SQL, a software-engineering-inspired framework that reframes Text-to-SQL as the development of a small software program, executed through a verifiable process guided by the Software Development Life Cycle (SDLC). DeepEye-SQL integrates four synergistic stages: it grounds user intent through robust schema linking, enforcing relational closure; enhances fault tolerance with N-version SQL generation; ensures deterministic verification via a ``Syntax-Logic-Quality'' tool-chain that intercepts errors pre-execution; and introduces confidence-aware selection that leverages execution-guided adjudication to resolve ambiguity beyond simple majority voting. Leveraging open-source MoE LLMs (~30B total, ~3B activated parameters) without any fine-tuning, DeepEye-SQL achieves 73.5% execution accuracy on BIRD-Dev, 75.07% on the official BIRD-Test leaderboard, and 89.8% on Spider-Test, outperforming state-of-the-art solutions that rely on larger models or extensive training. This highlights that principled orchestration, rather than LLM scaling alone, is key to achieving system-level reliability in Text-to-SQL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。