Reproduce “ReFoRCE: A Text-to-SQL Agent with Self-Refinement, Consensus Enforcement, and Column Exploration” 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
Minghang Deng, Ashwin Ramachandran, Canwen Xu, Lanxiang Hu, Zhewei Yao, Anupam Datta, Hao Zhang
ReFoRCE, an agentic framework developed by UCSD and Snowflake AI Research, facilitates Text-to-SQL translation for complex enterprise databases by integrating schema compression, self-refinement, consensus enforcement, and iterative column exploration. It achieves state-of-the-art execution accuracy on the Spider 2.0 benchmark, reaching 35.83% on Spider 2.0-Snow and 36.56% on Spider 2.0-Lite, while also significantly boosting the performance of smaller open-source LLMs.
Key insights
- Effective schema compression is fundamental for enabling LLM-based Text-to-SQL agents to operate on real-world databases with extremely large and complex schemas.
- A structured agentic workflow combining self-refinement, multi-candidate consensus, and targeted information gathering (column exploration) significantly enhances the reliability and accuracy of Text-to-SQL generation.
- The ReFoRCE framework is generalizable and can substantially improve the performance of smaller, open-source LLMs in Text-to-SQL tasks, democratizing access to advanced capabilities.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.