mlsanityData to 7 Oct 2026

Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generation

arXiv 2405.15307 ↗First posted 24 May 2024cs.CLcited by 49

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) driven by In-Context Learning (ICL) have significantly improved the performance of text-to-SQL. Previous methods generally employ a two-stage reasoning framework, namely 1) schema linking and 2) logical synthesis, making the framework not only effective but also interpretable. Despite these advancements, the inherent bad nature of the generalization of LLMs often results in hallucinations, which limits the full potential of LLMs. In this work, we first identify and categorize the common types of hallucinations at each stage in text-to-SQL. We then introduce a novel strategy, Task Alignment (TA), designed to mitigate hallucinations at each stage. TA encourages LLMs to take advantage of experiences from similar tasks rather than starting the tasks from scratch. This can help LLMs reduce the burden of generalization, thereby mitigating hallucinations effectively. We further propose TA-SQL, a text-to-SQL framework based on this strategy. The experimental results and comprehensive analysis demonstrate the effectiveness and robustness of our framework. Specifically, it enhances the performance of the GPT-4 baseline by 21.23% relatively on BIRD dev and it yields significant improvements across six models and four mainstream, complex text-to-SQL benchmarks.

Key facts. Cited by 49 papers in the map (data through 7 Oct 2026). Builds on 37 of its 54 references that are in the map. First posted on arXiv 24 May 2024.

Builds on

37 of 54 references.

References · 37

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  5. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  7. 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,210
  8. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  9. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  10. 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 691
  11. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  12. 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
25 more
  1. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  2. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
  3. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
  4. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  5. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
  6. 2023C3: Zero-shot Text-to-SQL with ChatGPTcited by 159
  7. 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
  8. 2021LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relationscited by 119
  9. 2021Neural Path Hunter: Reducing Hallucination in Dialogue Systems via Path Groundingcited by 106
  10. 2023Graphix-T5: Mixing Pre-Trained Transformers with Graph-Aware Layers for Text-to-SQL Parsingcited by 93
  11. 2021Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalizationcited by 92
  12. 2024Small LLMs Are Weak Tool Learners: A Multi-LLM Agentcited by 92
  13. 2022RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLcited by 85
  14. 2018TypeSQL: Knowledge-based Type-Aware Neural Text-to-SQL Generationcited by 81
  15. 2021Increasing Faithfulness in Knowledge-Grounded Dialogue with Controllable Featurescited by 74
  16. 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 66
  17. 2022When Language Model Meets Private Librarycited by 54
  18. 2024Middleware for LLMs: Tools Are Instrumental for Language Agents in Complex Environmentscited by 39
  19. 2022Proton: Probing Schema Linking Information from Pre-trained Language Models for Text-to-SQL Parsingcited by 30
  20. 2021Awakening Latent Grounding from Pretrained Language Models for Semantic Parsingcited by 28
  21. 2021Improving Text-to-SQL with Schema Dependency Learningcited by 25
  22. 2017An Encoder-Decoder Framework Translating Natural Language to Database Queriescited by 23
  23. 2023Explicit Planning Helps Language Models in Logical Reasoningcited by 12
  24. 2023An Investigation of LLMs' Inefficacy in Understanding Converse Relationscited by 9
  25. 2023Drilling Down into the Discourse Structure with LLMs for Long Document Question Answeringcited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 13; 2025: 23; 2026: 13.

49 papers.

Sort:

By area:

  1. 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
  2. 2024The Death of Schema Linking? Text-to-SQL in the Age of Well-Reasoned Language Modelscited by 67
  3. 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 54
  4. 2024RSL-SQL: Robust Schema Linking in Text-to-SQL Generationcited by 51
  5. 2025XiYan-SQL: A Novel Multi-Generator Framework For Text-to-SQLcited by 40
  6. 2024E-SQL: Direct Schema Linking via Question Enrichment in Text-to-SQLcited by 35
  7. 2024MAGIC: Generating Self-Correction Guideline for In-Context Text-to-SQLcited by 34
  8. 2025LinkAlign: Scalable Schema Linking for Real-World Large-Scale Multi-Database Text-to-SQLcited by 26
  9. 2025BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation for Large Language Models via Lens of Dynamic Interactionscited by 17
  10. 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQLcited by 15
  11. 2025SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applicationscited by 15
  12. 2025Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errorscited by 14
