Hashing for Structure-based Anomaly Detection
Filippo Leveni, Luca Magri, Cesare Alippi, Giacomo Boracchi
TL;DR
Given a dataset $X = G \cup A$ where genuine data lie near low-dimensional structures, the paper tackles detecting samples that do not conform to any structure by learning multiple models and embedding the data into a high-dimensional Preference Space. It introduces RuzHash-iForest, an isolation-based detector that uses a novel RuzHash Locality Sensitive Hashing scheme to approximate the Ruzicka distance in the Preference Space, avoiding explicit high-dimensional distance computations. The approach couples Preference Embedding with an ensemble of RuzHash-iTrees and achieves competitive ROC AUC with substantially lower computational cost than PI-Forest, demonstrated on synthetic and AdelaideRMF datasets. The work provides public code and outlines future directions such as exploring additional distance measures and their corresponding LSH schemes for structure-based anomaly detection.
Abstract
We focus on the problem of identifying samples in a set that do not conform to structured patterns represented by low-dimensional manifolds. An effective way to solve this problem is to embed data in a high dimensional space, called Preference Space, where anomalies can be identified as the most isolated points. In this work, we employ Locality Sensitive Hashing to avoid explicit computation of distances in high dimensions and thus improve Anomaly Detection efficiency. Specifically, we present an isolation-based anomaly detection technique designed to work in the Preference Space which achieves state-of-the-art performance at a lower computational cost. Code is publicly available at https://github.com/ineveLoppiliF/Hashing-for-Structure-based-Anomaly-Detection.
