ReFoRCE:一种具备自精炼、共识执行与列探索能力的文本到SQL智能体
ReFoRCE: A Text-to-SQL Agent with Self-Refinement, Consensus Enforcement, and Column Exploration
AI总结:
ReFoRCE通过数据库信息压缩、自精炼、多数投票共识和基于执行反馈的迭代列探索,解决了大规模复杂模式、多SQL方言和复杂查询需求下的文本到SQL难题,并在Spider 2.0-Snow和Spider 2.0-Lite上分别取得35.83和36.56的最新最优成绩。
摘要:
我们提出ReFoRCE,一个在Spider 2.0排行榜上位居榜首的文本到SQL智能体——Spider 2.0是一个反映复杂真实世界文本到SQL场景的具有挑战性的基准。虽然文本到SQL系统支持对结构化数据库进行自然语言查询,但由于大规模复杂模式(超过1,000列)、多样化的SQL方言(如BigQuery、Snowflake)以及复杂的查询需求(如数据转换和分析),在企业环境中部署它们仍然困难。ReFoRCE通过以下方式应对这些挑战:(a)通过基于模式的表分组和LLM引导的模式链接进行数据库信息压缩,以缓解长上下文问题;(b)自精炼,以迭代方式纠正跨方言的语法和语义错误;(c)多数投票共识,以选择高置信度候选结果,同时将复杂查询产生的模糊情况推迟处理;(d)由执行反馈引导的迭代列探索,以解决那些被推迟的情况。ReFoRCE取得了新的最先进结果,在Spider 2.0-Snow上得分为35.83,在Spider 2.0-Lite上得分为36.56。
英文摘要:
We present ReFoRCE, a Text-to-SQL agent that tops the Spider 2.0 leaderboard--a challenging benchmark reflecting complex, real-world Text-to-SQL scenarios. While Text-to-SQL systems enable natural language queries over structured databases, deploying them in enterprise environments remains difficult due to large, complex schemas (with over 1,000 columns), diverse SQL dialects (e.g., BigQuery, Snowflake), and sophisticated query requirements (e.g., transformations and analytics). ReFoRCE addresses these challenges through: (a) database information compression via pattern-based table grouping and LLM-guided schema linking to alleviate long-context issues; (b) self-refinement to iteratively correct syntax and semantic errors across dialects; (c) majority-vote consensus to select high-confidence candidates while deferring ambiguous cases arising from sophisticated queries; and (d) iterative column exploration guided by execution feedback to resolve those deferred cases. ReFoRCE achieves new state-of-the-art results, with scores of 35.83 on Spider 2.0-Snow and 36.56 on Spider 2.0-Lite.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。