DROCC: Deep Robust One-Class Classification.

Sachin Goyal, Aditi Raghunathan, Moksh Jain, Harsha Vardhan Simhadri, Prateek JainarXiv 2020

Abstract

Classical approaches for one-class problems such as one-class SVM and isolation forest require careful feature engineering when applied to structured domains like images. State-of-the-art methods aim to leverage deep learning to learn appropriate features via two main approaches. The first approach based on predicting transformations while successful in some domains, crucially depends on an appropriate domain-specific set of transformations that are hard to obtain in general. The second approach of minimizing a classical one-class loss on the learned final layer representations, e.g., DeepSVDD, suffers from the fundamental drawback of representation collapse. In this work, we propose Deep Robust One-Class Classification (DROCC) that is both applicable to most standard domains without requiring any side-information and robust to representation collapse. DROCC is based on the assumption that the points from the class of interest lie on a well-sampled, locally linear low dimensional manifold. Empirical evaluation demonstrates that DROCC is highly effective in two different one-class problem settings and on a range of real-world datasets across different domains: tabular data, images (CIFAR and ImageNet), audio, and time-series, offering up to 20% increase in accuracy over the state-of-the-art in anomaly detection.

Introduction

One-class classification (OCC) is the task of identifying "anomalies" or "outliers" when training data consists primarily of "normal" examples. This is a critical challenge in fields such as fraud detection, medical diagnosis, and wake-word detection. While deep learning has revolutionized many fields, its application to OCC is hindered by representation collapse. Without negative examples to provide a boundary, a neural network often learns a degenerate solution, mapping all possible inputs to a single point in the latent space.

Existing solutions often rely on domain-specific heuristics, such as predicting image rotations. However, these "self-supervised" tricks do not generalize well to non-visual data like heart rate sensors or audio clips. DROCC addresses these limitations by providing a generic, robust framework that prevents collapse without requiring domain-specific transformations.

Methodology: Manifold-Based Adversarial Training

DROCC is built upon the manifold hypothesis, which posits that high-dimensional data points typically lie on a low-dimensional, locally linear manifold. To prevent representation collapse, DROCC synthetically generates "hard" negative examples that lie just off this manifold.

Adversarial Search and Discriminative Training

The training process involves two main steps:

  1. Adversarial Search: For each normal training point, the algorithm uses gradient ascent to identify a nearby point that is at least a distance $r$ away but is currently misclassified by the model as "normal." These are "close negatives."
  2. Discriminative Training: The model is then optimized to distinguish between the original "positive" points and these newly generated "negative" points.
Figure 6: Visualization of normal data points alongside synthetically generated "close negatives" and standard "far negatives."

By forcing the network to define a tight boundary around the normal data, DROCC provides a "push-back" mechanism that naturally prevents the network from collapsing all representations. For scenarios where a few real negative examples are available (Limited Negatives), the authors extend the framework to DROCC-LF, which utilizes a learned Mahalanobis distance to filter out noisy or irrelevant features.

Experimental Results

The authors evaluated DROCC across a diverse set of benchmarks, including tabular data (Arrhythmia, Thyroid), images (CIFAR-10, ImageNet), and time-series/audio (Epileptic Seizure Recognition, Google Speech Commands).

Synthetic Benchmarks

On a synthetic 2D sine-wave dataset, DROCC demonstrated its ability to capture complex 1D manifolds accurately. While classical methods like OC-SVM often draw overly broad boundaries, DROCC maintains a tight fit around the data manifold.

Figure 3: (a) Conceptual diagram of the manifold and adversarial search. (b-d) Comparison of classification boundaries on a synthetic sine-wave, where (d) shows DROCC's superior ability to capture the manifold.

Real-World Performance

  • Image Classification: DROCC outperformed baselines like DeepSVDD by up to 20% on specific CIFAR-10 classes.
  • Tabular Data: On the Arrhythmia dataset, DROCC achieved an F1-score of 0.69, significantly outperforming DeepSVDD's 0.54.
  • Wake-Word Detection: In the OCLN setting for audio, DROCC-LF was consistently 10% more accurate than standard binary classifiers when constrained to a low (3-5%) False Positive Rate.

Discussion and Limitations

The primary strength of DROCC is its generality; its manifold assumption applies across almost any data type without needing domain-specific engineering. However, the method is sensitive to the hyperparameter $r$ (the radius for adversarial search). If $r$ is too small, the model may overfit; if too large, the boundary becomes loose. Additionally, the adversarial search phase adds computational overhead compared to simpler one-class methods, though it remains more efficient than training complex generative models like GANs. Future work involves exploring theoretical guarantees for manifolds with high curvature.

Summary updated

BibTeX
@misc{goyal2020drocc,
  author = {Sachin Goyal and Aditi Raghunathan and Moksh Jain and Harsha Vardhan Simhadri and Prateek Jain},
  title = {{DROCC: Deep Robust One-Class Classification.}},
  year = {2020},
  eprint = {2002.12718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.12718},
}
Figure