arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.05906cs.CL
收藏

ACE-SQL: 基于经验信用分配的自适应协同优化方法用于文本到SQL

ACE-SQL: Adaptive Co-Optimization via Empirical Credit Assignment for Text-to-SQL

Harbin Engineering University(哈尔滨工程大学);Harbin Institute of Technology(哈尔滨工业大学);Beijing University of Posts and Telecommunications(北京邮电大学)

Xiaobing Chen, Ai Jian, Eryu Guo, Zhiqi Pang

AI总结:

提出ACE-SQL强化学习框架,通过在线列集池和经验信用分配联合优化模式检索与SQL生成,在BIRD Dev上达到65.3%的贪心执行准确率。

摘要:

文本到SQL将自然语言问题映射为可执行的SQL查询。现代数据库通常包含大型且复杂的模式,使得模式链接成为准确生成SQL的关键步骤。现有方法要么依赖全模式生成,这在大搜索空间中隐式进行模式链接,要么使用基于静态金列监督训练的独立检索器,其目标可能对当前生成器策略是次优的。为解决此问题,我们提出基于经验信用分配的自适应协同优化方法用于文本到SQL(ACE-SQL),这是一个在执行反馈下联合优化模式检索和SQL生成的强化学习框架。ACE-SQL从生成器rollout中构建在线列集池,并从与执行正确rollout最频繁关联的列集中推导出自适应在线策略检索目标。这引发了双向适应:检索器适应生成器能正确执行的列集,而生成器在执行反馈下适应检索器不断演变的模式选择。使用约3k个合成文本到SQL问题-数据库对进行强化学习训练,ACE-SQL在BIRD Dev上实现了65.3%的贪心执行准确率,每个查询使用0.93k输出令牌。代码仓库见https://github.com/xbchen1/ACE-SQL。

英文摘要:

Text-to-SQL maps natural language questions to executable SQL queries. Modern databases often contain large and complex schemas, making schema linking a critical step for accurate SQL generation. Existing methods either rely on full-schema generation, which leaves schema linking implicit within a large search space, or use a separate retriever trained with static gold-column supervision, whose targets may be suboptimal for the current generator policy. To address this issue, we propose Adaptive Co-optimization via Empirical Credit Assignment for Text-to-SQL (ACE-SQL), a reinforcement learning (RL) framework that jointly optimizes schema retrieval and SQL generation under execution feedback. ACE-SQL constructs an online column-set pool from generator rollouts and derives adaptive on-policy retrieval targets from the column set most frequently associated with execution-correct rollouts. This induces bidirectional adaptation, where the retriever adapts toward column sets that the generator can execute correctly, while the generator adapts to the retriever's evolving schema selections under execution feedback. With approximately 3k synthetic Text-to-SQL question-database pairs for RL training, ACE-SQL achieves 65.3% greedy execution accuracy on BIRD Dev while using 0.93k output tokens per query. The repository is available at https://github.com/xbchen1/ACE-SQL.

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

↑