Abstract
Translating natural language conversations into SQL queries is a complex challenge in semantic parsing, requiring models to maintain context across multiple turns. We present MIGA (MultI-task Generation frAmework), a two-stage approach that leverages general-purpose Pre-trained Language Models (PLMs) like T5. MIGA decomposes the conversational text-to-SQL task into four intuitive sub-tasks during pre-training and introduces a SQL perturbation strategy during fine-tuning to mitigate error propagation. Our framework achieves state-of-the-art results on the SparC and CoSQL benchmarks, demonstrating the effectiveness of multi-task learning and robust training for conversational semantic parsing.
Introduction
Conversational text-to-SQL involves translating a sequence of natural language utterances into corresponding SQL queries. Unlike single-turn tasks, this requires resolving coreferences, understanding ellipsis, and tracking how new questions modify previous queries. Traditional high-performance models often rely on specialized tree-based decoders, which are difficult to scale and incompatible with powerful general-purpose PLMs. Furthermore, these models are prone to error propagation, where a mistake in an early turn cascades through the entire interaction.
Methodology
MIGA addresses these challenges through a two-stage framework designed for standard Seq2Seq PLMs, specifically T5-3B.
Stage 1: Multi-task Pre-training
MIGA breaks down the conversational parsing problem into four distinct tasks, unified by natural language prompts. This multi-task approach allows the model to share knowledge across related objectives:
- SQL Generation (SG): The primary objective of generating the target query.
- Related Schema Prediction (RSP): Identifying relevant tables and columns to help the model focus on the correct database components.
- Turn Switch Prediction (TWP): Determining the specific changes between the previous and current SQL queries.
- Final Utterance Prediction (FUP): Reformulating the multi-turn dialogue into a single, standalone natural language question.
Stage 2: Fine-tuning with SQL Perturbation
To improve robustness against error propagation, MIGA introduces SQL Perturbation during fine-tuning. Instead of relying solely on ground-truth SQL from previous turns, the model is trained on "perturbed" histories containing random errors (e.g., swapped columns or modified JOIN structures). This forces the model to learn to recover from imperfect context. Additionally, the PICARD incremental parsing algorithm is integrated to ensure the decoder only produces syntactically valid SQL.
Results and Discussion
MIGA was evaluated on the SparC and CoSQL benchmarks. It achieved new state-of-the-art Interaction Match (IM) accuracy, reaching 48.9% on SparC and 29.8% on CoSQL.
Scaling and Performance
The researchers observed significant performance gains when scaling from T5-base to T5-3B, suggesting that the reasoning required for conversational SQL benefits from larger model capacities.
Ablation studies highlighted that Related Schema Prediction (RSP) is critical; its removal led to the most significant performance drop, indicating that schema awareness is a primary bottleneck. The SQL perturbation strategy also provided a consistent ~1.0% boost in accuracy, confirming its role in enhancing model robustness.
Conclusion
MIGA demonstrates that a unified multi-task framework can effectively adapt general-purpose PLMs for complex conversational text-to-SQL tasks. By mimicking human logic through task decomposition and training for robustness via perturbation, MIGA sets a new standard for conversational semantic parsing. Future work will focus on expanding datasets for sub-tasks like FUP and reducing the computational overhead of large-scale models for real-time deployment.
Summary updated