Support Vector Method for Novelty Detection

Bernhard SchölkopfRobert C. WilliamsonAlexander J. SmolaJohn Shawe-TaylorJohn C. Platt

article1999NeurIPS2,697 citations

Introduces the support vector method for novelty detection, which estimates the support of an unknown distribution by separating unlabeled data from the origin in a kernel feature space with direct theoretical control over the outlier fraction.

Listen

The article addresses the challenge of identifying a compact region in input space that contains most data points drawn from an unknown distribution, while allowing for a controllable fraction of outliers. This novelty detection task matters in settings where full density estimation is unnecessary or infeasible, such as spotting anomalies or mislabeled examples in high-dimensional data.

The work develops and analyzes an algorithm that learns a decision function separating the bulk of the training points from the origin in a kernel-induced feature space. It solves a convex quadratic program whose single parameter ν directly controls the expected fraction of outliers, then recovers a sparse kernel expansion for the resulting function. Theoretical results establish that ν asymptotically equals both the fraction of support vectors and outliers, while generalization bounds quantify the probability that new points fall outside the estimated region.

Experiments on two-dimensional toy problems illustrate how ν and kernel width trade off the size of the captured region against robustness to distant points. On the USPS handwritten-digit test set the method, run with ν equal to 5 percent, surfaces the twenty most atypical patterns; many of these turn out to be segmentation errors or mislabeled digits, confirming practical utility for outlier identification.

These findings show that a support-vector-style approach can perform one-class learning without requiring a complete density model, thereby reducing computational cost and avoiding assumptions that the data admit a density. The resulting procedure runs in seconds on thousands of examples and supplies an explicit, tunable trade-off between region size and outlier tolerance.

For deployment, practitioners should choose a decision threshold strictly below the learned offset p to improve generalization on unseen data. Kernel parameters still require careful selection, and additional validation on larger or domain-specific collections would strengthen before widespread use.

  • Paper: Support-vector networks, Corinna Cortes et al. (1995). It introduces the foundational soft-margin support vector machine framework and dual quadratic programming formulation that the source adapts for one-class novelty detection.
  • Paper: A training algorithm for optimal margin classifiers, B. Boser et al. (1992). It develops the core optimal margin hyperplane and dual Lagrangian optimization algorithms for kernel-based classification upon which the source's geometric separation relies.
Cover for Support Vector Method for Novelty Detection

Abstract

Suppose you are given some dataset drawn from an underlying probability distribution P and you want to estimate asimplesubset S of input space such that the probability that a test point drawn from P lies outside of S equals some a priori specified ν between 0 and 1.

We propose a method to approach this problem by trying to estimate a function f which is positive on S and negative on the complement. The functional form of f is given by a kernel expansion in terms of a potentially small subset of the training data; it is regularized by controlling the length of the weight vector in an associated feature space. We provide a theoretical analysis of the statistical performance of our algorithm.

The algorithm is a natural extension of the support vector algorithm to the case of unlabelled data.

Table of Contents

  • 1 INTRODUCTION
  • 2 ALGORITHMS
  • 3 THEORY
  • 4 EXPERIMENTS
  • 5 DISCUSSION
  • References

