mlsanityData to 7 Oct 2026

DFIN-SQL: Integrating Focused Schema with DIN-SQL for Superior Accuracy in Large-Scale Databases

arXiv 2403.00872 ↗First posted 1 Mar 2024cs.DB cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

The task of converting natural language queries into SQL queries is intricate, necessitating a blend of precise techniques for an accurate translation. The DIN-SQL (Decomposed-In-Context SQL) methodology represents a significant development in this domain. This paper introduces DFIN (Decomposed Focused-In-Context), an innovative extension of DIN-SQL that enhances Text-to-SQL conversion by addressing schema linking errors, which are a major source of inaccuracies. DFIN uniquely alternates between prompting techniques and Retrieval-Augmented Generation (RAG), adapting to the size and complexity of the database schema. A preprocessing phase embeds database definitions and leverages annotated files, akin to those in the BIRD dataset, facilitating the runtime retrieval of pertinent schema information. This strategy significantly reduces the token count for schema linking prompts, enabling the use of a standard GPT-4 model over its larger context variant, thus handling large-scale databases more effectively and economically. Our evaluation on the BIRD dataset, a challenging real-world benchmark, demonstrates that DFIN not only scales efficiently but also improves accuracy, achieving a score of 51.69. This improvement surpasses DIN-SQL method (the current third-place), which is the highest-ranked model employing in-context learning rather than fine-tuning, previously scoring 50.72. The advancement of DFIN underscores the evolving capabilities of in-context learning methodologies combined with advanced language models, offering a promising avenue for future research in complex Text-to-SQL conversion tasks.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 6 of its 8 references that are in the map. First posted on arXiv 1 Mar 2024.

Builds on

6 of 8 references.

References · 6

  1. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  2. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  3. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  4. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  5. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
  6. 2023Prompting GPT-3.5 for Text-to-SQL with De-semanticization and Skeleton Retrievalcited by 16

Built on by

Cited by year

Citing papers per year: 2025: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025RASL: Retrieval Augmented Schema Linking for Massive Database Text-to-SQL
  2. 2024The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Models
  3. 2025Auto prompt sql: a resource-efficient architecture for text-to-sql translation in constrained environments
  4. 2024PET-SQL: A Prompt-Enhanced Two-Round Refinement of Text-to-SQL with Cross-consistency
  5. 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translation
  6. 2025DB-Explore: Automated Database Exploration and Instruction Synthesis for Text-to-SQL
  7. 2026AV-SQL: Decomposing Complex Text-to-SQL Queries with Agentic Views
  8. 2024RB-SQL: A Retrieval-based LLM Framework for Text-to-SQL