Tech Studies

91,965 research papers, searchable by meaning as well as exact wording. So “steering vectors” also surfaces work on “activation steering.”

Papers
91,965
Semantically indexed
91,965
Subject areas
145
Authors
199,823
Newest paper
25 Nov

172 results for “SQL”

Matched on wording only, meaning-matching is unavailable right now

141

Structure Guided Large Language Model for SQL Generation

19 Feb · Qinggang Zhang, Hao Chen, Junnan Dong +3 · arXiv:2402.13284

Recent advancements in large language models (LLMs) have shown promise in bridging the gap between natural language queries and database management systems, enabling users to interact with databases without the background of SQL. However, LLMs often struggle to comprehend complex database structures and accurately interpret user intentions. Decomposition-based methods have been proposed to enhance the performance of…

The 42nd International Conference on Machine Learning Databases Artificial intelligence Language & NLP Matched by wording
142

Single-Database Rewards Are Hackable: Counterfactual Execution for Trustworthy Text-to-SQL RL

25 Nov · Shreshth Rai, Rishii Kumar Singh, Aksh Aggarwal · arXiv:2611.34363

Reinforcement learning (RL) for text-to-SQL agents pays a query when its result matches the reference on one database. However, a wrong query can match by luck when the data lack the rows that expose its bug. We study a counterfactual-database (CF) reward that also runs the final query on a few hidden, code-generated copies of the database and pays only if all results match (strict form) or by the share matched…

+ references and appendix ( total). Code: https://github.com/RishiiGamer2201/counterfactual-sql-rewards Machine learning Language & NLP Databases Matched by wording
143

SQLBench: A Comprehensive Evaluation for Text-to-SQL Capabilities of Large Language Models

5 Mar · Bin Zhang, Yuxiao Ye, Guoqing Du +8 · arXiv:2403.02951

Large Language Models (LLMs) have emerged as a powerful tool in advancing the Text-to-SQL task, significantly outperforming traditional methods.Nevertheless, as a nascent research field, there is still no consensus on the optimal prompt templates and design frameworks. Additionally, existing benchmarks inadequately explore the performance of LLMs across the various sub-tasks of the Text-to-SQL process, which hinders…

144

A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?

9 Aug · Xinyu Liu, Shuyu Shen, Boyan Li +7 · arXiv:2408.05109

Translating users' natural language queries (NL) into SQL queries (i.e., Text-to-SQL, a.k.a. NL2SQL) can significantly reduce barriers to accessing relational databases and support various commercial applications. The performance of Text-to-SQL has been greatly enhanced with the emergence of Large Language Models (LLMs). In this survey, we provide a comprehensive review of Text-to-SQL techniques powered by LLMs,…

145

Multi-Turn Interactions for Text-to-SQL with Large Language Models

9 Aug · Guanming Xiong, Junwei Bao, Hongfei Jiang +2 · arXiv:2408.11062

This study explores text-to-SQL parsing by leveraging the powerful reasoning capabilities of large language models (LLMs). Despite recent advancements, existing LLM-based methods are still inefficient and struggle to handle cases with wide tables effectively. Furthermore, current interaction-based approaches either lack a step-by-step, interpretable SQL generation process or fail to provide a universally applicable…

This work has been accepted to CIKM 2025 Language & NLP Artificial intelligence Matched by wording
146

BEAVER: An Enterprise Benchmark for Text-to-SQL

3 Sept · Peter Baile Chen, Devin Yang, Weiyue Li +6 · arXiv:2409.02038

Existing text-to-SQL benchmarks have largely been constructed from public databases with well-structured schemas and simplistic question-SQL pairs. While large language models (LLMs) excel on these settings, their efficacy in complex private enterprise environments, characterized by intricate schemas, domain knowledge, and analytical user queries involving sophisticated structures and functions, remains unproven. To…

Dataset and code are available at https://beaverbench.github.io/ Language & NLP Artificial intelligence Databases Matched by wording
147

PRACTIQ: A Practical Conversational Text-to-SQL dataset with Ambiguous and Unanswerable Queries

14 Oct · Mingwen Dong, Nischal Ashok Kumar, Yiqun Hu +9 · arXiv:2410.11076

