|
Both LDA and logistic regression yield a linear decision boundary. However, the criteria used to determine this boundary are fundamentally different.
SVM (CV95), like LDA and logistic regression, yields a linear classifier based on a discriminant function of the form shown in equation (5.5). However, the approach is different. The objective of SVM is to determine, among all hyperplanes that correctly separate the two classes, the one that maximizes the separation margin between the training examples and the decision boundary (decision boundary). The underlying idea is that a wider margin generally leads to better classifier generalization and greater robustness to variations in the data.
Let the classification classes be defined as those typical of a binary problem, in the form
, and consider the hyperplane in equation (5.4).
Suppose that there exist optimal parameters
satisfying the constraint
It may be assumed that, for each category, one or more vectors exist for which constraint (5.27) is satisfied with equality. These elements are called Support Vectors. They are the samples that determine the separation margin and, as will be shown later using the KKT conditions, are the only samples associated with nonzero Lagrange multipliers.
The point-to-plane distance (see eq.(1.88)) is
To maximize the margin in equation (5.29), its reciprocal must be minimized, namely,
This class of problems (minimization subject to inequality constraints, or the primal optimization problem) is solved using the Karush-Kuhn-Tucker approach, which generalizes the method of Lagrange multipliers to inequalities.
The KKT conditions yield the Lagrangian function:
The KKT conditions apply to this formulation, including the particularly important constraint known as Complementary slackness:
| (5.36) |
By solving the quadratic problem (5.34), subject to constraint (5.32) and
, the weights for which
holds will be the Support Vectors.
Substituting these weights into equations (5.33) and (5.35) yields the maximum-margin hyperplane.
The most widely used method for solving this QP is Sequential Minimal Optimization (SMO). For an in-depth treatment of SVM-related topics, see (SS02).