Constructing Confidence Intervals for 'the' Generalization Error -- a Comprehensive Benchmark Study
Hannah Schulz-Kümpel, Sebastian Fischer, Roman Hornung, Anne-Laure Boulesteix, Thomas Nagler, Bernd Bischl
TL;DR
This work conducts the largest benchmark to date of model-agnostic confidence intervals for the generalization error, evaluating 13 CI methods across 19 DGPs with seven inducers and multiple losses. It provides a unified framework, neutral comparisons, and publicly available benchmarking resources to guide future method development. The study identifies Corrected Resampled-T, Conservative-Z, and Nested CV as robust performers, offering practical recommendations depending on data size and computational budgets. By analyzing coverage, interval width, and runtime, the paper informs principled decision-making for uncertainty quantification in predictive performance. The findings promote empirical evaluation alongside theoretical guarantees and support broader adoption of GE CI methods in practice.
Abstract
When assessing the quality of prediction models in machine learning, confidence intervals (CIs) for the generalization error, which measures predictive performance, are a crucial tool. Luckily, there exist many methods for computing such CIs and new promising approaches are continuously being proposed. Typically, these methods combine various resampling procedures, most popular among them cross-validation and bootstrapping, with different variance estimation techniques. Unfortunately, however, there is currently no consensus on when any of these combinations may be most reliably employed and how they generally compare. In this work, we conduct a large-scale study comparing CIs for the generalization error, the first one of such size, where we empirically evaluate 13 different CI methods on a total of 19 tabular regression and classification problems, using seven different inducers and a total of eight loss functions. We give an overview of the methodological foundations and inherent challenges of constructing CIs for the generalization error and provide a concise review of all 13 methods in a unified framework. Finally, the CI methods are evaluated in terms of their relative coverage frequency, width, and runtime. Based on these findings, we can identify a subset of methods that we would recommend. We also publish the datasets as a benchmarking suite on OpenML and our code on GitHub to serve as a basis for further studies.
