Abstract
Today there exists no shortage of outlier detection algorithms in the literature, yet the complementary and critical problem of unsupervised outlier model selection (UOMS) is vastly understudied. In this work we propose ELECT, a new approach to select an effective candidate model, i.e. an outlier detection algorithm and its hyperparameter(s), to employ on a new dataset without any labels. At its core, ELECT is based on meta-learning; transferring prior knowledge (e.g. model performance) on historical datasets that are similar to the new one to facilitate UOMS. Uniquely, it employs a dataset similarity measure that is performance-based, which is more direct and goal-driven than other measures used in the past. ELECT adaptively searches for similar historical datasets, as such, it can serve an output on-demand, being able to accommodate varying time budgets. Extensive experiments show that ELECT significantly outperforms a wide range of basic UOMS baselines, including no model selection (always using the same popular model such as iForest) as well as more recent selection strategies based on meta-features.
Introduction
In the field of machine learning, the "No Free Lunch" theorem posits that no single algorithm can outperform all others across every possible problem. This reality is particularly acute in Outlier Detection (OD). Depending on the nature of the data, a proximity-based model like Local Outlier Factor (LOF) might excel, while an ensemble method like Isolation Forest (iForest) might be more appropriate for another.
The primary bottleneck in applying OD to real-world scenarios is Unsupervised Outlier Model Selection (UOMS). In supervised learning, practitioners select models by validating performance against labeled data. However, in outlier detection, labels are rarely available. Previous attempts to bridge this gap relied on "meta-features"—statistical summaries such as skewness or dimensionality. Yet, datasets with similar statistical profiles often require vastly different detection strategies. This research introduces ELECT, a meta-learning framework designed to select models based on performance-driven similarity rather than simple statistical descriptors.
The ELECT Framework
ELECT operates through a two-phase process that leverages historical knowledge to make informed decisions on new, unlabeled tasks.
1. Offline Meta-Training
During the offline phase, the system analyzes a comprehensive database of historical datasets where ground-truth labels are known. The goal is to learn the relationship between Internal Performance Measures (IPMs)—unsupervised signals such as the consensus or agreement between different models—and actual ground-truth performance. ELECT trains a regressor to predict the "performance gap" between any two models based solely on these unsupervised signals. This allows the system to estimate how a model might perform on a new dataset by comparing its behavior to known patterns in the meta-train set.
2. Online Model Selection
When a new, unlabeled dataset is encountered, ELECT avoids the computationally expensive task of running every possible model. Instead, it employs an Unsupervised Adaptive Search:
- Initialization: It begins with a small "seed" subset of models to establish a baseline.
- Similarity Estimation: Using the pre-trained regressor, ELECT estimates the similarity between the new task and historical tasks based on the performance of the seed models.
- Bayesian Optimization: The framework utilizes an Expected Improvement (EI) criterion to decide which model to evaluate next. This balances exploration (testing models that help refine the understanding of the dataset's "neighbors") and exploitation (testing models likely to yield high performance).
- Any-time Output: Because the search is iterative, ELECT can provide a recommendation at any point, making it suitable for varying computational budgets.
Experimental Setup
The researchers validated ELECT using a massive model pool consisting of 297 candidate models, generated by varying the hyperparameters of eight leading OD algorithms. The evaluation was conducted across two distinct testbeds:
- Wild Testbed: 39 independent, real-world datasets from public repositories (ODDS and DAMI), representing diverse, unpredictable scenarios.
- Controlled Testbed: 30 datasets derived from 10 "mothersets" with specific outlier types (global, local, and clustered) injected. This testbed was specifically designed to challenge UOMS methods by creating scenarios where traditional meta-features are misleading but performance patterns remain consistent.
Key Insights and Results
Performance-Driven Similarity
The core innovation of ELECT is the shift from statistical similarity to performance similarity. The research demonstrates that the most reliable way to determine if two datasets are "similar" for the purpose of outlier detection is to observe whether the same models perform well on both. By aggregating noisy unsupervised signals (IPMs) through a meta-learner, ELECT identifies strong predictive signals for model ranking that individual measures cannot capture alone.
Accuracy and Efficiency
In empirical testing, ELECT demonstrated significant improvements over existing baselines:
- High Percentile Performance: In the "Wild" testbed, ELECT consistently selected models in the top 18.5% of the available pool. In the "Controlled" testbed, it reached the top 11%.
- Superiority over SOTA: ELECT outperformed MetaOD, the previous state-of-the-art, as well as "no-selection" strategies (e.g., always defaulting to Isolation Forest).
- Practical Speed: Despite the complexity of the meta-learning search, the online selection process averaged only 47 seconds per dataset, making it highly viable for production pipelines.
Conclusion
ELECT represents a significant step forward in making outlier detection a more automated and reliable process. By moving beyond static meta-features and embracing an adaptive, performance-based search, it provides a robust solution for UOMS in the absence of labels. While currently focused on traditional algorithms, future work may extend this meta-learning approach to deep learning-based outlier detection and address the "cold start" problem for datasets that share little similarity with existing historical databases.
Summary updated