Beyond Post-Hoc Temperature Scaling: Bilevel Optimization for LLM Calibration
Not on the map. Why?
Abstract (arXiv)
Preference alignment often makes large language models (LLMs) overconfident and poorly calibrated. Traditional post-hoc temperature scaling is inherently domain-dependent: a temperature fitted on one domain does not generalize across domains. This motivates us to modify model parameters during training to improve calibration. We propose maximizing the entropy of predictive distributions as the calibration objective, which directly targets overconfidence by discouraging overly concentrated predictions. Inspired by temperature scaling, we realize this through a bilevel optimization formulation, where the lower level trains the model under a parametric loss and the upper level selects loss hyperparameters to maximize entropy. To make the framework practical at LLM scale, we adopt an efficient first-order approximation that avoids explicit second-order computation. Across both multiple-choice and open-ended generative question answering, experiments demonstrate that our method yields well-calibrated LLMs with particular advantages in out-of-domain generalization.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 70 of its 79 references that are in the map. First posted on arXiv 7 Aug 2026.
Builds on
70 of 79 references.
References · 70
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2023Mistral 7Bcited by 3,164
38 more
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2022Language Models (Mostly) Know What They Knowcited by 1,856
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2019When Does Label Smoothing Help?cited by 988
- 2023A General Theoretical Paradigm to Understand Learning from Human Preferencescited by 912
- 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 812
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
- 2022Teaching Models to Express Their Uncertainty in Wordscited by 751
- 2022MedMCQA : A Large-scale Multi-Subject Multi-Choice Dataset for Medical domain Question Answeringcited by 543
- 2020How Can We Know When Language Models Know? On the Calibration of Language Models for Question Answeringcited by 445
- 20242 OLMo 2 Furiouscited by 340
- 2024From r to Q^*: Your Language Model is Secretly a Q-Functioncited by 242
- 2023Nash Learning from Human Feedbackcited by 224
- 2023ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Modelscited by 187
- 2020Improving model calibration with accuracy versus uncertainty optimizationcited by 123
- 2024Taming Overconfidence in LLMs: Reward Calibration in RLHFcited by 112
- 2024Understanding the performance gap between online and offline alignment algorithmscited by 110
- 2022BOME! Bilevel Optimization Made Easy: A Simple First-Order Approachcited by 105
- 2024SaySelf: Teaching LLMs to Express Confidence with Self-Reflective Rationalescited by 105
- 2022Uncertainty Quantification with Pre-trained Language Models: A Large-Scale Empirical Analysiscited by 104
- 2021Soft Calibration Objectives for Neural Networkscited by 92
- 2020Distribution-free binary classification: prediction sets, confidence intervals and calibrationcited by 79
- 2024On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularizationcited by 72
- 2024Preserving Diversity in Supervised Fine-Tuning of Large Language Modelscited by 70
- 2022Better Uncertainty Calibration via Proper Scores for Classification and Beyondcited by 65
- 2022Prototypical Calibration for Few-shot Learning of Language Modelscited by 58
- 2022A Close Look into the Calibration of Pre-trained Language Modelscited by 57
- 2024Learn Your Reference Model for Real Good Alignmentcited by 57
- 2021Knowing More About Questions Can Help: Improving Calibration in Question Answeringcited by 47
- 2022A Consistent and Differentiable Lp Canonical Calibration Error Estimatorcited by 47
- 2024Asymptotics of Language Model Alignmentcited by 47
- 2021Distribution-free calibration guarantees for histogram binning without sample splittingcited by 45
- 2023LitCab: Lightweight Language Model Calibration over Short- and Long-form Responsescited by 44
50 most cited of 70 All 70 (JSON)
Built on by
Not cited yet.