<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="249"/><title>NUS-ML:Improving Word Sense Disambiguation Using Topic Features</title><pubinfo>Proceedings of the 4th International Workshop on Semantic Evaluations (SemEval-2007),pages 249-252, Prague, June 2007. ©2007 Association for Computational Linguistics</pubinfo><author surname="Cai" givenname="Jun Fu"><org  name="National University of Singapore" country="Singapore"/></author><author surname="Lee" givenname="Wee Sun"><org  name="Konan University" country="Japan" city="Kobe"/></author><author surname="Teh" givenname="Yee Whye"><org  name="University College London" country="United Kingdom" city="London"/></author></firstpageheader><frontmatter><p><b>NUS-ML: Improving Word Sense Disambiguation Using Topic Features</b></p><p><b>Jun Fu Cai, Wee Sun Lee</b></p><p>Department of Computer Science National University of Singapore 3 Science Drive 2, Singapore 117543 { caijunfu, leews }@comp.nus.edu.sg</p><p><b>Yee Whye Teh</b></p><p>Gatsby Computational Neuroscience Unit</p><p>University College London 17 Queen Square, London WC1N 3AR, UK ywteh@gatsby.ucl.ac.uk</p></frontmatter><abstract>We participated in SemEval-1 English coarse-grained all-words task (task 7), En­glish fine-grained all-words task (task 17, subtask 3) and English coarse-grained lex­ical sample task (task 17, subtask 1). The same method with different labeled data is used for the tasks; SemCor is the labeled corpus used to train our system for the all-words tasks while the labeled corpus that is provided is used for the lexical sam­ple task. The knowledge sources include part-of-speech of neighboring words, single words in the surrounding context, local col­locations, and syntactic patterns. In addi­tion, we constructed a topic feature, targeted to capture the global context information, using the latent dirichlet allocation (LDA) algorithm with unlabeled corpus. A modi­fied naïve Bayes classifier is constructed to incorporate all the features. We achieved 81.6%, 57.6%, 88.7% for coarse-grained all-words task, fine-grained all-words task and coarse-grained lexical sample task respec­tively. </abstract></header><body><section number="1" title="Introduction"><p>Supervised corpus-based approach has been the most successful in WSD to date. However, this ap­proach faces severe data scarcity problem, resulting features being sparsely represented in the training data. This problem is especially prominent for the bag-of-words feature. A direct consequence is that the global context information, which the bag-of-words feature is supposed to capture, may be poorly represented.</p><p>Our system tries to address this problem by clustering features to relieve the scarcity problem, specifically on the bag-of-words feature. In the pro­cess, we construct topic features, trained using the latent dirichlet allocation (LDA) algorithm. We train the topic model (Blei et al., 2003) on unlabeled data, clustering the words occurring in the corpus to a pre­defined number of topics. We then use the resulting topic model to tag the bag-of-words in the labeled corpus with topic distributions.</p><p>We incorporate the distributions, called the topic features, using a simple Bayesian network, modified from naïve Bayes model, alongside other features and train the model on the labeled corpus.</p></section><section number="2" title="Feature Construction 2.1   Baseline Features"><p>For both the lexical sample and all-words tasks, we use the following standard <i>baseline features.</i></p><p><b>POS Tags </b>For each word instance w, we include POS tags for P words prior to as well as after w within the same sentence boundary. We also include the POS tag of w. If there are fewer than P words prior or after w in the same sentence, we denote the corresponding feature as NIL.</p><p><b>Local Collocations </b>We adopt the same 11 col­location features as (Lee and Ng, 2002), namely</p><doubt alpha="11.4" length="35" tooSmall="False" monospace="0.0">-1,-1, C-2,-2, C2,2, C-2,-1, C-1,2,</doubt><p>C-3,-1, <i>C-2,1, </i>C-!^ and C1,3.</p><page local="2" global="250"/><p><b>Bag-of-Words </b>For each training or testing word, w, we get G words prior to as well as after w, within the same document. These features are position in­sensitive. The words we extract are converted back to their morphological root forms.</p><p><b>Syntactic Relations </b>We adopt the same syntactic relations as (Lee and Ng, 2002). For easy reference, we summarize the features into Table 1.</p><p>The exact values of P and G for each task are set according to validation result.</p><subsection number="2.2" title="Latent Dirichlet Allocation"><p>We present here the latent dirichlet allocation algo­rithm and its inference procedures, adapted from the original paper (Blei et al., 2003).</p><p>LDA is a probabilistic model for collections of discrete data and has been used in document mod­eling and text classification. It can be represented as a three level hierarchical Bayesian model, shown graphically in Figure 1. Given a corpus consisting of M documents, LDA models each document using a mixture over K topics, which are in turn character­ized as distributions over words.</p><p>In the generative process of LDA, for each doc­ument d we first draw the mixing proportion over topics <i>9d </i>from a Dirichlet prior with parameters <i>a. </i>Next, for each of the Nd words wdn in document d, a topic <i>zdn </i>is first drawn from a multinomial distribu­tion with parameters <i>9d. </i>Finally <i>wdn </i>is drawn from the topic specific distribution over words. The prob­ability of a word token w taking on value i given that topic z = j was chosen is parameterized using a matrix ß with <i>ß</i><i>ij</i><i> </i><i>=</i><i> </i><i>p(w </i>= i|z = j). Integrating out <i>9d's </i>and zdn's, the probability p(D|a, ß) of the corpus is thus:</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">N</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">M</doubt><figure caption="Figure 1: Graphical Model for LDA"></figure><doubt alpha="58.6" length="58" tooSmall="False" monospace="0.0">MffNd\Y\/p(#d|a)Y\^P(zdnIOd)p(wdnlzdn,ß) d6»dd=1J\n=1zdn )</doubt><p>In variational inference, the latent variables <i>9d</i>and z<i>dn </i>are assumed independent and updates to the variational posteriors for <i>9d </i>and zdn are derived (Blei et al., 2003). It can be shown that the varia-tional posterior for <i>9d </i>is a Dirichlet distribution, say with variational parameters <i>Y</i><i>d,</i><i> </i>which we shall use in the following to construct topic features.</p></subsection><subsection number="2.3" title="Topic Features"><p>We first select an unlabeled corpus, such as 20 Newsgroups, and extract individual words from it (excluding stopwords). We choose the number of topics, K, for the unlabeled corpus and we apply the LDA algorithm to obtain the ß parameters, where ß represents the probability of a word w = i given a topic z = j, <i>p(w </i><i>=</i><i> </i>i|z = j) = <i>ß</i><i>ij</i>.</p><p>The model essentially clusters words that oc­curred in the unlabeled corpus according to K top­ics. The conditional probability <i>p(w </i><i>= </i>i|z = j) = ß<i>ij</i><i> </i>is later used to tag the words in the unseen test example with the probability of each topic.</p><p>We also use the document-specific Yd parameters. Specifically, we need to run the inference algorithm on the labeled corpus to get Yd for each document d in the corpus. The Yd parameter provides an approx­imation to the probability of selecting topic i in the document:</p><doubt alpha="44.4" length="9" tooSmall="False" monospace="0.0">p(zi|7d)=</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">Ydi</doubt><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">KIdk</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(1)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">ß</doubt><table caption="Table 1: Syntactic Relations Features" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POS of w</p></td><td class="cell"><p>Features</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Noun</p></td><td class="cell"><p>Parent headword h POS of h</p><p>Relative position of h to w</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Verb</p></td><td class="cell"><p>Left nearest child word of w, l Right nearest child word of w, r POS of l POS of r POS of w Voice of w</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Adjective</p></td><td class="cell"><p>Parent headword h POS of h</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="3" global="251"/></subsection></section><section number="3" title="Classifier Construction"><p>We construct a variant of the naïve Bayes network as shown in Figure 2. Here, w refers to the word. s refers to the sense of the word. In training, s is observed while in testing, it is not. The features <i>f1</i>to fn are baseline features mentioned in Section 2.1 (including bag-of-words) while z refers to the la­tent topic that we set for clustering unlabeled corpus. The bag-of-words b are extracted from the neigh­bours of w and there are L of them. Note that L can be different from G, which is the number of bag-of-words in baseline features. Both will be determined by the validation result.</p><figure caption="Figure 2: Graphical Model with LDA feature"></figure><p>The log-likelihood of an instance, <i>£(w, s, F, b) </i>where F denotes the set of baseline features, can be written as</p><doubt alpha="42.5" length="40" tooSmall="False" monospace="0.0">= logp(w) + logp(s|w) +     log(p(f |s))</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">F</doubt><p><i>+ Y1 </i>log   <i>Yl </i><i>p(z</i><i>k </i>|s)p(bi |zfc ) .</p><doubt alpha="60.0" length="5" tooSmall="False" monospace="0.0">LVK /</doubt><p>The log p(w) term is constant and thus can be ignored. The first portion is normal naïve Bayes. And second portion represents the additional LDA plate. We decouple the training process into separate stages. We first extract baseline features from the task training data, and estimate, using normal naïve Bayes, p(s|w) and <i>p(f </i>|s) for all w, s and f.</p><p>Next, the parameters associated with p(b|z) are estimated using LDA from unlabeled data, which is ß. To estimate p(z|s), we perform LDA inference on the training corpus in order to obtain Yd for each document d. We then use the Yd and ß to obtain p(z|b) for each word using where equation (1) is used for estimation of p(zi |Yd).</p><doubt alpha="53.8" length="13" tooSmall="False" monospace="0.0">p(zi|bi,Yd) =</doubt><doubt alpha="62.5" length="16" tooSmall="False" monospace="0.0">p(bi|zi)p(zi|Yd)</doubt><doubt alpha="66.7" length="21" tooSmall="False" monospace="0.0">EkP(bz|zfc)p(zfc|Yd):</doubt><p>This effectively transforms b to a topical distri­bution which we call a soft tag where each soft tag is probability distribution t1,..., tK on topics. We then use this topical distribution for estimating p(z|s). Let si be the observed sense of instance i and t1j,..., <i>t</i><i>%K</i><i> </i>be the soft tag of the j-th bag-of-word feature of instance i. We estimate p(z|s) as</p><doubt alpha="55.6" length="9" tooSmall="False" monospace="0.0">p(zjk|s)=</doubt><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">Esi=</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">ij</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">s</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(2)</doubt><p>This approach requires us to do LDA inference on the corpus formed by the labeled training data, but not the testing data. This is because we need Y to get transformed topical distribution in order to learn p(z|s) in the training. In the testing, we only apply the learnt parameters to the model.</p></section><section number="4" title="Experimental Setup"><p>We describe here the experimental setup on the En­glish lexical sample task and all-words task. Note that we do not distinguish the two all-words tasks as the same parameters will be applied.</p><p>For lexical sample task, we use 5-fold cross val­idation on the training data provided to determine our parameters. For all-words task, we use SemCor as our training data and validate on Senseval-2 and Senseval-3 all-words test data.</p><p>We use MXPOST tagger (Adwait, 1996) for POS tagging, Charniak parser (Charniak, 2000) for ex­tracting syntactic relations, and David Blei's version of LDA<footnote anchor="1"/> for LDA training and inference. All default parameters are used unless mentioned otherwise.</p><p>For the all-word tasks, we use sense 1 as back-off for words that have not appeared in SemCor. We use the same fine-grained system for both the coarse and fine-grained all-words tasks. We make predictions for all words for all the systems - precision, recall and accuracy scores are all the same.<page local="4" global="252"/></p><footnote label="1"> http://www.cs.princeton.edu/~blei/lda-c/</footnote><p><b>Baseline features </b>For lexical sample task, we choose P = 3 and G = 3. For all-words task, we choose P = 3 and G = 1. (G = 1 means only the nearest word prior and after the test word.) <b>Smoothing </b>For all standard baseline features, we use Laplace smoothing but for the soft tag (equation (2)), we use a smoothing parameter value of 2 for all-words task and 0.1 for lexical sample task.</p><p><b>Unlabeled Corpus Selection </b>The unlabeled cor­pus we select from for LDA training include 20 Newsgroups, Reuters, SemCor, Senseval-2 lexical sample data, Senseval-3 lexical sample data and SemEval-1 lexical sample data. Although the last four are labeled corpora, we only need the words from these corpora and thus they can be regarded as unlabeled too. For lexical sample data, we define the whole passage for each training and testing instance as one document.</p><p>For lexical sample task, we use all the unlabeled corpus mentioned with K = 60 and L = 18. For all-words task, we use a corpora consisting only 20 Newsgroups and SemCor with K = 40 and L = 14.</p><p><b>Validation Result </b>Table 2 shows the results we get on the validation sets. We give both the system accuracy (named as Soft Tag) and the naïve Bayes result with only standard features as baseline.</p></section><section number="5" title="Official Results"><p>We now present the official results on all three tasks we participated in, summarized in Table 3.</p><p>The system ranked first, fourth and second in the lexical sample task, fine-grained all-words task and coarse-grained all-words task respectively. For coarse-grained all-words task, we obtained 86.1, 88.3, 81.4, 76.7 and 79.1 for each document, from d001 to d005.</p><p>Task Precision/Recall Lexical sample(Task 17) 88.7 Fine-grained all-words(Task 17) 57.6 Course-grained all-words(Task 7) 81.6</p><table caption="Table 3: Official Results5.1   Analysis of Results"></table><p>For the lexical sample task, we compare the re­sults to that of our naïve Bayes baseline and Sup­port Vector Machine (SVM) (Vapnik, 1995) base­line. Our SVM classifier (using SVMlight) follows that of (Lee and Ng, 2002), which ranked the third in Senseval-3 English lexical sample task. We also analyse the result according to the test instance's part-of-speech and find that the improvements are consistent for both noun and verb.</p><table caption="Table 4: Analysis on different POS on English lexi­cal sample task"></table><p>Our coarse-grained all-words task result outper­formed the first sense baseline score of 0.7889 by about 2.7%.</p><table caption="Table 4: Analysis on different POS on English lexical sample task" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>System</p></td><td class="cell"><p>Noun</p></td><td class="cell"><p>Verb</p></td><td class="cell"><p>Total</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Soft Tag</p></td><td class="cell"><p>92.7</p></td><td class="cell"><p>84.2</p></td><td class="cell"><p>88.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NB baseline</p></td><td class="cell"><p>91.7</p></td><td class="cell"><p>83.5</p></td><td class="cell"><p>87.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>SVM baseline</p></td><td class="cell"><p>91.6</p></td><td class="cell"><p>83.1</p></td><td class="cell"><p>87.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 2: Validation set results (best configuration)." class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Validation Set</p></td><td class="cell"><p>Soft Tag</p></td><td class="cell"><p>NB baseline</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>SE-2 All-words</p></td><td class="cell"><p>66.3</p></td><td class="cell"><p>63.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>SE-3 All-words</p></td><td class="cell"><p>66.1</p></td><td class="cell"><p>64.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lexical Sample</p></td><td class="cell"><p>89.3</p></td><td class="cell"><p>87.9</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table></section><references><p>Y. K. Lee and H. T. Ng. 2002. An Empirical Evaluation of Knowledge Sources and Learning Algorithms for Word Sense Disambiguation. In <i>Proc. of EMNLP.</i></p><p>D. M. Blei and A. Y. Ng and M. I. Jordan. 2003. La­tent Dirichlet Allocation. <i>Journal of Machine Learn­ing Research.</i></p><p>A. Ratnaparkhi 1996. A Maximum Entropy Model for Part-of-Speech Tagging. In <i>Proc. ofEMNLP.</i></p><p>E. Charniak 2000. A Maximum-Entropy-Inspired Parser. In <i>Proc. of the 1st Meeting of the North Ameri­can Chapter of the Association for Computational Lin­guistics.</i></p><p>V. N. Vapnik 1995. The Nature of Statistical Learning Theory. Springer-Verlag, New York.</p></references></body></article>