File Information
File: 05-lr/acl_arc_1_sum/cleansed_text/xml_by_section/metho/05/p05-1046_metho.xml
Size: 24,431 bytes
Last Modified: 2025-10-06 14:09:45
<?xml version="1.0" standalone="yes"?> <Paper uid="P05-1046"> <Title>Unsupervised Learning of Field Segmentation Models for Information Extraction</Title> <Section position="3" start_page="371" end_page="371" type="metho"> <SectionTitle> 2 Hidden Markov Models </SectionTitle> <Paragraph position="0"> Hidden Markov models (HMMs) are commonly used to represent a wide range of linguistic phenomena in text, including morphology, parts-of-speech (POS), named entity mentions, and even topic changes in discourse. An HMM consists of a set of states S, a set of observations (in our case words or tokens) W, a transition model specifying P(st|st[?]1), the probability of transitioning from state st[?]1 to state st, and an emission model specifying P(w|s) the probability of emitting word w while in state s. For a good tutorial on general HMM techniques, see Rabiner (1989).</Paragraph> <Paragraph position="1"> For all of the unsupervised learning experiments we fit an HMM with the same number of hidden states as gold labels to an unannotated training set using EM.1 To compute hidden state expectations efficiently, we use the Forward-Backward algorithm in the standard way. Emission models are initialized to almost-uniform probability distributions, where a small amount of noise is added to break initial symmetry. Transition model initialization varies by experiment. We run the EM algorithm to convergence. Finally, we use the Viterbi algorithm with the learned parameters to label the test data.</Paragraph> <Paragraph position="2"> All baselines and experiments use the same tokenization, normalization, and smoothing techniques, which were not extensively investigated. Tokenization was performed in the style of the Penn Treebank, and tokens were normalized in various ways: numbers, dates, phone numbers, URLs, and email 1EM is a greedy hill-climbing algorithm designed for this purpose, but it is not the only option; one could also use coordinate ascent methods or sampling methods.</Paragraph> <Paragraph position="3"> addresses were collapsed to dedicated tokens, and all remaining tokens were converted to lowercase.</Paragraph> <Paragraph position="4"> Unless otherwise noted, the emission models use simple add-l smoothing, where l was 0.001 for supervised techniques, and 0.2 for unsupervised techniques. null</Paragraph> </Section> <Section position="4" start_page="371" end_page="372" type="metho"> <SectionTitle> 3 Datasets and Evaluation </SectionTitle> <Paragraph position="0"> The bibliographic citations data is described in McCallum et al. (1999), and is distributed at http://www.cs.umass.edu/~mccallum/. It consists of 500 hand-annotated citations, each taken from the reference section of a different computer science research paper. The citations are annotated with 13 fields, including author, title, date, journal, and so on. The average citation has 35 tokens in 5.5 fields.</Paragraph> <Paragraph position="1"> We split this data, using its natural order, into a 300document training set, a 100-document development set, and a 100-document test set.</Paragraph> <Paragraph position="2"> The classified advertisements data set is novel, and consists of 8,767 classified advertisements for apartment rentals in the San Francisco Bay Area downloaded in June 2004 from the Craigslist website. It is distributed at http://www.stanford.edu/~grenager/. 302 of the ads have been labeled with 12 fields, including size, rent, neighborhood, features, and so on.</Paragraph> <Paragraph position="3"> The average ad has 119 tokens in 8.7 fields. The annotated data is divided into a 102-document training set, a 100-document development set, and a 100-document test set. The remaining 8465 documents form an unannotated training set.</Paragraph> <Paragraph position="4"> In both cases, all system development and parameter tuning was performed on the development set, (b) bibliographic citations. Columns and rows are indexed by the same sequence of fields. Also shown is (c) a submatrix of the transition structure for a part-of-speech tagging task. In all cases the column labels are the same as the row labels. and the test set was only used once, for running final experiments. Supervised learning experiments train on documents selected randomly from the annotated training set and test on the complete test set. Unsupervised learning experiments also test on the complete test set, but create a training set by first adding documents from the test set (without annotation), then adding documents from the annotated training set (without annotation), and finally adding documents from the unannotated training set. Thus if an unsupervised training set is larger than the test set, it fully contains the test set.</Paragraph> <Paragraph position="5"> To evaluate our models, we first learn a set of model parameters, and then use the parameterized model to label the sequence of tokens in the test data with the model's hidden states. We then compare the similarity of the guessed sequence to the human-annotated sequence of gold labels, and compute accuracy on a per-token basis.2 In evaluation of supervised methods, the model states and gold labels are the same. For models learned in a fully unsupervised fashion, we map each model state in a greedy fashion to the gold label to which it most often corresponds in the gold data. There is a worry with this kind of greedy mapping: it increasingly inflates the results as the number of hidden states grows. To keep the accuracies meaningful, all of our models have exactly the same number of hidden states as gold labels, and so the comparison is valid.</Paragraph> <Paragraph position="6"> 2This evaluation method is used by McCallum et al. (1999) but otherwise is not very standard. Compared to other evaluation methods for information extraction systems, it leads to a lower penalty for boundary errors, and allows long fields also contribute more to accuracy than short ones.</Paragraph> </Section> <Section position="5" start_page="372" end_page="376" type="metho"> <SectionTitle> 4 Unsupervised Learning </SectionTitle> <Paragraph position="0"> Consider the general problem of learning an HMM from an unlabeled data set. Even abstracting away from concrete search methods and objective functions, the diversity and simultaneity of linguistic structure is already worrying; in Figure 1 compare the field structure in (a) and (b) to the parts-of-speech in (c). If strong sequential correlations exist at multiple scales, any fixed search procedure will detect and model at most one of these levels of structure, not necessarily the level desired at the moment. Worse, as experience with part-of-speech and grammar learning has shown, induction systems are quite capable of producing some uninterpretable mix of various levels and kinds of structure.</Paragraph> <Paragraph position="1"> Therefore, if one is to preferentially learn one kind of inherent structure over another, there must be some way of constraining the process. We could hope that field structure is the strongest effect in classified ads, while parts-of-speech is the strongest effect in newswire articles (or whatever we would try to learn parts-of-speech from). However, it is hard to imagine how one could bleach the local grammatical correlations and long-distance topical correlations from our classified ads; they are still English text with part-of-speech patterns. One approach is to vary the objective function so that the search prefers models which detect the structures which we have in mind. This is the primary way supervised methods work, with the loss function relativized to training label patterns. However, for unsupervised learning, the primary candidate for an objective function is the data likelihood, and we don't have another suggestion here. Another approach is to inject some prior knowledge into the search procedure by carefully choosing the starting point; indeed smart initialization has been critical to success in many previous unsupervised learning experiments. The central idea of this paper is that we can instead restrict the entire search domain by constraining the model class to reflect the desired structure in the data, thereby directing the search toward models of interest. We do this in several ways, which are described in the following sections.</Paragraph> <Section position="1" start_page="373" end_page="373" type="sub_section"> <SectionTitle> 4.1 Baselines </SectionTitle> <Paragraph position="0"> To situate our results, we provide three different baselines (see Table 1). First is the most-frequentfield accuracy, achieved by labeling all tokens with the same single label which is then mapped to the most frequent field. This gives an accuracy of 46.4% on the advertisements data and 27.9% on the citations data. The second baseline method is to presegment the unlabeled data using a crude heuristic based on punctuation, and then to cluster the resulting segments using a simple Na&quot;ive Bayes mixture model with the Expectation-Maximization (EM) algorithm. This approach achieves an accuracy of 62.4% on the advertisements data, and 46.5% on the citations data.</Paragraph> <Paragraph position="1"> As a final baseline, we trained a supervised first-order HMM from the annotated training data using maximum likelihood estimation. With 100 training examples, supervised models achieve an accuracy of 74.4% on the advertisements data, and 72.5% on the citations data. With 300 examples, supervised methods achieve accuracies of 80.4 on the citations data. The learning curves of the supervised training experiments for different amounts of training data are shown in Figure 4. Note that other authors have achieved much higher accuracy on the the citation dataset using HMMs trained with supervision: Mc-Callum et al. (1999) report accuracies as high as 92.9% by using more complex models and millions of words of BibTeX training data.</Paragraph> </Section> <Section position="2" start_page="373" end_page="373" type="sub_section"> <SectionTitle> 4.2 Unconstrained HMM Learning </SectionTitle> <Paragraph position="0"> From the supervised baseline above we know that there is some first-order HMM over |S |states which captures the field structure we're interested in, and we would like to find such a model without supervision. As a first attempt, we try fitting an unconstrained HMM, where the transition function is ini- null learned by initializing the transition model uniformly. tialized randomly, to the unannotated training data.</Paragraph> <Paragraph position="1"> Not surprisingly, the unconstrained approach leads to predictions which poorly align with the desired field segmentation: with 400 unannotated training documents, the accuracy is just 48.8% for the advertisements and 49.7% for the citations: better than the single state baseline but far from the supervised baseline. To illustrate what is (and isn't) being learned, compare typical transition models learned by this method, shown in Figure 3, to the maximum-likelihood transition models for the target annotations, shown in Figure 2. Clearly, they aren't anything like the target models: the learned classified advertisements matrix has some but not all of the desired diagonal structure, and the learned citations matrix has almost no mass on the diagonal, and appears to be modeling smaller scale structure.</Paragraph> </Section> <Section position="3" start_page="373" end_page="374" type="sub_section"> <SectionTitle> 4.3 Diagonal Transition Models </SectionTitle> <Paragraph position="0"> To adjust our procedure to learn larger-scale patterns, we can constrain the parametric form of the transition model to be</Paragraph> <Paragraph position="2"> where |S |is the number of states, and s is a global free parameter specifying the self-loop probability: vised learning with a diagonal transition matrix on (a) classified advertisements, and (b) bibliographic citations. Results are averaged over 50 runs.</Paragraph> <Paragraph position="3"> the probability of a state transitioning to itself. (Note that the expected mean field length for transition functions of this form is 11[?]s.) This constraint provides a notable performance improvement: with 400 unannotated training documents the accuracy jumps from 48.8% to 70.0% for advertisements and from 49.7% to 66.3% for citations. The complete learning curves for models of this form are shown in Figure 4. We have tested training on more unannotated data; the slope of the learning curve is leveling out, but by training on 8000 unannotated ads, accuracy improves significantly to 72.4%. On the citations task, an accuracy of approximately 66% can be achieved either using supervised training on 50 annotated citations, or unsupervised training using 400 unannotated citations. 3 Although s can easily be reestimated with EM (even on a per-field basis), doing so does not yield tations collected from papers found on the Internet. Unfortunately the addition of this data didn't help accuracy. This probably results from the fact that the datasets were collected from different sources, at different times.</Paragraph> <Paragraph position="4"> mean field length 11[?]s for the classified advertisements dataset. Each model was trained with 500 documents and tested on the development set. Results are averaged over 50 runs.</Paragraph> <Paragraph position="5"> better models.4 On the other hand, model accuracy is not very sensitive to the exact choice of s, as shown in Figure 5 for the classified advertisements task (the result for the citations task has a similar shape). For the remaining experiments on the advertisements data, we use s = 0.9, and for those on the citations data, we use s = 0.5.</Paragraph> </Section> <Section position="4" start_page="374" end_page="375" type="sub_section"> <SectionTitle> 4.4 Hierarchical Mixture Emission Models </SectionTitle> <Paragraph position="0"> Consider the highest-probability state emissions learned by the diagonal model, shown in Figure 6(a).</Paragraph> <Paragraph position="1"> In addition to its characteristic content words, each state also emits punctuation and English function words devoid of content. In fact, state 3 seems to have specialized entirely in generating such tokens.</Paragraph> <Paragraph position="2"> This can become a problem when labeling decisions are made on the basis of the function words rather than the content words. It seems possible, then, that removing function words from the field-specific emission models could yield an improvement in labeling accuracy.</Paragraph> <Paragraph position="3"> One way to incorporate this knowledge into the model is to delete stopwords, which, while perhaps not elegant, has proven quite effective in the past.</Paragraph> <Paragraph position="4"> A better founded way of making certain words unavailable to the model is to emit those words from all states with equal probability. This can be accomplished with the following simple hierarchical mixture emission model</Paragraph> <Paragraph position="6"> where Pc is the common word distribution, and a is 4While it may be surprising that disallowing reestimation of the transition function is helpful here, the same has been observed in acoustic modeling (Rabiner and Juang, 1993).</Paragraph> <Paragraph position="7"> from unsupervised data using the constrained transition function: (a) with a flat emission model, and (b) with a hierarchical emission model.</Paragraph> <Paragraph position="8"> a new global free parameter. In such a model, before a state emits a token it flips a coin, and with probability a it allows the common word distribution to generate the token, and with probability (1[?]a) it generates the token from its state-specific emission model (see Vaithyanathan and Dom (2000) and Toutanova et al. (2001) for more on such models). We tuned a on the development set and found that a range of values work equally well. We used a value of 0.5 in the following experiments.</Paragraph> <Paragraph position="9"> We ran two experiments on the advertisements data, both using the fixed transition model described in Section 4.3 and the hierarchical emission model.</Paragraph> <Paragraph position="10"> First, we initialized the emission model of Pc to a general-purpose list of stopwords, and did not reestimate it. This improved the average accuracy from 70.0% to 70.9%. Second, we learned the emission model of Pc using EM reestimation. Although this method did not yield a significant improvement in accuracy, it learns sensible common words: Figure 6(b) shows a typical emission model learned with this technique. Unfortunately, this technique does not yield improvements on the citations data.</Paragraph> </Section> <Section position="5" start_page="375" end_page="376" type="sub_section"> <SectionTitle> 4.5 Boundary Models </SectionTitle> <Paragraph position="0"> Another source of error concerns field boundaries.</Paragraph> <Paragraph position="1"> In many cases, fields are more or less correct, but the boundaries are off by a few tokens, even when punctuation or syntax make it clear to a human reader where the exact boundary should be. One way to address this is to model the fact that in this data fields often end with one of a small set of boundary tokens, such as punctuation and new lines, which are shared across states.</Paragraph> <Paragraph position="2"> To accomplish this, we enriched the Markov process so that each field s is now modeled by two states, a non-final s[?] [?] S[?] and a final s+ [?] S+. The transition model for final states is the same as before, but the transition model for non-final states has two new global free parameters: l, the probability of staying within the field, and u, the probability of transitioning to the final state given that we are staying in the field. The transition function for non-final states is then</Paragraph> <Paragraph position="4"> Note that it can bypass the final state, and transition directly to other non-final states with probability (1 [?] l), which models the fact that not all field occurrences end with a boundary token. The transition function for non-final states is then</Paragraph> <Paragraph position="6"> Note that this has the form of the standard diagonal function. The reason for the self-loop from the final state back to the non-final state is to allow for field internal punctuation. We tuned the free parameters on the development set, and found that s = 0.5 and l = 0.995 work well for the advertisements domain, and s = 0.3 and l = 0.9 work well for the citations domain. In all cases it works well to set u = 1 [?] l. Emissions from non-final states are as percentage accuracy on the test set. Supervised experiments use 100 training documents, and unsupervised experiments use 400 training documents. Because unsupervised techniques are stochastic, those results are averaged over 50 runs, and differences greater than 1.0% are significant at p=0.05% or better according to the t-test. The last 6 rows are not cumulative. before (hierarchical or not depending on the experiment), while all final states share a boundary emission model. Note that the boundary emissions are not smoothed like the field emissions.</Paragraph> <Paragraph position="7"> We tested both supplying the boundary token distributions and learning them with reestimation during EM. In experiments on the advertisements data we found that learning the boundary emission model gives an insignificant raise from 70.0% to 70.4%, while specifying the list of allowed boundary tokens gives a significant increase to 71.9%. When combined with the given hierarchical emission model from the previous section, accuracy rises to 72.7%, our best unsupervised result on the advertisements data with 400 training examples. In experiments on the citations data we found that learning boundary emission model hurts accuracy, but that given the set of boundary tokens it boosts accuracy significantly: increasing it from 66.3% to 68.2%.</Paragraph> </Section> </Section> <Section position="6" start_page="376" end_page="376" type="metho"> <SectionTitle> 5 Semi-supervised Learning </SectionTitle> <Paragraph position="0"> So far, we have largely focused on incorporating prior knowledge in rather general and implicit ways.</Paragraph> <Paragraph position="1"> As a final experiment we tested the effect of adding a small amount of supervision: augmenting the large amount of unannotated data we use for unsupervised learning with a small amount of annotated data. There are many possible techniques for semi-supervised learning; we tested a particularly simple one. We treat the annotated labels as observed variables, and when computing sufficient statistics in the M-step of EM we add the observed counts from the annotated documents to the expected counts computed in the E-step. We estimate the transition function using maximum likelihood from the annotated documents only, and do not reestimate it.</Paragraph> <Paragraph position="2"> Semi-supervised results for the citations domain are shown in Figure 7. Adding 5 annotated citations yields no improvement in performance, but adding 20 annotated citations to 300 unannotated citations boosts performance greatly from 65.2% to 71.3%.</Paragraph> <Paragraph position="3"> We also tested the utility of this approach in the classified advertisement domain, and found that it did not improve accuracy. We believe that this is because the transition information provided by the supervised data is very useful for the citations data, which has regular transition structure, but is not as useful for the advertisements data, which does not.</Paragraph> </Section> <Section position="7" start_page="376" end_page="377" type="metho"> <SectionTitle> 6 Previous Work </SectionTitle> <Paragraph position="0"> A good amount of prior research can be cast as supervised learning of field segmentation models, using various model families and applied to various domains. McCallum et al. (1999) were the first to compare a number of supervised methods for learning HMMs for parsing bibliographic citations. The authors explicitly claim that the domain would be suitable for unsupervised learning, but they do not present experimental results. McCallum et al. (2000) applied supervised learning of Maximum Entropy Markov Models (MEMMs) to the domain of parsing Frequently Asked Question (FAQ) lists into their component field structure. More recently, Peng and McCallum (2004) applied supervised learning of Conditional Random Field (CRF) sequence models to the problem of parsing the head- null ers of research papers.</Paragraph> <Paragraph position="1"> There has also been some previous work on unsupervised learning of field segmentation models in particular domains. Pasula et al. (2002) performs limited unsupervised segmentation of bibliographic citations as a small part of a larger probabilistic model of identity uncertainty. However, their system does not explicitly learn a field segmentation model for the citations, and encodes a large amount of hand-supplied information about name forms, abbreviation schemes, and so on. More recently, Barzilay and Lee (2004) defined content models, which can be viewed as field segmentation models occurring at the level of discourse. They perform unsupervised learning of these models from sets of news articles which describe similar events. The fields in that case are the topics discussed in those articles. They consider a very different set of applications from the present work, and show that the learned topic models improve performance on two discourse-related tasks: information ordering and extractive document summarization. Most importantly, their learning method differs significantly from ours; they use a complex and special purpose algorithm, which is difficult to adapt, while we see our contribution to be a demonstration of the interplay between model family and learned structure.</Paragraph> <Paragraph position="2"> Because the structure of the HMMs they learn is similar to ours it seems that their system could benefit from the techniques of this paper. Finally, Blei and Moreno (2001) use an HMM augmented by an aspect model to automatically segment documents, similar in goal to the system of Hearst (1997), but using techniques more similar to the present work.</Paragraph> </Section> class="xml-element"></Paper>