paper-with-me

Papers

Calibrating Language Models with Adaptive Temperature Scaling

2024-09-29 · Johnathan Xie, Annie S. Chen, Yoonho Lee, Eric Mitchell, Chelsea Finn

The effectiveness of large language models (LLMs) is not only measured by their ability to generate accurate outputs but also by their calibration-how well their confidence scores reflect the probability of their outputs being correct. While unsupervised pre-training has been shown to yield LLMs with well-calibrated conditional probabilities, recent studies have shown that after fine-tuning with reinforcement learning from human feedback (RLHF), the calibration of these models degrades significantly. In this work, we introduce Adaptive Temperature Scaling (ATS), a post-hoc calibration method that predicts a temperature scaling parameter for each token prediction. The predicted temperature values adapt based on token-level features and are fit over a standard supervised fine-tuning (SFT) dataset. The adaptive nature of ATS addresses the varying degrees of calibration shift that can occur after RLHF fine-tuning. ATS improves calibration by over 10-50% across three downstream natural language evaluation benchmarks compared to prior calibration methods and does not impede performance improvements from RLHF.

📄 PDF Abstract BibTeX arXiv:2409.19817

Code (1)

Johnathan-Xie/adaptive-temperature-scaling 공식 구현

Tasks

Unsupervised Pre-training

Similar Papers 제목 키워드 기반

Long Horizon Temperature Scaling

2023-02-07 · Andy Shih, Dorsa Sadigh, Stefano Ermon

Temperature scaling is a popular technique for tuning the sharpness of a model distribution. It is used extensively for sampling likely generations and calibrating model uncertainty, and even features as a controllable p…

Multiple-choice

Temperature Scaling for Quantile Calibration

2020-10-19 · NeurIPS Workshop ICBINB 2020 12 · Saiteja Utpala, Piyush Rai

Deep learning models are often poorly calibrated, i.e., they may produce overconfident predictions that are wrong, implying that their uncertainty estimates are unreliable. While a number of approaches have been propos…

Classificationregression

Calibrating Verbalized Probabilities for Large Language Models

2024-10-09 · Cheng Wang, Gyuri Szarvas, Georges Balazs, Pavel Danchenko 외

Calibrating verbalized probabilities presents a novel approach for reliably assessing and leveraging outputs from black-box Large Language Models (LLMs). Recent methods have demonstrated improved calibration by applying …

Improving the Post-hoc Calibration of Modern Neural Networks with Probe Scaling

2021-09-29 · Amr Khalifa, Ibrahim Alabdulmohsin

We present "probe scaling": a post-hoc recipe for calibrating the predictions of modern neural networks. Our recipe is inspired by several lines of work, which demonstrate that early layers in the neural network learn ge…

Calibrating Where It Matters: Constrained Temperature Scaling

2024-06-17 · Stephen McKenna, Jacob Carse

We consider calibration of convolutional classifiers for diagnostic decision making. Clinical decision makers can use calibrated classifiers to minimise expected costs given their own cost function. Such functions are us…

Decision MakingDiagnostic