Support-Vector Networks

About this paperTiếng Việtbeside Tiếng Việt

This paper is under a licence that does not allow it to be reproduced, so what is here is its front matter and a short abstract. Read it at the publisher's page.

Editor: Lorenza Saitta

Abstract. The support-vector network is a new learning machine for two-group classification problems. The machine conceptually implements the following idea: input vectors are non-linearly mapped to a very high-dimension feature space. In this feature space a linear decision surface is constructed. Special properties of the decision surface ensures high generalization ability of the learning machine. The idea behind the support-vector network was previously implemented for the restricted case where the training data can be separated without errors. We here extend this result to non-separable training data.

High generalization ability of support-vector networks utilizing polynomial input transformations is demonstrated. We also compare the performance of the support-vector network to various classical learning algorithms that all took part in a benchmark study of Optical Character Recognition.

Keywords: pattern recognition, efficient learning algorithms, neural networks, radial basis function classifiers, polynomial classifiers.

1 Introduction

More than 60 years ago R.A. Fisher (Fisher, 1936) suggested the first algorithm for pattern recognition. He considered a model of two normal distributed populations, N(m1,Σ1)N(\mathbf{m}_1, \Sigma_1) and N(m2,Σ2)N(\mathbf{m}_2, \Sigma_2) of nn dimensional vectors x\mathbf{x} with mean vectors m1\mathbf{m}_1 and m2\mathbf{m}_2 and co-variance matrices Σ1\Sigma_1 and Σ2\Sigma_2, and showed that the optimal (Bayesian) solution is a quadratic decision function:

Fsq(x)=sign⁡[12(x−m1)TΣ1−1(x−m1)−12(x−m2)TΣ2−1(x−m2)+ln⁡∣Σ2∣∣Σ1∣].F_{sq}(\mathbf{x}) = \operatorname{sign}\left[ \frac{1}{2} (\mathbf{x} - \mathbf{m}_1)^T \Sigma_1^{-1} (\mathbf{x} - \mathbf{m}_1) - \frac{1}{2} (\mathbf{x} - \mathbf{m}_2)^T \Sigma_2^{-1} (\mathbf{x} - \mathbf{m}_2) + \ln \frac{|\Sigma_2|}{|\Sigma_1|} \right].

In the case where Σ1=Σ2=Σ\Sigma_1 = \Sigma_2 = \Sigma the quadratic decision function (1) degenerates to a linear function:

Flin(x)=sign⁡[(m1−m2)TΣ−1x−12(m1TΣ−1m1−m2TΣ−1m2)].F_{lin}(\mathbf{x}) = \operatorname{sign}\left[ (\mathbf{m}_1 - \mathbf{m}_2)^T \Sigma^{-1} \mathbf{x} - \frac{1}{2} (\mathbf{m}_1^T \Sigma^{-1} \mathbf{m}_1 - \mathbf{m}_2^T \Sigma^{-1} \mathbf{m}_2) \right].

To estimate the quadratic decision function one has to determine n(n+3)2\frac{n(n+3)}{2} free parameters. To estimate the linear function only nn free parameters have to be determined. In the case where the number of observations is small (say less than 10n210 n^2) estimating o(n2)o(n^2) parameters is not reliable. Fisher therefore recommended, even in the case of Σ1≠Σ2\Sigma_1 \neq \Sigma_2, to use the linear discriminator function (2) with Σ\Sigma of the form:

Σ=τΣ1+(1−τ)Σ2,\Sigma = \tau \Sigma_1 + (1 - \tau) \Sigma_2,

where τ\tau is some constant1^1. Fisher also recommended a linear decision function for the case where the two distributions are not normal. Algorithms for pattern recognition perceptron output weights of the output unit, α1,…,α5\alpha_1, \ldots, \alpha_5 output from the 5 hidden units: z1,…,z5z_1, \ldots, z_5 weights of the 5 hidden units output from the 4 hidden units weights of the 4 hidden units input vector, xx were therefore from the very beginning associated with the construction of linear decision surfaces.

Figure 1
A simple feed-forward perceptron with 8 input units, 2 layers of hidden units, and 1 output unit. The gray-shading of the vector entries reflects their numeric value.

In 1962 Rosenblatt (Rosenblatt, 1962) explored a different kind of learning machines: perceptrons or neural networks. The perceptron consists of connected neurons, where each neuron implements a separating hyperplane, so the perceptron as a whole implements a piecewise linear separating surface. See Fig. 1.

No algorithm that minimizes the error on a set of vectors by adjusting all the weights of the network was found in Rosenblatt’s time, and Rosenblatt suggested a scheme where only the weights of the output unit were adaptive. According to the fixed setting of the other weights the input vectors are non-linearly transformed into the feature space, ZZ, of the last layer of units. In this space a linear decision function is constructed:

I(x)=sign⁡(∑iαizi(x))I(x) = \operatorname{sign}\left( \sum_i \alpha_i z_i(x) \right)

by adjusting the weights αi\alpha_i from the iith hidden unit to the output unit so as to minimize some error measure over the training data. As a result of Rosenblatt’s approach, construction of decision rules was again associated with the construction of linear hyperplanes in some space.

An algorithm that allows for all weights of the neural network to adapt in order locally to minimize the error on a set of vectors belonging to a pattern recognition problem was found in 1986 (Rumelhart, Hinton & Williams, 1986, 1987; Parker, 1985; LeCun, 1985) when the back-propagation algorithm was discovered. The solution involves a slight modification of the mathematical model of neurons. Therefore, neural networks implement “piece-wise linear-type” decision functions.

In this article we construct a new type of learning machine, the so-called support-vector network. The support-vector network implements the following idea: it maps the input vectors into some high dimensional feature space ZZ through some non-linear mapping chosen a priori. In this space a linear decision surface is constructed with special properties that ensure high generalization ability of the network.

Figure 2
An example of a separable problem in a 2 dimensional space. The support vectors, marked with grey squares, define the margin of largest separation between the two classes.

EXAMPLE. To obtain a decision surface corresponding to a polynomial of degree two, one can create a feature space, ZZ, which has N=n(n+3)2N = \frac{n(n+3)}{2} coordinates of the form:

z1=x1,…,zn=xn,n coordinates,z_1 = x_1, \ldots, z_n = x_n, \quad n \text{ coordinates},
zn+1=x12,…,z2n=xn2,n coordinates,z_{n+1} = x_1^2, \ldots, z_{2n} = x_n^2, \quad n \text{ coordinates},
z2n+1=x1x2,…,zN=xnxn−1,n(n−1)2 coordinates,z_{2n+1} = x_1 x_2, \ldots, z_N = x_n x_{n-1}, \quad \frac{n(n-1)}{2} \text{ coordinates},

where x=(x1,…,xn)\mathbf{x} = (x_1, \ldots, x_n). The hyperplane is then constructed in this space.

Two problems arise in the above approach: one conceptual and one technical. The conceptual problem is how to find a separating hyperplane that will generalize well: the dimensionality of the feature space will be huge, and not all hyperplanes that separate the training data will necessarily generalize well2^2. The technical problem is how computationally to treat such high-dimensional spaces: to construct polynomial of degree 4 or 5 in a 200 dimensional space it may be necessary to construct hyperplanes in a billion dimensional feature space.

The conceptual part of this problem was solved in 1965 (Vapnik, 1982) for the case of optimal hyperplanes for separable classes. An optimal hyperplane is here defined as the linear decision function with maximal margin between the vectors of the two classes, see Fig. 2. It was observed that to construct such optimal hyperplanes one only has to take into account a small amount of the training data, the so called support vectors, which determine this margin. It was shown that if the training vectors are separated without errors by an optimal hyperplane the expectation value of the probability of committing an error on a test example is bounded by the ratio between the expectation value of the number of support vectors and the number of training vectors:

