Calibrating Verbalized Probabilities for Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Wang, Cheng, Szarvas, Gyuri, Balazs, Georges, Danchenko, Pavel, Ernst, Patrick
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910641912020992
author Wang, Cheng
Szarvas, Gyuri
Balazs, Georges
Danchenko, Pavel
Ernst, Patrick
author_facet Wang, Cheng
Szarvas, Gyuri
Balazs, Georges
Danchenko, Pavel
Ernst, Patrick
contents 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 techniques like Platt scaling or temperature scaling to the confidence scores generated by LLMs. In this paper, we explore the calibration of verbalized probability distributions for discriminative tasks. First, we investigate the capability of LLMs to generate probability distributions over categorical labels. We theoretically and empirically identify the issue of re-softmax arising from the scaling of verbalized probabilities, and propose using the invert softmax trick to approximate the "logit" by inverting verbalized probabilities. Through extensive evaluation on three public datasets, we demonstrate: (1) the robust capability of LLMs in generating class distributions, and (2) the effectiveness of the invert softmax trick in estimating logits, which, in turn, facilitates post-calibration adjustments.
format Preprint
id arxiv_https___arxiv_org_abs_2410_06707
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Calibrating Verbalized Probabilities for Large Language Models
Wang, Cheng
Szarvas, Gyuri
Balazs, Georges
Danchenko, Pavel
Ernst, Patrick
Computation and Language
Artificial Intelligence
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 techniques like Platt scaling or temperature scaling to the confidence scores generated by LLMs. In this paper, we explore the calibration of verbalized probability distributions for discriminative tasks. First, we investigate the capability of LLMs to generate probability distributions over categorical labels. We theoretically and empirically identify the issue of re-softmax arising from the scaling of verbalized probabilities, and propose using the invert softmax trick to approximate the "logit" by inverting verbalized probabilities. Through extensive evaluation on three public datasets, we demonstrate: (1) the robust capability of LLMs in generating class distributions, and (2) the effectiveness of the invert softmax trick in estimating logits, which, in turn, facilitates post-calibration adjustments.
title Calibrating Verbalized Probabilities for Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2410.06707