S-EDL: Eliciting Self-Evidence from Sequence Likelihoods for Semantic Calibration of LLMs
Organizations: LMU Munich · Munich Center for Machine Learning (MCML) · King’s College London
Abstract
Calibrating large language models (LLMs) in open-ended generation is uniquely challenging because many distinct token sequences can express the same underlying meaning. Prior calibration techniques target either fixed-set classification confidence or the binary correctness of individual strings, making them inherently ill-suited for the dynamic, multi-string nature of open-ended semantic outcomes. To bridge this gap, we introduce S-EDL, a novel evidential method that natively optimizes LLMs for semantic calibration. By eliciting evidence from the sequence likelihoods of the model itself, S-EDL constructs a differentiable Dirichlet prior over prompt-specific semantic classes. Optimizing the evidential loss under this prior yields a calibration-aware training signal over variable semantic classes, completely bypassing the need for fixed multiple-choice options. Evaluations across four open-ended benchmarks and three models demonstrate that S-EDL substantially reduces semantic calibration error while improving accuracy. By aligning generative likelihoods with semantic correctness, this work establishes a framework for deploying trustworthy LLMs in complex, open-ended applications. Code is available at: https://github.com/sandylaker/s-edl.
Figures & tables
| Method | GSM8K | MATH-500 | ChemistryQA | FormulaReasoning | Average | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pass@1 | S-Acc. | smECE | Pass@1 | S-Acc. | smECE | Pass@1 | S-Acc. | smECE | Pass@1 | S-Acc. | smECE | Pass@1 | S-Acc. | smECE | |
| Fine-tuned model: Qwen3-8B-Base | |||||||||||||||
| SFT | 70.8 1.2 | 93.4 0.4 | 20.2 0.4 | 49.4 2.8 | 68.7 2.7 | 16.1 0.6 | 47.9 0.7 | 52.9 1.4 | 20.7 0.6 | 75.6 0.8 | 87.5 0.3 | 8.9 0.3 | 60.9 | 75.6 | 16.5 |
| RCFT | 79.1 0.2 | 92.8 0.1 | 12.9 0.2 | 50.1 0.3 | 71.1 1.4 | 17.5 1.6 | 49.7 3.9 | 55.4 4.3 | 15.1 1.5 | 78.4 0.3 | 89.5 0.2 | 8.9 0.1 | 64.3 | 77.6 | 13.6 |
| LS | 79.1 1.0 | 92.7 0.2 | 12.5 0.6 | 49.6 0.2 | 70.7 0.7 | 17.5 0.7 | 50.7 0.7 | 58.1 0.3 | 11.8 0.7 | 76.8 1.0 | 88.9 0.4 | 9.4 0.8 | 64.0 | 77.6 | 12.8 |
| BLoB | 79.1 0.1 | 92.5 0.9 | 12.4 0.3 | 49.9 0.3 | 69.5 1.5 | 15.9 1.6 | 52.4 0.9 | 57.9 0.2 | 14.9 1.3 | 78.4 1.3 | 90.3 0.6 | 10.6 0.1 | 64.9 | 77.6 | 13.4 |
| Method | MATH GSM8K | MATH ChemistryQA | MATH FormulaReasoning | Average | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pass@1 | S-Acc. | smECE | Pass@1 | S-Acc. | smECE | Pass@1 | S-Acc. | smECE | Pass@1 | S-Acc. | smECE | |
| Fine-tuned model: Qwen3-8B-Base | ||||||||||||
| SFT | 79.1 1.9 | 92.8 1.7 | 14.7 2.0 | 38.9 0.5 | 49.5 0.6 | 7.5 0.3 | 50.4 0.4 | 72.0 1.3 | 16.8 1.9 | 56.1 | 71.4 | 13.0 |
| RCFT | 77.2 0.4 | 93.0 1.6 | 15.6 1.2 | 38.2 1.7 | 49.8 1.3 | 6.6 0.8 | 47.6 1.7 | 76.5 0.2 | 22.1 0.8 | 54.3 | 73.1 | 14.8 |
| LS | 78.4 1.7 | 93.7 0.5 | 14.6 0.2 | 38.9 0.5 | 51.3 0.7 | 4.9 1.0 | 45.2 1.2 | 74.3 1.4 | 22.7 1.7 | 54.2 | 73.1 | 14.1 |
| BLoB | 75.5 0.8 | 94.8 0.3 | 16.5 1.0 | 38.6 1.2 | 51.3 0.7 | 5.9 0.4 | 49.4 0.6 | 77.6 0.9 | 21.4 0.7 | 54.5 | 74.6 | 14.6 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | GSM8K | MATH | ChemistryQA | FormulaReasoning |
|---|---|---|---|---|
| Model & LoRA | ||||
| Model max_seq_length | 2048 | 4096 | 4096 | 4096 |
| LoRA / / dropout | 16 / 32 / 0.0 | 16 / 32 / 0.0 | 16 / 32 / 0.0 | 16 / 32 / 0.0 |
| LoRA target modules | Q,K,V,O,gate,up,down | Q,K,V,O,gate,up,down | Q,K,V,O,gate,up,down | Q,K,V,O,gate,up,down |
| LoRA bias | none | none | none | none |
| Precision | bf16 | bf16 | bf16 | bf16 |
| Hyperparameter | GSM8K | MATH | ChemistryQA | FormulaReasoning |
|---|---|---|---|---|
| Model & LoRA | ||||
| Model max_seq_length | 2048 | 4096 | 4096 | 4096 |
| LoRA / / dropout | 16 / 32 / 0.0 | 16 / 32 / 0.0 | 16 / 32 / 0.0 | 16 / 32 / 0.0 |
| LoRA target modules | Q,K,V,O,gate,up,down | Q,K,V,O,gate,up,down | Q,K,V,O,gate,up,down | Q,K,V,O,gate,up,down |
| LoRA bias | none | none | none | none |
| Precision | bf16 | bf16 | bf16 | bf16 |
| Hyperparameter | GSM8K | MATH | ChemistryQA | FormulaReasoning |
|---|---|---|---|---|
| Model & LoRA | ||||
| Model max_seq_length | 2048 | 4096 | 4096 | 4096 |
| LoRA / / dropout | 16 / 32 / 0.0 | 16 / 32 / 0.0 | 16 / 32 / 0.0 | 16 / 32 / 0.0 |
| LoRA target modules | Q,K,V,O,gate,up,down | Q,K,V,O,gate,up,down | Q,K,V,O,gate,up,down | Q,K,V,O,gate,up,down |
| LoRA bias | none | none | none | none |
| Precision | bf16 | bf16 | bf16 | bf16 |
Language Model Calibration
Language model calibration studies whether models’ confidence estimates match their actual accuracy across tasks, prompts, and deployment settings.
See all 385 papers