E[Pr⁡(error)]≤E[number of support vectors]number of training vectors.E[\Pr(\text{error})] \leq \frac{E[\text{number of support vectors}]}{\text{number of training vectors}}.

Note that this bound does not explicitly contain the dimensionality of the space of separation. It follows from this bound, that if the optimal hyperplane can be constructed from a small number of support vectors relative to the training set size the generalization ability will be high—even in an infinite dimensional space. In Section 5 we will demonstrate that the ratio (5) for a real life problems can be as low as 0.03 and the optimal hyperplane generalizes well in a billion dimensional feature space.

Let

w0⋅z+b0=0w_0 \cdot z + b_0 = 0

be the optimal hyperplane in feature space. We will show, that the weights w0w_0 for the optimal hyperplane in the feature space can be written as some linear combination of support vectors

w0=∑support vectorsαizi.w_0 = \sum_{\text{support vectors}} \alpha_i z_i.

The linear decision function I(z)I(z) in the feature space will accordingly be of the form:

I(z)=sign⁡(∑support vectorsαizi⋅z+b0),I(z) = \operatorname{sign}\left( \sum_{\text{support vectors}} \alpha_i z_i \cdot z + b_0 \right),

where zi⋅zz_i \cdot z is the dot-product between support vectors ziz_i and vector zz in feature space. The decision function can therefore be described as a two layer network (Fig. 3).

However, even if the optimal hyperplane generalizes well the technical problem of how to treat the high dimensional feature space remains. In 1992 it was shown (Boser, Guyon, & Vapnik, 1992), that the order of operations for constructing a decision function can be interchanged: instead of making a non-linear transformation of the input vectors followed by dot-products with support vectors in feature space, one can first compare two vectors in input space (by e.g. taking their dot-product or some distance measure), and then make a non-linear transformation of the value of the result (see Fig. 4). This enables the construction of rich classes of decision surfaces, for example polynomial decision surfaces of arbitrary degree. We will call this type of learning machine a support-vector network3^3.

The technique of support-vector networks was first developed for the restricted case of separating training data without errors. In this article we extend the approach of support-vector networks to cover when separation without error on the training vectors is impossible. With this extension we consider the support-vector networks as a new class of learning machine, as powerful and universal as neural networks. In Section 5 we will demonstrate how well it generalizes for high degree polynomial decision surfaces (up to order 7) in a high dimensional space (dimension 256). The performance of the algorithm is compared to that of classical learning machines e.g. linear classifiers, kk-nearest neighbors classifiers, and neural networks. Sections 2, 3, and 4 are devoted to the major points of the derivation of the algorithm and a discussion of some of its properties. Details of the derivation are relegated to an appendix.

Figure 3
Classification by a support-vector network of an unknown pattern is conceptually done by first transforming the pattern into some high-dimensional feature space. An optimal hyperplane constructed in this feature space determines the output. The similarity to a two-layer perceptron can be seen by comparison to Fig. 1.

2 Optimal Hyperplanes

In this section we review the method of optimal hyperplanes (Vapnik, 1982) for separation of training data without errors. In the next section we introduce a notion of soft margins, that will allow for an analytic treatment of learning with errors on the training set.

2.1. The Optimal Hyperplane Algorithm

The set of labeled training patterns

(y1,x1),…,(yℓ,xℓ),yi∈{−1,1}(y_1, \mathbf{x}_1), \ldots, (y_\ell, \mathbf{x}_\ell), \quad y_i \in \{-1, 1\}

is said to be linearly separable if there exists a vector w\mathbf{w} and a scalar bb such that the inequalities

w⋅xi+b≥1if yi=1,w⋅xi+b≤−1if yi=−1,\begin{align*} \mathbf{w} \cdot \mathbf{x}_i + b &\geq 1 \quad \text{if } y_i = 1, \\ \mathbf{w} \cdot \mathbf{x}_i + b &\leq -1 \quad \text{if } y_i = -1, \end{align*}
Figure 4
Classification of an unknown pattern by a support-vector network. The pattern is in input space compared to support vectors. The resulting values are non-linearly transformed. A linear function of these transformed values determine the output of the classifier.

are valid for all elements of the training set (8). Below we write the inequalities (9) in the form⁴:

yi(w⋅xi+b)≥1,i=1,…,ℓ.y_i (\mathbf{w} \cdot \mathbf{x}_i + b) \geq 1, \quad i = 1, \ldots, \ell.

The optimal hyperplane

w0⋅x+b0=0\mathbf{w}_0 \cdot \mathbf{x} + b_0 = 0

is the unique one which separates the training data with a maximal margin: it determines the direction w/∣w∣\mathbf{w}/|\mathbf{w}| where the distance between the projections of the training vectors of two different classes is maximal, recall Fig. 2. This distance ρ(w,b)\rho(\mathbf{w}, b) is given by

ρ(w,b)=min⁡{x:y=1}x⋅w∣w∣−max⁡{x:y=−1}x⋅w∣w∣.\rho(\mathbf{w}, b) = \min_{\{\mathbf{x}: y=1\}} \frac{\mathbf{x} \cdot \mathbf{w}}{|\mathbf{w}|} - \max_{\{\mathbf{x}: y=-1\}} \frac{\mathbf{x} \cdot \mathbf{w}}{|\mathbf{w}|}.

The optimal hyperplane (w0,b0)(\mathbf{w}_0, b_0) is the arguments that maximize the distance (12). It follows from (12) and (10) that

ρ(w0,b0)=2∣w0∣=2w0⋅w0.\rho(\mathbf{w}_0, b_0) = \frac{2}{|\mathbf{w}_0|} = \frac{2}{\sqrt{\mathbf{w}_0 \cdot \mathbf{w}_0}}.

This means that the optimal hyperplane is the unique one that minimizes w⋅w\mathbf{w} \cdot \mathbf{w} under the constraints (10). Constructing an optimal hyperplane is therefore a quadratic programming problem.

Vectors xi\mathbf{x}_i for which yi(w⋅xi+b)=1y_i (\mathbf{w} \cdot \mathbf{x}_i + b) = 1 will be termed support vectors. In Appendix A.1 we show that the vector w0\mathbf{w}_0 that determines the optimal hyperplane can be written as a linear combination of training vectors:

w0=∑i=1ℓyiαi0xi,\mathbf{w}_0 = \sum_{i=1}^{\ell} y_i \alpha_i^0 \mathbf{x}_i,

where αi0≥0\alpha_i^0 \geq 0. Since α>0\alpha > 0 only for support vectors (see Appendix), the expression (14) represents a compact form of writing w0\mathbf{w}_0. We also show that to find the vector of parameters αi\alpha_i:

Λ0T=(α10,…,αℓ0),\Lambda_0^T = (\alpha_1^0, \ldots, \alpha_\ell^0),

one has to solve the following quadratic programming problem:

W(Λ)=ΛT1−12ΛTDΛW(\Lambda) = \Lambda^T \mathbf{1} - \frac{1}{2} \Lambda^T D \Lambda

with respect to ΛT=(α1,…,αℓ)\Lambda^T = (\alpha_1, \ldots, \alpha_\ell), subject to the constraints:

Λ≥0,ΛTY=0,\begin{align*} \Lambda &\geq 0, \\ \Lambda^T Y &= 0, \end{align*}

where 1T=(1,…,1)\mathbf{1}^T = (1, \ldots, 1) is an ℓ\ell-dimensional unit vector, YT=(y1,…,yℓ)Y^T = (y_1, \ldots, y_\ell) is the ℓ\ell-dimensional vector of labels, and DD is a symmetric ℓ×ℓ\ell \times \ell-matrix with elements

Dij=yiyjxi⋅xj,i,j=1,…,ℓ.D_{ij} = y_i y_j \mathbf{x}_i \cdot \mathbf{x}_j, \quad i, j = 1, \ldots, \ell.

The inequality (16) describes the nonnegative quadrant. We therefore have to maximize the quadratic form (15) in the nonnegative quadrant, subject to the constraints (17).

