Reproduce “UNJOIN: Enhancing Multi-Table Text-to-SQL Generation via Schema Simplification” 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
Poojah Ganesan, Rajat Aayush Jha, Dan Roth, Vivek Gupta
UNJOIN simplifies multi-table Text-to-SQL by combining column names into a virtual schema, prefixing each with its original table. An LLM drafts an intermediate query against this schema, and a second LLM translates it into SQL for the unchanged database. On Spider with Llama 3.3 70B, UNJOIN MP achieves 99.90% query execution accuracy and 77.13% exact match, above CoT-SS.
Key insights
- LLMs excel at single-table Text-to-SQL tasks, and transforming complex multi-table problems into a single-table format allows leveraging this strength.
- Decoupling schema element retrieval from SQL logic generation into distinct stages reduces compounding errors common in end-to-end systems.
- A deterministic schema simplification process, relying only on schema information, enhances reliability and scalability across diverse databases without requiring row-level data.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.