Cross validation for rare events

Anass Aghbalou, Patrice Bertail, François Portier, Anne SabourinOpenReview 2023 · OpenReview

TL;DR

This paper provides theoretical guarantees for cross-validation (CV) when estimating the generalization risk of machine learning models that focus on rare or extreme events. The authors derive "sanity-check" bounds for K-fold and leave-p-out CV, showing they perform comparably to empirical risk estimates even when dealing with very small probabilities of interest. This work is crucial for building reliable models in domains where extreme events are critical, such as finance or anomaly detection.

What Problem Does This Paper Address?

In machine learning, cross-validation (CV) is a standard technique for estimating how well a model will perform on unseen data and for selecting the best model or hyperparameters. However, most theoretical analyses of CV assume that the data distribution is well-behaved. This paper tackles a challenging scenario: when the model is specifically designed to handle "extreme" or "rare" events. These are events that occur with very low probability, making them difficult to learn from and evaluate. The core problem is to understand if CV can still provide reliable risk estimates in such extreme regions, where the data is scarce and the probability of interest is vanishingly small. The authors focus on the context of classification in extreme regions of the covariate space, where the goal is to predict an outcome given a covariate that falls into a rare, high-norm region.

Methods

The paper's main contribution lies in deriving theoretical "sanity-check" bounds for CV estimators in the context of rare events. This means showing that the bounds on the CV estimate's error are of the same order of magnitude as the bounds on the empirical risk estimate, which is considered the gold standard.

Key techniques include:

  • Non-asymptotic analysis: The bounds are derived for finite sample sizes, providing concrete guarantees.
  • Bernstein-type inequalities: These are used to control the deviations of random variables, particularly useful for bounding the error terms in CV.
  • Symmetrization techniques: A standard tool in statistical learning theory for bounding expectations of complex random variables.
  • Rademacher complexity: Used to bound the complexity of function classes, which is crucial for deriving generalization bounds.

The authors specifically derive:

  • Exponential probability bounds for K-fold CV: This is achieved by leveraging the fact that K-fold CV uses a relatively large validation set.
  • Polynomial probability bounds for leave-p-out CV: This is more challenging due to the smaller validation set size in leave-p-out, but the authors show that a polynomial bound is still achievable.

These bounds extend existing state-of-the-art results for standard CV to the specific setting of extreme value analysis.

Datasets

The paper does not introduce new datasets. Instead, it uses synthetic datasets generated for experimental evaluation.

  • For risk estimation experiments: A balanced binary classification dataset is generated from a t-student distribution with specific parameters.
  • For model selection experiments: A balanced binary classification dataset is generated from a t-multivariate-student distribution with specific parameters.

Key Insights and Ideas

  • CV remains reliable for rare events: The most significant insight is that CV, despite the inherent challenges of scarce data in extreme regions, can still provide "sanity-check" guarantees comparable to empirical risk estimates. This is a crucial finding for practical applications.
  • K-fold CV offers exponential bounds: The K-fold scheme, due to its larger validation sets, allows for stronger (exponential) bounds on the estimation error, even in rare event scenarios.
  • Leave-p-out CV offers polynomial bounds: While not as strong as exponential bounds, the polynomial bounds for leave-p-out CV are still valuable and demonstrate the applicability of CV to this scheme.
  • Proof techniques are adapted for rare events: The authors highlight that covering the case of rare events (small $\alpha$) requires specialized proof techniques, particularly a Bernstein-type inequality, to account for the low variance of the random variables involved.

Key Results

The paper presents two main theoretical results:

  1. Theorem 3.1: Provides an exponential probability bound for K-fold CV estimates of the conditional risk in rare regions. This bound is of the order $O(\sqrt{\nu_g / (n\nu_\alpha)})$, where $\nu_g$ is related to the VC dimension and $\nu_\alpha$ is the size of the rare region.
  2. Theorem 4.1: Provides a polynomial probability bound for leave-p-out CV estimates of the conditional risk in rare regions. This bound is of the order $O(\sqrt{\nu_g / (n\alpha)})$.

These bounds are shown to be "sanity-check" bounds, meaning they match the order of magnitude of existing bounds for empirical risk estimation.

The paper also includes an application to logistic-LASSO regression for high-dimensional classification on extreme covariates. Lemma 5.1 demonstrates that the proposed CV-based model selection procedure is consistent, meaning it can correctly identify the optimal regularization parameter as the sample size increases.

Limitations and Future Work

  • Bounded cost function assumption: The theoretical results rely on the assumption that the cost function is bounded. The authors note that extending these results to unbounded cost functions (like the standard logistic loss) would be an interesting avenue for future research.
  • Universal constants: The derived bounds contain universal constants, which can be difficult to estimate in practice. The authors mention that further work could aim to replace these with explicit logarithmic terms or compute them explicitly.
  • Threshold choice as part of learning: The current framework assumes the threshold for defining rare events is fixed. The authors suggest that analyzing CV schemes where the threshold choice is part of the learning rule itself is an open question.
  • Unsupervised problems: The current work focuses on supervised learning. Extending the analysis to unsupervised problems, which are common in Extreme Value Analysis, is also suggested.
  • Tightness of polynomial bound for l.p.o.: The authors conjecture that the polynomial rate for leave-p-out CV is tight, but this remains an open question for further work.

Summary updated

BibTeX
@misc{aghbalou2023cross,
  author = {Anass Aghbalou and Patrice Bertail and François Portier and Anne Sabourin},
  title = {{Cross validation for rare events}},
  year = {2023},
  eprint = {2202.00488},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.00488},
  howpublished = {OpenReview},
}
Figure