When the training data (8) can be separated without errors we also show in Appendix A the following relationship between the maximum of the functional (15), the pair (Λ0,b0)(\Lambda_0, b_0), and the maximal margin ρ0\rho_0 from (13):

W(Λ0)=2ρ02.W(\Lambda_0) = \frac{2}{\rho_0^2}.

If for some Λ∗\Lambda_* and large constant W0W_0 the inequality

W(Λ∗)>W0W(\Lambda_*) > W_0

is valid, one can accordingly assert that all hyperplanes that separate the training data (8) have a margin

ρ<2W0.\rho < \sqrt{\frac{2}{W_0}}.

If the training set (8) cannot be separated by a hyperplane, the margin between patterns of the two classes becomes arbitrary small, resulting in the value of the functional W(Λ)W(\Lambda) turning arbitrary large. Maximizing the functional (15) under constraints (16) and (17) one therefore either reaches a maximum (in this case one has constructed the hyperplane with the maximal margin ρ0\rho_0), or one finds that the maximum exceeds some given (large) constant W0W_0 (in which case a separation of the training data with a margin larger then 2/W0\sqrt{2/W_0} is impossible).

The problem of maximizing functional (15) under constraints (16) and (17) can be solved very efficiently using the following scheme. Divide the training data into a number of portions with a reasonable small number of training vectors in each portion. Start out by solving the quadratic programming problem determined by the first portion of training data. For this problem there are two possible outcomes: either this portion of the data cannot be separated by a hyperplane (in which case the full set of data as well cannot be separated), or the optimal hyperplane for separating the first portion of the training data is found.

Let the vector that maximizes functional (15) in the case of separation of the first portion be Λ1\Lambda_1. Among the coordinates of vector Λ1\Lambda_1 some are equal to zero. They correspond to non-support training vectors of this portion. Make a new set of training data containing the support vectors from the first portion of training data and the vectors of the second portion that do not satisfy constraint (10), where w is determined by Λ1\Lambda_1. For this set a new functional W2(Λ)W_2(\Lambda) is constructed and maximized at Λ2\Lambda_2. Continuing this process of incrementally constructing a solution vector Λ∗\Lambda_* covering all the portions of the training data one either finds that it is impossible to separate the training set without error, or one constructs the optimal separating hyperplane for the full data set, Λ∗=Λ0\Lambda_* = \Lambda_0. Note, that during this process the value of the functional W(Λ)W(\Lambda) is monotonically increasing, since more and more training vectors are considered in the optimization, leading to a smaller and smaller separation between the two classes.

3 The Soft Margin Hyperplane

Consider the case where the training data cannot be separated without error. In this case one may want to separate the training set with a minimal number of errors. To express this formally let us introduce some non-negative variables ξi≥0, i=1,…,ℓ\xi_i \geq 0,\ i = 1, \ldots, \ell.

We can now minimize the functional

Φ(ξ)=∑i=1ℓξiσ\Phi(\xi) = \sum_{i=1}^{\ell} \xi_i^{\sigma}

for small σ>0\sigma > 0, subject to the constraints

yi(w⋅xi+b)≥1−ξi,i=1,…,ℓ,y_i (\mathbf{w} \cdot \mathbf{x}_i + b) \geq 1 - \xi_i, \quad i = 1, \ldots, \ell,
ξi≥0,i=1,…,ℓ.\xi_i \geq 0, \quad i = 1, \ldots, \ell.

For sufficiently small σ\sigma the functional (21) describes the number of the training errors5^5. Minimizing (21) one finds some minimal subset of training errors:

(yi1,xi1),…,(yik,xik).(y_{i_1}, \mathbf{x}_{i_1}), \ldots, (y_{i_k}, \mathbf{x}_{i_k}).

If these data are excluded from the training set one can separate the remaining part of the training set without errors. To separate the remaining part of the training data one can construct an optimal separating hyperplane.

This idea can be expressed formally as: minimize the functional

12w2+CF(∑i=1ℓξiσ)\frac{1}{2} \mathbf{w}^2 + CF \left( \sum_{i=1}^{\ell} \xi_i^{\sigma} \right)

subject to constraints (22) and (23), where F(u)F(u) is a monotonic convex function and CC is a constant.

For sufficiently large CC and sufficiently small σ\sigma, the vector w0\mathbf{w}_0 and constant b0b_0, that minimize the functional (24) under constraints (22) and (23), determine the hyperplane that minimizes the number of errors on the training set and separate the rest of the elements with maximal margin.

Note, however, that the problem of constructing a hyperplane which minimizes the number of errors on the training set is in general NP-complete. To avoid NP-completeness of our problem we will consider the case of σ=1\sigma = 1 (the smallest value of σ\sigma for which the optimization problem (15) has a unique solution). In this case the functional (24) describes (for sufficiently large CC) the problem of constructing a separating hyperplane which minimizes the sum of deviations, ξ\xi, of training errors and maximizes the margin for the correctly classified vectors. If the training data can be separated without errors the constructed hyperplane coincides with the optimal margin hyperplane.

In contrast to the case with σ<1\sigma < 1 there exists an efficient method for finding the solution of (24) in the case of σ=1\sigma = 1. Let us call this solution the soft margin hyperplane.

In Appendix A we consider the problem of minimizing the functional

12w2+CF(∑i=1ℓξi)\frac{1}{2} \mathbf{w}^2 + CF \left( \sum_{i=1}^{\ell} \xi_i \right)

subject to the constraints (22) and (23), where F(u)F(u) is a monotonic convex function with F(0)=0F(0) = 0. To simplify the formulas we only describe the case of F(u)=u2F(u) = u^2 in this section. For this function the optimization problem remains a quadratic programming problem.

In Appendix A we show that the vector w\mathbf{w}, as for the optimal hyperplane algorithm, can be written as a linear combination of support vectors xi\mathbf{x}_i:

w0=∑i=1ℓαi0yixi.\mathbf{w}_0 = \sum_{i=1}^{\ell} \alpha_i^0 y_i \mathbf{x}_i.

To find the vector ΛT=(α1,…,αℓ)\Lambda^T = (\alpha_1, \ldots, \alpha_{\ell}) one has to solve the dual quadratic programming problem of maximizing

W(Λ,δ)=ΛT1−12[ΛTDΛ+δ2C]W(\Lambda, \delta) = \Lambda^T 1 - \frac{1}{2} \left[ \Lambda^T D \Lambda + \frac{\delta^2}{C} \right]

subject to constraints

ΛTY=0,\Lambda^T \mathbf{Y} = 0,
δ≥0,\delta \geq 0,
0≤Λ≤δ1,0 \leq \Lambda \leq \delta 1,

where 1,Λ,Y,\mathbf{1}, \Lambda, Y, and DD are the same elements as used in the optimization problem for constructing an optimal hyperplane, δ\delta is a scalar, and (29) describes coordinate-wise inequalities.

Note that (29) implies that the smallest admissible value δ\delta in functional (26) is

δ=αmax⁡=max⁡(α1,…,αℓ).\delta = \alpha_{\max} = \max(\alpha_1, \ldots, \alpha_\ell).

Therefore to find a soft margin classifier one has to find a vector Λ\Lambda that maximizes

W(Λ)=ΛT1−12[ΛTDΛ+αmax⁡2C]W(\Lambda) = \Lambda^T \mathbf{1} - \frac{1}{2} \left[ \Lambda^T D \Lambda + \frac{\alpha_{\max}^2}{C} \right]

under the constraints Λ≥0\Lambda \geq 0 and (27). This problem differs from the problem of constructing an optimal margin classifier only by the additional term with αmax⁡\alpha_{\max} in the functional (30). Due to this term the solution to the problem of constructing the soft margin classifier is unique and exists for any data set.

