Reproduce “Automatic Metadata Extraction for Text-to-SQL” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Vladislav Shkapenyuk, Divesh Srivastava, Theodore Johnson, Parisa Ghane

Researchers from AT&T CDO developed techniques to automatically extract rich database metadata through profiling, query log analysis, and SQL-to-text generation using LLMs. This approach improved text-to-SQL query accuracy on the BIRD benchmark without reliance on human-provided hints and enabled scalable creation of high-quality training examples.

Key insights

  • Understanding database contents, often poorly documented, presents the primary bottleneck in real-world SQL query development, outweighing syntax challenges.
  • Traditional database profiling and query log analysis, when enhanced by LLMs for summarization and feature extraction, can automatically generate rich, accurate, and practically useful database metadata.
  • Effective schema linking is crucial for Text-to-SQL systems operating on large industrial databases, even with advanced LLMs, and iterative SQL generation can facilitate this linking.
  • LLMs can generate high-quality natural language questions from SQL queries, offering a scalable and cost-effective method to create extensive few-shot training examples, potentially surpassing human annotation quality.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.