Reproduce “Synthesizing Text-to-SQL Data from Weak and Strong LLMs” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Jiaxi Yang, Binyuan Hui, Min Yang, Jian Yang, Junyang Lin, Chang Zhou
Researchers developed SENSE, a two-phase training strategy that generates synthetic Text-to-SQL data from strong and weak LLMs for supervised fine-tuning and preference learning. This approach enabled open-source CodeLLaMA-13B to achieve state-of-the-art execution accuracy on Spider (86.6% Test-EX) and BIRD (63.4% Test-EX), surpassing previous GPT-4-based methods.
Key insights
- Leveraging powerful LLMs for diverse synthetic data generation effectively addresses data scarcity and boosts cross-domain generalization for Text-to-SQL tasks.
- Learning from execution-validated erroneous SQL queries (weak data) through preference optimization significantly refines model understanding of SQL semantics and reduces common errors.
- A combined strategy of SFT with diverse synthetic data and DPO with error-driven feedback enables open-source LLMs to outperform closed-source models in specialized tasks without sacrificing general NLP capabilities.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.