Efficient SVDD sampling with approximation guarantees for the decision boundary

Adrian Englhardt, Holger Trittenbach, Daniel Kottke, Bernhard Sick, Klemens Böhm

Abstract

Support Vector Data Description (SVDD) is a robust method for anomaly detection, yet its $O(N^3)$ training complexity limits its application to large-scale datasets. This paper presents RAPID (Reducing sAmples by Pruning of Inlier Densities), a parameter-free sampling algorithm that drastically reduces training data while providing theoretical guarantees for decision boundary preservation. By framing SVDD as a level-set estimator, RAPID avoids the fragmentation issues common in boundary-point sampling methods. Experimental results on synthetic and real-world datasets demonstrate that RAPID achieves significant data reduction and speedup without sacrificing accuracy.

Introduction

Support Vector Data Description (SVDD) works by finding a minimum enclosing hypersphere around "inlier" data. While effective for identifying anomalies, the algorithm does not scale well to large datasets. To address this, researchers typically employ sampling techniques to create a smaller, more manageable training set. However, existing sampling methods often suffer from two major flaws:

  1. Fragmentation: Many methods focus exclusively on "boundary points" (potential support vectors). By ignoring interior points, they often fragment the inlier region, causing the model to incorrectly flag valid data as anomalies.
  2. "Magic" Parameters: Most competitors require users to tune exogenous hyperparameters—such as the number of neighbors or specific distance thresholds—that are unintuitive and highly data-dependent.
Comparison of decision boundaries between a state-of-the-art competitor and RAPID.

Methodology: The RAPID Algorithm

The authors frame SVDD sampling as a constrained optimization problem, viewing SVDD essentially as a level-set estimator where the decision boundary is defined by a specific density threshold. Their proposed algorithm, RAPID, follows a two-step process:

  • Density-based Pre-filtering: Since SVDD is unsupervised but sampling often assumes "clean" inlier data, RAPID first uses empirical density to separate likely inliers from outliers.
  • Iterative Pruning: Starting with all inliers, RAPID iteratively removes observations in the densest regions. This continues as long as the removal does not cause the local density to drop below the minimum density of the original boundary.

Unlike other methods, RAPID utilizes the same kernel and parameters already required by SVDD, making it effectively parameter-free for the end user.

The two-step process of RAPID: density-based pre-filtering and iterative sampling.

Experimental Evaluation

The authors conducted a comprehensive evaluation using both synthetic and real-world data:

  • Synthetic Data: 85 datasets generated from Gaussian mixtures, varying in dimensionality, observation count, and cluster complexity.
  • Real-World Data: 23 standard benchmark datasets for outlier detection (e.g., ALOI, KDDCup99, Arrhythmia), ranging from 80 to nearly 50,000 observations and up to 1,555 dimensions.

Key Results

  • Superior Accuracy: On real-world benchmarks, RAPID achieved the highest median Matthews Correlation Coefficient (MCC), often matching the performance of SVDD trained on the full dataset.
  • Extreme Data Reduction: On the massive KDDCup99 dataset, RAPID reduced the data to a sample ratio of just 0.0013 (0.13% of the original size) while maintaining an MCC of 0.45—significantly higher than competitors.
  • Speedup: RAPID runs in $O(N^2)$ time. By reducing the training set size so drastically, it transformed training tasks that previously took over an hour into tasks completed in seconds.
  • Robustness: While competitors' performance fluctuated based on data dimensionality or cluster complexity, RAPID remained stable across almost all test scenarios.

Discussion and Insights

A core insight of this work is that a "good" sample requires a close-to-uniform distribution rather than just a collection of edge points; this prevents the SVDD hypersphere from "collapsing" into holes in the data. Furthermore, by tying the sampling logic to the SVDD kernel bandwidth ($\gamma$), RAPID automatically adapts to the desired decision boundary's flexibility without manual intervention.

Limitations

Despite its advantages, RAPID's effectiveness is tied to the initial choice of the SVDD kernel bandwidth. If a user selects a poor $\gamma$ that leads to overfitting or underfitting, the sampling will reflect that choice. Additionally, as a greedy algorithm, RAPID may not find the absolute theoretical minimum sample size. Finally, while $O(N^2)$ is an improvement over $O(N^3)$, the initial density calculation may still become a bottleneck for datasets with millions of points, suggesting a need for further approximation techniques in future work.

Summary updated

BibTeX
@article{englhardt2022efficient,
  author = {Adrian Englhardt and Holger Trittenbach and Daniel Kottke and Bernhard Sick and Klemens Böhm},
  title = {{Efficient SVDD sampling with approximation guarantees for the decision boundary}},
  journal = {Machine Learning},
  year = {2022},
  doi = {10.1007/s10994-022-06149-0},
}
Figure