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

MSc-SQL:用于 Text-to-SQL 翻译的多样本评判小型语言模型

MSc-SQL: Multi-Sample Critiquing Small Language Models For Text-To-SQL Translation

Layer 6 AI

Satya Krishna Gorti, Ilan Gofman, Zhaoyan Liu, Jiapeng Wu, Noël Vouitsis, Guangwei Yu, Jesse C. Cresswell, Rasa Hosseinzadeh

AI总结:

针对闭源大模型在 Text-to-SQL 中的可访问性、隐私与延迟问题,提出 MSc-SQL,通过元数据多样本评判候选 SQL,使小模型以低成本达到开源 SOTA 并媲美大模型。

摘要:

Text-to-SQL 生成使非专业人员能够通过自然语言与数据库交互。近期进展依赖 GPT-4 等大型闭源模型,这些模型在可访问性、隐私和延迟方面带来挑战。为解决这些问题,我们专注于开发小型、高效且开源的 text-to-SQL 模型。我们展示了采样多个候选 SQL 生成结果的益处,并提出 MSc-SQL 方法,利用相关元数据对其进行评判。我们的样本评判模型同时评估多个输出,与其他开源模型相比达到最先进性能,同时以低得多的成本保持与更大模型的竞争力。完整代码可在 https://github.com/layer6ai-labs/msc-sql 获取。

英文摘要:

Text-to-SQL generation enables non-experts to interact with databases via natural language. Recent advances rely on large closed-source models like GPT-4 that present challenges in accessibility, privacy, and latency. To address these issues, we focus on developing small, efficient, and open-source text-to-SQL models. We demonstrate the benefits of sampling multiple candidate SQL generations and propose our method, MSc-SQL, to critique them using associated metadata. Our sample critiquing model evaluates multiple outputs simultaneously, achieving state-of-the-art performance compared to other open-source models while remaining competitive with larger models at a much lower cost. Full code can be found at https://github.com/layer6ai-labs/msc-sql.

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

↑