ACL Findings2024
Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generation
Ge Qu, Jinyang Li, Bowen Li, Bowen Qin, Nan Huo, Chenhao Ma, Reynold Cheng
摘要
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 textto-SQL benchmarks. For reproducibility, we release our code and prompt at https:// github.com/quge2023/TA-SQL.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 24 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications 引用了 SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQL
- SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications 引用了 Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction 引用了 Decomposed Prompting: A Modular Approach for Solving Complex Tasks
- SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQL 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQL 引用了 Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
- SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQL 引用了 MAGIC: Generating Self-Correction Guideline for In-Context Text-to-SQL
- Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation 引用了 Training language models to follow instructions with human feedback
- CogSQL: A Cognitive Framework for Enhancing Large Language Models in Text-to-SQL Translation 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- CogSQL: A Cognitive Framework for Enhancing Large Language Models in Text-to-SQL Translation 引用了 Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
- MAGIC: Generating Self-Correction Guideline for In-Context Text-to-SQL 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- MAGIC: Generating Self-Correction Guideline for In-Context Text-to-SQL 引用了 Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
- Decomposed Prompting: A Modular Approach for Solving Complex Tasks 引用了 Training language models to follow instructions with human feedback
- BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation via Lens of Dynamic Interactions 引用了 SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applications
- BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation via Lens of Dynamic Interactions 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation via Lens of Dynamic Interactions 引用了 SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQL
- BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation via Lens of Dynamic Interactions 引用了 Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluation
引用它的顶会 Paper24
- MAGIC: Generating Self-Correction Guideline for In-Context Text-to-SQLArian Askari, Christian Pölitz, Xinye TangAAAI 2025 · 44 次引用
- SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World ApplicationsJinyang Li, Xiaolong Li, Ge Qu, Per Jacobsson 等NeurIPS 2025 · 15 次引用
- SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQLGe Qu, Jinyang Li, Bowen Qin, Xiaolong Li 等ACL 2025 · 13 次引用
- CogSQL: A Cognitive Framework for Enhancing Large Language Models in Text-to-SQL TranslationHongwei Yuan, Xiu Tang, Ke Chen, Lidan Shou 等AAAI 2025 · 12 次引用
- BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation via Lens of Dynamic InteractionsNan Huo, Xiaohan Xu, Jinyang Li, Per Jacobsson 等ICLR 2026 · 10 次引用
它引用的 Paper22
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida 等NeurIPS 2022 · 24,707 次引用
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionMohammadreza Pourreza, Davood RafieiNeurIPS 2023 · 909 次引用
- Text-to-SQL Empowered by Large Language Models: A Benchmark EvaluationDawei Gao, Haibin Wang, Yaliang Li, Xiuyu Sun 等VLDB 2024 · 609 次引用
- Retrieval Augmentation Reduces Hallucination in ConversationKurt Shuster, Spencer Poff, Moya Chen, Douwe Kiela 等EMNLP Findings 2021 · 579 次引用
- Decomposed Prompting: A Modular Approach for Solving Complex TasksTushar Khot, Harsh Trivedi, Matthew Finlayson, Yao Fu 等ICLR 2023 · 94 次引用
相关 Paper
- OpenSearch-SQL: Enhancing Text-to-SQL with Dynamic Few-shot and Consistency AlignmentXiangjin Xie, Guangwei Xu, Lingyan Zhao, Ruijie GuoSIGMOD 2025 · 28 次引用
- ReSQL: Self-Improving Framework for Reasoning-Aware Text-to-SQL Dataset GenerationMinjun Park, Yongju Seong, Myoseop Sim, Kyungkoo Min 等ACL Findings 2026
- OpenSQL: Data-Efficient Text-to-SQL for Open-Source LLMs via Synthesized Intermediate SupervisionRuilin Hu, Yuyu Luo, Guoliang Li, Shuangqiao Wu 等VLDB 2026 · 4 次引用
- ReEx-SQL: Reasoning with Execution-Aware Reinforcement Learning for Text-to-SQLYaxun Dai, Wenxuan Xie, Xialie Zhuang, Tianyu Yang 等ACL 2026 · 8 次引用
- ROUTE: Robust Multitask Tuning and Collaboration for Text-to-SQLYang Qin, Chao Chen, Zhihang Fu, Ze Chen 等ICLR 2025
