International Conference on “Large Language Models and Use cases” 2023 |
Control System labs |
LLMUC2023 - Number 2 |
None 2025 |
Authors: Madhu Damani, Gaurav Kamdar, Laksh Jethani, Mukesh Israni |
Madhu Damani, Gaurav Kamdar, Laksh Jethani, Mukesh Israni . SpeakQL: SQL Generation from Natural Language. International Conference on “Large Language Models and Use cases” 2023. LLMUC2023, 2 (None 2025), 43-48.
In recent years, there has been growing interest in the complex task of converting natural language into SQL queries. This challenge typically involves using sequence-tosequence models, which require the serialization of SQL queries. However, a fundamental issue arises as a single SQL query can have multiple valid serializations, leading to the ‘order matters’ problem and making it difficult to train such models effectively. While existing state-of-the-art methods turn to reinforcement learning to address this issue, their success is limited. This paper presents SpeakQL, a novel approach tailored to scenarios where query order is not critical. SpeakQL adopts a sketchbased strategy, incorporating a dependency graph into its model architecture to consider the influence of prior predictions on current ones. Furthermore, SpeakQL utilizes GloVe embeddings and a column attention mechanism to enhance contextual comprehension, ultimately improving the query generation and result retrieval process.