The functional (30) is not quadratic because of the term with αmax⁡\alpha_{\max}. Maximizing (30) subject to the constraints Λ≥0\Lambda \geq 0 and (27) belongs to the group of so-called convex programming problems. Therefore, to construct a soft margin classifier one can either solve the convex programming problem in the ℓ\ell-dimensional space of the parameters Λ\Lambda, or one can solve the quadratic programming problem in the dual ℓ+1\ell + 1 space of the parameters Λ\Lambda and δ\delta. In our experiments we construct the soft margin hyperplanes by solving the dual quadratic programming problem.

4 The Method of Convolution of the Dot-Product in Feature Space

The algorithms described in the previous sections construct hyperplanes in the input space. To construct a hyperplane in a feature space one first has to transform the nn-dimensional input vector x\mathbf{x} into an NN-dimensional feature vector through a choice of an NN-dimensional vector function ϕ\phi:

ϕ:Rn→RN.\phi : \mathbb{R}^n \to \mathbb{R}^N.

An NN dimensional linear separator ww and a bias bb is then constructed for the set of transformed vectors

ϕ(xi)=ϕ1(xi),ϕ2(xi),…,ϕN(xi),i=1,…,ℓ.\phi(\mathbf{x}_i) = \phi_1(\mathbf{x}_i), \phi_2(\mathbf{x}_i), \ldots, \phi_N(\mathbf{x}_i), \quad i = 1, \ldots, \ell.

Classification of an unknown vector x\mathbf{x} is done by first transforming the vector to the separating space (x↦ϕ(x)\mathbf{x} \mapsto \phi(\mathbf{x})) and then taking the sign of the function

f(x)=w⋅ϕ(x)+b.f(\mathbf{x}) = \mathbf{w} \cdot \phi(\mathbf{x}) + b.

According to the properties of the soft margin classifier method the vector w\mathbf{w} can be written as a linear combination of support vectors (in the feature space). That means

w=∑i=1ℓyiαiϕ(xi).\mathbf{w} = \sum_{i=1}^\ell y_i \alpha_i \phi(\mathbf{x}_i).

SUPPORT-VECTOR NETWORKS

The linearity of the dot-product implies, that the classification function ff in (31) for an unknown vector x\mathbf{x} only depends on the dot-products:

f(x)=ϕ(x)⋅w+b=∑i=1ℓyiαiϕ(x)⋅ϕ(xi)+b.f(\mathbf{x}) = \phi(\mathbf{x}) \cdot \mathbf{w} + b = \sum_{i=1}^{\ell} y_i \alpha_i \phi(\mathbf{x}) \cdot \phi(\mathbf{x}_i) + b.

The idea of constructing support-vector networks comes from considering general forms of the dot-product in a Hilbert space (Anderson & Bahadur, 1966):

ϕ(u)⋅ϕ(v)≡K(u,v).\phi(\mathbf{u}) \cdot \phi(\mathbf{v}) \equiv K(\mathbf{u}, \mathbf{v}).

According to the Hilbert-Schmidt Theory (Courant & Hilbert, 1953) any symmetric function K(u,v)K(\mathbf{u}, \mathbf{v}), with K(u,v)∈L2K(\mathbf{u}, \mathbf{v}) \in L_2, can be expanded in the form

K(u,v)=∑i=1∞λiϕi(u)⋅ϕi(v),K(\mathbf{u}, \mathbf{v}) = \sum_{i=1}^{\infty} \lambda_i \phi_i(\mathbf{u}) \cdot \phi_i(\mathbf{v}),

where λi∈R\lambda_i \in \mathfrak{R} and ϕi\phi_i are eigenvalues and eigenfunctions

∫K(u,v)ϕi(u)du=λiϕi(v).\int K(\mathbf{u}, \mathbf{v}) \phi_i(\mathbf{u}) d\mathbf{u} = \lambda_i \phi_i(\mathbf{v}).

of the integral operator defined by the kernel K(u,v)K(\mathbf{u}, \mathbf{v}). A sufficient condition to ensure that (34) defines a dot-product in a feature space is that all the eigenvalues in the expansion (35) are positive. To guarantee that these coefficients are positive, it is necessary and sufficient (Mercer’s Theorem) that the condition

∫∫K(u,v)g(u)g(v)dudv>0\int \int K(\mathbf{u}, \mathbf{v}) g(\mathbf{u}) g(\mathbf{v}) d\mathbf{u} d\mathbf{v} > 0

is satisfied for all gg such that

∫g2(u)du<∞.\int g^2(\mathbf{u}) d\mathbf{u} < \infty.

Functions that satisfy Mercer’s theorem can therefore be used as dot-products. Aizerman, Braverman and Rozonoer (1964) consider a convolution of the dot-product in the feature space given by function of the form

K(u,v)=exp⁡(−∣u−v∣σ),K(\mathbf{u}, \mathbf{v}) = \exp \left( - \frac{|\mathbf{u} - \mathbf{v}|}{\sigma} \right),

which they call Potential Functions.

However, the convolution of the dot-product in feature space can be given by any function satisfying Mercer’s condition; in particular, to construct a polynomial classifier of degree dd in nn-dimensional input space one can use the following function

K(u,v)=(u⋅v+1)d.K(\mathbf{u}, \mathbf{v}) = (\mathbf{u} \cdot \mathbf{v} + 1)^d.

Using different dot-products K(u,v)K(\mathbf{u}, \mathbf{v}) one can construct different learning machines with arbitrary types of decision surfaces (Boser, Guyon & Vapnik, 1992). The decision surface of these machines has a form

f(x)=∑i=1ℓyiαiK(x,xi),f(\mathbf{x}) = \sum_{i=1}^{\ell} y_i \alpha_i K(\mathbf{x}, \mathbf{x}_i),

where xi\mathbf{x}_i is the image of a support vector in input space and αi\alpha_i is the weight of a support vector in the feature space.

To find the vectors xi\mathbf{x}_i and weights αi\alpha_i one follows the same solution scheme as for the original optimal margin classifier or soft margin classifier. The only difference is that instead of matrix DD (determined by (18)) one uses the matrix

Dij=yiyjK(xi,xj),i, j=1,…,l.D_{ij} = y_i y_j K(\mathbf{x}_i, \mathbf{x}_j), \qquad i,\ j = 1, \ldots, l.

5 General Features of Support-Vector Networks

5.1. Constructing the Decision Rules by Support-Vector Networks is Efficient

To construct a support-vector network decision rule one has to solve a quadratic optimization problem:

W(Λ)=ΛT1−12[ΛTDΛ+δ2C],W(\Lambda) = \Lambda^T 1 - \frac{1}{2} \left[ \Lambda^T D \Lambda + \frac{\delta^2}{C} \right],

under the simple constraints:

0≤Λ≤δ1,0 \leq \Lambda \leq \delta 1,
ΛTY=0,\Lambda^T Y = 0,

where matrix

Dij=yiyjK(xi,xj),i, j=1,…,l.D_{ij} = y_i y_j K(\mathbf{x}_i, \mathbf{x}_j), \qquad i,\ j = 1, \ldots, l.

is determined by the elements of the training set, and K(u,v)K(\mathbf{u}, \mathbf{v}) is the function determining the convolution of the dot-products.

The solution to the optimization problem can be found efficiently by solving intermediate optimization problems determined by the training data, that currently constitute the support vectors. This technique is described in Section 3. The obtained optimal decision function is unique6^6.

Each optimization problem can be solved using any standard techniques.

5.2. The Support-Vector Network is a Universal Machine

By changing the function K(u,v)K(\mathbf{u}, \mathbf{v}) for the convolution of the dot-product one can implement different networks.

In the next section we will consider support-vector network machines that use polynomial decision surfaces. To specify polynomials of different order dd one can use the following functions for convolution of the dot-product

K(u,v)=(u⋅v+1)d.K(\mathbf{u}, \mathbf{v}) = (\mathbf{u} \cdot \mathbf{v} + 1)^d.

