PolySQL:通过自动化后端同构性跨SQL方言扩展文本到SQL评估
PolySQL: Scaling Text-to-SQL Evaluation Across SQL Dialects via Automated Backend Isomorphism
AI总结:
PolySQL通过自动化后端同构性方法,实现跨SQL方言的文本到SQL评估扩展,揭示了从SQLite到其他方言的平均准确率下降10.1%及方言难度层级。
摘要:
SQL方言在语法、类型和函数上因数据库引擎而异。然而,文本到SQL基准测试主要只支持SQLite,这造成了关键评估缺口:跨方言评估显示查询间一致性低(Cohen's),表明SQLite性能不能作为其他方言的可靠代理。然而,此类评估仍极具挑战性:现有方法要么需要昂贵的手动查询转译,要么依赖往往在复杂SQL上失败的工具。为解决这一缺口,我们引入PolySQL,一种新的双执行方法,通过比较标准化执行结果来消除查询转译的需要。值得注意的是,我们的方法在100%查询覆盖率下比查询转译实现了更高的评估保真度。PolySQL包含三个数据集,使首次大规模跨方言研究成为可能。我们的研究揭示了从SQLite到其他方言的平均准确率下降10.1%,并识别了显著的方言难度层级。我们发现这种退化源于逻辑而非语法错误(61% vs. 8%)。我们发布我们的框架代码和排行榜以促进严格的方言鲁棒性评估。
英文摘要:
SQL dialects vary in syntax, types, and functions across database engines. Text-to-SQL benchmarks, however, predominantly support only SQLite. This creates a critical evaluation gap: cross-dialect evaluation reveals weak per-query agreement (Cohen's ), showing that SQLite performance is an unreliable proxy for other dialects. Yet such evaluation remains prohibitively difficult: existing approaches either require expensive manual query transpilation or rely on tools that often fail on complex SQL. To close this gap, we introduce PolySQL, a novel dual-execution method that eliminates the need for query transpilation by comparing normalized execution results. Notably, our approach achieves higher evaluation fidelity than query transpilation with 100% query coverage. PolySQL comprises three datasets, enabling the first large-scale cross-dialect study. Our study reveals a 10.1% average accuracy drop from SQLite to other dialects and identifies a significant dialect difficulty hierarchy. We find this degradation stems from logical rather than syntactic errors (61% vs. 8%). We release our framework code and leaderboard to enable rigorous dialect-robust evaluation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。