{"repo":"DataArcTech/SQL-R1","free":true,"listed":false,"github":"https://github.com/DataArcTech/SQL-R1","clone":"git clone https://github.com/DataArcTech/SQL-R1.git","description":"[NeurIPS'25] Official Repository for the Paper \"SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learning\"","language":"Python","stars":147,"topics":["nl2sql","reasoning","reinforcement-learning","database","text2sql"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"SQL-R1: Training Natural Language to SQL Reasoning Model By Reinforcement Learning Peixian Ma 1,2 &nbsp;&nbsp; Xialie Zhuang 1,3 &nbsp;&nbsp; Chengjin Xu 1,4 &nbsp;&nbsp; Xuhui Jiang 1,4 &nbsp;&nbsp; Ran Chen 1 &nbsp;&nbsp; Jian Guo 1 1 IDEA Research, International Digital Economy Academy 2 The Hong Kong University of Science and Technology (Guangzhou) 3 University of Chinese Academy of Science 4 DataArc Tech Ltd. Contact: pma929@connect.hkust-gz.edu.cn , xuchengjin@idea.edu.cn 🔥 Our work is accepted by NeurIPS 2025. Welcome to star and cite our work! ✨ 📖 Overview Natural Language to SQL (NL2SQL) enables intuitive interactions with databases by transforming natural language queries into structured SQL statements. Despite recent advancements in enhancing human-computer interaction within database applications, significant challenges persist, particularly regarding the inference performance in complex scenarios involving multi-table joins and nested queries. Current methodologies primarily utilize supervised fine-tuning (SFT) to train the NL2SQL model, which may limit adaptability and interpretability in new environments (e.g., finance and healthcare). In order to enhance the reasoning performance of the NL2SQL model in the above complex situations, we introduce SQL-R1, a novel NL2SQL reasoning model trained by the reinforcement learning (RL) algorithms. We design a specialized RL-based reward function tailored for NL2SQL tasks and discussed the impact of cold start on the ef","default_branch":null,"files":null,"tree":[],"storefront":"/r/DataArcTech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DataArcTech/SQL-R1/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}