mlsanityData to 26 Nov 2026

NL2SQL with Iterative Self-Refinement

arXiv 2610.22968 ↗Submitted 16 Oct 2026cs.DB cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Bridging the gap between human intent and machine logic remains a critical challenge in data access for non-technical users, yet Large Language Models (LLMs) remain unreliable: they hallucinate schema elements, generate syntactically invalid queries, or fail to capture user intent. These limitations are especially critical in domains such as insurance, where KPIs, regulatory constraints, and legacy relational systems demand high precision. We introduce a multi-agent, persona-driven NL2SQL framework that combines (1) domain relevance detection, (2) schema-grounded knowledge construction, (3) KPI-aware SQL synthesis, (4) syntax-level self-repair using sqlite execution feedback, and (5) semantic consistency checking via SQL-to-NL reverse engineering. Our system significantly reduces query hallucination and improves semantic fidelity compared to direct LLM prompting. Evaluated on 60 queries (50 from a HuggingFace text-to-SQL dataset and 10 custom domain queries), the system achieves 90% correctness using Mistral across seven coordinated LLM calls showing that this approach can substantially increase the reliability of NL2SQL pipelines in high-stakes environments.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 9 of its 11 references that are in the map. Submitted 16 Oct 2026.

Builds on

9 of 11 references.

References · 9

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,963
  2. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
  3. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,799
  4. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 446
  5. 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 57
  6. 2024Large Language Model Enhanced Text-to-SQL Generation: A Surveycited by 27
  7. 2023Divide and Prompt: Chain of Thought Prompting for Text-to-SQLcited by 21
  8. 2025SQL-of-Thought: Multi-agentic Text-to-SQL with Guided Error Correctioncited by 10
  9. 2025Evaluating NL2SQL via SQL2NLcited by 4

Built on by

Not cited yet.