Manuscript Offprint

arXiv:2609.03104

Occupancy-based Quantile Risk Control

Zihao Shi, Huajun Xi, Bingyi Jing, Hongxin Wei

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Conformal risk control is an emerging framework for the safe deployment of machine learning models with finite-sample guarantees. To accommodate a broader class of risk notions, quantile risk control extends this framework to quantile-based risk measures. However, existing methods either suffer from excessive conservatism or lack rigorous finite-sample guarantees. To address these limitations, we introduce Occupancy-based Quantile Risk Control (OQRC), a novel method that provides tight risk control bounds with finite-sample validity. Our key idea is to formulate risk control as a finite-occupancy problem by partitioning the loss space with the ordered calibration losses. Specifically, we estimate the distribution of test losses across the resulting bins and upper-bound the risk by the maximum loss attained within each bin. We then select the parameter λ\lambda such that this upper bound does not exceed a predefined threshold α\alpha with high probability 1−δ1 - \delta. Theoretically, we establish a finite-sample guarantee showing that OQRC yields tight risk control bounds that converge to the optimal bounds at a provable rate of Op(n−1/2)\mathcal{O}_p(n^{-1/2}). Extensive experiments demonstrate the effectiveness of our method, reducing the risk gap by up to 78.64% on common benchmarks.

1 Introduction

Machine learning (ML) models are increasingly deployed in risk-sensitive domains, such as medical diagnostics [1], finance [2], and autonomous driving [3]. Despite their high accuracy, the black-box nature of ML models makes them untrustworthy for users due to the uncontrollable risk of predictions, e.g., imaging-related errors in radiology [4] and misdiagnoses in healthcare [5]. To this end, Conformal Risk Control (CRC) [6] introduces a model-agnostic framework that guarantees the prediction risk remains below a predefined threshold. With a monotone loss function, the framework can be applied to control the false-negative rate in classification tasks [7] or to improve the factuality of outputs generated by large language models [8]. By offering such flexible risk guarantees, it presents a rigorous and feasible solution toward the trustworthy deployment of black-box ML models.

While elegant and simple, the framework of conformal risk control is limited to controlling the expected loss. To address broader risk notions, Quantile Risk Control (QRC) [9] extends this framework by providing guarantees on quantile-based risk measures, such as value-at-risk [10] and conditional value-at-risk [11]. Despite these advancements, this method tends to overestimate prediction risk, leading to conservative results. To alleviate this issue, recent work [12] leverages L-statistics [13] to derive tight risk control bounds. However, their theoretical results rely on the asymptotic normality of L-statistics and offer no guarantees for finite-sample regimes. This motivates us to establish a non-conservative risk control method with finite-sample guarantees.

*Work done while working at SUSTech as a visiting scholar.

†Correspondence to: Hongxin Wei weihx@sustech.edu.cn

Preprint.

Figure

Figure 1: Overview of Occupancy-based Quantile Risk Control. Given a risk level α\alpha and confidence 1−δ1 - \delta, our OQRC implements a sequential procedure that calibrates a parameter λ∗\lambda^* of the ML model such that the quantile risk RtestR_{\text{test}} satisfies P(Rtest(λ∗)≤α)≥1−δ\mathbb{P}(R_{\text{test}}(\lambda^*) \leq \alpha) \geq 1 - \delta.

In this work, we introduce Occupancy-based Quantile Risk Control (OQRC), a novel risk control method that provides tight risk control bounds with finite-sample guarantees (see Figure 1). Our key idea is to formulate risk control as a finite-occupancy problem by partitioning the loss space with the ordered calibration losses. Specifically, we estimate the distribution of test losses across the resulting intervals and upper-bound the risk by the maximum loss attained within each interval. We then select the parameter λ\lambda such that this upper bound does not exceed a predefined threshold α\alpha with high probability 1−δ1 - \delta. Theoretically, we establish a finite-sample guarantee showing that OQRC yields tight risk control bounds that converge to the optimal bounds at a rate of Op(n−1/2)\mathcal{O}_p(n^{-1/2}).

To validate the effectiveness of our method, we conduct extensive experiments on seven real-world datasets across three tasks: tumor segmentation [14, 15], multi-label image classification [16], and text emotion recognition [17]. For each task, we encompass three risk measures: VaR, CVaR, and VaR-Interval. To assess the conservatism of risk control, we use a new metric – RiskGap, defined as the empirical average of the absolute difference between the empirical and target risks. Empirical results show that OQRC significantly reduces the RiskGap compared to prior methods. For instance, when using false-negative proportion as the loss function for multi-label image classification, our method reduces the RiskGap by 78.64% compared to alternative approaches. Moreover, OQRC exhibits consistent performance across various hyperparameter configurations and model architectures, highlighting its robustness. Finally, we apply OQRC to unconditional control [6], and the results indicate that OQRC successfully bounds the risk below α\alpha across different risk measures. In summary, these results demonstrate the effectiveness, robustness, and superiority of our method.

