Efficient Data Point Pruning for One-Class SVM

Yasuhiro Fujiwara, Sekitoshi Kanai, Junya Arai, Yasutoshi Ida, Naonori Ueda

Abstract

One-Class Support Vector Machines (OC-SVM) are a fundamental tool for anomaly detection and novelty discovery. However, their training complexity scales poorly with the number of data points, limiting their applicability to large-scale datasets. This paper presents Quix, an algorithm designed to accelerate OC-SVM training by pruning irrelevant data points before they are processed by the solver. By leveraging Cauchy-Schwarz bounds and a novel "subtraction approach" for sparsity, Quix achieves up to a 6800x speedup over standard methods while guaranteeing the exact same optimal solution.

Introduction

The primary challenge in training OC-SVMs lies in solving a quadratic programming (QP) problem that becomes computationally expensive as the dataset size ($n$) grows. Existing acceleration techniques typically involve either approximation methods (e.g., Nyström method, Random Fourier Features) that sacrifice accuracy for speed, or heuristic pruning (e.g., shrinking, active-set methods) that may require expensive optimality checks or risk sub-optimal results. Quix addresses this by providing a mathematically rigorous pruning mechanism that is both fast and exact.

Methodology

The Quix algorithm introduces two key innovations to optimize the training process:

Data Point Pruning via Cauchy-Schwarz Bounds

Quix derives upper and lower bounds for the decision parameter ($z$) of each data point. Using the Cauchy-Schwarz inequality, specifically for the RBF (Gaussian) kernel, the algorithm identifies points that are either "definitely outliers" or "definitely not support vectors." * Set S (Selected): Points identified as potential support vectors. * Set P (Pruned): Points proven to be irrelevant to the final hyperplane.

The QP solver is only executed on Set S. Post-solver, Quix verifies the optimality conditions using the Kuhn-Tucker Theorem to ensure no relevant points were excluded.

Pruning efficiency across different datasets, showing the number of pruned vs. selected data points.

The "Subtraction Approach" for Sparsity

To handle dense data efficiently, Quix employs a "subtraction approach." By subtracting the most frequent value from each feature column, the algorithm creates a sparse data matrix. This transformation significantly accelerates the calculation of vector norms and inner products required for the bounds without altering the geometric relationships between points.

Experimental Evaluation

The authors evaluated Quix on three high-dimensional datasets: gisette (handwritten digits), rcv1.binary (news articles), and real-sim (Usenet data).

Key Results

  • Massive Speedups: Quix demonstrated superior performance, outperforming the Nyström method by up to 170x and the standard "shrinking" approach by up to 6800x on the largest datasets.
  • Exact Optimality: Unlike approximation methods, Quix maintains a perfect F-measure of 1.0 for its output support vectors compared to the original OC-SVM, ensuring the true optimal solution is found.
  • Pruning Power: As shown in the experimental results, Quix successfully prunes the vast majority of data points, allowing the solver to focus on a minimal subset.
Wall clock time comparison for Quix against various baseline methods across different datasets and $\nu$ parameters.

Conclusion

Quix represents a significant advancement in OC-SVM training, offering a "best of both worlds" solution: the speed of approximation methods with the mathematical rigor of exact algorithms. Its solver-independent nature and lack of additional hyper-parameters make it a practical choice for large-scale anomaly detection. Future work may involve further optimization for non-RBF kernels and deeper exploration of its application in online learning environments.

Summary updated

BibTeX
@inproceedings{fujiwara2019efficient,
  author = {Yasuhiro Fujiwara and Sekitoshi Kanai and Junya Arai and Yasutoshi Ida and Naonori Ueda},
  title = {{Efficient Data Point Pruning for One-Class SVM}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013590},
}
Figure