Lune

EMNLP2023顶会

Benchmarking and Improving Text-to-SQL Generation under Ambiguity

Adithya Bhaskar, Tushar Tomar, Ashutosh Sathe, Sunita Sarawagi

摘要

Research in Text-to-SQL conversion has been largely benchmarked against datasets where each text query corresponds to one correct SQL. However, natural language queries over reallife databases frequently involve significant ambiguity about the intended SQL due to overlapping schema names and multiple confusing relationship paths. To bridge this gap, we develop a novel benchmark called AmbiQT with over 3000 examples where each text is interpretable as two plausible SQLs due to lexical and/or structural ambiguity. When faced with ambiguity, an ideal top-k decoder should generate all valid interpretations for possible disambiguation by the user (Elgohary et al., 2021; Zhong et al., 2022) . We evaluate several Text-to-SQL systems and decoding algorithms, including those employing state-of-the-art LLMs, and find them to be far from this ideal. The primary reason is that the prevalent beam search algorithm and its variants, treat SQL queries as a string and produce unhelpful token-level diversity in the top-k. We propose LogicalBeam, a new decoding algorithm that navigates the SQL logic space using a blend of plan-based template generation and constrained infilling. Counterfactually generated plans diversify templates while in-filling with a beam-search, that branches solely on schema names, provides value diversity. Log-icalBeam is up to 2.5× more effective than state-of-the-art models at generating all candidate SQLs in the top-k ranked outputs. It also enhances the top-5 Exact and Execution Match Accuracies on SPIDER and Kaggle DBQA 1 .

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Automated Validating and Fixing of Text-to-SQL Translation with Execution Consistency 引用了 RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL
  • Automated Validating and Fixing of Text-to-SQL Translation with Execution Consistency 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
  • Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errors 引用了 RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL
  • Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errors 引用了 Natural SQL: Making SQL Easier to Infer from Natural Language Specifications
  • Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errors 引用了 DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
  • Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errors 引用了 CatSQL: Towards Real World Natural Language to SQL Applications
  • DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction 引用了 Natural SQL: Making SQL Easier to Infer from Natural Language Specifications
  • CatSQL: Towards Real World Natural Language to SQL Applications 引用了 Natural SQL: Making SQL Easier to Infer from Natural Language Specifications
  • 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
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper12

  1. BIRD-INTERACT: Re-imagining Text-to-SQL Evaluation via Lens of Dynamic InteractionsNan Huo, Xiaohan Xu, Jinyang Li, Per Jacobsson 等ICLR 2026 · 10 次引用
  2. Automated Validating and Fixing of Text-to-SQL Translation with Execution ConsistencyYicun Yang, Zhaoguo Wang, Yu Xia, Zhuoran Wei 等SIGMOD 2025 · 7 次引用
  3. DocCGen: Document-based Controlled Code GenerationSameer Pimparkhede, Mehant Kammakomati, Srikanth Tamilselvam, Prince Kumar 等EMNLP 2024 · 4 次引用
  4. AmbigNLG: Addressing Task Ambiguity in Instruction for NLGAyana Niwa, Hayate IsoEMNLP 2024 · 2 次引用
  5. Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL ErrorsJiawei Shen, Chengcheng Wan, Ruoyi Qiao, Jiazhen Zou 等FSE 2026 · 1 次引用

它引用的 Paper12

  1. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes 等ICLR 2020 · 4,112 次引用
  2. DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionMohammadreza Pourreza, Davood RafieiNeurIPS 2023 · 909 次引用
  3. RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLHaoyang Li, Jing Zhang, Cuiping Li, Hong ChenAAAI 2023 · 343 次引用
  4. Natural SQL: Making SQL Easier to Infer from Natural Language SpecificationsYujian Gan, Xinyun Chen, Jinxia Xie, Matthew Purver 等EMNLP Findings 2021 · 88 次引用
  5. CatSQL: Towards Real World Natural Language to SQL ApplicationsHan Fu, Chang Liu, Bin Wu, Feifei Li 等VLDB 2023 · 79 次引用

相关 Paper

  1. CLEAR: A Parser-Independent Disambiguation Framework for NL2SQLMeng Zhang, Kexin Ma, Liyang Xu, Kedi Zhang 等ICDE 2025 · 4 次引用
  2. LinkAlign: Scalable Schema Linking for Real-World Large-Scale Multi-Database Text-to-SQLYihan Wang, Peiyu Liu, Xin YangEMNLP 2025 · 2 次引用
  3. Disambiguate First, Parse Later: Generating Interpretations for Ambiguity Resolution in Semantic ParsingIrina Saparina, Mirella LapataACL Findings 2025 · 4 次引用
  4. StatBot.Swiss: Bilingual Open Data Exploration in Natural LanguageFarhad Nooralahzadeh, Yi Zhang, Ellery Smith, Sabine Maennel 等ACL Findings 2024 · 6 次引用
  5. Reliable Answers for Recurring Questions: Boosting Text-to-SQL Accuracy with Template Constrained DecodingSmit Jivani, Sarvam Maheshwari, Sunita SarawagiSIGMOD 2026 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