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.
Beyond Static Rules: Automated Discovery of Latent Vulnerabilities in Text-to-SQL
Shanghai University of Finance and Economics(上海财经大学);Beihang University(北京航空航天大学);Deepexi Technology Co. Ltd.(深圳市智元机器有限公司);Southern University of Science and Technology(南方科技大学)
SQLForge: Synthesizing Reliable and Diverse Data to Enhance Text-to-SQL Reasoning in LLMs
University of Science and Technology of China(中国科学技术大学);Institute of Artificial Intelligence, Hefei Comprehensive National Science Center(合肥综合性国家科学中心人工智能研究院)
SQL-o1: Automatic Text-to-SQL Program Synthesis via Self-Reward Heuristic Search
School of Computer Science, Beijing University of Posts and Telecommunications, China(北京邮电大学计算机科学学院);College of Computing and Data Science, Nanyang Technological University, Singapore(南洋理工大学计算机与数据科学学院);State Key Laboratory of Networking and Switching Technology, Beijing University of Posts and Telecommunications, China(北京邮电大学网络与交换技术国家重点实验室);College of Computer Science, Sichuan University, Chengdu, China(四川大学计算机学院)
ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQL
Soochow University(苏州大学);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东省人工智能与数字经济发展实验室);South China University of Technology(华南理工大学);University of Chinese Academy of Sciences(中国科学院大学);Alibaba DAMO Academy(阿里巴巴达摩院);International Digital Economy Academy (IDEA), China(国际数字经济学院(IDEA),中国)
School of Information, Renmin University of China(中国人民大学信息学院);Key Laboratory of Data Engineering and Knowledge Engineering, Beijing, China(数据工程与知识工程重点实验室);Engineering Research Center of Database and Business Intelligence, Beijing, China(数据库与商业智能工程研究中心);Ant Group, Hangzhou, China(蚂蚁集团)
Parallel-R1: Towards Parallel Thinking via Reinforcement Learning
Tencent AI Lab Seattle(腾讯人工智能实验室西雅图);University of Maryland, College Park(马里兰大学帕克分校);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);City University of Hong Kong(香港城市大学);Washington University in St. Louis(圣路易斯华盛顿大学)
The University of Sydney(悉尼大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);University of Technology Sydney(悉尼科技大学);Hong Kong Baptist University(香港浸会大学)
Parallel Test-Time Scaling for Latent Reasoning Models
Hong Kong Polytechnic University(香港理工大学);Shandong Jianzhu University(山东建筑大学);University of Science and Technology of China(中国科学技术大学);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳))
The Ohio State University(俄亥俄州立大学);Microsoft Research(微软研究院)
学习捕获文本表对齐对于像文本到SQL这样的任务是必不可少的。模型需要正确识别对列和值的自然语言引用,并将它们置于给定的数据库模式中。在本文中,我们提出了一种新的弱监督结构接地预训练框架(StruG)的文本到SQL,可以有效地学习捕获基于并行文本表语料库的文本表对齐。我们确定了一组新的预测任务:列接地,值接地和列值映射,并利用它们来预训练文本表编码器。此外,为了在更现实的文本表对齐设置下评估不同的方法,我们基于Spider dev set创建了一个新的评估集Spider-Realistic,其中删除了明确提到的列名,并采用八个现有的文本到SQL数据集进行跨数据库评估。在所有设置中,BERT-LARGE带来了显着的改进。与现有的预训练方法(如GRAPPA)相比,BLOG在Spider上实现了类似的性能,并且在更真实的集合上优于所有基线。Spider-Realistic数据集可在https://doi.org/10.5281/zenodo.5205322上获得。
TRUST-SQL: Tool-Integrated Multi-Turn Reinforcement Learning for Text-to-SQL over Unknown Schemas
Beijing University of Posts and Telecommunications(北京邮电大学);State Key Lab of Processors, Institute of Computing Technology, CAS(中国科学院计算技术研究所处理器国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Meituan(美团)