Knowls

  1. Knowl 1 — Single-Class Support Vector Machine Formulation

    model/method

    Given an unlabelled dataset x1,,xXx_1, \dots, x_\ell \in \mathcal{X}, where X\mathcal{X} is a compact subset of RN\mathbb{R}^N, and a feature map Φ:XF\Phi: \mathcal{X} \to \mathcal{F} associated with a Mercer kernel k(x,y)=Φ(x),Φ(y)k(x, y) = \langle \Phi(x), \Phi(y) \rangle, the single-class support vector machine separates the dataset from the origin in feature space F\mathcal{F} by solving the primal quadratic program:

    minwF,ξR,ρR12w2+1νi=1ξiρ\min_{w \in \mathcal{F}, \, \xi \in \mathbb{R}^\ell, \, \rho \in \mathbb{R}} \frac{1}{2} \|w\|^2 + \frac{1}{\nu \ell} \sum_{i=1}^\ell \xi_i - \rho

    subject to

    w,Φ(xi)ρξi,ξi0for all i=1,,,\langle w, \Phi(x_i) \rangle \ge \rho - \xi_i, \quad \xi_i \ge 0 \quad \text{for all } i = 1, \dots, \ell,

    where ν(0,1)\nu \in (0, 1) is a user-specified parameter controlling the trade-off between maximizing the distance of the hyperplane from the origin ρ/w\rho / \|w\| and penalizing points lying on the wrong side of the margin via slack variables ξi\xi_i.

    The corresponding dual quadratic programming problem is:

    minαR12i=1j=1αiαjk(xi,xj)subject to 0αi1ν for all i{1,,},i=1αi=1.\min_{\alpha \in \mathbb{R}^\ell} \frac{1}{2} \sum_{i=1}^\ell \sum_{j=1}^\ell \alpha_i \alpha_j k(x_i, x_j) \quad \text{subject to } 0 \le \alpha_i \le \frac{1}{\nu \ell} \text{ for all } i \in \{1, \dots, \ell\}, \quad \sum_{i=1}^\ell \alpha_i = 1.

    Points xix_i with non-zero dual coefficients αi>0\alpha_i > 0 are called support vectors (SVs). For any support vector xix_i whose coefficient is strictly between the bounds (0<αi<1ν0 < \alpha_i < \frac{1}{\nu \ell}), the offset ρ\rho is computed by:

    ρ=w,Φ(xi)=j=1αjk(xj,xi).\rho = \langle w, \Phi(x_i) \rangle = \sum_{j=1}^\ell \alpha_j k(x_j, x_i).

    The resulting decision function determining whether a novel point xx belongs to the estimated support (+1+1) or is an outlier (1-1) is:

    f(x)=sgn(w,Φ(x)ρ)=sgn(i=1αik(xi,x)ρ).f(x) = \operatorname{sgn}\left( \langle w, \Phi(x) \rangle - \rho \right) = \operatorname{sgn}\left( \sum_{i=1}^\ell \alpha_i k(x_i, x) - \rho \right).

  2. Knowl 2 — Parameter nu as Bounds on Fractions of Support Vectors and Outliers

    theoretical result

    For the single-class SVM quadratic program with an optimal offset ρ0\rho \ne 0 on a training set of size \ell:

    1. ν\nu is an upper bound on the fraction of outliers (points xix_i with slack ξi>0\xi_i > 0, or equivalently w,Φ(xi)<ρ\langle w, \Phi(x_i) \rangle < \rho).
    2. ν\nu is a lower bound on the fraction of support vectors (points xix_i with Lagrange multipliers αi>0\alpha_i > 0).
    3. If the training data are generated independently and identically distributed from a continuous probability distribution P(x)P(x) without discrete components, and the kernel kk is analytic and non-constant, then with probability 11, asymptotically as \ell \to \infty, the fraction of support vectors and the fraction of outliers both equal ν\nu.
  3. Knowl 3 — Limiting Behaviors of Single-Class SVM for Extreme Values of nu

    theoretical result

    The single-class SVM exhibits two distinct limiting behaviors as ν(0,1)\nu \in (0, 1) approaches its boundaries:

    1. Hard Margin Limit (ν0\nu \to 0): The upper bound on the dual variables 1ν\frac{1}{\nu \ell} \to \infty, making the penalty for margin errors infinite. If the training data in feature space are separable from the origin, the algorithm identifies the unique supporting hyperplane that separates all data from the origin while maximizing the distance ρ/w\rho / \|w\| to the origin.
    2. Parzen Windows Limit (ν1\nu \to 1): The dual constraints 0αi1ν0 \le \alpha_i \le \frac{1}{\nu \ell} and i=1αi=1\sum_{i=1}^\ell \alpha_i = 1 admit only one solution: αi=1\alpha_i = \frac{1}{\ell} for all i=1,,i = 1, \dots, \ell. For normalized kernels with unit integral (such as normalized Gaussian kernels), the decision function f(x)=sgn(1i=1k(xi,x)ρ)f(x) = \operatorname{sgn}\left( \frac{1}{\ell} \sum_{i=1}^\ell k(x_i, x) - \rho \right) corresponds directly to a thresholded Parzen windows density estimator.
  4. Knowl 4 — PAC Generalization Error Bound for Support Estimation with Margin Slack

    theoretical result

    Let PP be a fixed but unknown probability distribution on the input space X\mathcal{X}, and let F\mathcal{F} be a class of real-valued functions mapping X\mathcal{X} to a bounded range [a,b][a, b]. For a fixed threshold θR\theta \in \mathbb{R}, margin parameter γ>0\gamma > 0, and function fFf \in \mathcal{F}, define the point slack as d(x,f,γ)=max{0,θ+γf(x)}d(x, f, \gamma) = \max\{0, \, \theta + \gamma - f(x)\} and the cumulative sample slack as D(X,f,γ)=xXd(x,f,γ)\mathcal{D}(X, f, \gamma) = \sum_{x \in X} d(x, f, \gamma) on a training set X=(x1,,x)X = (x_1, \dots, x_\ell) drawn i.i.d. from PP.

    With probability at least 1δ1 - \delta over the random draw of training sequences XX of size \ell, for all γ>0\gamma > 0 and any fFf \in \mathcal{F}:

    P{xX:f(x)<θγ and xX}2(k+log21δ),P\left\{ x \in \mathcal{X} : f(x) < \theta - \gamma \text{ and } x \notin X \right\} \le \frac{2}{\ell} \left( k + \log_2 \frac{1}{\delta} \right),

    where

    k=log2N(γ2,F,2)+64(ba)D(X,f,γ)γ2log2(eγ8D(X,f,γ))log2(32(ba)2γ2),k = \left\lceil \log_2 \mathcal{N}\left(\frac{\gamma}{2}, \mathcal{F}, 2\ell\right) + \frac{64 (b-a) \mathcal{D}(X, f, \gamma)}{\gamma^2} \log_2\left( \frac{e \ell \gamma}{8 \mathcal{D}(X, f, \gamma)} \right) \log_2\left( \frac{32 \ell (b-a)^2}{\gamma^2} \right) \right\rceil,

    and N(ϵ,F,2)=supXX2NdX(ϵ,F)\mathcal{N}(\epsilon, \mathcal{F}, 2\ell) = \sup_{X' \in \mathcal{X}^{2\ell}} \mathcal{N}_{d_{X'}}(\epsilon, \mathcal{F}) is the \ell_\infty covering number of F\mathcal{F} at scale ϵ\epsilon on samples of size 22\ell.

    When applying this result to the single-class SVM with linear functions in feature space bounded by wB=αTKα\|w\| \le B = \sqrt{\alpha^T K \alpha} and setting θ+γ=ρ\theta + \gamma = \rho, the log covering number at scale γ/2\gamma/2 is bounded by O(R2B2γ2log2)O\left( \frac{R^2 B^2}{\gamma^2} \log^2 \ell \right), yielding an error bound on the probability of novel points falling outside the region {x:f(x)2θρ}\{x : f(x) \ge 2\theta - \rho\}.

  5. Knowl 5 — Separability from the Origin Under Gaussian RBF Kernels

    theoretical result

    For any training set x1,,xXx_1, \dots, x_\ell \in \mathcal{X}, the mapped data points Φ(x1),,Φ(x)\Phi(x_1), \dots, \Phi(x_\ell) in the feature space F\mathcal{F} induced by a Gaussian radial basis function (RBF) kernel,

    k(x,y)=exp(xy2c),c>0,k(x, y) = \exp\left( -\frac{\|x - y\|^2}{c} \right), \quad c > 0,

    are strictly separable from the origin by a hyperplane.

    This follows from two geometric properties:

    1. All mapped points have unit length, since Φ(xi),Φ(xi)=k(xi,xi)=1\langle \Phi(x_i), \Phi(x_i) \rangle = k(x_i, x_i) = 1 for all ii.
    2. All pairwise inner products are strictly positive, Φ(xi),Φ(xj)=k(xi,xj)>0\langle \Phi(x_i), \Phi(x_j) \rangle = k(x_i, x_j) > 0 for all i,ji, j, which implies that all mapped patterns reside in the same open orthant of F\mathcal{F}.
  6. Knowl 6 — Invariance of Single-Class SVM Hyperplane to Outlier Movements Parallel to the Weight Vector

    theoretical result

    In the single-class SVM solution (w,ρ)(w, \rho), local movements of outlier training points xix_i (points with slack ξi>0\xi_i > 0, for which the dual Lagrange multipliers are pinned at the upper bound αi=1ν\alpha_i = \frac{1}{\nu \ell}) parallel to the normal vector ww in feature space do not change the separating hyperplane.

  7. Knowl 7 — Empirical Influence of nu and Kernel Width on Support Estimation

    empirical result

    Applying the single-class SVM to 2D synthetic datasets on the domain [1,1]2[-1, 1]^2 illustrates how the regularization parameter ν\nu and the Gaussian kernel width cc govern the geometry of the support boundary, the margin ρ/w\rho / \|w\|, and the empirical fractions of support vectors (SVs) and outliers (OLs):

    Parameter ν\nu 0.5 0.5 0.1 0.5
    Kernel width cc 0.5 0.5 0.5 0.1
    Fraction SVs / OLs 0.54 / 0.43 0.59 / 0.47 0.24 / 0.03 0.65 / 0.38
    Margin ρ/w\rho / \|w\| 0.84 0.70 0.62 0.48

    A large value of ν\nu (e.g., ν=0.5\nu = 0.5) allows isolated peripheral data clusters to be ignored as outliers without warping the main support boundary. Decreasing ν\nu to 0.10.1 forces the boundary to expand to enclose these points. Alternatively, reducing the kernel width cc from 0.50.5 to 0.10.1 at fixed ν=0.5\nu = 0.5 analyzes the data at a finer length scale, causing the algorithm to model separate disjoint support components around the peripheral points.

  8. Knowl 8 — Unsupervised Outlier Identification on the USPS Digit Dataset

    empirical result

    The single-class SVM was applied to identify atypical patterns and mislabelled examples in the USPS handwritten digit test set, which contains 2,007 images of size 16×1616 \times 16 pixels (256 dimensions). To enable the detection of mislabelled samples, each image vector was augmented with 10 indicator dimensions corresponding to class labels (giving 266 total dimensions).

    Using a Gaussian kernel width of c=0.5×256=128c = 0.5 \times 256 = 128 and an outlier parameter ν=0.05\nu = 0.05 (5%), training required 36 seconds on a Pentium II 450 MHz processor. Ranking the test set by the negative value of the SVM decision function w,Φ(x)ρ\langle w, \Phi(x) \rangle - \rho successfully isolated the 20 most atypical images in the dataset, which corresponded to severe segmentation artifacts, atypical writing styles, or ground-truth misclassifications.

