Introduction
Traditional anomaly detection often relies on a fundamental assumption: normal data points reside in high-density regions, while anomalies are isolated in low-density areas. However, this assumption breaks down in complex real-world scenarios. Filippo Leveni’s research addresses three critical gaps: identifying anomalies that deviate from geometric structures, processing high-speed data streams subject to concept drift, and detecting novel malware families in open-set environments.
Preference Isolation Forest (PIF)
Detecting "structural" anomalies—points that do not fit specific geometric models like lines or planes—is challenging for standard density-based methods. Leveni proposes the Preference Isolation Forest (PIF) framework to bridge this gap.
The core innovation is the mapping of data into a Preference Space. By measuring how well each data point fits a random pool of geometric models, the algorithm transforms a structural problem into an isolation problem. In this new space, unstructured noise becomes highly isolated. To process this space efficiently, the thesis introduces:
- Voronoi-iForest: Uses geometric distance splits to isolate points.
- RuzHash-iForest: Employs a novel Locality Sensitive Hashing (LSH) scheme based on the Ruzicka distance. This avoids expensive distance calculations, making the process 35% to 70% faster than Voronoi-based methods while maintaining high accuracy.
MultiLink: Robust Geometric Clustering
For scenarios requiring the recovery of multiple geometric structures simultaneously (e.g., segmenting multiple planes in a 3D scan), the thesis introduces MultiLink. This agglomerative clustering algorithm fits new models on-the-fly during the merging process. By using the Geometric Robust Information Criterion (GRIC), MultiLink determines if merging two clusters under a single model is mathematically optimal. This makes it significantly more robust to noise and poor initializations than existing preference-based methods like T-Linkage.
Online-iForest for Streaming Data
In IoT and financial applications, data arrives in endless streams where the underlying distribution changes over time (concept drift). Standard Isolation Forests require periodic, expensive retraining to remain effective. Online-iForest solves this by using an ensemble of multi-resolution histograms. It features dynamic "learning" (splitting bins in dense regions) and "forgetting" (merging bins as old data leaves a memory window), allowing real-time adaptation to drift without full retraining.
Open-Set Recognition in Malware Detection
Malware detection is typically a "closed-set" problem where classifiers only recognize known families. Leveni adapts MaxLogit—a technique usually reserved for deep learning—to tree-based Gradient Boosting models. By treating the unnormalized decision values of trees as "logits," the system can detect when a model is uncertain about a sample, flagging it as a potentially new malware family. This system has been successfully deployed in production at the cybersecurity firm Cleafy, offering high true positive rates for novel threats with minimal inference latency.
Key Results and Impact
The proposed methods demonstrate significant improvements over state-of-the-art baselines:
- Efficiency: Online-iForest achieved a median execution time of 29.9s compared to 142.5s for the next best streaming method across standard benchmarks.
- Accuracy: MultiLink reduced misclassification errors in plane segmentation from 6.13% to 4.10%.
- Production Readiness: The Gradient Boosting + MaxLogit approach operates at 1.3e-5 seconds per inference, making it suitable for high-volume real-world telemetry.
Future Directions
Future work aims to expand PIF to handle non-parametric families using neural networks or autoencoders in the Preference Embedding step. Additionally, the "forgetting" mechanism in Online-iForest could be improved by sampling directly from density bins, potentially removing the need for a data buffer entirely.
Summary updated