Knowledge Distillation for Low-Resource Open-source Text-to-SQL Model
Quick Answer
The proposed knowledge-aware Text-to-SQL framework enhances performance in low-resource settings by generating contextually grounded synthetic training data and improving inference through targeted knowledge retrieval.
Quick Take
Experiments on seven benchmarks show significant performance improvements for both open-source and closed-source models, particularly in domain-specific contexts.
Key Points
- Framework constructs a task-specific knowledge base for improved SQL query generation.
- Generates diverse synthetic training data to enhance model robustness and adaptability.
- Demonstrated substantial performance gains on seven benchmarks, including domain-specific datasets.
- Addresses challenges of low-resource settings with limited annotated data availability.
- Improves generalization in Text-to-SQL tasks for non-technical users.
Paper Resources
Article Content
From source RSS / original summaryarXiv:2605. 22843v1 Announce Type: new Abstract: Text-to-SQL converts natural language questions into executable SQL queries, enabling non-technical users to access relational databases for analytics and intelligent data services. In real-world scenarios, performance is often constrained by low-resource settings, where high-quality annotated \texttt{} pairs are scarce, particularly for domain-specific databases.
Additional challenges include opaque schema definitions, abbreviations, and implicit business logic that are not explicitly encoded in the schema. Existing data synthesis and prompting techniques improve coverage but often fail to produce task-specific, semantically grounded examples aligned with database constraints.
To address these challenges, we propose a knowledge-aware Text-to-SQL framework that constructs task-specific knowledge base including schema semantics, abbreviations, business logic, and query patterns, and injects them into both training and inference. This framework generates diverse, contextually grounded synthetic training data and enhances inference through targeted knowledge retrieval.
Experiments on seven benchmarks, covering both general and domain-specific datasets, demonstrate that our approach substantially improves the performance of open-source and closed-source in Text-to-SQL tasks, especially in low-resource domain-specific settings, enhancing generalization, robustness, and adaptability.
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from arXiv cs.CL
See more →TriAgent: Divergence-Aware Committees for Cost-Efficient Financial Sentiment Analysis
TriAgent introduces a cost-efficient multi-agent system for financial sentiment analysis, combining VADER, FinBERT, and Qwen2.5. It achieves an F1 score of ~0.87 with significant savings of $9.3M/year at a 10M-user scale compared to GPT-4o-mini, while also detecting hallucinations with an AUC of 0.90.