About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Publication
MML 2024
Poster
Leveraging Large Language Models for Natural Language to SQL Conversion
Abstract
Large Language Models (LLMs) have the potential to revolutionize how users interact with databases by enabling natural language queries. However, current LLMs struggle to generate accurate and reliable SQL queries due to challenges in syntax, domain-specificity, and confidence scoring. This work explores using reward modeling and Reinforcement Learning with AI Feedback (RLAIF) to address these limitations. We propose a novel data generation and SQL training approach that combines supervised fine-tuning with a reward model to improve the accuracy, correctness, and confidence of LLM-generated SQL queries in domain-specific tasks.