Difference between revisions of "Structured SVMs"

From Cohen Courses
Jump to navigationJump to search
Line 29: Line 29:
  
  
Since the regularized risk function above is non-differentiable, it is often reformulated in terms of a quadratic program by introducing one slack variables <math>\xi_i</math> for each sample, each representing the value of the maximum. The standard structured SVM primal formulation is given as follows.
+
Since the equation above is non-differentiable, one can reformulate it introducing slack variables, <math>\xi_n</math>, representing the value of the maximum. Using this approach the SSVM comes as:
  
Slightly
 different 
version 
of 
the
 loss 
function:

+
<math>
 +
\min_{w,\xi} ||w||^2 + C \sum^l_{n=1} \xi_n
 +
</math>
  
<math>
+
      <math>
\min_i \frac{C}{2} ||w||{^{2}}{_{2}} + \sum^N_{i=1} \xi_i
+
\{s.t.}   w'\Psi(x_n,y_n) - w'\Psi(x_n,y) + \xi_n \ge \Delta (y_n,y), n= 1,...,l \forall y \in Y
 
</math>
 
</math>
  
 
       <math>
 
       <math>
s.t. \forall i, \forall y, w^T g (x_i,y) \ge +1 - \frac {\xi_i}{cost(y, y_i)}
+
    \xi_n \ge 0, n= 1,...,l
 
</math>
 
</math>
  

Revision as of 17:15, 2 November 2011

Being edited by Rui Correia

The Method and When to Use it

Structured (or Structural) Support Vector Machines (SSVM), as the name states, is a machine learning model that generalizes the Support Vector Machine (SVM) classifier, allowing training a classifier for structured output.

In general, SSVMs perform supervised learning by approximating a mapping

where is a set of labeled training examples and is a complex structured object, like trees, sequences, or sets, instead of simple univariate predictions (as in the SVM case).

Thus, training a SSVM classifier consists of showing pairs of correct sample and output label pairs, that are used for training, allowing to predict for new sample instances the corresponding output label

In NLP one can fing a great variety of problems that rely on complex outputs, such as parsing and Markov Models for part-of-speech tagging.

Training

While on training, for a set of samples and labels , the SSVM minimizes the risk function:


where is an arbitrary function, which measures the distance between to labels and is a function on samples and labels, which extracts feature vectors.


Since the equation above is non-differentiable, one can reformulate it introducing slack variables, , representing the value of the maximum. Using this approach the SSVM comes as:

      Failed to parse (syntax error): {\displaystyle  \{s.t.}   w'\Psi(x_n,y_n) - w'\Psi(x_n,y) + \xi_n \ge \Delta (y_n,y), n= 1,...,l \forall y \in Y }

      

Related Papers