Coverage note — All substantial theoretical propositions, generalization bounds, algorithm formulations, limiting behaviors, and empirical results from the paper have been included; no substantial contribution was omitted.

References

  1. 1.S. Ben-David and M. Lindenbaum. Learning distributions by their density levels: A paradigm for learning without a teacher. Journal of Computer and System Sciences, 55:171–182, 1997.
  2. 2.B. Schölkopf, C. Burges, and V. Vapnik. Extracting support data for a given task. In U. M. Fayyad and R. Uthurusamy, editors, Proceedings, First International Conference on Knowledge Discovery & Data Mining. AAAI Press, Menlo Park, CA, 1995.
  3. 3.B. Schölkopf, J. Platt, J. Shawe-Taylor, A.J. Smola, and R.C. Williamson. Estimating the support of a high-dimensional distribution. TR MSR 99 - 87, Microsoft Research, Redmond, WA, 1999.
  4. 4.B. Schölkopf, A. Smola, and K.-R. Müller. Kernel principal component analysis. In B. Schölkopf, C. Burges, and A. Smola, editors, Advances in Kernel Methods — Support Vector Learning. MIT Press, Cambridge, MA, 1999. 327 – 352.
  5. 5.B. Schölkopf, R. Williamson, A. Smola, and J. Shawe-Taylor. Single-class support vector machines. In J. Buhmann, W. Maass, H. Ritter, and N. Tishby, editors, Unsupervised Learning, Dagstuhl-Seminar-Report 235, pages 19 – 20, 1999.
  6. 6.A. Smola, R. C. Williamson, S. Mika, and B. Schölkopf. Regularized principal manifolds. In Computational Learning Theory: 4th European Conference, volume 1572 of Lecture Notes in Artificial Intelligence, pages 214 – 229. Springer, 1999.
  7. 7.D.M.J. Tax and R.P.W. Duin. Data domain description by support vectors. In M. Verleysen, editor, Proceedings ESANN, pages 251 – 256, Brussels, 1999. D Facto.
  8. 8.V. Vapnik. Statistical Learning Theory. Wiley, New York, 1998.
  9. 9.V. Vapnik and A. Lerner. Pattern recognition using generalized portraits. Avtomatika i Telemekhanika, 24:774 – 780, 1963.

