Abstract
Unsupervised anomaly detection often relies on the reconstruction error of autoencoders. However, over-parameterized deep models can inadvertently learn to reconstruct anomalies, reducing the effectiveness of the detection. We present Robust Collaborative Autoencoders (RCA), a framework that employs multiple autoencoders to peer-filter training data. By exchanging "clean" samples between models, RCA prevents the memorization of outliers. Experimental results across 18 benchmark datasets demonstrate that RCA consistently outperforms existing deep unsupervised methods, maintaining high performance even under significant noise and high anomaly ratios.
Introduction
In unsupervised anomaly detection (AD), the fundamental assumption is that normal data follows a compressible pattern, while anomalies are outliers with high reconstruction costs. While deep autoencoders are powerful tools for this task, their capacity often leads to the "memorization" trap: given enough training time, the model learns to reconstruct the anomalies as well as the normal data, shrinking the error gap necessary for identification. Existing robust methods frequently rely on labeled data, which is unavailable in true unsupervised scenarios. RCA addresses this by introducing a collaborative training strategy that filters out potential anomalies without requiring ground-truth labels.
Methodology: Robust Collaborative Autoencoders
The RCA framework utilizes a "divide and conquer" strategy centered on collaborative filtering.
Collaborative Training and Sample Selection
The system initializes two or more autoencoders with distinct random weights. For each mini-batch, every autoencoder performs a forward pass to calculate reconstruction errors. It then identifies a subset of samples with the lowest errors, which are statistically more likely to be "clean" normal data.
The Exchange Step
Crucially, RCA implements an "exchange" mechanism. Instead of updating its weights based on its own selected samples, Autoencoder A trains on the samples selected by Autoencoder B, and vice versa. This cross-pollination prevents a single model from entering a self-reinforcing feedback loop of overfitting to its own preferred data subset.
Selection Decay and Inference
A linear decay function controls the selection criteria. Early in training, the models observe most of the data. As training progresses, the selection becomes stricter, eventually focusing only on the fraction of data assumed to be normal. During inference, RCA employs an ensemble approach with dropout, averaging results from multiple forward passes to produce a stable anomaly score.
Experimental Evaluation
RCA was evaluated against several state-of-the-art methods, including DAGMM, Deep-SVDD, and SO-GAAL, using 18 real-world benchmark datasets from the Stony Brook ODDS library (e.g., mnist, musk, vowels). Additionally, synthetic "crescent moon" datasets were used to visualize the model's ability to capture complex data manifolds in the presence of high noise.
Results and Discussion
RCA outperformed competing unsupervised methods on 16 out of 18 benchmark datasets. A key strength of the model is its resilience to high anomaly ratios.
As shown in the synthetic tests, when the anomaly ratio reaches 40%, standard autoencoders fail to distinguish the "normal" pattern from the noise. In contrast, RCA successfully maps the true data manifold. Ablation studies confirmed that both the collaborative sample exchange and the ensemble dropout mechanism are vital for this performance.
Conclusion
RCA provides a robust, unsupervised solution to the memorization problem in deep anomaly detection. By leveraging peer-filtering, it effectively ignores outliers during training. While it requires an estimate of the anomaly ratio, the model shows significant stability even with imperfect estimates. Future work may explore extending this collaborative wrapper to more complex architectures beyond standard and variational autoencoders.
Summary updated