Credal Large Language Models for Semantic Commitment under Uncertainty
Organizations: Oxford Dynamics Oxford · Ludwig-Maximilians-Universität München Munich · Institute for Artificial Intelligence, Data Analysis and Systems (AIDAS) School of Engineering Computing & Mathematics Oxford Brookes University, Oxford, UK
Abstract
Large language models (LLMs) often produce fluent but incorrect answers with unwarranted confidence. A central limitation is that standard LLMs represent uncertainty through a single predictive distribution, conflating epistemic ignorance with genuine ambiguity. We introduce Credal Large Language Models (CLLMs): an ensemble of LoRA adapters induces a credal set whose lower and upper probabilities expose the spread of plausible predictive distributions rather than collapsing to a single softmax output. From this representation, we derive a single commitment rule: the model commits to an answer only when its lower probability exceeds the upper probability of every alternative, and otherwise returns the set of answers that no plausible predictor rules out. We apply this commitment rule at two depths: Credal Token Commitment (CTC) applies it to answer tokens from one ensemble forward pass, which decides constrained answers without any generation; for open-ended answers, credal decoding extends a partial answer only when no completed answer dominates it, so that the completions produced are those the plausible predictors license, and Credal Semantic Commitment (CSC) applies the rule to their meaning clusters. We evaluate CLLMs with Gemma-2-9B, Llama-3.1-8B and Qwen2.5-7B on OpenBookQA, CoQA, TriviaQA and ARC-Challenge. On multiple choice, CTC commits on 73-91% of questions at 89-98% accuracy, returns sets of 1.1-1.5 options containing the gold one on 89-98%, and its intervals contain the observed accuracy in 24 of 30 confidence bins without calibration; corrupted context lowers commitment from 87-92% to 65-71%, and on Gemma the credal bound detects corruption better than every baseline. On open-ended QA, CLLM outperforms semantic entropy and Laplace-LoRA at a fixed coverage by up to 19% and 9.5% absolute accuracy on CoQA and TriviaQA with context, for every backbone.
Figures & tables
| CoQA | TriviaQA (passage) | TriviaQA (closed book) | OpenBookQA | ARC-Challenge | |||||||
| Score | Source | Clean | Corrupted | Clean | Corrupted | Clean | Corrupted | Clean | Corrupted | Clean | Corrupted |
| Standard LLM (predictive entropy) | single model | 0.786 | 0.739 | 0.850 | 0.568 | 0.729 | 0.495 | 0.866 | 0.538 | 0.762 | 0.472 |
| Standard LLM (max prob) | single model | 0.774 | 0.754 | 0.829 | 0.594 | 0.702 | 0.502 | 0.863 | 0.537 | 0.760 | 0.488 |
| Semantic entropy (cosine) | single model, | 0.646 | 0.739 | 0.736 | 0.697 | 0.722 | 0.543 | 0.668 | 0.638 | 0.633 | 0.490 |
| Semantic entropy (NLI) | single model, | 0.709 | 0.698 | 0.811 | 0.675 | 0.723 | 0.556 | 0.535 | 0.629 | 0.530 | 0.502 |
| Bayesian-LoRA (KFAC) | posterior, | 0.812 | 0.827 | 0.845 | 0.694 | 0.792 | 0.597 | 0.931 | 0.642 | 0.819 | 0.512 |
| CoQA | TriviaQA (passage) | TriviaQA (closed book) | OpenBookQA | ARC-Challenge | |||||||||||
| Score | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL |
| Standard LLM (predictive entropy) | 0.795 | 0.156 | 0.694 | 0.710 | 0.241 | 0.784 | 0.735 | 0.160 | 0.768 | 0.973 | 0.067 | 0.302 | 0.943 | 0.095 | 0.438 |
| Standard LLM (max prob) | 0.790 | 0.156 | 0.694 | 0.700 | 0.241 | 0.784 | 0.715 | 0.160 | 0.768 | 0.973 | 0.067 | 0.302 | 0.940 | 0.095 | 0.438 |
| Semantic entropy (cosine) | 0.780 | 0.198 | 3.141 | 0.720 | 0.287 | 3.610 | 0.755 | 0.180 | 2.480 | 0.948 | 0.070 | 1.237 | 0.915 | 0.107 | 2.043 |
| Semantic entropy (NLI) | 0.775 | 0.129 | 1.775 | 0.725 | 0.240 | 2.353 | 0.750 | 0.144 | 2.125 | 0.917 | 0.138 | 0.835 | 0.875 | 0.130 | 1.412 |
| Bayesian-LoRA (KFAC) | 0.835 | 0.271 | 0.645 | 0.900 | 0.435 | 0.854 | 0.755 | 0.110 | 0.537 | 0.993 | 0.009 | 0.130 | 0.940 | 0.068 | 0.322 |
| Backbone | Committed on harmful | Committed on benign | harmful / benign | Standard LLM entropy |
|---|---|---|---|---|
| Llama-3.1-8B | 71.6% | 30.4% | / | / |
| Gemma-2-9B | 97.2% | 38.4% | / | / |
| Qwen2.5-7B | 33.2% | 22.8% | / | / |
Appendix figures & tables22 assets
Supplementary material from the paper’s appendix.
Appendix
| Token | In | |||||||
|---|---|---|---|---|---|---|---|---|
| special | 0.684 | 0.029 | 0.245 | 0.925 | 0.938 | 0.029 | 0.938 | yes |
| Special | 0.222 | 0.847 | 0.666 | 0.046 | 0.013 | 0.013 | 0.847 | yes |
| food | 0.044 | 0.005 | 0.016 | 0.022 | 0.036 | 0.005 | 0.044 | yes |
| They | 0.001 | 0.037 | 0.002 | 0.000 | 0.000 | 0.000 | 0.037 | yes |
| fifth token | 0.018 | 0.003 | 0.002 | 0.004 | 0.006 | 0.002 | 0.018 | no |
| sixth token | 0.004 | 0.014 | 0.002 | 0.000 | 0.000 | 0.000 | 0.014 | no |
| CoQA | TriviaQA (passage) | TriviaQA (closed book) | OpenBookQA | ARC-Challenge | |||||||||||
| Score | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL |
| Standard LLM (predictive entropy) | 0.775 | 0.083 | 0.511 | 0.895 | 0.075 | 0.342 | 0.785 | 0.117 | 0.563 | 0.965 | 0.040 | 0.240 | 0.858 | 0.104 | 0.504 |
| Standard LLM (max prob) | 0.770 | 0.083 | 0.511 | 0.890 | 0.075 | 0.342 | 0.785 | 0.117 | 0.563 | 0.968 | 0.040 | 0.240 | 0.860 | 0.104 | 0.504 |
| Semantic entropy (cosine) | 0.755 | 0.154 | 1.825 | 0.885 | 0.070 | 0.765 | 0.795 | 0.136 | 1.127 | 0.968 | 0.047 | 0.622 | 0.860 | 0.131 | 1.458 |
| Semantic entropy (NLI) | 0.745 | 0.177 | 0.871 | 0.905 | 0.291 | 0.565 | 0.810 | 0.229 | 0.829 | 0.945 | 0.175 | 0.447 | 0.860 | 0.041 | 0.821 |
| Bayesian-LoRA (KFAC) | 0.745 | 0.062 | 0.510 | 0.890 | 0.438 | 0.855 | 0.785 | 0.103 | 0.543 | 0.963 | 0.025 | 0.224 | 0.855 | 0.073 | 0.415 |
| CoQA | TriviaQA (passage) | TriviaQA (closed book) | OpenBookQA | ARC-Challenge | |||||||||||
| Score | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL | Acc.@80% | ECE | NLL |
| Standard LLM (predictive entropy) | 0.740 | 0.212 | 1.173 | 0.735 | 0.225 | 1.021 | 0.545 | 0.370 | 2.418 | 0.975 | 0.090 | 0.940 | 0.938 | 0.109 | 1.459 |
| Standard LLM (max prob) | 0.740 | 0.212 | 1.173 | 0.715 | 0.225 | 1.021 | 0.530 | 0.370 | 2.418 | 0.975 | 0.090 | 0.940 | 0.938 | 0.109 | 1.459 |
| Semantic entropy (cosine) | 0.745 | 0.207 | 4.255 | 0.750 | 0.208 | 3.084 | 0.585 | 0.371 | 6.550 | 0.920 | 0.091 | 1.752 | 0.897 | 0.113 | 2.341 |
| Semantic entropy (NLI) | 0.770 | 0.145 | 2.213 | 0.790 | 0.100 | 1.252 | 0.620 | 0.130 | 1.003 | 0.900 | 0.138 | 1.645 | 0.885 | 0.131 | 1.331 |
| Bayesian-LoRA (KFAC) | 0.770 | 0.128 | 0.665 | 0.845 | 0.067 | 0.485 | 0.555 | 0.225 | 1.119 | 0.975 | 0.085 | 0.831 | 0.935 | 0.106 | 1.392 |
| Dataset | Backbone | Standard LLM (predictive entropy) | LoRA Ensemble (predictive entropy) | CLLM |
|---|---|---|---|---|
| OpenBookQA | Llama-3.1-8B | 0.965 | 0.965 | 0.980 |
| OpenBookQA | Gemma-2-9B | 0.973 | 0.995 | 0.998 |
| OpenBookQA | Qwen2.5-7B | 0.975 | 0.978 | 0.980 |
| ARC-Challenge | Llama-3.1-8B | 0.858 | 0.810 | 0.890 |
| ARC-Challenge | Gemma-2-9B | 0.943 | 0.950 | 0.953 |
| ARC-Challenge | Qwen2.5-7B | 0.938 | 0.940 | 0.938 |
| CoQA | TriviaQA (passage) | |||||
| Statistic (AUROC ) | Llama | Gemma | Qwen | Llama | Gemma | Qwen |
| Single model, predictive entropy | 0.669 | 0.739 | 0.557 | 0.717 | 0.568 | 0.528 |
| Mean-pooled ensemble, predictive entropy | 0.837 | 0.830 | 0.797 | 0.817 | 0.683 | 0.749 |
| Mean-pooled ensemble, mutual information | 0.863 | 0.854 | 0.786 | 0.824 | 0.723 | 0.836 |
| Credal set, entropy of the interpolating distribution | 0.876 | 0.860 | 0.809 | 0.813 | 0.688 | 0.674 |
| Credal set, upper entropy | 0.855 | 0.854 | 0.805 | 0.779 | 0.690 | 0.736 |
| Matched size | Fixed size | ||||||
|---|---|---|---|---|---|---|---|
| Dataset | Backbone | Our mean size | Ours | Top- at our size | |||
| CoQA | Llama-3.1-8B | 2.52 | 87 | 87 | 75 | 83 | 84 |
| CoQA | Gemma-2-9B | 2.65 | 90 | 90 | 79 | 87 | 89 |
| CoQA | Qwen2.5-7B | 5.94 | 89 | 89 | 76 | 82 | 85 |
| TriviaQA (passage) | Llama-3.1-8B | 3.78 | 91 | 91 | 85 | 88 | 90 |
| TriviaQA (passage) | Gemma-2-9B | 2.51 | 88 | 88 | 80 | 85 | 87 |
| Dataset | Backbone | Commit rate | Mean | Gold in set | Acc. at the rule’s coverage | |
|---|---|---|---|---|---|---|
| CTC (ours) | LoRA Ensemble (pred. entropy) | |||||
| OpenBookQA | Llama-3.1-8B | 0.830 | 1.29 | 0.966 | 0.971 | 0.959 |
| OpenBookQA | Gemma-2-9B | 0.864 | 1.30 | 0.984 | 0.984 | 0.986 |
| OpenBookQA | Qwen2.5-7B | 0.906 | 1.17 | 0.956 | 0.954 | 0.954 |
| ARC-Challenge | Llama-3.1-8B | 0.734 | 1.50 | 0.888 | 0.905 | 0.888 |
| ARC-Challenge | Gemma-2-9B | 0.882 | 1.20 | 0.930 | 0.934 | 0.927 |
| All populated bins | Top bin | |||||||
|---|---|---|---|---|---|---|---|---|
| Dataset | Backbone | Bins | Inside | Below | Mean width | Share of questions | Accuracy | Mean |
| OpenBookQA | Llama-3.1-8B | 6 | 6 | 0 | 0.447 | 0.71 | 0.99 | |
| OpenBookQA | Gemma-2-9B | 4 | 4 | 0 | 0.462 | 0.86 | 0.99 | |
| OpenBookQA | Qwen2.5-7B | 4 | 3 | 1 | 0.423 | 0.88 | 0.97 | |
| ARC-Challenge | Llama-3.1-8B | 6 | 5 | 1 | 0.399 | 0.58 | 0.95 | |
| ARC-Challenge | Gemma-2-9B | 5 | 3 | 2 | 0.468 | 0.83 | 0.95 | |
| Setting | Commit | Acc commit | Gold in set | Set size | Acc (rep.) | Unexpl. | |
| Llama-3.1-8B | |||||||
| CoQA, clean | 5 | 40.4 | 95 | 87 | 2.52 | 75 | 0.51 |
| CoQA, corrupted context | 5 | 3.6 | 22 | 24 | 3.59 | 14 | 0.88 |
| TriviaQA, clean | 5 | 1.2 | 100 | 91 | 3.78 | 86 | 0.80 |
| TriviaQA, corrupted context | 5 | 0.0 | – | 76 | 4.47 | 67 | 0.96 |
| TriviaQA closed-book | 5 | 32.0 | 96 | 88 | 2.80 | 77 | 0.58 |
| Dataset | Backbone | Commit rate, clean | Commit rate, corrupted | Median clean / corrupted | AUROC of |
|---|---|---|---|---|---|
| OpenBookQA | Gemma-2-9B | 0.898 | 0.706 | 1 / 1 | 0.881 |
| OpenBookQA | Llama-3.1-8B | 0.868 | 0.652 | 1 / 1 | 0.732 |
| OpenBookQA | Qwen2.5-7B | 0.916 | 0.670 | 1 / 1 | 0.805 |
| CoQA | Gemma-2-9B | 0.236 | 0.044 | 2 / 13 | 0.830 |
| CoQA | Llama-3.1-8B | 0.304 | 0.052 | 2 / 10 | 0.832 |
| CoQA | Qwen2.5-7B | 0.204 | 0.036 | 3 / 20 | 0.777 |
| Setting | Both commit | Token space only | Semantic space only | Neither |
| Llama-3.1-8B | ||||
| CoQA, clean | 20 | 10 | 20 | 50 |
| CoQA, corrupted context | 3 | 2 | 0 | 94 |
| TriviaQA, clean | 0 | 0 | 1 | 99 |
| TriviaQA, corrupted context | 0 | 0 | 0 | 100 |
| TriviaQA closed-book | 24 | 15 | 8 | 53 |
| CoQA | TriviaQA (passage) | TriviaQA (closed book) | OpenBookQA | ARC-Challenge | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Depth (AUROC ) | Candidates | Llama | Gemma | Qwen2.5 | Llama | Gemma | Qwen2.5 | Llama | Gemma | Qwen2.5 | Llama | Gemma | Qwen2.5 | Llama | Gemma | Qwen2.5 |
| CLLM (CTC) | token space, first answer token | 0.754 | 0.752 | 0.714 | 0.711 | 0.744 | 0.755 | 0.764 | 0.706 | 0.536 | 0.917 | 0.942 | 0.917 | 0.781 | 0.830 | 0.807 |
| CLLM (CSC) | semantic space, meanings | 0.830 | 0.844 | 0.740 | 0.822 | 0.850 | 0.867 | 0.833 | 0.833 | 0.783 | 0.917 | 0.942 | 0.917 | 0.781 | 0.830 | 0.807 |
| CTC commit | CSC commit | Acc commit | Gold in set | Set size | Unexpl. | |
|---|---|---|---|---|---|---|
| 2 | 38.6 | 43.4 | 90 | 84 | 1.79 | 0.50 |
| 3 | 31.4 | 41.6 | 91 | 88 | 2.08 | 0.50 |
| 4 | 28.2 | 40.6 | 93 | 90 | 2.33 | 0.51 |
| 5 | 26.6 | 40.8 | 92 | 89 | 2.34 | 0.51 |
| Backbone | Expansion | CSC commit | Acc. when committed | Gold in set | Steps/prompt | Completed/prompt |
|---|---|---|---|---|---|---|
| Llama-3.1-8B | decision | 40.8 | 92.2 | 89.2 | 72.4 | 10.9 |
| Llama-3.1-8B | token | 35.0 | 92.6 | 87.4 | 83.7 | 14.9 |
| Gemma-2-9B | decision | 48.8 | 92.6 | 88.6 | 73.0 | 23.9 |
| Gemma-2-9B | token | 43.2 | 93.1 | 87.2 | 65.1 | 27.2 |
| Qwen2.5-7B | decision | 29.0 | 93.8 | 88.8 | 97.5 | 14.9 |
| Qwen2.5-7B | token | 28.0 | 94.3 | 88.0 | 106.2 | 17.4 |
| Meanings per prompt | Impurity | ||||
|---|---|---|---|---|---|
| Dataset | Backbone | sure | possible | sure | possible |
| CoQA | Llama-3.1-8B | 2.98 | 1.41 | 30% | 62% |
| CoQA | Gemma-2-9B | 3.32 | 1.42 | 30% | 64% |
| CoQA | Qwen2.5-7B | 6.88 | 3.94 | 19% | 40% |
| TriviaQA | Llama-3.1-8B | 3.80 | 1.01 | 60% | 88% |
| TriviaQA | Gemma-2-9B | 2.52 | 1.00 | 38% | 66% |
| Rule as stated | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Dataset | Backbone | Cov. | Acc. | Cov. | Acc. | Cov. | Acc. | Cov. | Acc. | Cov. | Acc. |
| CoQA | Llama-3.1-8B | 0.40 | 0.95 | 0.54 | 0.93 | 0.40 | 0.95 | 0.28 | 0.97 | 0.16 | 1.00 |
| CoQA | Gemma-2-9B | 0.48 | 0.96 | 0.56 | 0.94 | 0.47 | 0.96 | 0.31 | 0.99 | 0.18 | 1.00 |
| CoQA | Qwen2.5-7B | 0.31 | 0.91 | 0.37 | 0.90 | 0.31 | 0.91 | 0.22 | 0.98 | 0.14 | 1.00 |
| TriviaQA | Llama-3.1-8B | 0.01 | 1.00 | 0.07 | 1.00 | 0.01 | 1.00 | 0.00 | – | 0.00 | – |
| TriviaQA | Gemma-2-9B | 0.01 | 1.00 | 0.17 | 0.98 | 0.01 | 1.00 | 0.00 | – | 0.00 | – |