One-Class Slab SVM (OCSSVM)
- OCSSVM is a kernel-based one-class classification method that defines a bounded slab using two parallel hyperplanes to capture the normal region of the target class.
- It optimizes both lower- and upper-tail errors through a dual quadratic programming formulation with slack variables, enhancing novelty detection over traditional OCSVM.
- Empirical evaluations show that OCSSVM, trained via an efficient SMO procedure, significantly reduces false positives and outperforms conventional methods on benchmark datasets.
The One-Class Slab Support Vector Machine (OCSSVM) is a kernel-based one-class classification framework that constructs two parallel hyperplanes in the feature space to define a “normal” region for the target class, thereby enabling robust novelty detection. By controlling both lower- and upper-tail outliers relative to the projected score distribution, OCSSVM addresses key limitations of traditional one-class SVM (OCSVM) approaches, notably reducing false positive rates arising from high-scoring negatives and increasing detection accuracy for novel instances (Fragoso et al., 2016, Kumar et al., 2020).
1. Motivation and Problem Formulation
Traditional OCSVM seeks a single separating hyperplane in feature space, admitting points satisfying and rejecting those below as novel. This mechanism only bounds the lower tail. In many settings, negative samples may reside above the main mass of target scores, leading to high rates of false positives. OCSSVM defines a bounded “slab”
with the same normal and offsets . Instances falling outside this slab are deemed outliers, directly controlling both tails of the score distribution (Fragoso et al., 2016, Kumar et al., 2020).
2. Mathematical Derivation and Optimization
Given a set of positive-class training points mapped into a reproducing kernel Hilbert space by , OCSSVM introduces two sets of slack variables: for lower-bound violations and for upper-bound violations. With control parameters and a weight 0, the primal quadratic program is: 1 Dualization leads to the convex quadratic program: 2 where 3 (Fragoso et al., 2016, Kumar et al., 2020).
The model parameters are reconstructed by
4
with offsets 5 computed via
6
and likewise for 7, but over support vectors with 8 (Fragoso et al., 2016, Kumar et al., 2020).
The decision score is
9
with classifier
0
declaring 1 if 2, 3 otherwise.
3. Algorithmic Solution and SMO Training
The dual convex program admits solution by any off-the-shelf quadratic programming method. Due to scalability constraints (4 memory, 5 time for generic QP), a modified Sequential Minimal Optimization (SMO) procedure is effective (Kumar et al., 2020). By posing the dual in terms of 6, the update at each iteration solves an analytic two-variable problem with box and slab constraints: 7 The SMO update takes the form: 8 along with appropriate clipping (Kumar et al., 2020).
The KKT-violation-based working set selection prioritizes variables corresponding to maximal slab constraint violation. Each outer iteration involves 9 computation. Empirically, convergence is achieved in tens to hundreds of steps, with rapid subquadratic scaling in both time and memory (Kumar et al., 2020).
4. Theoretical Properties
The OCSSVM objective is convex in 0, guaranteeing a unique solution. The generalization capacity is linked to the slab's margin in the projected 1-D score space; arguments using Rademacher complexity or covering numbers extend from the OCSVM literature, with a wide slab corresponding to small 1 and thus lower complexity for fixed empirical errors (Fragoso et al., 2016).
Computationally, the complexity per iteration matches OCSVM (2); the number of variables doubles, but not the asymptotic cost. The SMO solver eliminates the infeasible 3 scaling for large datasets (Fragoso et al., 2016, Kumar et al., 2020).
5. Empirical Evaluation and Benchmarks
OCSSVM has been evaluated on multiple datasets:
| Dataset | OCSVM MCC | OCSSVM MCC | Notes |
|---|---|---|---|
| Letter (RBF kernel) | ≈0.07 | ≈0.39 | 26 classes, 16,000 train, 4,000 test |
| Letter (linear) | ≈0.02 | ≈0.14 | |
| Pascal VOC 2012 (additive kern.) | 0.04–0.02 | 0.26–0.18 | 20 object classes, HOG features |
OCSSVM consistently outperforms OCSVM and is competitive with or superior to SVDD, KPCA, and KDE where applicable. On synthetic data, SMO-OCSSVM scales from 0.35s (500 samples) to 5.91s (5,000 samples), with MCC improving with data volume (0.07 to 0.33) (Fragoso et al., 2016, Kumar et al., 2020).
6. Applications and Practical Recommendations
OCSSVM is recommended in scenarios where traditional one-class novelty detection is affected by high false-positive rates from right-tail outliers, which is prevalent in open-set visual recognition and industrial anomaly detection tasks (Fragoso et al., 2016). Default parameters (4, 5, 6) are effective starting points, with additional tuning via class-restricted validation. RBF kernels are a robust default, while histogram features benefit from intersection, Hellinger, or 7 kernels. Data sizes below 2,000 permit primal-dual QP methods; larger sets necessitate SMO (Fragoso et al., 2016, Kumar et al., 2020).
7. Implementation Outline
OCSSVM is constructed by assembling the kernel matrix 8, solving the dual for variables 9, 0 (or 1), extracting the primal weight 2 and offsets 3, 4 via KKT, and applying the two-hyperplane decision. The SMO solver is directly adaptable from standard OCSVM literature with the box-sum modifications above (Fragoso et al., 2016, Kumar et al., 2020).