SIRIUS-SQL: 在执行反馈中锚定多候选文本到SQL
SIRIUS-SQL: Anchoring Multi-Candidate Text-to-SQL in Execution Feedback
AI总结:
提出SIRIUS-SQL系统,通过难度平滑强化学习、执行生命周期分类和置信门控混合选择器,解决多候选SQL生成中的冗余、修复和选择问题,在BIRD dev和SPIDER test上达到75.88%和91.20%的准确率。
摘要:
在复杂模式上的Text-to-SQL单次通过不可靠,因此近期系统生成多个SQL候选并通过投票过滤错误。然而仅投票是不够的,因为多候选方法有三个耦合的弱点:1) 从单个生成器采样更多会产生越来越冗余的候选,2) 现有流程对每个非干净执行结果应用通用修正,而运行时错误、超时和空结果各自指示与正确性的不同距离,3) 现有选择器依赖单一角度如结果多数投票或成对SQL比较,错过了其他角度可能捕获的信息。我们提出SIRIUS-SQL,解决了所有三个弱点。一个难度平滑的强化学习配方训练SIRIUS-32B生成多样化的可执行SQL候选,并与一个通用LLM配对,填补专家留下的空白。一个基于执行的生命周期对每个结果进行分类,并在候选重新进入池之前应用针对性修复。一个置信门控混合选择器结合执行结果一致性与成对SQL形式判断,仅在接近平局的情况下升级到确定性结构检查。SIRIUS-SQL在BIRD dev上达到75.88%,在SPIDER test上达到91.20%。三个通用配对中的两个超过了BIRD dev上最强已发布的多候选系统Agentar-Scale-SQL。
英文摘要:
Text-to-SQL on complex schemas is unreliable on a single pass, so recent systems generate multiple SQL candidates and let voting filter out errors. Yet voting alone is not enough, because the multi-candidate recipe has three coupled weaknesses: 1) sampling more from a single generator produces increasingly redundant candidates, 2) existing pipelines apply one generic correction to every non-clean execution result, while runtime errors, timeouts, and empty results each indicate a different distance from correctness, and 3) existing selectors rely on a single angle such as result-majority voting or pairwise SQL comparison, missing what other angles would have caught. We present SIRIUS-SQL, which addresses all three weaknesses. A difficulty-smoothing RL recipe trains SIRIUS-32B to generate diverse executable SQL candidates, paired with a generalist LLM that fills in gaps left by the specialist. An execution-grounded lifecycle classifies each outcome and applies targeted repair before candidates re-enter the pool. A confidence-gated hybrid selector combines execution-result agreement with pairwise SQL-form judgment, escalating only near-tied cases to a deterministic structural check. SIRIUS-SQL reaches 75.88% on BIRD dev and 91.20% on SPIDER test. Two of three generalist pairings surpass Agentar-Scale-SQL, the strongest published multi-candidate system on BIRD dev.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。