Citation

MLA
Schölkopf, B., et al. “Support Vector Method for Novelty Detection.”. NIPS, 1999, pp. 582–88, https://dblp.org/rec/conf/nips/ScholkopfWSSP99.
APA
Schölkopf, B., Williamson, R. C., Smola, A. J., Shawe-Taylor, J., & Platt, J. C. (1999). Support Vector Method for Novelty Detection. NIPS, 582–588. https://dblp.org/rec/conf/nips/ScholkopfWSSP99
Chicago
Schölkopf, B., R. C. Williamson, A. J. Smola, J. Shawe-Taylor, and J. C. Platt. 1999. “Support Vector Method for Novelty Detection.”. NIPS, 582–88. https://dblp.org/rec/conf/nips/ScholkopfWSSP99.
Harvard
Schölkopf, B. et al. (1999) “Support Vector Method for Novelty Detection.”, NIPS, pp. 582–588. Available at: https://dblp.org/rec/conf/nips/ScholkopfWSSP99.
Vancouver
1. Schölkopf B, Williamson RC, Smola AJ, Shawe-Taylor J, Platt JC (1999) Support Vector Method for Novelty Detection. In: NIPS. pp 582–588

BibTeX

<!doctype html><html lang="en"><head><title>Making sure you&#39;re not a bot!</title><link rel="stylesheet" href="/.within.website/x/xess/xess.min.css?cachebuster=v1.27.0"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="robots" content="noindex,nofollow"><style>
        body,
        html {
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-left: auto;
            margin-right: auto;
        }

        .centered-div {
            text-align: center;
        }

        #status {
            font-variant-numeric: tabular-nums;
        }

        #progress {
            display: none;
            width: 90%;
            width: min(20rem, 90%);
            height: 2rem;
            border-radius: 1rem;
            overflow: hidden;
            margin: 1rem 0 2rem;
            outline-offset: 2px;
            outline: #b16286 solid 4px;
        }

        .bar-inner {
            background-color: #b16286;
            height: 100%;
            width: 0;
            transition: width 0.25s ease-in;
        }
    	</style><script id="anubis_version" type="application/json">"v1.27.0"
