Introduction
Deep learning models are increasingly deployed in high-stakes environments, from medical diagnostics to financial energy trading. In these domains, high average accuracy is insufficient; models require provable safety guarantees to mitigate catastrophic failures. The current gold standard for providing such guarantees is Conformal Risk Control (CRC). CRC is a post-hoc framework that uses a calibration dataset to determine a "safety threshold"—such as a classification cutoff—mathematically ensuring that a model's expected loss remains below a predefined target.
However, standard CRC suffers from two critical limitations. First, it primarily controls average risk, whereas high-stakes applications often demand control over "tail risks" (e.g., the worst-case 5% of outcomes). Second, because CRC is applied after a model has been fully trained, the model remains oblivious to the downstream safety constraints. This lack of awareness often forces the model to become overly conservative to meet safety requirements, which significantly degrades its overall utility. This paper introduces Conformal Risk Training (CRT), an end-to-end methodology that integrates conformal guarantees directly into the training loop, allowing models to optimize for performance while strictly adhering to complex risk constraints.
Methodology
The authors propose two primary methodological advances to bridge the gap between model training and risk control.
1. Conformal OCE Risk Control (CORC)
The authors first extend the theoretical reach of conformal methods. They prove that CRC can be generalized to control a broad family of risk measures known as Optimized Certainty Equivalents (OCE). This family includes the Conditional Value-at-Risk (CVaR), a standard metric for measuring tail risk in finance and engineering. The authors demonstrate that any OCE risk can be bounded by applying a specific monotone transformation to the loss function. This allows a standard bisection search to find a provably safe threshold $\lambda$ that satisfies the risk constraint.
2. Conformal Risk Training (CRT)
To address the performance degradation associated with post-hoc methods, the authors propose training the model end-to-end. They formulate this as a bi-level optimization problem:
- Inner Loop: Calculate the risk-controlling threshold $\lambda$ using a calibration set.
- Outer Loop: Update the model weights $\theta$ to maximize task performance given the threshold $\lambda$.
The primary technical challenge in this approach is backpropagating through the threshold-finding algorithm. The authors solve this by mathematically deriving the exact gradient of the threshold with respect to the model parameters ($d\lambda/d\theta$). By leveraging the implicit function theorem and KKT conditions, they bypass the need for non-smooth approximations. During training, each minibatch is split into a "calibration" half (to determine the threshold) and a "prediction" half (to compute the task loss and backpropagate gradients).
Experimental Evaluation
The effectiveness of CRT was evaluated across two distinct, high-stakes domains: medical imaging and energy management.
Tumor Image Segmentation
Using four public datasets (CVC-ClinicDB, CVC-ColonDB, ETIS-LaribPolypDB, and Kvasir-SEG), the authors sought to maximize specificity (minimizing false positives) while strictly controlling the False Negative Rate (FNR) at levels of 1%, 5%, and 10%.
In post-hoc CRC baselines, meeting a strict 1% FNR target caused the False Positive Rate (FPR) to skyrocket to nearly 80%, rendering the model practically useless. In contrast, Conformal Risk Training reduced the FPR by 23% to 42% on average while maintaining the exact same FNR guarantees. The CRT-trained models learned internal representations that made risk boundaries cleaner, requiring less conservatism to achieve safety.
Battery Storage Operations
The second task involved optimizing battery charging and discharging profits using the PJM day-ahead energy price dataset. The objective was to maximize average profit while strictly controlling the CVaR of financial losses.
CRT achieved 7.2% to 22.6% higher average profit compared to post-hoc conformal control. By being "risk-aware" during training, the model learned to navigate the trade-off between aggressive profit-seeking and safety more efficiently than a model calibrated after the fact.
Insights and Conclusion
A key finding of this research is that "risk-aware" models are inherently less conservative. In both experiments, CRT models learned to utilize higher (less restrictive) decision thresholds than their post-hoc counterparts. This suggests that end-to-end training allows the model to align its feature extraction with the specific geometry of the risk constraint.
While the method currently assumes data exchangeability and monotonic loss functions, it opens significant avenues for future work. The authors highlight Large Language Model (LLM) alignment—balancing factuality against specificity—and robotics as promising application areas. By transforming conformal control from a post-hoc check into a training objective, CRT provides a robust framework for building machine learning systems that are both high-performing and provably safe.
Summary updated