37 more
  1. 2026Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboardscited by 12
  2. 2024FLEX: Expert-level False-Less EXecution Metric for Reliable Text-to-SQL Benchmarkcited by 11
  3. 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answeringcited by 11
  4. 2025BASE-SQL: A powerful open source Text-To-SQL baseline approachcited by 9
  5. 2025Knapsack Optimization-based Schema Linking for LLM-based Text-to-SQL Generationcited by 9
  6. 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challengescited by 9
  7. 2025ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQLcited by 8
  8. 2024PTD-SQL: Partitioning and Targeted Drilling with LLMs in Text-to-SQLcited by 7
  9. 2026APEX-SQL: Talking to the data via Agentic Exploration for Text-to-SQLcited by 7
  10. 2024Synthetic SQL Column Descriptions and Their Impact on Text-to-SQL Performancecited by 6
  11. 2024DAC: Decomposed Automation Correction for Text-to-SQLcited by 6
  12. 2025DB-Explore: Automated Database Exploration and Instruction Synthesis for Text-to-SQLcited by 5
  13. 2025SING-SQL: A Synthetic Data Generation Framework for In-Domain Text-to-SQL Translationcited by 5
  14. 2026PV-SQL: Synergizing Database Probing and Rule-based Verification for Text-to-SQL Agentscited by 5
  15. 2025GenEdit: Compounding Operators and Continuous Improvement to Tackle Text-to-SQL in the Enterprisecited by 4
  16. 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
  17. 2025Rethinking Schema Linking: A Context-Aware Bidirectional Retrieval Approach for Text-to-SQLcited by 4
  18. 2025Pi-SQL: Enhancing Text-to-SQL with Fine-Grained Guidance from Pivot Programming Languagescited by 3
  19. 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
  20. 2024Automating Pharmacovigilance Evidence Generation: Using Large Language Models to Produce Context-Aware SQLcited by 2
  21. 2024Multi-Turn Interactions for Text-to-SQL with Large Language Modelscited by 2
  22. 2024Towards Automated Cross-domain Exploratory Data Analysis through Large Language Modelscited by 2
  23. 2025Feather-SQL: A Lightweight NL2SQL Framework with Dual-Model Collaboration Paradigm for Small Language Modelscited by 2
  24. 2025Exploring Database Normalization Effects on SQL Generationcited by 2
  25. 2025LitE-SQL: A Lightweight and Efficient Text-to-SQL Framework with Vector-based Schema Linking and Execution-Guided Self-Correctioncited by 1
  26. 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinementcited by 1
  27. 2026NL2SQLBench: A Modular Benchmarking Framework for LLM-Enabled NL2SQL Solutionscited by 1
  28. 2026Every Step Counts: Step-Level Credit Assignment for Tool-Integrated Text-to-SQLcited by 1
  29. 2026EviLink: Multi-Path Schema Linking with Uncertainty-Guided Evidence Acquisition for Large-Scale Text-to-SQLcited by 1
  30. 2025VeriMinder: Mitigating Analytical Vulnerabilities in NL2SQLcited by 0
  31. 2025X-SQL: Expert Schema Linking and Understanding of Text-to-SQL with Multi-LLMscited by 0
  32. 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generationcited by 0
  33. 2026Agentic DAG-Orchestrated Planner Framework for Multi-Modal, Multi-Hop Question Answering in Hybrid Data Lakescited by 0
  34. 2026ROSE: An Intent-Centered Evaluation Metric for NL2SQLcited by 0
  35. 2026SIRIUS-SQL: Anchoring Multi-Candidate Text-to-SQL in Execution Feedbackcited by 0
  36. 2026DexterSQL: Deep Schema Exploration and Rule-based Correction for Text-to-SQL Generationcited by 0
  37. 2026LIMIT: Less Is More for Instruction Tuning in Text-to-SQLcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Stemming Hallucination in Language Models Using a Licensing Oracle
  2. 2023Ever: Mitigating Hallucination in Large Language Models through Real-Time Verification and Rectification
  3. 2025HalluGuard: Evidence-Grounded Small Reasoning Models to Mitigate Hallucinations in Retrieval-Augmented Generation
  4. 2025QueryBandits for Hallucination Mitigation: Exploiting Semantic Features for No-Regret Rewriting
  5. 2024LargePiG: Your Large Language Model is Secretly a Pointer Generator
  6. 2025Beyond Facts: Evaluating Intent Hallucination in Large Language Models
  7. 2025Don't Let It Hallucinate: Premise Verification via Retrieval-Augmented Logical Reasoning
  8. 2026Mitigating Prompt-Induced Hallucinations in Large Language Models via Structured Reasoning