paper-with-me

Papers

Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learning

2017-08-31 · ICLR 2018 1 · Victor Zhong, Caiming Xiong, Richard Socher

A significant amount of the world's knowledge is stored in relational databases. However, the ability for users to retrieve facts from a database is limited due to a lack of understanding of query languages such as SQL. We propose Seq2SQL, a deep neural network for translating natural language questions to corresponding SQL queries. Our model leverages the structure of SQL queries to significantly reduce the output space of generated queries. Moreover, we use rewards from in-the-loop query execution over the database to learn a policy to generate unordered parts of the query, which we show are less suitable for optimization via cross entropy loss. In addition, we will publish WikiSQL, a dataset of 80654 hand-annotated examples of questions and SQL queries distributed across 24241 tables from Wikipedia. This dataset is required to train our model and is an order of magnitude larger than comparable datasets. By applying policy-based reinforcement learning with a query execution environment to WikiSQL, our model Seq2SQL outperforms attentional sequence to sequence models, improving execution accuracy from 35.9% to 59.4% and logical form accuracy from 23.4% to 48.3%.

📄 PDF Abstract BibTeX arXiv:1709.00103

Code (15)

salesforce/WikiSQL 공식 구현
Baidi96/text2sql pytorch
CX000/sqlnet_inference_py36 pytorch
PriyankaDatar/NLP_Project_Modfications pytorch
PriyankaDatar/NLP_SQL_Project pytorch
abhishekchugh17/sql12 pytorch
ist-daslab/rosa pytorch
kasnerz/tabgenie
kh-mo/QA_wikisql
llSourcell/SQL_Database_Optimization pytorch
openbotai/nl2sql
racheljose21/chatbot pytorch
tiwarikajal/Seq2SQL- pytorch
wronnyhuang/SQLNet_inference pytorch
xiaojunxu/SQLNet pytorch

Tasks

reinforcement-learningReinforcement LearningReinforcement Learning (RL)Text-To-SQL

Similar Papers 제목 키워드 기반

Learning to Generate Structured Queries from Natural Language with Indirect Supervision

2018-09-10 · Ziwei Bai, Bo Yu, Bowen Wu, Zhuoran Wang 외

Generating structured query language (SQL) from natural language is an emerging research topic. This paper presents a new learning paradigm from indirect supervision of the answers to natural language questions, instead …

reinforcement-learningReinforcement LearningReinforcement Learning (RL)

SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learning

2017-11-13 · ICLR 2018 1 · Xiaojun Xu, Chang Liu, Dawn Song

Synthesizing SQL queries from natural language is a long-standing open problem and has been attracting considerable interest recently. Toward solving the problem, the de facto approach is to employ a sequence-to-sequence…

Decoderreinforcement-learningReinforcement LearningReinforcement Learning (RL)+1

LAFA: Agentic LLM-Driven Federated Analytics over Decentralized Data Sources

2025-10-21 · Haichao Ji, Zibo Wang, Cheng Pan, Meng Han 외 arxiv

Large Language Models (LLMs) have shown great promise in automating data analytics tasks by interpreting natural language queries and generating multi-operation execution plans. However, existing LLM-agent-based analytic…

Natural Language Queries

Q-NL Verifier: Leveraging Synthetic Data for Robust Knowledge Graph Question Answering

2025-03-03 · Tim Schwabe, Louisa Siebel, Patrik Valach, Maribel Acosta

Question answering (QA) requires accurately aligning user questions with structured queries, a process often limited by the scarcity of high-quality query-natural language (Q-NL) pairs. To overcome this, we present Q-NL …

Graph Question AnsweringQuestion AnsweringTranslation

Natural Language Interface for Databases Using a Dual-Encoder Model

2018-08-01 · COLING 2018 8 · Ionel Alex Hosu, Radu Cristian Alex Iacob, ru, Florin Brad 외

We propose a sketch-based two-step neural model for generating structured queries (SQL) based on a user{'}s request in natural language. The sketch is obtained by using placeholders for specific entities in the SQL query…

Machine TranslationSemantic Parsing