Abstract
We propose a learning framework for calibrating predictive models to make loss-controlling prediction for exchangeable data, which extends our recently proposed conformal loss-controlling prediction for more general cases. By comparison, the predictors built by the proposed loss-controlling approach are not limited to set predictors, and the loss function can be any measurable function without the monotone assumption. To control the loss values in an efficient way, we introduce transformations preserving exchangeability to prove finite-sample controlling guarantee when the test label is obtained, and then develop an approximation approach to construct predictors. The transformations can be built on any predefined function, which include using optimization algorithms for parameter searching. This approach is a natural extension of conformal loss-controlling prediction, since it can be reduced to the latter when the set predictors have the nesting property and the loss functions are monotone. Our proposed method is applied to selective regression and high-impact weather forecasting problems, which demonstrates its effectiveness for general loss-controlling prediction.
Introduction
In high-stakes fields like medicine or weather forecasting, knowing a model's "most likely" prediction is often insufficient; understanding the risk of error is paramount. Conformal Prediction (CP) has long been the gold standard for providing "coverage guarantees"—mathematical assurances that the true value lies within a predicted set a certain percentage of the time. However, standard CP is largely restricted to set-valued predictions and simple miscoverage losses.
While recent extensions like Conformal Loss-Controlling Prediction (CLCP) introduced more general losses, they required these functions to be "monotone"—meaning larger prediction sets must always yield lower or equal loss. This constraint is impractical for many real-world metrics, such as the False Discovery Rate in image segmentation. This paper introduces Loss-Controlling Calibration (LCC), a framework that guarantees a model's prediction loss remains below a user-defined threshold $\alpha$ with a high confidence level $1-\delta$, applicable to any measurable loss function and any type of predictor.
Methodology
LCC functions as a post-hoc calibration step applied after model training. The process involves:
- Setup: Utilizing a pre-trained model $f$, a calibration dataset, a target loss level $\alpha$, and a significance level $\delta$ (the "error budget").
- Parameterization: Defining a family of predictors $F_\lambda$ based on the model. In selective regression, for instance, $\lambda$ might represent a threshold for model "abstention" based on uncertainty.
- Search Function ($s$): A novel searching function is employed to identify the optimal $\lambda$. Unlike simple quantile calculations, this search can incorporate complex optimization algorithms.
- Exchangeability-Preserving Transformations: The authors prove LCC's validity by demonstrating that treating the parameter search as a specific data transformation preserves the "exchangeability" of the data. This ensures a finite-sample guarantee: the probability of the test loss exceeding $\alpha$ is bounded by $\delta$.
Furthermore, LCC can manage multiple simultaneous losses (e.g., temperature forecast error and storm warning false alarm rates) by appropriately adjusting the significance levels.
Experimental Evaluation
The LCC framework was validated across three domains:
- Single-Target Selective Regression: 20 public datasets (e.g.,
abalone,boston) to test basic loss control. - Multi-Target Selective Regression: 6 datasets from the Mulan library to evaluate joint loss control.
- High-Impact Weather Forecasting: ERA5 and TIGGE datasets for predicting extreme temperature events, where the loss function (one minus precision) is non-monotone.
Results and Discussion
The empirical results confirm that LCC rigorously maintains the requested safety bounds. Across the regression benchmarks, the frequency of loss exceeding the threshold $\alpha$ consistently remained at or below the preset $\delta$.
Key insights from the evaluation include:
- Monotonicity Independence: The proof that rigorous guarantees do not require monotone losses is a significant advancement, decoupling statistical safety from the specific shape of the loss function.
- Efficiency: LCC is more data-efficient than traditional multiple hypothesis testing methods (like Bonferroni corrections) because it treats the parameter search as a unified process.
- Safety-Utility Trade-off: There is an inherent "price" for safety. As users demand lower loss ($\alpha$) or higher confidence ($1-\delta$), the model becomes more conservative, increasing abstention rates in regression or expanding prediction areas in weather maps.
Conclusion
LCC provides a flexible and theoretically grounded framework for risk-aware machine learning. While the current implementation uses an approximation of the "ideal" case where test labels are known, empirical evidence suggests this approximation is highly robust. Future work may focus on automating the design of search functions and refining the balance between safety and practical utility to avoid overly conservative "empty" predictions.
Summary updated