Difference between revisions of "Berg-Kirkpatrick et al, ACL 2010: Painless Unsupervised Learning with Features"

From Cohen Courses
Jump to navigationJump to search
Line 54: Line 54:
 
The estimation problem involves finding the marginal probability <math>P_\mathbf{w}(\mathbf{Y} = \mathbf{y})</math> for a given word sequence <math>\mathbf{y}</math>, with the model parameters <math>\mathbf{w}</math> known.
 
The estimation problem involves finding the marginal probability <math>P_\mathbf{w}(\mathbf{Y} = \mathbf{y})</math> for a given word sequence <math>\mathbf{y}</math>, with the model parameters <math>\mathbf{w}</math> known.
  
The forward-backward algorithm for conventional HMMs is directly applicable to featurized HMMs.
+
The [http://en.wikipedia.org/wiki/Forward-backward_algorithm forward-backward algorithm] for conventional HMMs is directly applicable to featurized HMMs.
  
 
=== The Decoding Problem ===
 
=== The Decoding Problem ===
Line 64: Line 64:
 
</math>
 
</math>
  
The Viterbi algorithm for conventional HMMs is directly applicable to featurized HMMs.
+
The [http://en.wikipedia.org/wiki/Viterbi_algorithm Viterbi algorithm] for conventional HMMs is directly applicable to featurized HMMs.
  
 
=== The Training Problem ===
 
=== The Training Problem ===

Revision as of 18:31, 17 September 2011

Citation

T. Berg-Kirkpatrick, A. Bouchard-Côté, J. DeNero, and D. Klein. Painless Unsupervised Learning with Features, Human Language Technologies 2010, pp. 582-590, Los Angeles, June 2010.

Online Version

PDF version

Summary

This paper generalizes conventional HMMs to featurized HMMs, by replacing the multinomial conditional probability distributions (CPDs) with miniature log-linear models. Two algorithms for unsupervised training of featurized HMMs are proposed.

Featurized HMMs are applied to four unsupervised learning tasks:

  • POS induction (unsupervised version of POS tagging);
  • Grammar induction;
  • Word alignment;
  • Word segmentation.

For all these four tasks, featurized HMMs are shown to outperform their unfeaturized counterparts by a substantial margin.

Featurized HMMs

Definition

The definition of featurized HMMs is given in the context of POS tagging, but is applicable to the general case. In the following text, stands for the random sequence of words, and stands for the random sequence of POS tags. Their lower-case counterparts stands for possible values of the words and POS tags.

Assuming a special starting tag , an HMM defines a joint probability over and :

While a conventional HMM defines the transition probabilities and emission probabilities as multinomial distributions, a featurized HMM defines these probabilities in terms of a collection of features and their weights :

For conciseness, the tuples and are written as (standing for decision, context, and type respectively):

A conventional HMM is a special case of a featurized HMM (as long as no zero transition or emission probability is involved). We get a conventional HMM if we:

  • Use the set of "basic" features, i.e. indicator functions of all tuples and ;
  • Set the weights of the features as the logarithm of the corresponding transition or emission probabilities.

The Estimation Problem

The estimation problem involves finding the marginal probability for a given word sequence , with the model parameters known.

The forward-backward algorithm for conventional HMMs is directly applicable to featurized HMMs.

The Decoding Problem

The decoding problem involves finding the most probable tag sequence given the word sequence , with the model parameters known:

The Viterbi algorithm for conventional HMMs is directly applicable to featurized HMMs.

The Training Problem

The training problem involves finding a set of model parameters to maximize the likelihood of the training data :

Or, the objective function can be a regularized version of the log-likelihood:

The EM algorithm for unsupervised training of conventional HMMs can be adapted for featurized HMMs. The E-step calculates the expected count for each tuple , which makes use of the forward-backward algorithm. The M-step tries to increase the following auxiliary function:

whose gradient w.r.t. is:

Two versions of EM algorithms are proposed in the paper:

Featurized HMM EM.png

The subroutine "climb" represents one step in any generic optimization algorithm, such as gradient ascent or LBFGS.

The differences between the two algorithms are:

  • In the M-step, Algorithm 1 iterates until the auxiliary function converges to a local maximum, while Algorithm 2 performs only one iteration.
  • The M-step of Algorithm 2 is formulated to increase the objective function directly, instead of increasing the auxiliary function. Nevertheless, the appendix gives a proof that the gradients of the objective and auxiliary functions are identical.

Algorithm 2 is shown to perform better. It can also be expected to converge faster -- anyway, the E-step changes the auxiliary function by changing the expected counts, so there's no point in finding a local maximum of the auxiliary function in each iteration (this sentence is the opinion of Maigo). However, in cases when the E-step is significantly more time-consuming than the M-step, Algorithm 1 may be preferred.

Experiments

POS Induction

Grammar Induction

Word Alignment

Word Segmentation