Abstract
We propose a neurosymbolic architecture aimed at boosting the performance of any Language Model (LM) for SQL query generation. This approach leverages symbolic reasoning to guide the LM's exploration of the search space by considering multiple paths, symbolically evaluating choices at each decision point to choose the next step, with the added novel ability to backtrack. A key innovation is the use of symbolic checks on both partially and fully generated SQL queries, enabling early truncation of unsuccessful search paths. Input consists of textual requirements on the desired query, along with optional example tuples to be selected by the query. Experiments on Xander, our open-source implementation, show it both reduces runtime and increases accuracy of the generated SQL. A specific result is an LM using Xander outperforming a four-times-larger LM.
| Original language | English |
|---|---|
| Title of host publication | AAAI-25 Technical Tracks 19 |
| Editors | Toby Walsh, Julie Shah, Zico Kolter |
| Publisher | AAAI Press |
| Pages | 19959-19968 |
| Number of pages | 10 |
| Edition | 19 |
| ISBN (Electronic) | 9781577358978 |
| DOIs | |
| Publication status | Published - 11 Apr 2025 |
| Event | The 39th Annual AAAI Conference on Artificial Intelligence - Philadelphia, United States Duration: 25 Feb 2025 → 4 Mar 2025 https://aaai.org/conference/aaai/aaai-25/ |
Publication series
| Name | Proceedings of the AAAI Conference on Artificial Intelligence |
|---|---|
| Publisher | AAAI |
| Number | 19 |
| Volume | 39 |
| ISSN (Print) | 2159-5399 |
| ISSN (Electronic) | 2374-3468 |
Conference
| Conference | The 39th Annual AAAI Conference on Artificial Intelligence |
|---|---|
| Country/Territory | United States |
| City | Philadelphia |
| Period | 25/02/25 → 4/03/25 |
| Internet address |
Bibliographical note
Publisher Copyright:Copyright © 2025, Association for the Advancement of Artificia Intelligence (www.aaai.org). All rights reserved.