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

查询与征服:执行引导的SQL生成

Query and Conquer: Execution-Guided SQL Generation

Snowflake AI Research(Snowflake AI研究部)

Łukasz Borchmann, Marek Wydmuch

AI总结:

提出一种利用执行结果从多候选查询中选择语义最一致者的新方法,使小模型在text-to-SQL任务中超越o1等大模型,并将推理成本降低30倍,提供实用可扩展的SOTA方案。

摘要:

我们提出了一种生成复杂输出的新方法,显著提升了text-to-SQL任务的准确率。该方法利用执行结果从多个候选查询中选择语义最一致者,使更小、更具成本效益的模型能够超越o1、o3-mini和DeepSeek R1等计算密集型推理方法,同时将推理成本降低多达30倍。它能与现有模型无缝集成,为达到最先进的SQL生成提供了一条实用且可扩展的途径。

英文摘要:

We propose a novel approach for generating complex outputs that significantly improves accuracy in text-to-SQL tasks. Our method leverages execution results to select the most semantically consistent query from multiple candidates, enabling smaller, cost-effective models to surpass computationally intensive reasoning methods such as o1, o3-mini, and DeepSeek R1 while reducing inference cost by as much as 30 times. It integrates effortlessly with existing models, offering a practical and scalable pathway to state-of-the-art SQL generation.

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

↑