language-icon Old Web
English
Sign In

Structured support vector machine

The structured support vector machine is a machine learning algorithm that generalizes the Support Vector Machine (SVM) classifier. Whereas the SVM classifier supports binary classification, multiclass classification and regression, the structured SVM allows training of a classifier for general structured output labels. The structured support vector machine is a machine learning algorithm that generalizes the Support Vector Machine (SVM) classifier. Whereas the SVM classifier supports binary classification, multiclass classification and regression, the structured SVM allows training of a classifier for general structured output labels. As an example, a sample instance might be a natural language sentence, and the output label is an annotated parse tree. Training a classifier consists of showing pairs of correct sample and output label pairs. After training, the structured SVM model allows one to predict for new sample instances the corresponding output label; that is, given a natural language sentence, the classifier can produce the most likely parse tree. For a set of ℓ {displaystyle ell } training instances ( x n , y n ) ∈ X × Y {displaystyle ({oldsymbol {x}}_{n},y_{n})in {mathcal {X}} imes {mathcal {Y}}} , n = 1 , … , ℓ {displaystyle n=1,dots ,ell } from a sample space X {displaystyle {mathcal {X}}} and label space Y {displaystyle {mathcal {Y}}} , the structured SVM minimizes the following regularized risk function. The function is convex in w {displaystyle {oldsymbol {w}}} because the maximum of a set of affine functions is convex. The function Δ : Y × Y → R + {displaystyle Delta :{mathcal {Y}} imes {mathcal {Y}} o mathbb {R} _{+}} measures a distance in label space and is an arbitrary function (not necessarily a metric) satisfying Δ ( y , z ) ≥ 0 {displaystyle Delta (y,z)geq 0} and Δ ( y , y ) = 0 ∀ y , z ∈ Y {displaystyle Delta (y,y)=0;;forall y,zin {mathcal {Y}}} . The function Ψ : X × Y → R d {displaystyle Psi :{mathcal {X}} imes {mathcal {Y}} o mathbb {R} ^{d}} is a feature function, extracting some feature vector from a given sample and label. The design of this function depends very much on the application. Because the regularized risk function above is non-differentiable, it is often reformulated in terms of a quadratic program by introducing one slack variable ξ n {displaystyle xi _{n}} for each sample, each representing the value of the maximum. The standard structured SVM primal formulation is given as follows. At test time, only a sample x ∈ X {displaystyle {oldsymbol {x}}in {mathcal {X}}} is known, and a prediction function f : X → Y {displaystyle f:{mathcal {X}} o {mathcal {Y}}} maps it to a predicted label from the label space Y {displaystyle {mathcal {Y}}} . For structured SVMs, given the vector w {displaystyle {oldsymbol {w}}} obtained from training, the prediction function is the following. Therefore, the maximizer over the label space is the predicted label. Solving for this maximizer is the so-called inference problem and similar to making a maximum a-posteriori (MAP) prediction in probabilistic models. Depending on the structure of the function Ψ {displaystyle Psi } , solving for the maximizer can be a hard problem. The above quadratic program involves a very large, possibly infinite number of linear inequality constraints. In general, the number of inequalities is too large to be optimized over explicitly. Instead the problem is solved by using delayed constraint generation where only a finite and small subset of the constraints is used. Optimizing over a subset of the constraints enlarges the feasible set and will yield a solution which provides a lower bound on the objective. To test whether the solution w {displaystyle {oldsymbol {w}}} violates constraints of the complete set inequalities, a separation problem needs to be solved. As the inequalities decompose over the samples, for each sample ( x n , y n ) {displaystyle ({oldsymbol {x}}_{n},y_{n})} the following problem needs to be solved. The right hand side objective to be maximized is composed of the constant − ⟨ w , Ψ ( x n , y n ) ⟩ − ξ n {displaystyle -langle {oldsymbol {w}},Psi ({oldsymbol {x}}_{n},y_{n}) angle -xi _{n}} and a term dependent on the variables optimized over, namely Δ ( y n , y ) + ⟨ w , Ψ ( x n , y ) ⟩ {displaystyle Delta (y_{n},y)+langle {oldsymbol {w}},Psi ({oldsymbol {x}}_{n},y) angle } . If the achieved right hand side objective is smaller or equal to zero, no violated constraints for this sample exist. If it is strictly larger than zero, the most violated constraint with respect to this sample has been identified. The problem is enlarged by this constraint and resolved. The process continues until no violated inequalities can be identified.

[ "Support vector machine", "Classifier (linguistics)", "Classifier (UML)", "one versus rest", "least squares twin support vector machine", "Sequential minimal optimization", "support vector machines image classification", "lagrangian support vector machines" ]
Parent Topic
Child Topic
    No Parent Topic