Radial Basis Function machines with decision functions of the form

f(x)=sign⁡(∑i=1nαiexp⁡{∣x−xi∣2σ2})f(\mathbf{x}) = \operatorname{sign}\left( \sum_{i=1}^n \alpha_i \exp\left\{ \frac{|\mathbf{x} - \mathbf{x}_i|^2}{\sigma^2} \right\} \right)

can be implemented by using convolutions of the type

K(u,v)=exp⁡{−∣u−v∣2σ2}.K(\mathbf{u}, \mathbf{v}) = \exp\left\{ -\frac{|\mathbf{u} - \mathbf{v}|^2}{\sigma^2} \right\}.

In this case the support-vector network machine will construct both the centers xi\mathbf{x}_i of the approximating function and the weights αi\alpha_i.

One can also incorporate a priori knowledge of the problem at hand by constructing special convolution functions. Support-vector networks are therefore a rather general class of learning machines which changes its set of decision functions simply by changing the form of the dot-product.

5.3. Support-Vector Networks and Control of Generalization Ability

To control the generalization ability of a learning machine one has to control two different factors: the error-rate on the training data and the capacity of the learning machine as measured by its VC-dimension (Vapnik, 1982). There exists a bound for the probability of errors on the test set of the following form: with probability 1−η1 - \eta the inequality

Pr⁡(test error)≤Frequency(training error)+Confidence Interval\Pr(\text{test error}) \leq \text{Frequency}(training\ error) + \text{Confidence Interval}

is valid. In the bound (38) the confidence interval depends on the VC-dimension of the learning machine, the number of elements in the training set, and the value of η\eta.

The two factors in (38) form a trade-off: the smaller the VC-dimension of the set of functions of the learning machine, the smaller the confidence interval, but the larger the value of the error frequency.

A general way for resolving this trade-off was proposed as the principle of structural risk minimization: for the given data set one has to find a solution that minimizes their sum. A particular case of structural risk minimization principle is the Occam-Razor principle: keep the first term equal to zero and minimize the second one.

It is known that the VC-dimension of the set of linear indicator functions

I(x)=sign⁡(w⋅x+b),∣x∣≤CxI(\mathbf{x}) = \operatorname{sign}(\mathbf{w} \cdot \mathbf{x} + b), \quad |\mathbf{x}| \leq C_x

with fixed threshold bb is equal to the dimensionality of the input space. However, the VC-dimension of the subset

I(x)=sign⁡(w⋅x+b),∣x∣≤C,∣w∣≤CwI(\mathbf{x}) = \operatorname{sign}(\mathbf{w} \cdot \mathbf{x} + b), \quad |\mathbf{x}| \leq C, \quad |\mathbf{w}| \leq C_w

(the set of functions with bounded norm of the weights) can be less than the dimensionality of the input space and will depend on CwC_w.

From this point of view the optimal margin classifier method executes an Occam-Razor principle. It keeps the first term of (38) equal to zero (by satisfying the inequality (9)) and it minimizes the second term (by minimizing the functional w⋅ww \cdot w). This minimization prevents an over-fitting problem.

However, even in the case where the training data are separable one may obtain better generalization by minimizing the confidence term in (38) even further at the expense of errors on the training set. In the soft margin classifier method this can be done by choosing appropriate values of the parameter CC. In the support-vector network algorithm one can control the trade-off between complexity of decision rule and frequency of error by changing the parameter CC, even in the more general case where there exists no solution with zero error on the training set. Therefore the support-vector network can control both factors for generalization ability of the learning machine.

6 Experimental Analysis

To demonstrate the support-vector network method we conduct two types of experiments. We construct artificial sets of patterns in the plane and experiment with 2nd degree polynomial decision surfaces, and we conduct experiments with the real-life problem of digit recognition.

6.1. Experiments in the Plane

Using dot-products of the form

K(u,v)=(u⋅v+1)dK(\mathbf{u}, \mathbf{v}) = (\mathbf{u} \cdot \mathbf{v} + 1)^d

with d=2d = 2 we construct decision rules for different sets of patterns in the plane. Results of these experiments can be visualized and provide nice illustrations of the power of the algorithm. Examples are shown in Fig. 5. The 2 classes are represented by black and white

Figure.

Figure 5
Examples of the dot-product (39) with d=2d = 2. Support patterns are indicated with double circles, errors with a cross.

SUPPORT-VECTOR NETWORKS bullets. In the figure we indicate support patterns with a double circle, and errors with a cross. The solutions are optimal in the sense that no 2nd degree polynomials exist that make less errors. Notice that the numbers of support patterns relative to the number of training patterns are small.

Figure 6
Examples of patterns with labels from the US Postal Service digit database.
6.2. Experiments with Digit Recognition

Our experiments for constructing support-vector networks make use of two different databases for bit-mapped digit recognition, a small and a large database. The small one is a US Postal Service database that contains 7,300 training patterns and 2,000 test patterns. The resolution of the database is 16×1616 \times 16 pixels, and some typical examples are shown in Fig. 6. On this database we report experimental research with polynomials of various degree.

The large database consists of 60,000 training and 10,000 test patterns, and is a 50-50 mixture of the NIST7^7 training and test sets. The resolution of these patterns is 28×2828 \times 28 yielding an input dimensionality of 784. On this database we have only constructed a 4th degree polynomial classifier. The performance of this classifier is compared to other types of learning machines that took part in a benchmark study (Bottou, 1994).

In all our experiments ten separators, one for each class, are constructed. Each hypersurface makes use of the same dot product and pre-processing of the data. Classification of an unknown patterns is done according to the maximum output of these ten classifiers.

6.2.1. Experiments with US Postal Service Database. The US Postal Service Database has been recorded from actual mail pieces and results from this database have been reported by several researchers. In Table 1 we list the performance of various classifiers collected

Table 1. Performance of various classifiers collected from publications and own experiments. For references see text.

ClassifierRaw error, %
Human performance2.5
Decision tree, CART17
Decision tree, C4.516
Best 2 layer neural network6.6
Special architecture 5 layer network5.1

Table 2. Results obtained for dot products of polynomials of various degree. The number of "support vectors" is a mean value per classifier.

Degree of polynomialRaw error, %Support vectorsDimensionality of feature space
112.0200256
24.7127~33000
34.4148~1×1061 \times 10^6
44.3165~1×1091 \times 10^9
54.3175~1×10121 \times 10^{12}
64.2185~1×10141 \times 10^{14}
74.3190~1×10161 \times 10^{16}

from publications and own experiments. The result of human performance was reported by J. Bromley & E. Sackinger (Bromley & Sackinger, 1991). The result with CART was carried out by Daryl Pregibon and Michael D. Riley at Bell Labs., Murray Hill, NJ. The results of C4.5 and the best 2-layer neural network (with optimal number of hidden units) were obtained specially for this paper by Corinna Cortes and Bernard Schoelkopf respectively. The result with a special purpose neural network architecture with 5 layers, LeNet1, was obtained by Y. LeCun et al. (1990).

On the experiments with the US Postal Service Database we used pre-processing (centering, de-slanting and smoothing) to incorporate knowledge about the invariances of the problem at hand. The effect of smoothing of this database as a pre-processing for support-vector networks was investigated in (Boser, Guyon & Vapnik, 1992). For our experiments we chose the smoothing kernel as a Gaussian with standard deviation σ=0.75\sigma = 0.75 in agreement with (Boser, Guyon & Vapnik, 1992).

In the experiments with this database we constructed polynomial indicator functions based on dot-products of the form (39). The input dimensionality was 256, and the order of the polynomial ranged from 1 to 7. Table 2 describes the results of the experiments. The training data are not linearly separable.

