ROSE:一种面向 NL2SQL 的以意图为中心的评估指标
阅读原文· arxiv.org针对 NL2SQL 领域传统执行准确率(EX)指标对语法敏感、易受错误 ground-truth 干扰等问题,研究者推出以意图为中心的评估指标 ROSE。该指标采用对抗性 Prover-Refuter 级联架构,通过 SQL Prover 独立验证语义正确性,并由 Adversarial Refuter 利用 ground-truth 进行对抗式修正。在专家对齐的 ROSE-VEC 验证集上,ROSE 与人工专家的一致性比次优指标高出近 24%(Cohen's Kappa)。团队还基于该指标重新评估了 19 种 NL2SQL 方法,并开源了 ROSE 及验证集。
Execution Accuracy (EX), the widely used metric for evaluating the effectiveness of Natural Language to SQL (NL2SQL) solutions, is becoming increasingly unreliable. It is sensitive to syntactic variation, ignores that questions may admit multiple interpretations, and is easily misled by erroneous ground-truth SQL. To address this, we introduce ROSE, an intent-centered metric that focuses on whether the predicted SQL answers the question, rather than consistency with the ground-truth SQL under the reference-dependent paradigm. ROSE employs an adversarial Prover-Refuter cascade: SQL Prover assesses the semantic correctness of a predicted SQL against the user's intent independently, while Adversarial Refuter uses the ground-truth SQL as evidence to challenge and refine this judgment. On our expert-aligned validation set ROSE-VEC, ROSE achieves the best agreement with human experts, outperforming the next-best metric by nearly 24% in Cohen's Kappa. We also conduct a largescale re-evaluation of 19 NL2SQL methods, revealing four valuable insights. We release ROSE and ROSE-VEC to facilitate more reliable NL2SQL research.