一种提升Text-to-SQL大语言模型性能的Actor-Critic方法
An Actor-Critic Approach to Boosting Text-to-SQL Large Language Model
AI总结:
针对现有Text-to-SQL大模型方法无性能理论保障的问题,提出基于同一大模型的Actor-Critic双角色迭代增强方法,经多数据集多模型实验验证其可通用提升Text-to-SQL性能且有理论性能保障。
摘要:
基于大语言模型(LLM)的Text-To-SQL(T2S,文本转SQL)转换凭借LLM解析自然语言查询意图的能力已获得广泛应用。现有研究聚焦于数据模式和/或问题的合适表示、任务特定指令与代表性示例,以及复杂的推理流水线。所有这些方法都属于经验性且面向特定任务的方法,不具备性能上的理论边界。本文提出了一种简单、通用且有性能保障的T2S增强方法,名为Actor-Critic(AC,演员-评论家)。具体而言,我们使用同一个LLM设计了两个角色:Actor(演员)负责生成SQL查询,Critic(评论家)负责评估生成的SQL。若Critic判定生成的SQL有误,便通知Actor重新生成SQL并再次执行评估。通过这一简单的迭代过程,可在理论上推导出预期性能。我们在Spider及相关数据集上使用11种LLM开展了大量实验,结果表明Actor-Critic方法能持续提升T2S的性能,因此可作为T2S转换的通用增强方法。
英文摘要:
Text-To-SQL (T2S) conversion based on large language models (LLMs) has found a wide range of applications, by leveraging the capabilities of LLMs in interpreting the query intent expressed in natural language. Existing research focuses on suitable representations for data schema and/or questions, task-specific instructions and representative examples, and complicated inference pipelines. All these methods are empirical and task specific, without a theoretical bound on performance. In this paper, we propose a simple, general, and performance guaranteed T2S enhancement approach called Actor-Critic (AC). Specifically, we design two roles using the same LLM: an Actor to produce SQL queries and a Critic to evaluate the produced SQL. If the Critic believes the produced SQL is wrong, it notifies the Actor to reproduce the SQL and perform evaluation again. By this simple iterative process, expected performance can be derived in theory. We conducted extensive experiments on the Spider and related datasets with eleven LLMs, and demonstrated that the Actor-Critic method consistently improves the performance of T2S, thus serving as a general enhancement approach for T2S conversion.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。