MIRA updates the parameter vector w with two constraints: (1) the positive example must have a higher score by a given margin, and (2) the change to w should be minimal.
this second constraint is to reduce fluctuations in w. we use a generalized version of MIRA McDonald, 2006) that can incorporate k-best decoding in the update procedure.