Learn From Mistakes: Guidance on Zero-shot Conversational Text-to-SQL
Open Access
- 21 October 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 4243-4247
Abstract
Large language models (LLMs) possess powerful contextual comprehension capabilities and have demonstrated remarkable success in conversational tasks. However, existing works that apply LLMs to conversational text-to-SQL task have the problem of repetitive mistakes, which results in the failure to bring out the performance of LLMs. In this paper, we propose a novel approach that provides guidance through learning from mistakes. Specifically, the guidance offered by our approach includes tailored suggestions, corrective feedback, and personalized strategies aimed at improving learning outcomes. Furthermore, we employ chain-of-thought (CoT) to utilize guidance that is not suitable directly as prompts. Our method rigorously analyzes actual errors and strategizes on how to utilize the derived guidance effectively. Experimental results demonstrate that our approach improves the state-of-the-art (SOTA) performance metrics, increasing QEX performance from 66.3% to 70.9% (an absolute improvement of 4.6%) and IEX performance from 37.4% to 45.1% (an absolute improvement of 7.7%) on the CoSQL dataset.Keywords
Funding Information
- The science and technology innovation Program of Hunan Province (2023RC1007)
- NSFC (U23A20296, 62272469, 72301284)
This publication has 13 references indexed in Scilit:
- Learning From Mistakes Makes LLM Better ReasonerarXiv, 2024
- Text-to-SQL Empowered by Large Language Models: A Benchmark EvaluationProceedings of the VLDB Endowment, 2024
- A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilityarXiv, 2023
- Learning from Mistakes via Cooperative Study Assistant for Large Language Models2023
- RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL2022
- PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Models2021
- Grounded Adaptation for Zero-shot Executable Semantic Parsing2020
- CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databases2019
- Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task2018
- The elements of psychology.1905