跳到主要导航 跳到搜索 跳到主要内容

Know What I don’t Know: Handling Ambiguous and Unanswerable Questions for Text-to-SQL

  • Bing Wang*
  • , Yan Gao
  • , Zhoujun Li
  • , Jian Guang Lou
  • *此作品的通讯作者
  • Beihang University
  • Microsoft USA

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

The task of text-to-SQL aims to convert a natural language question into its corresponding SQL query within the context of relational tables. Existing text-to-SQL parsers generate a “plausible” SQL query for an arbitrary user question, thereby failing to correctly handle problematic user questions. To formalize this problem, we conduct a preliminary study on the observed ambiguous and unanswerable cases in text-to-SQL and summarize them into 6 feature categories. Correspondingly, we identify the causes behind each category and propose requirements for handling ambiguous and unanswerable questions. Following this study, we propose a simple yet effective counterfactual example generation approach that automatically produces ambiguous and unanswerable text-to-SQL examples. Furthermore, we propose a weakly supervised DTE (Detecting-Then-Explaining) model for error detection, localization, and explanation. Experimental results show that our model achieves the best result on both real-world examples and generated examples compared with various baselines. We release our data and code at: https://github.com/wbbeyourself/DTE.

源语言英语
主期刊名Findings of the Association for Computational Linguistics, ACL 2023
出版商Association for Computational Linguistics (ACL)
5701-5714
页数14
ISBN(电子版)9781959429623
DOI
出版状态已出版 - 2023
活动Findings of the Association for Computational Linguistics, ACL 2023 - Toronto, 加拿大
期限: 9 7月 202314 7月 2023

出版系列

姓名Proceedings of the Annual Meeting of the Association for Computational Linguistics
ISSN(印刷版)0736-587X

会议

会议Findings of the Association for Computational Linguistics, ACL 2023
国家/地区加拿大
Toronto
时期9/07/2314/07/23

指纹

探究 'Know What I don’t Know: Handling Ambiguous and Unanswerable Questions for Text-to-SQL' 的科研主题。它们共同构成独一无二的指纹。

引用此