Accurately gauging the confidence level of Large Language Models' (LLMs) predictions is pivotal for their reliable application. However, LLMs are often uncalibrated inherently and elude conventional calibration techniques due to their proprietary nature and massive scale. In this work, we explore the potential of deriving confidence from the distribution of multiple randomly sampled model generations, via three measures of consistency. We perform an extensive evaluation across various open and closed-source models on nine reasoning datasets. Results show that consistency-based calibration methods outperform existing post-hoc approaches. Meanwhile, we find that factors such as intermediate explanations, model scaling, and larger sample sizes enhance calibration, while instruction-tuning makes calibration more difficult. Moreover, confidence scores obtained from consistency have the potential to enhance model performance. Finally, we offer practical guidance on choosing suitable consistency metrics for calibration, tailored to the characteristics of various LMs.
翻译:准确评估大型语言模型(LLMs)预测的置信度对其可靠应用至关重要。然而,LLMs通常存在固有的未校准特性,且因其专有属性和巨大规模而难以适用传统校准技术。本研究通过三种一致性度量方法,探索从多个随机采样的模型生成分布中推导置信度的可能性。我们在九个推理数据集上对多种开源和闭源模型进行了广泛评估。结果表明,基于一致性的校准方法优于现有的后处理方案。同时,我们发现中间解释、模型缩放和更大样本量等因素能提升校准效果,而指令微调则会增加校准难度。此外,通过一致性获得的置信度评分具备提升模型性能的潜力。最后,我们针对不同语言模型的特性,提供了选择合适一致性度量进行校准的实用指导。