We summarize our contributions as follows:

  • We introduce Occupancy-based Quantile Risk Control (OQRC), a simple and effective method that reformulates risk control as a finite occupancy problem. We demonstrate that OQRC is also applicable to unconditional risk control, highlighting its versatility.
  • Theoretically, we establish rigorous guarantees demonstrating that OQRC achieves finite-sample quantile risk control. In addition, we prove the tightness of OQRC by analyzing the convergence rate of the corresponding risk control bounds to the optimal bounds.
  • Through extensive empirical validation, we demonstrate that OQRC significantly narrows the risk gap compared to alternative methods. Our further evaluations validate the robustness of OQRC across diverse hyperparameter configurations and model architectures.

References (53)

  • Intelligible models for healthcare: Predicting pneumonia risk and hospital 30-day readmission
  • Empirical asset pricing via machine learning
  • End to End Learning for Self-Driving Cars
  • Impact of the rise of artificial intelligence in radiology: what do radiologists think? Diagnostic and interventional imaging, 100(6):327–336, 2019
  • Patients' perceptions toward human–artificial intelligence interaction in health care: experimental study
  • Conformal risk control
  • Leveraging conformal prediction to annotate enzyme function space with limited false positives
  • Conformal linguistic calibration: Trading-off between factuality and specificity
  • Quantile risk control: A flexible framework for bounding the probability of high-loss predictions
  • Riskmetricstm—technical document
  • Journal of risk, 2:21–42, 2000
  • Conformal tail risk control for large language model alignment
  • inefficient
  • A multi-class image dataset for computer aided gastrointestinal disease detection
  • Scientific data, 7(1):283, 2020
  • Microsoft coco: Common objects in context
  • Goemotions: A dataset of fine-grained emotions
  • Distribution-free, risk-controlling prediction sets
  • Asymptotic minimax character of the sample distribution function and of the classical multinomial estimator
  • Pranet: Parallel reverse attention network for polyp segmentation
  • Deep residual learning for image recognition
  • Bert: Pre-training of deep bidirectional transformers for language understanding
  • Efficientnet: Rethinking model scaling for convolutional neural networks
  • Tresnet: High performance gpu-dedicated architecture
  • A convnet for the 2020s
  • Conformal risk training: End-to-end optimization of conformal risk control
  • Inductive confidence machines for regression
  • Algorithmic learning in a random world
  • A tutorial on conformal prediction
  • Distribution-free predictive inference for regression
  • Learn then test: Calibrating predictive algorithms to achieve risk control
  • Fast yet safe: Early-exiting with risk control
  • Sconu: Selective conformal uncertainty in large language models
  • Coin: Uncertainty-guarding selective question answering for foundation models with provable risk guarantees
  • Principal uncertainty quantification with spatial correlation for image restoration problems
  • How to trust your diffusion model: A convex optimization approach to conformal risk control
  • Conformal semantic image segmentation: Post-hoc quantification of predictive uncertainty
  • Error reduction in leukemia machine learning classification with conformal prediction
  • Statistical management of the false discovery rate in medical instance segmentation based on conformal risk control (opens arXiv in a new tab)
  • Functional protein mining with conformal guarantees
  • Portfolio optimization with conditional value-at-risk objective and constraints
  • Cvar-based retail electricity pricing in day-ahead scheduling of microgrids
  • Quantile learn-then-test: Quantile-based risk control for hyperparameter optimization
  • Voltage risk assessment of wind power grid connection systems based on cvar
  • Tenghan Zhong. Proxy-reliance control in conformal recalibration of one-sided value-at-risk. arXiv preprint arXiv:2603.22569, 2026. (opens arXiv in a new tab)
  • Learning bounds for risk-sensitive learning
  • Learning models with uniform performance via distributionally robust optimization
  • Supervised learning with general risk functionals
  • Training-aware risk control for intensity modulated radiation therapies quality assurance with conformal prediction
  • Transductive conformal inference with adaptive scores
  • Transduction with confidence and credibility
  • Testing for outliers with conformal p-values
  • Selection by prediction with conformal p-values