</script><script id="anubis_challenge" type="application/json">{"rules":{"algorithm":"metarefresh","difficulty":1},"challenge":{"issuedAt":"2026-09-14T15:02:20.230922348+02:00","metadata":{"User-Agent":"ChapterPal/1.0 (mailto:[email protected]; https://chapterpal.com)","X-Real-Ip":"34.96.60.187"},"id":"01a0a002-e846-7e0a-a123-00662f8faeef","method":"metarefresh","randomData":"05f0e85603035a715594705bbdb3499abb4df8691ae84b88da2d55f1d657dc636dd0369c18bb40076951e75d716c9ac1bc5b7a3a1e01ca05b8713ef40ad4d1e5","policyRuleHash":"ac980f49c4d35fab","difficulty":1,"spent":false}}
</script><script id="anubis_base_prefix" type="application/json">""
</script><script id="anubis_public_url" type="application/json">""
</script></head><body id="top"><script type="ignore"><a href="/.within.website/x/cmd/anubis/api/honeypot/2c44fe67-8eff-4a02-955a-0bf6c67cc232/init">Don't click me</a></script><main><h1 id="title" class="centered-div">Making sure you&#39;re not a bot!</h1><div class="centered-div"><img id="image" style="width:100%;max-width:256px;" src="/.within.website/x/cmd/anubis/static/img/pensive.webp?cacheBuster=v1.27.0"> <img style="display:none;" style="width:100%;max-width:256px;" src="/.within.website/x/cmd/anubis/static/img/happy.webp?cacheBuster=v1.27.0"><p id="status">Loading...</p><p>Please wait a moment while we ensure the security of your connection.</p><meta http-equiv="refresh" content="2; url=/.within.website/x/cmd/anubis/api/pass-challenge?challenge=05f0e85603035a715594705bbdb3499abb4df8691ae84b88da2d55f1d657dc636dd0369c18bb40076951e75d716c9ac1bc5b7a3a1e01ca05b8713ef40ad4d1e5&amp;id=01a0a002-e846-7e0a-a123-00662f8faeef&amp;redir=%2Frec%2Fconf%2Fnips%2FScholkopfWSSP99.bib"></div><footer><div class="centered-div"><p>Protected by <a href="https://github.com/TecharoHQ/anubis">Anubis</a> From <a href="https://techaro.lol">Techaro</a>. Made with ❤️ in 🇨🇦.</p><p>Mascot design by <a href="https://bsky.app/profile/celphase.bsky.social">CELPHASE</a>.</p><p>This website is running Anubis version <code>v1.27.0</code>.</p></div></footer></main></body></html>
Metadata:DOI registry

Access the Paper

This paper is available from its original source. Click below to access the PDF.

Open PDF

License: Published with permission