<?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="375"/><title>RALI: Automatic Weighting of Text Window Distances</title><pubinfo>Proceedings of the 5th International Workshop on Semantic Evaluation, ACL 2010,pages 375-378, Uppsala, Sweden, 15-16 July 2010. ©2010 Association for Computational Linguistics</pubinfo><author surname="Brosseau-Villeneuve" givenname="Bernard"><org  name="ca # National Institute of Informatics"/></author><author surname="Kando" givenname="Noriko"><org  name="ca # National Institute of Informatics"/></author><author surname="Nie" givenname="Jian-Yun"><org  name="ca # National Institute of Informatics"/></author></firstpageheader><frontmatter><p><b>RALI: Automatic weighting of text window distances</b></p><p><b>Bernard Brosseau-Villeneuve**, Noriko Kando#, Jian-Yun Nie*</b></p><p>* Université de Montréal, Email: {brosseab,  nie } @iro . umontreal. ca # National Institute of Informatics, Email: {bbrosseau,  kando} @nii .ac.jp</p></frontmatter><abstract>Systems using text windows to model word contexts have mostly been using fixed-sized windows and uniform weights. The window size is often selected by trial and error to maximize task results. We propose a non-supervised method for se­lecting weights for each window distance, effectively removing the need to limit win­dow sizes, by maximizing the mutual gen­eration of two sets of samples of the same word. Experiments on Semeval Word Sense Disambiguation tasks showed con­siderable improvements. </abstract></header><body><section number="1" title="Introduction"><p>The meaning of a word can be defined by the words that accompany it in the text. This is the principle often used in previous studies on Word Sense Disambiguation (WSD) (Ide and Véronis, 1998; Navigli, 2009). In general, the accompa­nying words form a context vector of the target word, or a probability distribution of the context words. For example, under the unigram bag-of-word assumption, this means building <i>p(x\t) = </i><i>count(x</i><i>t)</i><i> </i>where <i>count(xA) </i>is the count of co-occurrences of word <i>x </i>with the target word <i>t </i>under a certain criterion. In most studies, <i>x </i>and <i>t </i>should co-occur within a window of up to <i>k </i>words or sentences. The bounds are usually selected as to maximize system performance. Occurrences in­side the window usually weight the same with­out regard to their position. This is counterintu­itive. Indeed, a word closer to the target word usu­ally has a greater semantic constraint on the tar­get word than a more distant word. Some studies have also proposed decaying factors to decrease the importance of more distant words in the con­text vector. However, the decaying functions are defined manually. It is unclear that the functions defined can capture the true impact of the con­text words on the target word. In this paper, we propose an unsupervised method to automatically learn the optimal weight of a word according to its distance to the target word. The general idea used to determine such weight is that, if we randomly determine two sets of texts containing the target word, the resulting probability distributions for its context words in the two sets should be similar. Therefore, the weights of context words at differ­ent distance are determined so as to maximize the mutual generation probabilities of two sets of sam­ples. Experimentation on Semeval-2007 English and Semeval-2010 lapanese lexical sample task data shows that improvements can automatically be attained on simple Naive Bayes (NB) systems in comparison to the best manually selected fixed window system.</p><doubt alpha="62.5" length="16" tooSmall="False" monospace="0.0">yf count(x',t)v'</doubt><p>The remainder of this paper is organized as fol­lows: example uses of text windows and related work are presented in Section 2. Our method is presented in Section 3. In Section 4 and 5, we show experimental results on English and lapanese WSD. We conclude in Section 6 with discussion and further possible extensions.</p></section><section number="2" title="Uses of text windows"><p>Modeling the distribution of words around one target word has many uses. For instance, the Xu&amp;Croft co-occurrence-based stemmer (Xu and Croft, 1998) uses window co-occurrence statis­tics to calculate the best equivalence classes for a group of word forms. They suggest using win­dows of up to 100 words. Another example can be found in WSD systems, where a shorter window is preferred. In Semeval-2007, top performing sys­tems on WSD tasks, such as NUS-ML (Cai et al., 2007), made use of bag-of-word features around the target word. In this case, they found that the best results can be achieved using a window size of 3.</p><page local="2" global="376"/><p>Both these systems limit the size of their win­dows for different purposes. The former aims to model the topic of the documents containing the word rather than the word's meaning. The latter limits the size because bag-of-word features fur­ther from the target word would not be sufficiently related to its meaning (Ide and Véronis, 1998). We see that because of sparsity issues, there is a com­promise between taking few, highly related words, or taking several, lower quality words.</p><p>In most current systems, all words in a window are given equal weight, but we can easily under­stand that the occurrences of words should gener­ally count less as they become farther; they form a long tail that we should use. Previous work pro­posed using non-linear functions of the distance to model the relation between two words. For in­stance, improvements can be obtained by using an exponential function (Gao et al., 2002). Yet, there is no evidence that the exponential - with its man­ually selected parameter - is the best function.</p></section><section number="3" title="Computing weights for distances"><p>In this section, we present our method for choos­ing how much a word should count according to its distance to the target word. First, for some defini­tions, let <i>C</i><i> </i>be a corpus, <i>W</i><i> </i>a set of text windows, <i>cw,i</i><i>,x </i>the count of occurrences of word <i>x</i><i> </i>at dis­tance <i>i </i>in <i>W, </i><i>cw,i</i><i> </i>the sum of these counts, and the weight put on one word at distance <i>i. </i>Then,</p><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">Pml,w(x) =</doubt><p><i>J2j </i><i>(XjCW,i,x </i><i>J2i</i><i> </i><i>OLiCw.i</i></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(1)</doubt><p>is the maximum likelihood estimator for <i>x. </i>To counter the zero-probability problem, we apply Dirichlet smoothing with the collection language model as a prior:</p><doubt alpha="64.0" length="25" tooSmall="False" monospace="0.0">d, nEiotiCW,i,x +HwP{x\C)</doubt><doubt alpha="33.3" length="18" tooSmall="False" monospace="0.0">PDir,w(x)=-=-;-(2)</doubt><doubt alpha="58.8" length="17" tooSmall="False" monospace="0.0">l^i OLiC\v,i + ßW</doubt><p>The pseudo-count <i>ßw </i>is found by using Newton's method via leave-one-out estimation. We follow the procedure shown in (Zhai and Lafferty, 2002), but since occurrences have different weights, the log-likelihood is changed to</p><doubt alpha="36.4" length="11" tooSmall="False" monospace="0.0">C-MW,C)=(3)</doubt><p>To find the best weights for our model we pro­pose the following:</p><p>• Let <i>T</i><i> </i>be the set of all windows containing the target word. We randomly split this set into two sets <i>A </i>and <i>B.</i></p><p>• We want to find a* that maximizes the mu­tual generation of the two sets, by minimizing their cross-entropy:</p><doubt alpha="55.3" length="38" tooSmall="False" monospace="0.0">1(a) = H(PML,A&gt;PDir,B)+H(PML,B,PDir,A)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(4)</doubt><p>In other words, we want to represent how much an occurrence at distance <i>i </i>models the con­text better than the collection language model, whose counts are controlled by the Dirichlet pseudo-count. We hypothesize that target words occurs in limited contexts, and as we get farther from them, the possibilities become greater, re­sulting in sparse and less related counts.</p><subsection number="3.1" title="Gradient descent"><p>We propose a simple gradient descent minimiz­ing (4) over <i>a. </i>For the following experiments, we used one single curve for all words in a task. We used the mini-batch type of gradient descent: the gradients of a fixed amount of target words are summed, a gradient step is done, and the procès is repeated while cycling the data. The starting state was with all to one, the batch size of 50 and a learning rate of 1. We notice that as the al­gorithm progress, weights on close distances in­crease and the farthest decrease. As further dis­tances contribute less and less, middle distances start to decay more and more, until at some point, all distances but the closest start to decrease, head­ing towards a degenerate solution. We therefore suggest using the observation of several consecu­tive decreases of all except <i>a </i>i as an end criterion. We used 10 consecutive steps for our experiments.</p></subsection></section><section number="4" title="Experiments on Semeval-2007 English Lexical Sample"><p>The Semeval workshop holds WSD tasks such as the English Lexical Sample (ELS) (Pradhan et al., 2007). It consists of a selected set of polysemous words, contained within passages where a sense taken from a sense inventory is manually anno­tated. The task is to create supervised classifiers maximizing accuracy on test data.</p><p>Since there are only 50 words and instances are few, we judged there was not enough data to com­pute weights. Instead, we used the AP Newswire corpus of the TREC collection (CD 1 &amp; 2). Words were stemmed with the Porter stemmer and text windows were grouped for all words.<page local="3" global="377"/> For sim­plicity and efficiency, windows to the right and to the left were considered independent, and we only kept words with between 30 and 1000 windows. Also, only windows with a size of 100, which was considered big enough without any doubt, were kept. A stop list of the top 10 frequent words was used, but place holders were left in the windows to preserve the distances. Multiple consecutive stop words (ex: "of the") were merged, and the tar­get word, being the same for all samples of a set, was ignored. This results in 32,650 sets contain­ing 5,870,604 windows. In Figure 1, we can see the resulting weight curve.</p><doubt alpha="22.2" length="9" tooSmall="False" monospace="0.0">1-On-----</doubt><doubt alpha="22.2" length="9" tooSmall="False" monospace="0.0">0.8j_i0.6</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">c</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">Ol</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">&lt;u</doubt><doubt alpha="54.5" length="11" tooSmall="False" monospace="0.0">O.Ol--i,i I</doubt><doubt alpha="17.0" length="47" tooSmall="False" monospace="0.0">0       20      40      60      80 100 distance</doubt><p>Figure 1 : Weight curve for AP Newswire</p><p>Since the curve converges, words over the 100th distance were assigned the minimum weight found in the curve. From this we constructed NB models whose class priors used an absolute discounting of 0.5. The collection language model used the con­catenation of the AP collection and the Semeval data. As the unstemmed target word is an impor­tant feature it was added to the models. It's weight was chosen to be 0.7 by maximizing accuracy on one-held-out cross-validation of the training data. The results are listed in Table 1.</p><doubt alpha="66.7" length="42" tooSmall="False" monospace="0.0">Table 1 : WSD accuracy on Semeval-2007 ELC</doubt><p>We used two baselines: most frequent sense (prior only), and the best uniform (except target word) fixed size window found from extensive search on the training data. The best settings were a window of size 4, with a weight of 4.4 on the target word and a Laplace smoothing of 2.9. The improvements seen using our system are substan­tial, beating most of the systems originally pro­posed for the task (Pradhan et al., 2007). Out of 15 systems, the best results had accuracies of 89.1*, 89.1*, 88.7, 86.9 and 86.4 (* indicates post-competition submissions). Notice that most were using Support Vector Machine (SVM) with bag-of-word features in a very small window, local col­locations and POS tags. In our future work, we will investigate the applications of SVM with our new term weighting scheme.</p></section><section number="5" title="Experiments on Semeval-2010 Japanese WSD"><p>The Semeval-2010 lapanese WSD task (Okumura et al., 2010) consists of 50 polysemous words for which examples were taken from the BC-CWI tagged corpus. It was manually segmented, tagged, and annotated with senses taken from the Iwanami Kokugo dictionary. The task is identical to the ELS of the previous experiment.</p><p>Since the data was again insufficient to com­pute curves, we used the Mainichi-2005 corpus of NTCIR-8. We tried to reproduce the same kind of segmentation as the training data by using the Chasen parser with UniDic. For the corpus and Semeval data, conjugations (setsuzoku-to, jodô-shi, etc.), particles (all jo-shi), symbols (blanks, kigô, etc.), and numbers were stripped. When a base-form reading was present (for verbs and ad­jectives), the token was replaced by the Kanjis (Chinese characters) in the word writing concate­nated with the base-form reading. This treatment is somewhat equivalent to the stemming+stop list of the ELS tasks. The resulting curve can be seen in Figure 2.</p><p>The NB models are the same as in the previous experiments. Target words were again added the same way as in the ELS task. The best fixed win­dow model was found to have a window size of 1 with a target word weight of 0.6 and used manual Dirichlet smoothing with a pseudo-count of 110. We submited two systems with the following set­tings: RALI-1 used manual Dirichlet smoothing and 0.9 for the target word. RALI-2 used auto-<page local="4" global="378"/></p><table 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>System</p></td><td class="cell"><p>Cross-Val (%)</p></td><td class="cell"><p>Test set (%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Prior only</p></td><td class="cell"><p>78.66</p></td><td class="cell"><p>77.76</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Best uniform</p></td><td class="cell"><p>85.48</p></td><td class="cell"><p>83.28</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RALI-2</p></td><td class="cell"><p>88.23</p></td><td class="cell"><p>86.45</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><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">1.0</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.8</doubt><doubt alpha="37.5" length="8" tooSmall="False" monospace="0.0">j_i0.6 c</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">Ol &lt;JJ</doubt><footnote label="5">0.4</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.2</doubt><doubt alpha="0.0" length="9" tooSmall="False" monospace="0.0">0.01----1</doubt><doubt alpha="0.0" length="38" tooSmall="False" monospace="0.0">0       20      40      60      80 100</doubt><p><b>distance</b></p><figure caption="Figure 2: Weight curve for Mainichi Shinbun 2005"></figure><p>matic Dirichlet smoothing and 1.7 for the target word weight. Results are listed in Table 2.</p><p>As we can see, the results are not significantly different from the best uniform model. This may be due to differences in the segmentation parame­ters of our external corpus. Another reason could be that the systems use almost the same weights: the best fixed window had size 1, and the lapanese curve is steeper than the English one.</p><p>This steeper curve can be explained by the grammatical structure of the lapanese language. While English can be considered a Subject-Verb-Complement language, lapanese is consid­ered Subject-Complement-Verb. Verbs are mostly found at the end of the sentence, far from their sub­ject, and vice versa. The window distance is there­fore less useful in lapanese than in English since it has more non-local dependencies. These results show that the curves work as expected even in dif­ferent languages.</p></section><section number="6" title="Conclusions"><p>This paper proposed an unsupervised method for finding weights for counts in text windows ac­cording to their distance to the target word. Results from the Semeval-2007 English lexical sam­ple showed a substantial improvement in preci­sion. Yet, as we have seen with the lapanese task, window distance is not always a good indicator of word relatedness. Fortunately, we can easily imag­ine extensions to the current scheme that bins word counts by factors other than word distance. For in­stance, we could also bin counts by parsing tree distance, sentence distance or POS-tags.</p></section><section title="Acknowledgments"><p>The authors would like to thank Florian Boudin and Satoko Fujisawa for helpful comments on this work. This work is partially supported by lapanese MEXT Grant-in-Aid for Scientific Research on Info-plosion (#21013046) and the lapanese MEXT Research Student Scholarship program.</p><table caption="Table 2: WSD accuracy on Semeval-2010 IWSD" 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>System</p></td><td class="cell"><p>Cross-Val (%)</p></td><td class="cell"><p>Test set (%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>prior only</p></td><td class="cell"><p>75.23</p></td><td class="cell"><p>68.96</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Best uniform</p></td><td class="cell"><p>82.29</p></td><td class="cell"><p>76.12</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RALI-1</p></td><td class="cell"><p>82.77</p></td><td class="cell"><p>75.92</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RALI-2</p></td><td class="cell"><p>83.05</p></td><td class="cell"><p>76.36</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>Jun Fu Cai, Wee Sun Lee, and Yee Whye Teh. 2007. Nus-ml: improving word sense disambiguation us­ing topic features. In <i>SemEval '07 Proceedings, </i>pages 249-252, Morristown, NJ, USA. Association for Computational Linguistics.</p><p>Jianfeng Gao, Ming Zhou, Jian-Yun Nie, Hongzhao He, and Weijun Chen. 2002. Resolving query trans­lation ambiguity using a decaying co-occurrence model and syntactic dependence relations. In <i>SI-GIR '02 Proceedings, </i>pages 183-190, New York, NY, USA. ACM.</p><p>Nancy Ide and Jean Véronis. 1998. Introduction to the special issue on word sense disambiguation: the state of the art. <i>Comput. Linguist, </i>24(1):2^10.</p><p>Roberto Navigli. 2009. Word sense disambiguation: A survey. <i>ACM Comput. Surv., </i>41(2): 1-69.</p><p>Manabu Okumura, Kiyoaki Shirai, Kanako Komiya, and Hikaru Yokono. 2010. Semeval-2010 task: Japanese wsd. In <i>SemEval '10 Proceedings. </i>Associ­ation for Computational Linguistics.</p><p>Sameer S. Pradhan, Edward Loper, Dmitriy Dligach, and Martha Palmer. 2007. Semeval-2007 task 17: English lexical sample, srl and all words. In <i>Se­mEval '07 Proceedings, </i>pages 87-92, Morristown, NJ, USA. Association for Computational Linguis­tics.</p><p>Jinxi Xu and W. Bruce Croft. 1998. Corpus-based stemming using cooccurrence of word vari­ants. <i>ACM Trans. Inf. Syst., </i>16(1):61-81.</p><p>ChengXiang Zhai and John Lafferty. 2002. Two-stage language models for information retrieval. In <i>SIGIR '02 Proceedings, </i>pages 49-56, New York, NY, USA. ACM.</p></references></body></article>