Notice that the number of support vectors increases very slowly. The 7 degree polynomial has only 30% more support vectors than the 3rd degree polynomial—and even less than the first degree polynomial. The dimensionality of the feature space for a 7 degree polynomial is however 101010^{10} times larger than the dimensionality of the feature space for a 3rd degree polynomial classifier. Note that performance almost does not change with increasing dimensionality of the space—indicating no over-fitting problems.

The relatively high number of support vectors for the linear separator is due to non-separability: the number 200 includes both support vectors and training vectors with a non-zero ξ\xi-value. If ξ>1\xi > 1 the training vector is misclassified; the number of mis-classifications on the training set averages to 34 per classifier for the linear case. For a 2nd degree classifier the total number of mis-classifications on the training set is down to 4. These 4 patterns are shown in Fig. 7.

It is remarkable that in all our experiments the bound for generalization ability (5) holds when we consider the number of obtained support vectors instead of the expectation value of this number. In all cases the upper bound on the error probability for the single classifier does not exceed 3% (on the test data the actual error does not exceed 1.5% for the single classifier).

SUPPORT-VECTOR NETWORKS

Figure.

Figure 7
Labeled examples of errors on the training set for the 2nd degree polynomial support-vector classifier.

The training time for construction of polynomial classifiers does not depend on the degree of the polynomial—only the number of support vectors. Even in the worst case it is faster than the best performing neural network, constructed specially for the task, LeNet1 (LeCun, et al., 1990). The performance of this neural network is 5.1% raw error. Polynomials with degree 2 or higher outperform LeNet1.

6.2.2. Experiments with the NIST Database. The NIST database was used for benchmark studies conducted over just 2 weeks. The limited time frame enabled only the construction of 1 type of classifier, for which we chose a 4th degree polynomial with no pre-processing. Our choice was based on our experience with the US Postal database.

Table 3 lists the number of support vectors for each of the 10 classifiers and gives the performance of the classifier on the training and test sets. Notice that even polynomials of degree 4 (that have more than 10810^8 free parameters) commit errors on this training set. The average frequency of training errors is 0.02%∼120.02\% \sim 12 per class. The 14 misclassified test patterns for classifier 1 are shown in Fig. 8. Notice again how the upper bound (5) holds for the obtained number of support vectors.

The combined performance of the ten classifiers on the test set is 1.1% error. This result should be compared to that of other participating classifiers in the benchmark study. These other classifiers include a linear classifier, a k=3k = 3-nearest neighbor classifier with 60,000 prototypes, and two neural networks specially constructed for digit recognition (LeNet1 and LeNet4). The authors only contributed with results for support-vector networks. The results of the benchmark are given in Fig. 9.

We conclude this section by citing the paper (Bottou, et al., 1994) describing results of the benchmark:

For quite a long time LeNet1 was considered state of the art.... Through a series of experiments in architecture, combined with an analysis of the characteristics of recognition error, LeNet4 was crafted.... The support-vector network has excellent accuracy, which is most remarkable, because unlike the other high performance classifiers, it does not include knowledge

Table 3. Results obtained for a 4th degree polynomial classifier on the NIST database. The size of the training set is 60,000, and the size of the test set is 10,000 patterns.

Cl. 0Cl. 1Cl. 2Cl. 3Cl. 4Cl. 5Cl. 6Cl. 7Cl. 8Cl. 9
Supp. patt.137998919581900122420241527206423322765
Error train7168112481641
Error test19143535364932434863
Figure 8
The 14 misclassified test patterns with labels for classifier 1. Patterns with label “1” are false negative. Patterns with other labels are false positive.
Figure 9
Results from the benchmark study.

about the geometry of the problem. In fact the classifier would do as well if the image pixels were encrypted e.g. by a fixed, random permutation.

The last remark suggests that further improvement of the performance of the support-vector network can be expected from the construction of functions for the dot-product K(u,v)K(\mathbf{u}, \mathbf{v}) that reflect a priori information about the problem at hand.

7 Conclusion

This paper introduces the support-vector network as a new learning machine for two-group classification problems.

The support-vector network combines 3 ideas: the solution technique from optimal hyperplanes (that allows for an expansion of the solution vector on support vectors), the idea of convolution of the dot-product (that extends the solution surfaces from linear to non-linear), and the notion of soft margins (to allow for errors on the training set).

The algorithm has been tested and compared to the performance of other classical algorithms. Despite the simplicity of the design in its decision surface the new algorithm exhibits a very fine performance in the comparison study.

Other characteristics like capacity control and ease of changing the implemented decision surface render the support-vector network an extremely powerful and universal learning machine.

A. Constructing Separating Hyperplanes

In this appendix we derive both the method for constructing optimal hyperplanes and soft margin hyperplanes.

A.1. Optimal Hyperplane Algorithm

It was shown in Section 2, that to construct the optimal hyperplane

w0⋅x+b0=0,w_0 \cdot x + b_0 = 0,

which separates a set of training data

(y1,x1),…,(yℓ,xℓ),(y_1, x_1), \ldots, (y_\ell, x_\ell),

one has to minimize a functional

Φ=w⋅w,\Phi = w \cdot w,

subject to the constraints

yi(xi⋅w+b)≥1,i=1,…,ℓ.y_i(x_i \cdot w + b) \geq 1, \quad i = 1, \ldots, \ell.

To do this we use a standard optimization technique. We construct a Lagrangian

L(w,b,Λ)=12w⋅w−∑i=1ℓαi[yi(xi⋅w+b)−1],L(w, b, \Lambda) = \frac{1}{2} w \cdot w - \sum_{i=1}^\ell \alpha_i [y_i(x_i \cdot w + b) - 1],

where ΛT=(α1,…,αℓ)\Lambda^T = (\alpha_1, \ldots, \alpha_\ell) is the vector of non-negative Lagrange multipliers corresponding to the constraints (41).

It is known that the solution to the optimization problem is determined by the saddle point of this Lagrangian in the 2ℓ+12\ell + 1-dimensional space of w,Λ,w, \Lambda, and bb, where the minimum should be taken with respect to the parameters ww and bb, and the maximum should be taken with respect to the Lagrange multipliers Λ\Lambda.

At the point of the minimum (with respect to ww and bb) one obtains:

∂L(w,b,Λ)∂w∣w=w0=(w0−∑i=1ℓαiyixi)=0,\left. \frac{\partial L(w, b, \Lambda)}{\partial w} \right|_{w=w_0} = \left( w_0 - \sum_{i=1}^\ell \alpha_i y_i x_i \right) = 0,
∂L(w,b,Λ)∂b∣b=b0=∑αiyiαi=0.\left. \frac{\partial L(w, b, \Lambda)}{\partial b} \right|_{b=b_0} = \sum_{\alpha_i} y_i \alpha_i = 0.

From equality (43) we derive

w0=∑i=1ℓαiyixi,w_0 = \sum_{i=1}^{\ell} \alpha_i y_i x_i,

which expresses, that the optimal hyperplane solution can be written as a linear combination of training vectors. Note, that only training vectors xix_i with αi>0\alpha_i > 0 have an effective contribution to the sum (45).

Substituting (45) and (44) into (42) we obtain

W(Λ)=∑i=1ℓαi−12w0⋅w0W(\Lambda) = \sum_{i=1}^{\ell} \alpha_i - \frac{1}{2} w_0 \cdot w_0
=∑i=1ℓαi−12∑i=1ℓ∑j=1ℓαiαjyiyjxi⋅xj.= \sum_{i=1}^{\ell} \alpha_i - \frac{1}{2} \sum_{i=1}^{\ell} \sum_{j=1}^{\ell} \alpha_i \alpha_j y_i y_j x_i \cdot x_j.

In vector notation this can be rewritten as

W(Λ)=ΛT1−12ΛTDΛ,W(\Lambda) = \Lambda^T 1 - \frac{1}{2} \Lambda^T D \Lambda,

where 11 is an ll-dimensional unit vector, and DD is a symmetric ℓ×ℓ\ell \times \ell-matrix with elements

