2025-04-01 · 进阶 · 机器学习 · 数据科学 · 自然语言处理 · 计算机视觉

Query and Conquer: Execution-Guided SQL Generation

该论文提出了一种基于执行引导的SQL生成方法,通过利用执行结果来选择语义上最一致的查询,从而显著提高文本到SQL任务的准确性,同时降低推理成本。

更新于 2025-09-10。作者:Łukasz Borchmann、Marek Wydmuch。

中文摘要

我们提出了一种生成复杂输出的新颖方法,该方法显著提高了文本到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.

解读

一句话总结

该论文提出了一种基于执行引导的SQL生成方法,通过利用执行结果来选择语义上最一致的查询,从而显著提高文本到SQL任务的准确性,同时降低推理成本。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt