Class Imbalance in Anomaly Detection: Learning from an Exactly Solvable Model

F. S. Pezzicoli, V. Ros, F. P. Landes, M. Baity-Jesi
1/20/2025
cs.LGcond-mat.dis-nnstat.ML

No confident code implementation found for this paper.

Abstract

Class imbalance (CI) is a longstanding problem in machine learning, slowing down training and reducing performances. Although empirical remedies exist, it is often unclear which ones work best and when, due to the lack of an overarching theory. We address a common case of imbalance, that of anomaly (or outlier) detection. We provide a theoretical framework to analyze, interpret and address CI. It is based on an exact solution of the teacher-student perceptron model, through replica theory. Within this framework, one can distinguish several sources of CI: either intrinsic, train or test imbalance. Our analysis reveals that the optimal train imbalance is generally different from 50%, with a non trivial dependence on the intrinsic imbalance, the abundance of data and on the noise in the learning. Moreover, there is a crossover between a small noise training regime where results are independent of the noise level to a high noise regime where performances quickly degrade with noise. Our results challenge some of the conventional wisdom on CI and offer practical guidelines to address it.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{pezzicoli2025class,
  title  = {Class Imbalance in Anomaly Detection: Learning from an Exactly Solvable Model},
  author = {F. S. Pezzicoli and V. Ros and F. P. Landes and M. Baity-Jesi},
  year   = {2025},
  eprint = {2501.11638},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.11638v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.11638.svg)](https://codeofpaper.com/paper/2501.11638)

Discussion