Dij=yiyjxi⋅xj.D_{ij} = y_i y_j x_i \cdot x_j.

To find the desired saddle point it remains to locate the maximum of (48) under the constraints (43)

ΛTY=0,\Lambda^T Y = 0,

where YT=(y1,…,yℓ)Y^T = (y_1, \ldots, y_\ell), and

Λ≥0.\Lambda \geq 0.

The Kuhn-Tucker theorem plays an important part in the theory of optimization. According to this theorem, at our saddle point in w0,b0,Λ0w_0, b_0, \Lambda_0, any Lagrange multiplier αi0\alpha_i^0 and its corresponding constraint are connected by an equality

αi[yi(xi⋅w0+b0)−1]=0,i=1,…,ℓ.\alpha_i [y_i (x_i \cdot w_0 + b_0) - 1] = 0, \quad i = 1, \ldots, \ell.

From this equality comes that non-zero values αi\alpha_i are only achieved in the cases where

yi(xi⋅w0+b0)−1=0.y_i (x_i \cdot w_0 + b_0) - 1 = 0.

In other words: αi≠0\alpha_i \neq 0 only for cases were the inequality is met as an equality. We call vectors xix_i for which

yi(xi⋅w0+b0)=1y_i (x_i \cdot w_0 + b_0) = 1

for support-vectors. Note, that in this terminology the Eq. (45) states that the solution vector w0w_0 can be expanded on support vectors.

Another observation, based on the Kuhn-Tucker Eqs. (44) and (45) for the optimal solution, is the relationship between the maximal value W(Λ0)W(\Lambda_0) and the separation distance ρ0\rho_0:

w0⋅w0=∑i=1ℓαi0yixi⋅w0=∑i=1ℓαi0(1−yib0)=∑i=1ℓαi0.\mathbf{w}_0 \cdot \mathbf{w}_0 = \sum_{i=1}^{\ell} \alpha_i^0 y_i \mathbf{x}_i \cdot \mathbf{w}_0 = \sum_{i=1}^{\ell} \alpha_i^0 (1 - y_i b_0) = \sum_{i=1}^{\ell} \alpha_i^0.

Substituting this equality into the expression (46) for W(Λ0)W(\Lambda_0) we obtain

W(Λ0)=∑i=1ℓαi0−12w0⋅w0=w0⋅w02.W(\Lambda_0) = \sum_{i=1}^{\ell} \alpha_i^0 - \frac{1}{2} \mathbf{w}_0 \cdot \mathbf{w}_0 = \frac{\mathbf{w}_0 \cdot \mathbf{w}_0}{2}.

Taking into account the expression (13) from Section 2 we obtain

W(Λ0)=2ρ02,W(\Lambda_0) = \frac{2}{\rho_0^2},

where ρ0\rho_0 is the margin for the optimal hyperplane.

A.2. Soft Margin Hyperplane Algorithm

Below we first consider the case of F(u)=ukF(u) = u^k. Then we describe the general result for a monotonic convex function F(u)F(u).

To construct a soft margin separating hyperplane we maximize the functional

Φ=12w⋅w+C(∑i=1ℓξi)k,k>1,\Phi = \frac{1}{2} \mathbf{w} \cdot \mathbf{w} + C \left( \sum_{i=1}^{\ell} \xi_i \right)^k, \quad k > 1,

under the constraints

yi(xi⋅w+b)≥1−ξi,i=1,…,ℓ,(49)y_i (\mathbf{x}_i \cdot \mathbf{w} + b) \geq 1 - \xi_i, \qquad i = 1, \ldots, \ell, \tag{49}
(49)
ξi≥0,i=1,…,ℓ.(50)\xi_i \geq 0, \qquad i = 1, \ldots, \ell. \tag{50}
(50)

The Lagrange functional for this problem is

L(w,ξ,b,Λ,R)L(\mathbf{w}, \xi, b, \Lambda, \mathbf{R})
=12w⋅w+C(∑i=1ℓξi)k−∑i=1ℓαi[yi(xi⋅w+b)−1+ξi]−∑i=1ℓriξi,(51)= \frac{1}{2} \mathbf{w} \cdot \mathbf{w} + C \left( \sum_{i=1}^{\ell} \xi_i \right)^k - \sum_{i=1}^{\ell} \alpha_i [y_i (\mathbf{x}_i \cdot \mathbf{w} + b) - 1 + \xi_i] - \sum_{i=1}^{\ell} r_i \xi_i, \tag{51}
(51)

where the non-negative multipliers ΛT=(α1,α2,…,αl)\Lambda^T = (\alpha_1, \alpha_2, \ldots, \alpha_l) arise from the constraint (49), and the multipliers RT=(r1,r2,…,rl)\mathbf{R}^T = (r_1, r_2, \ldots, r_l) enforce the constraint (50).

We have to find the saddle point of this functional (the minimum with respect to the variables wi,b,\mathbf{w}_i, b, and ξi\xi_i, and the maximum with respect to the variables αi\alpha_i and rir_i).

Let us use the conditions for the minimum of this functional at the extremum point:

∂L∂w∣w=w0=w0−∑i=1ℓαiyixi=0,(52)\left. \frac{\partial L}{\partial \mathbf{w}} \right|_{\mathbf{w} = \mathbf{w}_0} = \mathbf{w}_0 - \sum_{i=1}^{\ell} \alpha_i y_i \mathbf{x}_i = 0, \tag{52}
(52)
∂L∂b∣b=b0=∑i=1ℓαiyi=0,\left. \frac{\partial L}{\partial b} \right|_{b=b_0} = \sum_{i=1}^{\ell} \alpha_i y_i = 0,

(53)

∂L∂ξi∣ξi=ξi0=kC(∑i=1ℓξi0)k−1−αi−ri.\left. \frac{\partial L}{\partial \xi_i} \right|_{\xi_i=\xi_i^0} = kC \left( \sum_{i=1}^{\ell} \xi_i^0 \right)^{k-1} - \alpha_i - r_i.

(54)

If we denote

∑i=1ℓξi0=(δCk)1k−1,\sum_{i=1}^{\ell} \xi_i^0 = \left( \frac{\delta}{Ck} \right)^{\frac{1}{k-1}},

(55) we can rewrite Eq. (54) as

δ−αi−ri=0.\delta - \alpha_i - r_i = 0.

(56)

From the equalities (52)-(55) we find

w0=∑i=1ℓαiyixi,w_0 = \sum_{i=1}^{\ell} \alpha_i y_i x_i,
∑i=1ℓαiyi=0,\sum_{i=1}^{\ell} \alpha_i y_i = 0,

(57)

δ=αi+ri.\delta = \alpha_i + r_i.

(58)

Substituting the expressions for w0,b0,w_0, b_0, and δ\delta into the Lagrange functional (51) we obtain

W(Λ,δ)=∑i=1ℓαi−12∑i=1ℓ∑j=1ℓαiαjyiyjxi⋅xj−δk/k−1(kC)1/k−1(1−1k).W(\Lambda, \delta) = \sum_{i=1}^{\ell} \alpha_i - \frac{1}{2} \sum_{i=1}^{\ell} \sum_{j=1}^{\ell} \alpha_i \alpha_j y_i y_j x_i \cdot x_j - \frac{\delta^{k/k-1}}{(kC)^{1/k-1}} \left( 1 - \frac{1}{k} \right).

(59)

To find the soft margin hyperplane solution one has to maximize the form functional (59) under the constraints (57)-(58) with respect to the non-negative variables αi,ri\alpha_i, r_i with i=1,…,li = 1, \ldots, l. In vector notation (59) can be rewritten as

W(Λ,δ)=ΛT1−[12ΛTDΛ+δk/k−1(kC)1/k−1(1−1k)],W(\Lambda, \delta) = \Lambda^T 1 - \left[ \frac{1}{2} \Lambda^T D \Lambda + \frac{\delta^{k/k-1}}{(kC)^{1/k-1}} \left( 1 - \frac{1}{k} \right) \right],

