Valid Text-to-SQL Generation with Unification-Based DeepStochLog

📅 2025-03-17
🏛️ International Workshop on Neural-Symbolic Learning and Reasoning
📈 Citations: 1
Influential: 0
📄 PDF
🤖 AI Summary
To address SQL syntax errors, semantic unexecutability, and logical misalignment between natural language and SQL in text-to-SQL generation, this paper introduces DeepStochLog—a deep probabilistic logic programming framework—to the task for the first time. It intrinsically encodes SQL syntactic constraints via first-order logic unification and integrates neural-symbolic reasoning with grammar-guided decoding, thereby ensuring generated SQL queries are syntactically correct, database-executable, and semantically aligned with the input utterance. Evaluated on the Spider benchmark, our approach improves the valid SQL rate by 12.6%, achieves 100% executability of generated queries, and attains state-of-the-art logical consistency. These results significantly enhance the reliability and practical deployability of text-to-SQL systems.

Technology Category

Application Category

Problem

Research questions and friction points this paper is trying to address.

Ensures valid SQL query generation using unification-based grammars.
Addresses invalid SQL queries from large language models.
Improves execution accuracy and alignment with ground truth.
Innovation

Methods, ideas, or system contributions that make the work stand out.

Neurosymbolic framework for SQL generation
Unification-based definite clause grammars
Bi-directional interface to language models
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
Y
Ying Jiao
KU Leuven, Dept. of Computer Science; Leuven.AI, B-3000 Leuven, Belgium
L
L. D. Raedt
KU Leuven, Dept. of Computer Science; Leuven.AI, B-3000 Leuven, Belgium; AASS, Örebro University, Sweden
Giuseppe Marra
Giuseppe Marra
KU Leuven
Deep LearningStatistical Relational LearningNeurosymbolic AI