Insights into Natural Language Database Query Errors: From Attention Misalignment to User Handling Strategies
Not on the map. Why?
Abstract (arXiv)
Querying structured databases with natural language (NL2SQL) has remained a difficult problem for years. Recently, the advancement of machine learning (ML), natural language processing (NLP), and large language models (LLM) have led to significant improvements in performance, with the best model achieving ~85% percent accuracy on the benchmark Spider dataset. However, there is a lack of a systematic understanding of the types, causes, and effectiveness of error-handling mechanisms of errors for erroneous queries nowadays. To bridge the gap, a taxonomy of errors made by four representative NL2SQL models was built in this work, along with an in-depth analysis of the errors. Second, the causes of model errors were explored by analyzing the model-human attention alignment to the natural language query. Last, a within-subjects user study with 26 participants was conducted to investigate the effectiveness of three interactive error-handling mechanisms in NL2SQL. Findings from this paper shed light on the design of model structure and error discovery and repair strategies for natural language data query interfaces in the future.
Key facts. Cited by 12 papers in the map (data through 13 Oct 2026). First posted on arXiv 11 Feb 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 2; 2025: 4; 2026: 6.
12 papers.
- 2024Selective Prompt Anchoring for Code Generationcited by 16
- 2025Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errorscited by 14
- 2025Text-to-SQL Domain Adaptation via Human-LLM Collaborative Data Annotationcited by 6
- 2026PV-SQL: Synergizing Database Probing and Rule-based Verification for Text-to-SQL Agentscited by 5
- 2025Mis-prompt: Benchmarking Large Language Models for Proactive Error Handlingcited by 2
- 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injectioncited by 2
- 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinementcited by 2
- 2024KeyInst: Keyword Instruction for Improving SQL Formulation in Text-to-SQLcited by 1
- 2026How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repaircited by 0
- 2026ISEE: Interactive Semantic Enrichment for Database Fieldscited by 0
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQLcited by 0
- 2026DataWeave: Deploying Human-LLM Analytics for Exploratory Structured Data Analysiscited by 0
- 2026DataWeave: Deploying Human-LLM Analytics for Exploratory Structured Data Analysis2 Oct 2026
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQL10 Aug 2026
- 2026How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repair28 Jul 2026
- 2026ISEE: Interactive Semantic Enrichment for Database Fields21 Apr 2026
- 2026PV-SQL: Synergizing Database Probing and Rule-based Verification for Text-to-SQL Agents19 Apr 2026
- 2026ErrorLLM: Modeling SQL Errors for Text-to-SQL Refinement4 Mar 2026
- 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection16 Dec 2025
- 2025Mis-prompt: Benchmarking Large Language Models for Proactive Error Handling29 May 2025
- 2025Text-to-SQL Domain Adaptation via Human-LLM Collaborative Data Annotation21 Feb 2025
- 2025Understanding, Detecting, and Repairing Real-World In-Context-Learning-Based Text-to-SQL Errors16 Jan 2025
- 2024KeyInst: Keyword Instruction for Improving SQL Formulation in Text-to-SQL18 Oct 2024
- 2024Selective Prompt Anchoring for Code Generation17 Aug 2024