Skip to main content
QUICK REVIEW

[Paper Review] Class Imbalance in Anomaly Detection: Learning from an Exactly Solvable Model

Francesco Saverio Pezzicoli, Vutha Ros|ArXiv.org|Jan 20, 2025
Anomaly Detection Techniques and ApplicationsComputer Science3 citations
TL;DR

The paper develops a theoretical framework using an exact teacher-student spherical perceptron model to analyze outlier/anomaly imbalance (ADI) and shows that the optimal training imbalance is typically not 50%, with performance depending on intrinsic imbalance, data abundance, and learning noise.

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.

Motivation & Objective

  • Clarify how intrinsic, train, and test imbalances (rho_0, rho_train, rho_test) influence anomaly detection performance.
  • Provide an exact analytical framework to interpret class imbalance in ADI using the teacher-student perceptron with replica theory.
  • Identify which performance metrics best reflect model quality under ADI and how they relate to intrinsic imbalance and training conditions.
  • Demonstrate that the commonly held belief that rho_train = 0.5 is optimal is not generally valid and show conditions under which different rho_train are preferable.

Proposed method

  • Use an analytically tractable modified Teacher-Student spherical perceptron with an imbalance parameter rho_train to model ADI.
  • Model data as Gaussian-distributed inputs with a planted teacher, and learn via Empirical Risk Minimization with a square loss.
  • Treat imbalance through intrinsic rho_0 (teacher bias b0) and test imbalance rho_test, deriving self-consistent equations for order parameters (R, b, etc.) via replica theory.
  • Compute generalization metrics as averages over train and test measures, and express performance in terms of teacher-student overlap R and learned bias b.
  • Analyze energy-entropy interplay in the learning dynamics to explain when training with certain rho_train values yields better alignment with the teacher.

Experimental results

Research questions

  • RQ1How do intrinsic imbalance (rho_0), training imbalance (rho_train), and test imbalance (rho_test) jointly affect learning and performance in anomaly detection?
  • RQ2What is the optimal rho_train to maximize overlap with the teacher (R) and how does it depend on data abundance (alpha) and learning noise (T)?
  • RQ3Which performance metrics best reflect model quality under ADI and how do they relate to R and b?
  • RQ4How does the information content of anomalies (informative samples) and the geometry of the teacher boundary influence learning under ADI?

Key findings

  • The optimal training imbalance rho_train* that maximizes teacher-student overlap R is generally not 0.5 and depends on intrinsic imbalance rho_0, data abundance alpha, and noise T.
  • Training with higher rho_train (>0.5) can sometimes yield better balanced accuracy a_bal, especially when anomalies are more informative near the decision boundary.
  • There is a low-noise regime where performance is robust to the exact noise level, and a high-noise regime where performance rapidly degrades and depends on rho_train to reflect the unseen intrinsic imbalance.
  • Balanced accuracy a_bal best tracks the teacher overlap R, while precision p best tracks the learned bias b, indicating different metrics capture different aspects of model quality under ADI.
  • The study shows an energy-entropy interplay: many high-bias solutions exist (entropic advantage) at certain rho_train, making the model biased away from the true teacher if rho_train is not carefully chosen.
  • Experiments on SGD-like dynamics and on AD CIFAR-10 with ML models corroborate the theoretical insights from the analytic teacher-student framework.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.