Text-to-SQL Domain Adaptation via Human-LLM Collaborative Data Annotation

Human-LLM CollaborationAutoML InterfacesSoftware Engineers & DevelopersAI/ML Researchers & Engineers

Text-to-SQL models, which parse natural language (NL) questions to executable SQL queries, are increasingly adopted in real-world applications. However, deploying such models in the real world often requires adapting them to the highly specialized database schemas used in specific applications. We observe that the performance of existing text-to-SQL models drops dramatically when applied to a new schema, primarily due to the lack of domain-specific data for fine-tuning. Furthermore, this lack of data for the new schema also hinders our ability to effectively evaluate the model's performance in the new domain. Nevertheless, it is expensive to continuously obtain text-to-SQL data for an evolving schema in most real-world applications. To bridge this gap, we propose SQLsynth, a human-in-the-loop text-to-SQL data annotation system. SQLsynth streamlines the creation of high-quality text-to-SQL datasets through collaboration between humans and a large language model in a structured workflow. A within-subject user study comparing SQLsynth to manual annotation and ChatGPT reveals that SQLsynth significantly accelerates text-to-SQL data annotation, reduces cognitive load, and produces datasets that are more accurate, natural, and diverse. Our code is available at https://github.com/adobe/nl_sql_analyzer.

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/papers/iui/195804/2025

AdRecommended

Learn AI Coding at CodeNow

open_in_newOpen DOI Link
DOI: https://doi.org/10.1145/3708359.3712083
At a Glance

Paper Snapshot

fact_check
dataset
Source
IUI
calendar_month
Year
2025
emoji_events
Award
No award tagged
group
Authors
8 authors
sell
Subtopics
Human-LLM Collaboration, AutoML Interfaces
work
Professions
Software Engineers & Developers, AI/ML Researchers & Engineers
article
Content Status
Abstract only
hub
Related Papers
10 related papers