arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.16742cs.DBcs.AIcs.IR
收藏

Text-to-SQL校准:无需询问——只需重新缩放模型概率

Text-to-SQL Calibration: No Need to Ask -- Just Rescale Model Probabilities

UC San Diego(加州大学圣迭戈分校);IIT Bombay(印度理工学院孟买分校)

Ashwin Ramachandran, Sunita Sarawagi

AI总结:

针对Text-to-SQL任务中LLM生成SQL的置信度校准问题,研究表明基于模型全序列概率的简单基线方法优于依赖后续提示的最新方法,并通过两个基准和多架构评估提供了校准策略有效性的见解。

摘要:

随着大型语言模型(LLMs)越来越多地被用于将自然语言查询转换为商业数据库的SQL,校准至关重要。在这项工作中,我们研究了为生成的SQL查询分配置信度的校准技术。我们发现,一个简单的基线方法——从模型的全序列概率中推导置信度——优于依赖后续提示进行自我检查和置信度表述的最新方法。我们在两个广泛使用的Text-to-SQL基准和多个LLM架构上进行的综合评估,为各种校准策略的有效性提供了宝贵见解。

英文摘要:

Calibration is crucial as large language models (LLMs) are increasingly deployed to convert natural language queries into SQL for commercial databases. In this work, we investigate calibration techniques for assigning confidence to generated SQL queries. We show that a straightforward baseline -- deriving confidence from the model's full-sequence probability -- outperforms recent methods that rely on follow-up prompts for self-checking and confidence verbalization. Our comprehensive evaluation, conducted across two widely-used Text-to-SQL benchmarks and multiple LLM architectures, provides valuable insights into the effectiveness of various calibration strategies.

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

↑