Share from 0:00
0:00
/

"Influences on LLM Calibration: A Study of Response Agreement, Loss Functions, and Prompt Styles"

Generated below podcast on this paper with Google's Illuminate.

Getting machines to know when they don't know - solved with multiple LLM consensus.

This paper proposes a framework called Calib-n that improves LLM calibration by aggregating responses from multiple models and using specialized loss functions.

-----

https://arxiv.org/abs/2501.03991

Original Problem πŸ”:

β†’ Current calibration methods for LLMs lack generalization across different prompt styles and model sizes

β†’ Existing methods are limited to evaluating only one or two LLMs and prompt types

β†’ There's no comprehensive analysis of how response agreement and loss functions affect calibration

-----

Solution in this Paper πŸ› οΈ:

β†’ Calib-n framework trains an auxiliary model that combines outputs from multiple LLMs to estimate confidence

β†’ It incorporates three loss functions: binary cross-entropy, focal loss, and AUC surrogate loss

β†’ The system evaluates across 12 LLMs using four different prompt styles: verbalized, chain-of-thought, zero-shot, and few-shot

β†’ Response agreement between models helps reduce overconfidence and improves calibration reliability

-----

Key Insights πŸ’‘:

β†’ Few-shot prompts are most effective for auxiliary model-based methods

β†’ Focal loss outperforms other loss functions in most settings

β†’ Response agreement significantly improves calibration performance

β†’ Auxiliary models maintain stable calibration across varying accuracy levels

-----

Results πŸ“Š:

β†’ Calib-n with focal loss achieved lowest ECE scores across 4 datasets

β†’ Auxiliary models outperform LLMs' internal probabilities in 78% of test cases

β†’ Few-shot prompts showed 32% better calibration than other prompt styles

Discussion about this video

User's avatar

Ready for more?