arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.09527cs.LGcs.CL
收藏

文本到SQL系统中错误检测的置信度估计

Confidence Estimation for Error Detection in Text-to-SQL Systems

AIRI;MIPT(莫斯科物理技术学院);Sber AI;ISP RAS Research Center for Trusted Artificial Intelligence(俄罗斯科学院信息学与自动化研究所可信人工智能研究中心)

Oleg Somov, Elena Tutubalina

AI总结:

本研究将选择性分类器集成到文本到SQL系统中,利用基于熵的置信度估计和校准技术,分析覆盖率与风险的权衡,发现T5校准优于GPT-4和Llama-3,且选择性分类器更易检测无关问题导致的错误。

摘要:

文本到SQL技术使用户能够通过自然语言与数据库交互,简化了信息的检索与综合。尽管大型语言模型(LLMs)在将自然语言问题转换为SQL查询方面取得了成功,但其更广泛的采用受到两个主要挑战的限制:实现跨多样查询的稳健泛化,以及确保其预测的解释性置信度。为解决这些问题,我们的研究探讨了将选择性分类器集成到文本到SQL系统中。我们使用基于熵的置信度估计与选择性分类器,分析了覆盖率和风险之间的权衡,并评估了其对文本到SQL模型整体性能的影响。此外,我们探索了模型的初始校准,并通过校准技术改进校准,以实现置信度与准确性之间更好的模型对齐。我们的实验结果表明,编码器-解码器T5比上下文学习GPT 4和仅解码器Llama 3校准得更好,因此指定的基于外部熵的选择性分类器具有更好的性能。研究还揭示,在错误检测方面,具有较高概率的选择性分类器检测到与无关问题相关的错误,而非不正确的查询生成。

英文摘要:

Text-to-SQL enables users to interact with databases through natural language, simplifying the retrieval and synthesis of information. Despite the success of large language models (LLMs) in converting natural language questions into SQL queries, their broader adoption is limited by two main challenges: achieving robust generalization across diverse queries and ensuring interpretative confidence in their predictions. To tackle these issues, our research investigates the integration of selective classifiers into Text-to-SQL systems. We analyse the trade-off between coverage and risk using entropy based confidence estimation with selective classifiers and assess its impact on the overall performance of Text-to-SQL models. Additionally, we explore the models' initial calibration and improve it with calibration techniques for better model alignment between confidence and accuracy. Our experimental results show that encoder-decoder T5 is better calibrated than in-context-learning GPT 4 and decoder-only Llama 3, thus the designated external entropy-based selective classifier has better performance. The study also reveal that, in terms of error detection, selective classifier with a higher probability detects errors associated with irrelevant questions rather than incorrect query generations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