(60) where Λ\Lambda and DD are as defined above. To find the desired saddle point one therefore has to find the maximum of (60) under the constraints

ΛTY=0,\Lambda^T Y = 0,

(61)

Λ+R=δ1,\Lambda + R = \delta 1,

(62)

Λ≥0,\Lambda \geq 0,

(63) and

R≥0.R \geq 0.

(64)

From (62) and (64) one obtains that the vector Λ\Lambda should satisfy the conditions

0≤Λ≤δ1.0 \leq \Lambda \leq \delta 1.

(65)

From conditions (62) and (64) one can also conclude that to maximize (60)

δ=αmax⁡=max⁡(α1,…,αℓ).\delta = \alpha_{\max} = \max(\alpha_1, \ldots, \alpha_\ell).

Substituting this value of δ\delta into (60) we obtain

W(Λ)=ΛT1−[12ΛTDΛ+αmax⁡k/k−1(kC)1/k−1(1−1k)].W(\Lambda) = \Lambda^T 1 - \left[ \frac{1}{2} \Lambda^T D \Lambda + \frac{\alpha_{\max}^{k/k-1}}{(kC)^{1/k-1}} \left( 1 - \frac{1}{k} \right) \right].

To find the soft margin hyperplane one can therefore either find the maximum of the quadratic form (51) under the constraints (61) and (65), or one has to find the maximum of the convex function (60) under the constraints (61) and (56). For the experiments reported in this paper we used k=2k = 2 and solved the quadratic programming problem (51).

For the case of F(u)=uF(u) = u the same technique brings us to the problem of solving the following quadratic optimization problem: minimize the functional

W(Λ)=ΛT1−12ΛTDΛ,W(\Lambda) = \Lambda^T 1 - \frac{1}{2} \Lambda^T D \Lambda,

under the constraints

0≤Λ≤C1,0 \leq \Lambda \leq C 1,

and

ΛTY=0.\Lambda^T Y = 0.

The general solution for the case of a monotone convex function F(u)F(u) can also be obtained from this technique. The soft margin hyperplane has a form

w=∑i=1ℓαiyixi,w = \sum_{i=1}^\ell \alpha_i y_i x_i,

where Λ0T=(α00,…,αℓ0)\Lambda_0^T = (\alpha_0^0, \ldots, \alpha_\ell^0) is the solution of the following dual convex programming problem: maximize the functional

W(Λ)=ΛT1−[12ΛTDΛ+(αmax⁡f−1(αmax⁡C))−CF(f−1(αmax⁡C))],W(\Lambda) = \Lambda^T 1 - \left[ \frac{1}{2} \Lambda^T D \Lambda + \left( \alpha_{\max} f^{-1} \left( \frac{\alpha_{\max}}{C} \right) \right) - CF \left( f^{-1} \left( \frac{\alpha_{\max}}{C} \right) \right) \right],

under the constraints

ΛTY=0,\Lambda^T Y = 0,
Λ≥0,\Lambda \geq 0,

where we denote

f(u)=F′(u).f(u) = F'(u).

For convex monotone functions F(u)F(u) with F(0)=0F(0) = 0 the following inequality is valid:

uF′(u)>F(u).u F'(u) > F(u).

Therefore the second term in square brackets is positive and goes to infinity when αmax⁡\alpha_{\max} goes to infinity.

Finally, we can consider the hyperplane that minimizes the form

12(w⋅w+∑i=1ℓξi2)\frac{1}{2} \left( \mathbf{w} \cdot \mathbf{w} + \sum_{i=1}^{\ell} \xi_i^2 \right)

subject to the constraints (49)-(50), where the second term minimizes the least square value for the errors. This lead to the following quadratic programming problem: maximize the functional

W(Λ)=ΛT1−12[ΛTDΛ+1CΛTΛ]W(\Lambda) = \Lambda^T \mathbf{1} - \frac{1}{2} \left[ \Lambda^T D \Lambda + \frac{1}{C} \Lambda^T \Lambda \right]

in the non-negative quadrant Λ≥0\Lambda \geq 0 subject to the constraint ΛTY=0\Lambda^T Y = 0.

Notes

  1. The optimal coefficient for τ\tau was found in the sixties (Anderson & Bahadur, 1966).
  2. Recall Fisher’s concerns about small amounts of data and the quadratic discriminant function.
  3. With this name we emphasize how crucial the idea of expanding the solution on support vectors is for these learning machines. In the support-vectors learning algorithm the complexity of the construction does not depend on the dimensionality of the feature space, but on the number of support vectors.
  4. Note that in the inequalities (9) and (10) the right-hand side, but not vector w, is normalized.
  5. A training error is here defined as a pattern where the inequality (22) holds with ξ>0\xi > 0.
  6. The decision function is unique but not its expansion on support vectors.
  7. National Institute for Standards and Technology, Special Database 3.

References

  1. Aizerman, M., Braverman, E., & Rozonoer, L. (1964). Theoretical foundations of the potential function method in pattern recognition learning. Automation and Remote Control, 25:821–837.
  2. Anderson, T.W., & Bahadur, R.R. (1966). Classification into two multivariate normal distributions with different covariance matrices. Ann. Math. Stat., 33:420–431.
  3. Boser, B.E., Guyon, I., & Vapnik, V.N. (1992). A training algorithm for optimal margin classifiers. In Proceedings of the Fifth Annual Workshop of Computational Learning Theory, 5, 144–152, Pittsburgh, ACM.
  4. Bottou, L., Cortes, C., Denker, J.S., Drucker, H., Guyon, I., Jackel, L.D., LeCun, Y., Sackinger, E., Simard, P., Vapnik, V., & Miller, U.A. (1994). Comparison of classifier methods: A case study in handwritten digit recognition. Proceedings of 12th International Conference on Pattern Recognition and Neural Network.
  5. Bromley, J., & Sackinger, E. (1991). Neural-network and k-nearest-neighbor classifiers. Technical Report 11359-910819-16TM, AT&T.
  6. Courant, R., & Hilbert, D. (1953). Methods of Mathematical Physics, Interscience, New York.
  7. Fisher, R.A. (1936). The use of multiple measurements in taxonomic problems. Ann. Eugenics, 7:111–132.
  8. LeCun, Y. (1985). Une procedure d’apprentissage pour reseau a seuil assymetrique. Cognitiva 85: A la Frontiere de l’Intelligence Artificielle des Sciences de la Connaissance des Neurosciences, 599–604, Paris.
  9. LeCun, Y., Boser, B., Denker, J.S., Henderson, D., Howard, R.E., Hubbard, W., & Jackel, L.D. (1990). Handwritten digit recognition with a back-propagation network. Advances in Neural Information Processing Systems, 2, 396–404, Morgan Kaufman.
  10. Parker, D.B. (1985). Learning logic. Technical Report TR-47, Center for Computational Research in Economics and Management Science, Massachusetts Institute of Technology, Cambridge, MA.
  11. Rosenblatt, F. (1962). Principles of Neurodynamics, Spartan Books, New York. SUPPORT-VECTOR NETWORKS
  12. Rumelhart, D.E., Hinton, G.E., & Williams, R.J. (1986). Learning internal representations by backpropagating errors. Nature, 323:533–536.
  13. Rumelhart, D.E., Hinton, G.E., & Williams, R.J. (1987). Learning internal representations by error propagation. In James L. McClelland & David E. Rumelhart (Eds.), Parallel Distributed Processing, 1, 318–362, MIT Press.
  14. Vapnik, V.N. (1982). Estimation of Dependences Based on Empirical Data, Addendum 1, New York: Springer-Verlag. Received May 15, 1993 Accepted February 20, 1995 Final Manuscript March 8, 1995

Read off the page by a vision model reading the page images using olmOCR-2-7B-1025-FP8.