EvolSQL: Structure-Aware Evolution for Scalable Text-to-SQL Data Synthesis
By: Xuanguang Pan , Chongyang Tao , Jiayuan Bai and more
Potential Business Impact:
Creates better computer instructions from plain English.
Training effective Text-to-SQL models remains challenging due to the scarcity of high-quality, diverse, and structurally complex datasets. Existing methods either rely on limited human-annotated corpora, or synthesize datasets directly by simply prompting LLMs without explicit control over SQL structures, often resulting in limited structural diversity and complexity. To address this, we introduce EvolSQL, a structure-aware data synthesis framework that evolves SQL queries from seed data into richer and more semantically diverse forms. EvolSQL starts with an exploratory Query-SQL expansion to broaden question diversity and improve schema coverage, and then applies an adaptive directional evolution strategy using six atomic transformation operators derived from the SQL Abstract Syntax Tree to progressively increase query complexity across relational, predicate, aggregation, and nesting dimensions. An execution-grounded SQL refinement module and schema-aware deduplication further ensure the creation of high-quality, structurally diverse mapping pairs. Experimental results show that a 7B model fine-tuned on our data outperforms one trained on the much larger SynSQL dataset using only 1/18 of the data.
Similar Papers
Beyond SELECT: A Comprehensive Taxonomy-Guided Benchmark for Real-World Text-to-SQL Translation
Computation and Language
Teaches computers to understand and write database questions.
Text-to-SQL Domain Adaptation via Human-LLM Collaborative Data Annotation
Human-Computer Interaction
Helps computers understand database questions faster.
Text2SQL-Flow: A Robust SQL-Aware Data Augmentation Framework for Text-to-SQL
Computation and Language
Makes AI better at understanding and writing database questions.