arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.22934cs.AIcs.CL
收藏

PExA:复杂文本到SQL的并行探索代理

PExA: Parallel Exploration Agent for Complex Text-to-SQL

University of California Los Angeles(加州大学洛杉矶分校);Bloomberg(彭博)

Tanmay Parekh, Ella Hofmann-Coyle, Shuyi Wang, Sachith Sri Ram Kothur, Srivas Prasad, Yunmo Chen

AI总结:

本文提出PExA,通过软件测试覆盖视角解决文本到SQL的延迟与性能权衡问题,通过并行执行测试用例确保语义覆盖,最终生成准确的SQL。

摘要:

基于LLM的文本到SQL代理常面临延迟与性能的权衡问题,性能提升可能以延迟为代价。本文将文本到SQL生成重新定义为软件测试覆盖视角,通过并行执行一组更简单的原子SQL测试用例来确保原始查询的语义覆盖。在迭代测试用例覆盖后,只有在收集到足够信息时才生成最终SQL,利用已探索的测试用例SQL来支撑最终生成。我们在文本到SQL的最新基准测试Spide 2.0上验证了该框架,实现了70.2%的执行准确率,达到了新的状态-of-the-art水平。

英文摘要:

LLM-based agents for text-to-SQL often struggle with latency-performance trade-off, where performance improvements come at the cost of latency or vice versa. We reformulate text-to-SQL generation within the lens of software test coverage where the original query is prepared with a suite of test cases with simpler, atomic SQLs that are executed in parallel and together ensure semantic coverage of the original query. After iterating on test case coverage, the final SQL is generated only when enough information is gathered, leveraging the explored test case SQLs to ground the final generation. We validated our framework on a state-of-the-art benchmark for text-to-SQL, Spider 2.0, achieving a new state-of-the-art with 70.2% execution accuracy.

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

↑