NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Meta-Learning for Automated Selection of Anomaly Detectors for Semi-Supervised Datasets

David Schubert, Pritha Gupta, Marcel Wever · DOI

Abstract

Selecting the optimal anomaly detection algorithm is a significant challenge in semi-supervised settings where labeled anomalies are unavailable for validation. This paper proposes a meta-learning framework to address the Combined Algorithm Selection and Hyperparameter optimization (CASH) problem for anomaly detection. By utilizing two label-free meta-features—Hypervolume and False Positive Rate (FPR)—we train a surrogate model to predict detector performance as measured by the Matthews Correlation Coefficient (MCC). Experimental results on 15 curated datasets demonstrate that this approach can effectively rank detectors, with a simple linear combination of features providing a robust baseline and a Random Forest meta-model achieving a mean Regret@1 of 0.05 on high-performing datasets.

Introduction

In Automated Machine Learning (AutoML), model selection typically relies on a labeled validation set to evaluate performance. However, anomaly detection often operates in a semi-supervised context: while "normal" data is abundant, examples of anomalies are rare or non-existent during the training phase. This lack of ground truth makes it impossible to calculate standard metrics like MCC or Precision-Recall to guide algorithm selection. Practitioners are often forced to choose detectors blindly. This research explores whether meta-learning can bridge this gap by predicting performance based on the intrinsic characteristics of how a model fits the available normal data.

Methodology

The proposed framework treats algorithm selection as a surrogate modeling task. The goal is to learn a mapping from dataset-specific meta-features to the expected performance of an anomaly detector.

Meta-Feature Extraction

Two primary metrics that do not require anomaly labels are used as meta-features:

  1. Hypervolume (HV): Measures the tightness of the boundary the detector forms around normal data. While a tighter fit (lower HV) is generally preferred to exclude potential anomalies, excessive tightness can lead to overfitting on normal variance.
  2. False Positive Rate (FPR): Measures the frequency at which the model incorrectly flags known normal training data as anomalous.

The Meta-Learning Pipeline

The process involves two main phases: dataset assimilation and correlation analysis.

Figure 1: The meta-learning framework pipeline, illustrating the construction of landmark and detector datasets followed by the correlation analysis for meta-model training.

As shown in Figure 1, the pipeline begins with Landmarking, where a fixed portfolio of 18 default detectors is run to create a "fingerprint" of the dataset based on their HV and FPR. This is followed by Surrogate Training, where a Random Forest regressor learns the relationship between these meta-features and the actual MCC (calculated on hidden test sets containing anomalies).

Experimental Setup

The study utilized 15 base datasets from the Tax et al. collection, specifically restricted to 8 features or fewer. This constraint is due to the computational complexity of Hypervolume estimation, which uses a Monte Carlo approach requiring 35 million points in a hypersphere—a process that scales exponentially with dimensionality. Outliers were sub-sampled to represent 5-10% of the data to mimic real-world class imbalances.

Key Results and Insights

Feature Importance

The analysis revealed that FPR is a more informative predictor of performance than Hypervolume. This is likely because FPR directly impacts the MCC calculation, whereas Hypervolume's utility depends on its correlation with the unknown False Negative rate. The fundamental trade-off between a tight fit (low HV) and a low false-alarm rate (low FPR) is the primary driver of detector success.

Ranking Performance

  • Linear Baseline: A simple ranking score, $1 - \frac{Hypervolume + FPR}{2}$, proved surprisingly effective. In 5 out of 15 datasets, this linear combination correctly identified the best-performing detector as the top choice.
  • Meta-Model Accuracy: The Random Forest meta-model performed exceptionally well on datasets where the available detectors were capable of finding anomalies (mean scaled MCC > 0.6), achieving a mean Regret@1 of 0.05. This indicates that the chosen model was nearly as effective as the theoretical optimum.

Discussion and Limitations

While promising, the current framework faces several hurdles. The curse of dimensionality limits the scalability of Monte Carlo Hypervolume estimation to high-dimensional data (e.g., images). Additionally, the small sample size of 15 datasets limits the meta-learner's generalizability. Future work should focus on developing more efficient "model tightness" metrics, expanding the meta-training corpus, and exploring direct "learning to rank" formulations rather than regression-based performance prediction.

Summary updated

BibTeX
@inproceedings{schubert2023meta,
  author = {David Schubert and Pritha Gupta and Marcel Wever},
  title = {{Meta-Learning for Automated Selection of Anomaly Detectors for Semi-Supervised Datasets}},
  booktitle = {IDA},
  year = {2023},
  doi = {10.1007/978-3-031-30047-9\_31},
}
Figure