Previous text-to-SQL datasets and systems have primarily focused on user questions with clear intentions that can be answered. However, real user questions can often be ambiguous with multiple interpretations or unanswerable due to a lack of relevant data. In this work, we construct a practical conversational text-to-SQL dataset called PRACTIQ, consisting of ambiguous and unanswerable questions inspired by…

148

Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errors

16 Jan · Jiawei Shen, Chengcheng Wan, Ruoyi Qiao +6 · arXiv:2501.09310

Large language models (LLMs) have been adopted for text-to-SQL tasks, utilizing their in-context learning (ICL) capability to translate natural language questions into SQL queries. However, such a technique faces correctness problems. In this paper, we conduct the first comprehensive study of text-to-SQL errors of ICL-based techniques. Our study covers four representative ICL-based techniques, five basic repairing…

149

Text-to-SQL Domain Adaptation via Human-LLM Collaborative Data Annotation

21 Feb · Yuan Tian, Daniel Lee, Fei Wu +5 · arXiv:2502.15980

Text-to-SQL models, which parse natural language (NL) questions to executable SQL queries, are increasingly adopted in real-world applications. However, deploying such models in the real world often requires adapting them to the highly specialized database schemas used in specific applications. We find that existing text-to-SQL models experience significant performance drops when applied to new schemas, primarily…

Accepted by IUI'25 Code & Demo: https://github.com/magic-YuanTian/SQLsynth Human-computer interaction Artificial intelligence Databases Matched by wording
150

TinySQL: A Progressive Text-to-SQL Dataset for Mechanistic Interpretability Research

17 Mar · Abir Harrasse, Philip Quirke, Clement Neo +3 · arXiv:2503.12730

Mechanistic interpretability research faces a gap between analyzing simple circuits in toy tasks and discovering features in large models. To bridge this gap, we propose text-to-SQL generation as an ideal task to study, as it combines the formal structure of toy tasks with real-world complexity. We introduce TinySQL, a synthetic dataset, progressing from basic to advanced SQL operations, and train models ranging…

Accepted to EMNLP 2025, 18 trained models Project Website: https://abirharrasse.github.io/tinysql/ Code Repository: https://github.com/withmartian/TinySQL Datasets and Models Viewer: https://huggingface.co/spaces/abir-hr196/tinysql-demo Machine learning Artificial intelligence Databases Matched by wording
151

Feather-SQL: A Lightweight NL2SQL Framework with Dual-Model Collaboration Paradigm for Small Language Models

22 Mar · Wenqi Pei, Hailing Xu, Hengyuan Zhao +5 · arXiv:2503.17811

Natural Language to SQL (NL2SQL) has seen significant advancements with large language models (LLMs). However, these models often depend on closed-source systems and high computational resources, posing challenges in data privacy and deployment. In contrast, small language models (SLMs) struggle with NL2SQL tasks, exhibiting poor performance and incompatibility with existing frameworks. To address these issues, we…

152

EllieSQL: Cost-Efficient Text-to-SQL with Complexity-Aware Routing

28 Mar · Yizhang Zhu, Runzhi Jiang, Boyan Li +2 · arXiv:2503.22402

Text-to-SQL automatically translates natural language queries to SQL, allowing non-technical users to retrieve data from databases without specialized SQL knowledge. Despite the success of advanced LLM-based Text-to-SQL approaches on leaderboards, their unsustainable computational costs--often overlooked--stand as the "elephant in the room" in current leaderboard-driven research, limiting their economic…

153

Weaver: Interweaving SQL and LLM for Table Reasoning

25 May · Rohit Khoja, Devanshu Gupta, Yanjie Fu +2 · arXiv:2505.18961

Querying tables with unstructured data is challenging due to the presence of text (or image), either embedded in the table or in external paragraphs, which traditional SQL struggles to process, especially for tasks requiring semantic reasoning. While Large Language Models (LLMs) excel at understanding context, they face limitations with long input sequences. Existing approaches that combine SQL and LLMs typically…

154

Arctic-Text2SQL-R1: Simple Rewards, Strong Reasoning in Text-to-SQL

