Manuscript Offprint

arXiv:2609.37594

XU-RS: Explaining Credal Width in Random-Set Language Models

David Achara, Maryam Sultana, Alexander D. Rast, Fabio Cuzzolin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Uncertainty estimates tell us how unsure a model is, but not why. Without knowing which parts of an input influences a model's uncertainty, we cannot tell whether that uncertainty score depends on input features that are relevant for the task. We study this problem in random-set classifiers built using pretrained language models. These classifiers assign probability to individual answers and to groups of answers, producing lower and upper probabilities for each answer; The difference between these probabilities, called credal width, is used to represent epistemic uncertainty about an answer arising from limited training data. We propose XU-RS, a framework that attributes an answer's credal width to the input tokens (words or word pieces) supplied to a language model. XU-RS uses Expected Gradients (a standard feature attribution method) to estimate how input tokens contribute to credal width. The proposed framework is evaluated on a MedQA dataset using SmolLM3-3B and Llama-2-7B models, demonstrating that setting the embedding of a token ranked highly by XU-RS to zero (zero-masking) causes larger changes in credal width than zero-masking randomly selected tokens. In addition, we show that normalisation can cause other answer groups to influence an answer's width, reveal how token attribution can mask numerical errors, and provide diagnostic checks to verify whether a token ranked highly by XU-RS meaningfully explains model uncertainty.

1 Introduction

Uncertainty quantification Kong et al. (2023); Cuzzolin (2021b) accompanies a model's predictions with estimates of their uncertainty (Hüllermeier & Waegeman, 2021), which can be distinguished into either aleatoric or epistemic Swiler et al. (February 2009); Oren et al. (2022); Li et al. (2025) uncertainty Walters et al. (2023); Bickford Smith et al. (2025). These estimates do not, by themselves, explain which parts of the input influence them. Understanding this dependence is important when examining whether the features influencing

Figure

Figure 1: XU-RS predicts answer intervals and attributes a selected answer's width to input tokens relative to reference prompts. The example assigns C interval [0.1, 0.9] and width 0.8.

uncertainty are actually meaningful for the task. We investigate this problem for random-set Matheron (1975); Molchanov (2005); Nguyen (2006); Cuzzolin (2023) classifiers built using pretrained language models.

Consider a medical question with four answer options: {A,B,C,D}\{A, B, C, D\}. A conventional classifier assigns a probability to each option. This specifies how probability is divided between the options, but does not by itself express how certain the model is about that division. A random-set classifier Manchingal & Cuzzolin (2022) can instead assign probability jointly to a set of options Wang et al. (2026c), leaving its division among them unspecified (Manchingal et al., 2023, 2025d; Mubashar et al., 2025). This flexibility is intended to represent incomplete knowledge about the answer probabilities, and requires novel ways of assessing performance Manchingal et al. (2025c).

For example, suppose the random-set classifier assigns probability 0.1 to B alone, 0.1 to C alone, and 0.8 to the set containing B and C, with zero assigned to all other sets. For answer C, 0.1 is committed to that answer alone, while another 0.8 could belong to either B or C. C's lower probability is therefore 0.1 and its upper probability is 0.9. The difference, 0.9−0.1=0.80.9 - 0.1 = 0.8, is called credal width. The random-set classifier measures the probability left uncommitted between C and its alternatives (Figure 1).

Two models can report the same width while responding to different features: one to conflicting evidence and another to the order of the answer options. We therefore ask: which parts of a question and its answer options influence the width reported for a selected answer? The explanation target is uncertainty, rather than the score used to choose an answer.

We introduce XU-RS to explain the widths produced by these classifiers. We evaluate XU-RS on four-option random set classifiers adapted from SmolLM3-3B and Llama-2-7B (Hugging Face, 2025; Touvron et al., 2023). A trained output layer estimates lower probabilities for answer sets. These estimates are converted into probabilities assigned to the sets, from which the answer intervals are calculated. The models therefore classify answer options rather than generate free-form text.

XU-RS uses Expected Gradients (Erion et al., 2021), a standard feature-attribution method, to assign scores to input tokens (words or word pieces). The method explains how an output changes from a specified starting input to the input being studied. This starting input is called a reference, or baseline: it defines the difference that the token contributions are intended to explain.

In our MedQA experiments, reference prompts contain other questions and answer options. We explain the difference between the selected answer's width on the original input and its average width on the references supplied to the calculation. Expected Gradients gradually changes the references' numerical token representations towards those of the original prompt, measuring how the selected answer's width responds along the way. Section 3 explains how these references are prepared.

Our contributions are threefold. First, we develop and test a framework for attributing credal width to input tokens. On 100 MedQA questions per model (Jin et al., 2021), setting the embedding of tokens ranked highest by XU-RS (zero-masking) produces larger absolute width changes than zero-masking randomly selected tokens. Second, we derive how converting classifier outputs into valid probabilities makes an answer's width depend on values assigned to sets excluding that answer. Third, we provide numerical and reference-preparation checks: controlled examples show that stable rankings can conceal inaccurate attribution values, and that preparing a reference can alter the width difference even when attribution accurately accounts for that altered difference.

References (100)

Couldn't load all references. Reload the page to try again.