Semantisk översättning i Text-till-SQL : En studie av Chain-of-Thought, övervakad finjustering och förstärkningsinlärning med öppna LLM:er
Year: 2025
Type: dissertation
Abstract: Translating natural language questions into executable database queries (Text-to-SQL) remains a central challange in natural language processing, with significant implications for both research and industry. While recent advances in large language models (LLMs) have substaintially improved the reliability of this task, much of the existing work emphasizes empirical performance and benchmark gains. In this thesis, we propose a more theoretical perspective: framing the Text-to-SQL problem as a semantic translation task, wherein natural language questions are first abstracted into a latent semantic representation space before being actualized into SQL syntax. Consequently, effective methods for Text2SQL need to facilitate not only the learning of this latent space but also the translation to and from it. We explore how different state-of-the-art training paradigms fit into this framework and how it explains their effectiveness. We argue that effective models are training strategies enhance the models computational capacity to facilitate learning of such a semantic space. Empirical investigations using open-sourse LLMs trained under varied configurations, and compared against a GPT-4.1 baseline, reveal that model size positively influences performance, but only up to a threshold. Moreover, CoT reasoning enhances performance meaningfully only when it is integrated into the training process, not merely at inference. These findings support the central thesis that while computational capacity is necessary, semantic clarity of the user input and simplicity of the database schema are equally critical for reliable semantic translation.
Author: Berg, Timotheus
Institution: KTH Royal Institute of Technology
Language: English
Topic: Topic Modeling
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7134096306
