Structured Prediction Cascades

From Cohen Courses
Revision as of 20:55, 5 October 2011 by Howarth (talk | contribs) (→‎Brief description of the method)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This method as proposed by Weiss et al, AISTATS 2010

This page is reserved for a write up by Dan Howarth


Citation

Structured Prediction Cascades. David Weiss and Ben Taskar. International Conference on Artificial Intelligence and Statistics (AISTATS), May 2010.

Online version

[1]

Summary

In many structured prediction models an increase in model complexity comes at a high computational cost. For example, the complexity of a HMM grows exponentially with the order of the model. This work introduces a method for learning increasingly complex models while continually pruning the possible output space. This is done by "weeding" out the incorrect output states early on.

Previous methods to solve the problem of model complexity were commonly approximate search methods or heuristic pruning techniques. Structured prediction cascades are different however because they explicitly learn the error/computation trade off for each increase in model complexity.

In this work structured prediction cascades are applied to handwriting recognition and POS tagging.

Brief description of the method

The linear hypothesis class considered is of the form: where is the set of cliques.

At each level of the cascade the method is given the set of possible clique assignments as input, and each level then filters this set and passes the filtered set as input to the next level.

is the set of possible output assignments to clique

Let the following be defined for the 'th model:

, the set of maximal cliques

, the set of valid output assignments for clique

Before pruning, , or the set of assignments to the cliques in level that each contain as a subset a valid assignment in the 'th level

Any is then pruned if their max-marginal score is less than a threshold.

The threshold is the function where

determines the number of max marginals eliminated

, the score of best possible output that contains the assignments

Learning

At each level of the cascade the best and must be inferred.

At each level two competing objectives exist: accuracy and efficiency. This trade off is quantified by by the filtering loss and efficiency loss :

The cascade learning objective is then expressed by:

where is a parameter that bounds the expected error rate

Given we choose \theta to optimize the convex problem:

where is the upper bound of and convex:

is a hinge loss function that is positive if the true score is above the threshold by . is solved for by using stochastic sub-gradient descent.

Experimental Result

In this work structured prediction cascades were applied to handwriting recognition and POS tagging.

The results for handwriting recognition were not compared to any other results, but rather showed the dramatic increase in accuracy as the order of the model increased. The model they used was a Markov model, and the paper explains that the search space of a 4-gram model was reduced by a magnitude of 5, while only producing a 3.41% filtering error.


Model Order: 1 2 3 4
Accuracy, Char (%) 77.44 85.69 87.95 92.25
Accuracy, Word (%) 26.65 49.44 73.83 84.46
Filter Loss (%) 0.56 0.99 3.41 -
Avg. Num n-grams 26.0 123.8 88.6 5.4


POS tagging was applied to the WSJ portion of the Penn TreeBank (Marcus et al., 1993). The following table shows the comparative results of the standard structured perceptron (SP), structured cascades using a markov model (SC), and a conditional random field (CRF), and a heuristic baseline in which only POS tags associated with a given word in the training set were searched during inference (Tags). Accuracy for the different methods was pretty much the same, but structured cascades was able to perform more efficiently at test time.

Model: SP SC CRF Tags
Accuracy (%) 96.83 96.82 96.84 -
Filter Loss (%) 0 0.121 0.024 0.118
Test Time (ms) 173.28 1.56 4.16 10.6
Avg. Num States 1935.7 3.93 11.845 95.39

Related papers