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

利用先前经验:面向Text-to-SQL的可扩展辅助知识库

Leveraging Prior Experience: An Expandable Auxiliary Knowledge Base for Text-to-SQL

University of Science and Technology of China(中国科学技术大学);Florida International University(佛罗里达国际大学)

Zhibo Chu, Zichong Wang, Qitao Qin

AI总结:

本文提出LPE-SQL框架,通过可扩展辅助知识库记录成功与失败任务经验,使LLM无需微调即可持续学习,在text-to-SQL任务上显著提升性能,使较小的Llama-3.1-70B模型超越使用SoTA方法的更大模型。

摘要:

大型语言模型(LLMs)在许多任务中展现出令人印象深刻的解决问题能力,但在各种下游应用(如text-to-SQL)中,其表现仍不及人类。在BIRD基准排行榜上,人类表现达到92.96%的准确率,而表现最好的方法仅达到72.39%。值得注意的是,这些最先进(SoTA)方法主要依赖上下文学习来模拟类人推理。然而,它们忽视了一项关键的人类技能:持续学习。受我们在成长阶段维护错题本这一教育实践的启发,我们提出LPE-SQL(Leveraging Prior Experience: An Expandable Auxiliary Knowledge Base for Text-to-SQL),这是一个新颖的框架,旨在通过实现持续学习来增强LLMs,而无需进行参数微调。LPE-SQL由四个模块组成,它们分别:i) 检索相关条目,ii) 高效生成SQL,iii) 通过交叉一致性机制生成最终结果,以及iv) 记录成功和失败的任务及其推理过程或反思生成的提示。重要的是,LPE-SQL的核心模块是第四个模块,而其他模块采用基础方法,使得LPE-SQL能够轻松与SoTA技术集成以进一步提升性能。我们的实验结果表明,这种持续学习方法带来了显著的性能提升,较小的Llama-3.1-70B模型在使用该方法后,性能超过了使用SoTA方法的更大的Llama-3.1-405B模型。

英文摘要:

Large Language Models (LLMs) exhibit impressive problem-solving skills across many tasks, but they still underperform compared to humans in various downstream applications, such as text-to-SQL. On the BIRD benchmark leaderboard, human performance achieves an accuracy of 92.96\%, whereas the top-performing method reaches only 72.39\%. Notably, these state-of-the-art (SoTA) methods predominantly rely on in-context learning to simulate human-like reasoning. However, they overlook a critical human skill: continual learning. Inspired by the educational practice of maintaining mistake notebooks during our formative years, we propose LPE-SQL (Leveraging Prior Experience: An Expandable Auxiliary Knowledge Base for Text-to-SQL), a novel framework designed to augment LLMs by enabling continual learning without requiring parameter fine-tuning. LPE-SQL consists of four modules that \textbf{i)} retrieve relevant entries, \textbf{ii)} efficient sql generation, \textbf{iii)} generate the final result through a cross-consistency mechanism and \textbf{iv)} log successful and failed tasks along with their reasoning processes or reflection-generated tips. Importantly, the core module of LPE-SQL is the fourth one, while the other modules employ foundational methods, allowing LPE-SQL to be easily integrated with SoTA technologies to further enhance performance. Our experimental results demonstrate that this continual learning approach yields substantial performance gains, with the smaller Llama-3.1-70B model with surpassing the performance of the larger Llama-3.1-405B model using SoTA methods.

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

↑