Abstract
Learning expressive low-dimensional representations of ultrahigh-dimensional data is a critical strategy for overcoming the curse of dimensionality in outlier detection. However, traditional unsupervised representation learning often focuses on preserving data regularity independently of the subsequent detection task, leading to suboptimal results. This paper introduces RAMODO (RAnking MOdel-based representation learning), a framework that unifies representation learning and outlier detection. By tailoring low-dimensional representations specifically for random distance-based detectors, RAMODO achieves more optimal and stable performance. We instantiate this framework as REPEN, an efficient method that demonstrates significant AUC improvements and up to two orders of magnitude speedup across eight real-world datasets. Furthermore, RAMODO can effectively leverage minimal labeled data (less than 1%) to further enhance representation quality.
Introduction: The Curse of Dimensionality in Outlier Detection
Outlier detection—the identification of data points that deviate significantly from the norm—is a cornerstone of fraud detection, medical diagnosis, and cybersecurity. Modern datasets, however, frequently feature thousands or even millions of dimensions, a phenomenon known as the "curse of dimensionality."
Standard approaches typically decouple the problem into two independent steps: dimension reduction (e.g., via PCA or Autoencoders) followed by an outlier detector. This separation is problematic because standard compression techniques prioritize preserving common patterns (regularity) and may inadvertently smooth out the very irregularities that define an outlier. RAMODO addresses this by coupling representation learning directly with the scoring logic of the outlier detector.
The RAMODO Framework
RAMODO treats representation learning as a ranking problem, ensuring that the learned features are optimized for a specific class of detectors: random distance-based approaches.
As illustrated in the architecture above, the framework consists of several key layers:
- Outlier Thresholding: To operate in an unsupervised manner, the model uses an initial detector and Cantelli’s inequality to statistically partition data into "likely inliers" and "likely outliers."
- Meta Triplet Sampling: The model generates triplets consisting of a query set, a likely inlier (positive example), and a likely outlier (negative example).
- Data Representation Layers: A neural network (REPEN uses a shallow, fully connected architecture) maps high-dimensional inputs to a compact, low-dimensional space (e.g., 20 dimensions).
- Ranking Loss Layer: Instead of reconstruction loss, RAMODO employs a customized hinge loss. This forces the network to learn a mapping where the distance between inliers is minimized while the distance to outliers is maximized, specifically according to the logic of random distance-based detectors.
Empirical Performance
The authors evaluated REPEN on eight diverse ultrahigh-dimensional datasets, ranging from medical data (LungCancer) to massive web datasets (Webspam with over 16 million features).
As shown in the table above, REPEN significantly outperforms the original detector (Sp) in terms of AUC on almost all datasets. More strikingly, the method enables massive computational savings. By compressing data into a low-dimensional space where efficient indexing structures like k-d trees can be used, REPEN achieves speedups (SU) of over 250x on datasets like p53 and OT compared to running detectors on the raw feature space.
Key Insights
- Detector-Representation Coupling: By incorporating the detector's scoring function into the neural network's loss, the model preserves only the features essential for distinguishing outliers.
- Semi-supervised Efficiency: RAMODO is highly effective at incorporating prior knowledge. By replacing a tiny fraction (less than 1%) of "pseudo-outliers" in the training triplets with actual labeled outliers, the model's AUC can improve by as much as 32% on datasets like News20.
- Scalability: The framework demonstrates linear time complexity relative to both the number of data objects and the number of features, making it highly suitable for large-scale industrial applications.
Conclusion
RAMODO represents a significant shift from detector-agnostic representation learning to a unified, task-specific approach. By tailoring the learning process to the needs of random distance-based detectors, it overcomes the limitations of traditional dimensionality reduction. Future work may involve extending this framework to other detection paradigms, such as density-based or isolation-based methods, and exploring automated ways to determine the optimal target dimensionality.
Summary updated