Margin Infused Relaxed Algorithm

From Cohen Courses
Revision as of 18:47, 29 September 2011 by Mridulg (talk | contribs) (→‎Dual Form)
Jump to navigationJump to search

This method is used by Watanabe et al., EMNLP 2007 to train an MT system a with a very large number of features of the order of millions. The training step was performed using a specific algorithm called the Margin Infused Relaxed Algorithm (MIRA) proposed by Crammer et al., 2006

Summary

MIRA is an online large-margin training algorithm which updates the weight vector according to certain margin constraints and loss function.

It is used to learn the weights of features after processing each training instance similar to structured perceptron algorithm with an additional loss function and margin constraint in its update rule.

General Definition

A general definition of online training algorithms can be written down as follows:

Online-training.jpg
  • and a list of -best oracles :

A -best list of candidates is generated by using the current weight vector . Each training instance can have a multiple number of correct outputs or references, , in this case target translations.

  • Using the -best list, -best oracle translations is updated by in each iteration.
  • New weight vector is computed using the -list with respect to the oracle .
  • After iterations, the algorithm returns an averaged weight vector over training instances to avoid overfitting.

MIRA

The difference in MIRA lies in the weight update rule which differs from one algorithm to the other. It has been widely used in structured classification tasks such as dependency parsing (McDonald et al., 2005) and joint-labeling/chunking (Shimizu and Haas, 2006).

  • The basic idea is to keep the norm of the updates to the weight vector as small as possible,
  • Considering a margin at least as large as the loss of the incorrect classification.
  • The update rule in MIRA is given by:

subject to


where, .

is a nonnegative slack variable and is a constant to control the influence to the objective function. A larger C implies larger updates to the weight vector.

is a loss function, for instance difference of BLEU, that measures the "difference" between and according to the set of references .


A larger error means a larger distance between the scores of the predicted correct and incorrect outputs.

Dual Form

The Langrage dual form for MIRA's objective function is give by:

Failed to parse (syntax error): {\displaystyle max_{\alpha(\cdot) \geq 0} \quad -\frac{1}{2}||\sum_{\hat{e}, e^\prime}\alpha(\hat{e}, e^\prime) \left( \mathbf{h}(f^t, \hat{e}) - \mathbf{h}(f^t, e^\prime \right) \right) ||^2 \quad + \quad \sum_{\hat{e}, e^\prime}\alpha(\hat{e}, e^\prime)L(\hat{e}, e^\prime; \mathbf{e}^t) \quad - \quad \sum_{\hat{e}, e^\prime}\alpha(\hat{e}, e^\prime) \left( s^i(f^t, \hat{e}) - s^i(f^t, e^\prime) \right) }