When uncertainty quantification fails: structural vulnerabilities and corrections for selective prediction under clinical class imbalance
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
arXiv:2610.37561v1 [cs.LG] 27 Oct 2026
When uncertainty quantification fails: structural vulnerabilities and corrections for selective prediction under clinical class imbalance Walter Endrizzi1,2*, Flavio Ragni1 , Raffaele Marchesi1,3 , Stefano Bovo1 , Monica Moroni1 , Giuseppe Jurman1,4 , Venet Osmani5 1
Data Science for Health, Fondazione Bruno Kessler, Trento, Italy. Department of Cellular, Computational and Integrative Biology, University of Trento, Trento, Italy. 3 Department of Mathematics, University of Pavia, Pavia, Italy. 4 Department of Biomedical Sciences, Humanitas University, Milan, Italy. 5 Digital Environment Research Institute, Queen Mary University of London, London, E1 1HH, United Kingdom. 2
*Corresponding author(s). E-mail(s): wendrizzi@fbk.eu; Contributing authors: fragni@fbk.eu; rmarchesi@fbk.eu; sbovo@fbk.eu; mmoroni@fbk.eu; jurman@fbk.eu; v.osmani@qmul.ac.uk; Abstract Background. Selective prediction systems improve the safety of clinical artificial intelligence by deferring ambiguous cases to human experts while automating high-confidence decisions. However, this safety mechanism relies entirely on the premise that uncertainty scores accurately reflect clinical ambiguity. In prognostic tasks characterized by severe class imbalance, where the clinical outcome of interest is a minority, this assumption breaks down. Standard uncertainty measures cease to capture clinically aligned ambiguity; instead, they become a proxy for class membership, systematically penalizing minority patients regardless of their individual predictive clarity. Methods. We characterize three structural failure modes driving this breakdown: the mismatch between standard entropy’s mathematical peak and the clinical decision threshold; the asymmetric spatial penalty in margin-based uncertainty; and structural uncertainty divergence of minority predictions driven by data scarcity. We propose three counter-mechanisms: an empirically validated
1
threshold-aware ambiguity score that realigns maximum uncertainty with the clinical threshold, a class-conditioned rejection (CCR) mechanism ranking patients within their predicted trajectory rather than globally, and a class-stratified evaluation metric that prevents global risk scores from concealing automated minority exclusion. Results. Across 56 synthetic conditions and three neurodegenerative cohorts spanning severe class imbalance to near-balanced conditions (multiple sclerosis, Parkinson’s Disease, Alzheimer’s Disease), our framework consistently maintained bounded, balanced risk across trajectories. In contrast, global metrics either collapsed minority Sensitivity or protected the minority at the expense of majority patients. An ablation study confirmed that applying CCR with standard entropy fails to protect the minority because it breaks within-class monotonicity when τ ̸= 0.5. Combining CCR with threshold-aware metrics restores strict monotonicity, correctly identifies ambiguous patients, and safely mitigates minority exclusion. Conclusions. Under clinical class imbalance, standard uncertainty quantification measures dataset sparsity rather than clinical ambiguity, creating a systemic illusion of safety. This bias is a correctable structural flaw. Clinical pipelines deploying selective prediction under imbalance should adopt threshold-aligned uncertainty measures and class-stratified evaluation. This reduces class-specific risk imbalance, supporting safer selective prediction under the evaluated conditions without silently excluding the most vulnerable patients. Keywords: uncertainty, selective prediction, sample rejection, clinical AI, class imbalance, neurodegenerative disease, entropy, calibration, generalized risk-coverage curve
1 Introduction Deployment of machine learning models in high-stakes clinical environments requires algorithmic systems that can reliably estimate their own limitations. In prognostic tasks, such as predicting the trajectories of neurodegenerative diseases [1–3], biological heterogeneity often makes definitive classification impossible. In these settings, the safety of an automated system depends on selective prediction: the mechanism by which an algorithm defers ambiguous cases to a human expert while automating high-confidence decisions [4]. Standard selective prediction relies on uncertainty quantification (UQ) metrics to rank patients for deferral. However, in real-world clinical prognosis, datasets are often highly imbalanced, with the class of highest clinical interest (such as rapid progressors) representing only a small minority. Under these conditions, standard UQ approaches may fail to provide reliable estimates of true predictive uncertainty; instead, they can become proxies for class membership. Because minority patients inherently lack dense feature representations, current uncertainty estimates become structurally biased [5, 6]. Therefore, algorithms learn to equate the minority class with high uncertainty, failing to disentangle triage-relevant ambiguity from dataset sparsity [7, 8]. 2
This measurement failure is not a consequence of poor model training, but rather the result of distinct structural vulnerabilities inherent to standard post-hoc UQ metrics as they are commonly deployed in applied heuristic pipelines. The first vulnerability, the threshold-entropy mismatch, occurs because the mathematical peak of standard entropy (i.e. Shannon entropy) is rigidly anchored to a perfectly balanced decision threshold (0.50). This structural misalignment with the naturally shifted thresholds (τ ) required for imbalanced data raises concerns about its appropriateness as an uncertainty measure [9]: when predicted probabilities fall near the balanced decision point, standard entropy may produce biased uncertainty estimates that reflect class imbalance rather than clinically aligned ambiguity. Consequently, clinically relevant minority patients are either erroneously automated or unnecessarily deferred due to an uncertainty calibration structure that is poorly aligned with the imbalanced decision space. Although probability rescaling and threshold moving are well-established techniques for optimizing classification performance under severe imbalance [10], their implications for realigning uncertainty estimation remain largely unexplored. A second vulnerability concerns the spatial penalty introduced by margin-based uncertainty. The Classification Margin partially addresses the entropy-threshold mismatch by measuring uncertainty relative to the operative decision threshold rather than to 0.50. However, it still penalizes predictions strictly by their absolute distance from the threshold. When the decision boundary is tightly compressed against the majority-class space, this can disproportionately flag confident majority-class patients for rejection. Margin-based UQ may appear to protect minority predictions, but it does so by systematically deferring confident majority-class cases, yielding an undesirable and clinically fragile trade-off. Although previous works have identified structural failure modes in margin-based confidence [11] and learning with rejection [12], these analyses assume relatively balanced decision spaces and do not account for the asymmetric spatial penalty introduced by extreme class imbalance. Finally, this ranking failure is compounded by structural uncertainty divergence. Because of their underlying sparsity, minority predictions inherently carry systematically higher ensemble disagreement than majority predictions, even when evaluated at the exact same distance from the decision boundary. Recent research in long-tailed medical imaging corroborates this phenomenon, observing that rare classes naturally exhibit wider confidence intervals strictly as a function of their frequency [13]. Taken together, these mechanisms show that standard global ranking instruments are intrinsically limited under severe class imbalance, as they can conflate decision-level uncertainty with class prevalence, decision-boundary geometry, and minority-class sparsity. Standard evaluation frameworks commonly fail to detect these vulnerabilities. Although recent literature has begun to identify the structural limitations of standard selective evaluation paradigms [14], the specific masking effect caused by extreme class imbalance remains unaddressed. As systems defer patients, safety is commonly evaluated using multi-threshold metrics such as the Area Under the Risk-Coverage Curve (AURC) [15] or its recent refinement, the Area Under the Generalized RiskCoverage Curve (AUGRC) [16]. However, because these metrics aggregate risk across
3
the entire global population, an algorithm can mathematically improve its global score by systematically excluding the harder-to-predict minority class. In this way, standard evaluation can reward automated minority exclusion, masking algorithmic bias under the guise of improved overall safety. Contributions. Addressing this gap requires moving beyond global ranking and toward class-stratified uncertainty measurement and evaluation. In this paper, we characterize the structural vulnerabilities of standard UQ under clinical class imbalance, propose a framework of well-motivated, empirically validated measurement and evaluation instruments, and demonstrate their efficacy across synthetic and realworld neurodegenerative prognostic tasks. We validate the proposed framework across 56 controlled synthetic conditions and three real-world neurodegenerative patient cohorts comprising multiple sclerosis, Parkinson’s Disease, and Alzheimer’s Disease. Specifically, we make the following contributions: • Threshold-aware ambiguity score (Hτ ): We demonstrate that standard Shannon entropy fails under class-conditioned rejection (CCR) when τ 6= 0.5 by breaking within-class monotonicity. To restore correct ordinal ranking, we introduce Hτ , an empirically validated geometric construction. By design, Hτ operates as a nonlinear, information-theoretic alternative to the linear decision margin, satisfying three key structural properties: continuity across the probability space, strict monotonicity within each predicted class, and exact reduction to standard Shannon entropy at parity (τ = 0.5). • CCR (Class-Conditioned Rejection): A class-conditioned rejection mechanism that isolates intra-class ambiguity, establishing a structural, mechanical mechanism to prevent minority exclusion. • ccAUGRC (Class-Conditioned Area Under the Generalized RiskCoverage Curve): An evaluation decomposition that prevents risk-masking by quantifying the generalized risk-coverage trade-off independently for each clinical trajectory.
1.1 Related Work Selective prediction foundations. The foundations of selective prediction have been extensively formalized to optimize the trade-off between coverage and accuracy [17–19]. While these seminal theoretical frameworks natively accommodated the decision threshold as a free parameter, modern applied pipelines often take a more rigid approach. Contemporary systems successfully leverage ensemble-based or Bayesian methods to generate predictive distributions for deferral [20], but they frequently default to unaligned ranking metrics such as standard Shannon entropy. Because this post-hoc ranking predominantly assumes balanced class priors, and because disentangling aleatoric from epistemic uncertainty remains an open challenge [21, 22], standard selective classification frequently magnifies performance disparities across distinct subgroups [23, 24]. This vulnerability underscores the critical need for class-aware triage strategies. Entropy limitations and threshold-awareness. While base-classifier training frequently addresses imbalance via loss-weighting or resampling [25, 26], and recent
4
approaches integrate learning to reject directly with long-tail learning paradigms [27], the calibration of post-hoc uncertainty under imbalance remains critically underexplored. Existing solutions largely focus on probabilistic recalibration or multimodal data acquisition [28], but lack structural geometric corrections for the thresholdentropy mismatch and the asymmetric spatial penalties introduced by shifted decision boundaries, as identified in recent theoretical work [5, 9]. Evaluation corrections. The Generalized Risk-Coverage curve and AUGRC have become standard for evaluating selective models across dynamic operating points [16]. While methods exist to improve multi-threshold metrics, and concurrent work has recently introduced class-averaged risk-coverage measures using empirical quantiles for multiclass settings [29], these approaches primarily address triage routing rather than the underlying signal geometry. The literature requires a dedicated decomposition of global risk-coverage to account for the specific risk displacement artifacts caused by extreme clinical class imbalance, a gap this work addresses via ccAUGRC. Conformal prediction and risk control. An alternative, prominent approach to managing uncertainty under imbalance is conformal prediction (CP) and distribution-free risk control [30]. Class-conditional conformal prediction (CCCP) explicitly addresses the problem of bounding risk within subpopulations by generating adaptive prediction sets that satisfy a user-defined coverage guarantee for each class independently [31, 32]. While CCCP and distribution-free risk control represent the standard for theoretical coverage guarantees, they solve a fundamentally different operational problem (bounding error rates via variable-sized prediction sets) than selective classification (managing a fixed clinical deferral bandwidth via fixed rejection quotas).
2 Methods 2.1 Problem formulation Let D = {(xi , yi )}N i=1 denote a binary clinical prognostic dataset where yi ∈ {0, 1} indicates the absence or presence of disease progression. In imbalanced clinical settings, the class prior π = P (y = 1) is substantially less than 0.5, reflecting the natural prevalence of the prognostic outcome in the population. A probabilistic classifier f : X → [0, 1] produces a calibrated predicted probability pi = f (xi ). Clinical decisions are made using a decision threshold τ ∈ (0, 1) derived from the population prior [33, 34]: a patient is predicted as a progressor if pi ≥ τ and as stable otherwise. In standard practice, τ = π, ensuring that the classifier’s operating point is aligned with the clinical prevalence of the outcome rather than the mathematical center of the probability space. A selective prediction system augments this classifier with a rejection function g : X → {0, 1}, where g(xi ) = 0 defers patient i to a clinician for manual review. Deferral is operationalized by thresholding an uncertainty score ui : predictions exceeding a predefined limit are deferred to human experts. The retained cohort A = {i : g(xi ) = 1} is processed automatically; the deferred cohort R = {i : g(xi ) = 0} receives human review.
5
The central premise of selective prediction is that the uncertainty score ui correctly identifies algorithmic ambiguity relative to the clinical decision threshold. In the following subsections, we formalize three structural vulnerabilities where this premise breaks down under clinical class imbalance, and subsequently define the algorithmic framework proposed to address them.
2.2 Structural vulnerabilities of standard uncertainty quantification We characterize three distinct mathematical failure modes that arise when standard uncertainty metrics are applied to imbalanced clinical prognostic tasks, which are conceptually illustrated in Figure 1. $