22 May · Zhewei Yao, Guoheng Sun, Lukasz Borchmann +7 · arXiv:2505.20315

Translating natural language into SQL (Test2SQL) is a longstanding challenge at the intersection of natural language understanding and structured data access. While large language models (LLMs) have significantly improved fluency in SQL generation, producing correct and executable SQL--particularly for complex queries--remains a bottleneck. We present Arctic-Text2SQL-R1, a reinforcement learning (RL) framework and…

155

BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Bases

23 May · Mathew J. Koretsky, Maya Willey, Owen Bianchi +7 · arXiv:2505.20321

Biomedical researchers increasingly rely on large-scale structured databases for complex analytical tasks. However, current text-to-SQL systems often struggle to map qualitative scientific questions into executable SQL, particularly when implicit domain reasoning is required. We introduce BiomedSQL, the first benchmark explicitly designed to evaluate scientific reasoning in text-to-SQL generation over a real-world…

Published as a conference paper at COLM 2026 Language & NLP Artificial intelligence Machine learning Matched by wording
156

Calibrating LLMs for Text-to-SQL Parsing by Leveraging Sub-clause Frequencies

27 May · Terrance Liu, Shuyi Wang, Daniel Preotiuc-Pietro +2 · arXiv:2505.23804

While large language models (LLMs) achieve strong performance on text-to-SQL parsing, they sometimes exhibit unexpected failures in which they are confidently incorrect. Building trustworthy text-to-SQL systems thus requires eliciting reliable uncertainty measures from the LLM. In this paper, we study the problem of providing a calibrated confidence score that conveys the likelihood of an output query being correct.…

EMNLP 2025 main conference Language & NLP Artificial intelligence Machine learning Matched by wording
157

Schema-R1: A reasoning training approach for schema linking in Text-to-SQL Task

13 Jun · Wuzhenghong Wen, Su Pan, yuwei Sun · arXiv:2506.11986

Schema linking is a critical step in Text-to-SQL task, aiming to accurately predict the table names and column names required for the SQL query based on the given question. However, current fine-tuning approaches for schema linking models employ a rote-learning paradigm, excessively optimizing for ground truth schema linking outcomes while compromising reasoning ability. This limitation arises because of the…

158

Datrics Text2SQL: A Framework for Natural Language to SQL Query Generation

3 Apr · Tetiana Gladkykh, Kyrylo Kirykov · arXiv:2506.12234

Text-to-SQL systems enable users to query databases using natural language, democratizing access to data analytics. However, they face challenges in understanding ambiguous phrasing, domain-specific vocabulary, and complex schema relationships. This paper introduces Datrics Text2SQL, a Retrieval-Augmented Generation (RAG)-based framework designed to generate accurate SQL queries by leveraging structured…

initial whitepaper version 1.0, submitted March 2025 Databases Artificial intelligence Language & NLP Matched by wording
159

CogniSQL-R1-Zero: Lightweight Reinforced Reasoning for Efficient SQL Generation

8 Jul · Kushal Gajjar, Harshit Sikchi, Arpit Singh Gautam +2 · arXiv:2507.06013

Translating natural language into SQL (Text-to-SQL) remains a core challenge at the intersection of language understanding and structured data access. Although large language models (LLMs) have improved fluency, generating correct and executable SQL, especially for complex queries, continues to be challenging. We introduce CogniSQL-R1-Zero, a reinforcement learning (RL) framework and model that produces accurate SQL…

Artificial intelligence Matched by wording
160

SQLBarber: A System Leveraging Large Language Models to Generate Customized and Realistic SQL Workloads

8 Jul · Jiale Lao, Immanuel Trummer · arXiv:2507.06192

Database research and development often require a large number of SQL queries for benchmarking purposes. However, acquiring real-world SQL queries is challenging due to privacy concerns, and existing SQL generation methods are limited in customization and in satisfying realistic constraints. To address this issue, we present SQLBarber, a system based on Large Language Models (LLMs) to generate customized and…

Accepted by SIGMOD 2026; extended version with appendix Databases Artificial intelligence Language & NLP Matched by wording