Berg-Kirkpatrick et al, ACL 2010: Painless Unsupervised Learning with Features

From Cohen Courses
Revision as of 20:02, 17 September 2011 by Yunwang (talk | contribs) (→‎Experiments)
Jump to navigationJump to search

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:

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 (also called Baum-Welch 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

POS induction is the unsupervised version of POS tagging. The output is clusters of words that the system believes to belong to the same part-of-speech. In order to evaluate the performance of a POS inductor, it is necessary to map the clusters to the actual POS tags. The best accuracy achieved by all the mapping is called the "many-1 accuracy".

Dataset Penn Treebank WSJ
Criterion Many-1 accuracy (the larger, the better)
Baseline 63.1 ± 1.3 (HMM) (10 runs, mean ± standard deviation)
Performance of proposed systems 68.1 ± 1.7 (Featurized HMM, Algorithm 1)
75.5 ± 1.1 (Featurized HMM, Algorithm 2)
Performance of contrastive systems 59.6 ± 6.9 (Featurized MRF) [Haghighi and Klein, ACL 2006]

Grammar Induction

Dataset English: Penn Treebank WSJ
Chinese: Penn Chinese Treebank
Criterion Accuracy (the larger the better, not clear how it is defined)
Baseline English 47.8, Chinese 42.5 (DMV)
Performance of proposed systems English 48.3, Chinese 49.9 (Featurized DMV, Algorithm 1)
English 63.0, Chinese 53.6 (Featurized DMV, Algorithm 2)
Performance of contrastive systems English 61.3, Chinese 51.9 [Cohen and Smith, ACL 2009]

Word Alignment

Dataset NIST 2002 Chinese-English Development Set
Criterion Alignment Error Rate (the smaller the better)
Baseline 38.0 (Model 1) [Brown et al, CL 1994]
33.8 (HMM) [Ney and Vogel, CL 1996]
Performance of proposed systems 35.6 (Featurized Model 1, Algorithm 1)
30.0 (Featurized HMM, Algorithm 1)

Word Segmentation

Dataset Bernstein-Ratner Corpus
Criterion Segment F1 score (the larger the better)
Baseline 76.9 ± 0.1 (Unigram) (10 runs, mean ± standard deviation)
Performance of proposed systems 84.5 ± 0.5 (Featurized Unigram, Algorithm 1)
88.0 ± 0.1 (Featurized Unigram, Algorithm 2)
Performance of contrastive systems 87 [Johnson and Goldwater, ACL 2009]