<?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="342"/><title>UBC-ALM: Combining k-NN with SVD for WSD</title><pubinfo>Proceedings of the 4th International Workshop on Semantic Evaluations (SemEval-2007),pages 342-345, Prague, June 2007. ©2007 Association for Computational Linguistics</pubinfo><author surname="Agirre" givenname="Eneko"><org  name="University of the Basque Country" country="Spain" city="Donostia"/></author><author surname="Lopez de Lacalle" givenname="Oier"><org  name="University of the Basque Country" country="Spain" city="Donostia"/></author></firstpageheader><frontmatter><p><b>UBC-ALM: Combining k-NN with SVD for WSD</b></p><p><b>Eneko Agirre and Oier Lopez de Lacalle</b></p><p>IXANLP Group University of the Basque Country Donostia, Basque Country {e.agirre,j ibloleo}@ehu.es</p></frontmatter><abstract>This work describes the University of the Basque Country system (UBC-ALM) for lexical sample and all-words WSD subtasks of SemEval-2007 task 17, where it per­formed in the second and fifth positions re­spectively. The system is based on a com­bination of k-Nearest Neighbor classifiers, with each classifier learning from a distinct set of features: local features (syntactic, col­locations features), topical features (bag-of-words, domain information) and latent fea­tures learned from a reduced space using Singular Value Decomposition. </abstract></header><body><section number="1" title="Introduction"><p>Our group (UBC-ALM) participated in the lexical sample and all-words WSD subtasks of SemEval-2007 task 17. We applied a combination ofdifferent k-Nearest Neighbor (k-NN) classifiers. Each clas­sifier manages different information sources (fea­tures), making the combination a powerful solution. This algorithm was previously tested on the datasets from previous editions of Senseval (Agirre et al., 2005; Agirre et al., 2006). Before submission, the performance of the system was tested on the Se-mEval lexical sample training data. For learning we use a rich set of features, including latent features obtained from a reduced space using Singular Value Decomposition (SVD).</p><p>This paper is organized as follows. The learning features are presented in section 2, and the learning algorithm and the combinations of single k-NNs are given in section 3. Section 4 focuses on the tuning experiments. Finally, section 5 summarizes the offi­cial results and some conclusions.</p></section><section number="2" title="Feature set"><p>We relied on an extensive set of features of differ­ent types, obtained by means of different tools and resources. We defined two main groups: the <b>origi­nal features </b>extracted directly from the text, and the <b>SVD features </b>obtained after applying SVD decom­position and projecting the original features into the new semantic space (Agirre et al., 2005).</p><subsection number="2.1" title="Original features"><p><b>Local collocations: </b>bigrams and trigrams formed with the words around the target. These features are constituted by lemmas, word-forms, or PoS tags<footnote anchor="1"/>. Other local features are those formed with the previ­ous/posterior lemma/word-form in the context.</p><p><b>Syntactic dependencies: </b>syntactic dependencies were extracted using heuristic patterns, and regular expressions defined with the PoS tags around the tar-get<footnote anchor="2"/>. The following relations were used: object, sub­ject, noun-modifier, preposition, and sibling.</p><p><b>Bag-of-words features: </b>we extract the lemmas of the content words in the whole context, and in a ±4-word window around the target. We also obtain salient bigrams in the context, with the methods and the software described in (Pedersen, 2001).</p><p><b>Domain features: </b>The WordNet Domains re­source was used to identify the most relevant do­mains in the context. Following the relevance for­mula presented in (Magnini and Cavaglia, 2000), we defined 2 feature types: (1) the most relevant do­main, and (2) a list of domains above a predefined threshold<footnote anchor="3"/>.</p><p>'The PoS tagging was performed with the fnTBL toolkit (Ngai and Florian, 2001).</p><footnote label="2">This software was kindly provided by David Yarowsky's group, from Johns Hopkins University.</footnote><footnote label="3">The software to obtain the relevant domains was kindly provided by Gerard Escudero's group, from Universitat Politec-</footnote><page local="2" global="343"/></subsection><subsection number="2.2" title="SVD features"><p>Singular Value Decomposition (SVD) is an interest­ing solution to the sparse data problem. This tech­nique reduces the dimensions of the vectorial space finding correlations and collapsing features. It also gives the chance to use unlabeled data as an addi­tional source of correlations.</p><p><i>M 3 </i>Rmxn, a matrix of features-by-document is built from the training corpus and decomposed into three matrices, as shown in Eq. (1). U and V, row and column matrix, respectively, have orthonormal columns and S is a diagonal matrix which contains k eigenvalues in descending order.</p><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">k=min{m,n}</doubt><doubt alpha="54.5" length="22" tooSmall="False" monospace="0.0">M = U SVT=Y,(TiUivF(1)</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">i=1</doubt><p>We used the <i>singular value </i>matrix (S) and the <i>column </i>matrix (U) to create a projection matrix, which is used to project the data (represented in fea­tures vectors) from the original space to a reduced space. Prior to that we selected the first p columns from the S and U matrices <i>(p &lt; </i>k): tp = UpS"<footnote anchor="1"/></p><p>We have explored two different variants in order to build a matrix, and obtain the SVD features:</p><p><b>SVD One Matrix per Target word (SVD-OMT). </b>For each word (i) we extracted all the fea­tures from the given training (test) corpus, (ii) built the feature-by-document matrix from training cor­pus, (iii) decomposed it with SVD, and (iv) project all the training (test) data. Note that this variant has been only used in the lexical sample task due to its costly computational requirements.</p><p><b>SVD Single Matrix for All target words (SVD-</b> <b>SMA):</b><b> </b>(i) we extracted bag-of-words features from the British National Corpus (BNC) (Leech, 1992), (ii) built the feature-by-document matrix, (iii) de­compose it with SVD, and (iv) project all the data (train/test).</p></subsection></section><section number="3" title="Learning Algorithm"><p>The machine learning (ML) algorithm presented in this section rely on the previously described fea­tures. Each occurrence or instance is represented by the features found in the context (fi). Given an oc­currence of a word, the ML method below returns a</p><p>nica de Catalunya</p><p>weight for each sense <i>(weight(sk</i>)). The sense with maximum weight will be selected.</p><p>We use a set of combination of the <i>k</i><b>-Nearest Neighbor </b><i>(k</i>-NN) to tag the target words in both the lexical sample and all-words tasks.</p><subsection number="3.1" title="k -Nearest Neighbor"><p><i>k</i>-NN is a memory-based learning method, where the neighbors are the <i>k </i>most similar contexts, repre­sented by feature vectors (ci), of the test vector (/). The similarity among instances is measured by the cosine of their vectors. The test instance is labeled with the sense obtaining the maximum sum of the weighted votes of the <i>k </i>most similar contexts. The vote is weighted depending on its (neighbor) posi­tion in the ordered rank, with the closest being first. Eq. (2) formalizes k-NN, where Ci corresponds to the sense label of the <i>i</i>-th closest neighbor.</p></subsection><subsection number="3.2" title="k -NN combinations and feature splits"><p>As seen in section 2 we use a variety of heteroge­neous sets of features. Our previous experience has shown that splitting the problem up into more co­herent spaces, training different classifiers in each feature space, and then combining them into a sin­gle classifier is a good way to improve the results (Agirre et al., 2005; Agirre et al., 2006). Depend­ing on the feature type (original features or features extracted from SVD projection) we split different sets of feature spaces. In total we tried 10 features spaces.</p><p>For the <b>original features:</b></p><p><b>• alLfeats: </b>Extracted all original features.</p><p><b>• alLnotdom: </b>All original features except do­main features.</p><p><b>• local: </b>All the original features except domain and bag-of-words features.</p><p><b>• topic: </b>The sum of bag-of-words and domain features.</p><p><b>• bow: </b>Bag-of-word features.</p><p><b>• dom: </b>Domain features.</p><doubt alpha="36.1" length="61" tooSmall="False" monospace="0.0">k{ i   ifC-=S­arg max =      &lt;X    ^%■3(2)&lt;?.^    0 otherwise</doubt><page local="3" global="344"/><p>For the <b>SVD features:</b></p><p><b>• SVD-OMT[all_feats]: </b>OMT matrix applied to all original features.</p><p>• <b>SVD-OMT[local]: </b>OMT matrix to the <b>local </b>original features.</p><p>• <b>SVD-OMT[topic]: </b>OMT matrix to the <b>topic </b>original features.</p><p>• <b>SVD-SMA: </b>Features obtained from the projec­tion of<b>bow </b>features with the SMA matrix.</p><p>Depending on the ML method one can try differ­ent approaches to combine classifiers. In this work, we exploited the fact that a k-NN classifier can be seen as k points casting each one vote. The votes are weigthed by the inverse ratio of its position in the rank (k — <i>r </i>+ 1)/k, where <i>r </i>is the rank. Each of the k-NN classifiers is trained on a different fea­ture space and then combined.</p></subsection></section><section number="4" title="Experiments on training data"><p>We optimized and tuned the system differently for each kind of tasks. We will examine each in turn.</p><subsection number="4.1" title="Optimization for the lexical sample task"><p>For the lexical sample task we only use the train­ing data provided. We tuned the classifiers using 3 fold cross-validation on the SemEval lexical sample training data. We tried to optimize several param­eters: number of neighbors, SVD dimensions and best combination of the single k-NNs. We set k as one of 1,3, 5 and 7, and the SVD dimension (d) as one of 50,100,200 and 300. We also fixed the best combination. This is the optimization procedure we followed:</p><p>1. For each single classifier and feature set (see section 2), check each parameter combination.</p><p>2. Fix the parameters for each single classifier. In our case, k = 5 and k = 7 had similar results, so we postponed the decision. d = 200 was the best dimension for all classifiers, except SVD-OMT[topic] which was d = 50.</p><p>3. For the best parameter settings (k = 5; k = 7 and d = 200; d = 50 when SVD-OMT[topic]) make <i>a priori </i>meaningful combinations (due to CPU requirements, not all combination were feasible).</p><p>4. Choose the x best combination overall, and op­timize word by word among these combination. We set x = 8 for this work, k was fixed in 5, which was d = 50).</p><doubt alpha="64.1" length="39" tooSmall="False" monospace="0.0">and d = 200 (except with SVD-OMT[topic]</doubt><p>Table 1 shows the best results for 3 fold cross-validation in SemEval lexical sample training cor­pus. The figures show that optimizing each word the performance increases 0.7 percentage points over the best combination.</p></subsection><subsection number="4.2" title="Optimization for the all-words task"><p>To train the classifiers for the all-words task we just used Semcor (Miller et al., 1993). In (Agirre et al., 2006) we already tested our approach on the Senseval-3 all-words task. The best performance for the Senseval-3 all-words task was obtained with k = 5 and d = 200, but we decided to to perform further experiments to search for the best combina­tion. We tested the performance of the combination of single k-NN training on Semcor and testing both on the Senseval-3 all-words data (cf. Table 2) and on the training data from SemEval-2007 lexical sample (cf. Table 3).</p><p>Note that tables 2 and 3 show contradictory re­sults. Given that in SemEval-2007 lexical sample our results.<page local="4" global="345"/></p><table caption="Table 1: Result for the bestA;-NN combinations in 3 fold cross-validation SemEval lexical sample." 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><b>Combination</b></p></td><td class="cell"><p><b>accuracy</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>all_feats+topic+local+SVD-OMT[all_feats]+SVD-OMT[topic]+SVD-OMT[local]</p></td><td class="cell"><p>88.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>allJeats+all^otdom+topic+local+SVD-SMA+SVD-O</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>all_feats+topic+local+SVD-SMA+SVD-OMT[all_feats]+SVD-OMT[topic]+SVD-OMT[local]</p></td><td class="cell"><p>88.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>all_notdom+topic+local+SVD-SMA+SVD-OMT[all_feats]+SVD-OMT[topic]+SVD-OMT[local]</p></td><td class="cell"><p>88.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>all_feats+all_notdom+topic+local</p></td><td class="cell"><p>88.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>all_notdom+local+SVD-SMA</p></td><td class="cell"><p>88.3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>all_feats+all_notdom+local+SVD-SMA</p></td><td class="cell"><p>88.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>alLnotdom+topic+local</p></td><td class="cell"><p>88.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>alLfeats+topic+local</p></td><td class="cell"><p>88.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>word-by-word optimization</b></p></td><td class="cell"><p><b>89.5</b></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><p>Table 2: Results for the best k-NN combinations in Senseval-3 all-words, using Semcor as training cor­pus.</p><p>Table 3: Results for the best k-NN combinations in training part of SemEval lexical sample, using Sem-cor as training corpus.</p><p>the senses are more coarse grained, we decided to take the best combination on Senseval-3 all-words for the final submission.</p></subsection></section><section number="5" title="Results and conclusions"><p>Table 4 shows the performance obtained by our sys­tem and the winning systems in the SemEval lexi­cal sample and all-words evaluation. On the lexical sample evaluation our system is 2.6 lower than the cross-validation evaluation. This can be a sign of a slight overfitting on the training data. All in all we ranked second over 13 systems.</p><p>Our all-words system did not perform so well. Our system is around 4.7 points below the winning system, ranking 5th from a total of 14, and 3 points above the baseline given by the organizers. This is a disappointing result when compared to our previ­ous work on Senseval-3 all-words where we were able to beat the best official results (Agirre et al., 2006). Note that the test set was rather small, with 465 occurrences only, which might indicate that the performance differences are not statistically signifi­cant. We plan to further investigate the reasons for</p></section><section title="Acknowledgments"><p>We wish to thank to David Martinez for helping us extracting learning features. This work has been partially funded by the Spanish education ministry (project KNOW). Oier Lopez de Lacalle is sup­ported by a PhD grant from the Basque Government.</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><b>Combination</b></p></td><td class="cell"><p><b>rec.</b></p></td><td class="cell"><p><b>prec.</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>allJeats+local+notbow</p><p>allJeats+local+SVD-SMA</p><p>all_feats+topic+local+SVD-SMA</p></td><td class="cell"><p>0.685 0.679 0.689</p></td><td class="cell"><p>0.685 0.679 0.689</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><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><b>Combination</b></p></td><td class="cell"><p><b>rec.</b></p></td><td class="cell"><p><b>prec.</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>allJeats+SVD-SMA</p><p>allJeats+local+SVD-SMA</p><p>all_feats+topic+local+SVD-SMA</p></td><td class="cell"><p>0.666 0.661 0.664</p></td><td class="cell"><p>0.666 0.661 0.664</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><table caption="Table 4: Official results for SemEval-2007 task 17 lexical sample and all-words subtasks." 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><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Task</b></p></td><td class="cell"><p><b>Method</b></p></td><td class="cell"><p><b>Rank</b></p></td><td class="cell"><p><b>rec.</b></p></td><td class="cell"><p><b>prec.</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>LS</p></td><td class="cell"><p>Best</p></td><td class="cell"><p>1</p></td><td class="cell"><p>0.887</p></td><td class="cell"><p>0.887</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>LS</p></td><td class="cell"><p>UBC-ALM</p></td><td class="cell"><p>2</p></td><td class="cell"><p>0.869</p></td><td class="cell"><p>0.869</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>LS</p></td><td class="cell"><p>Baseline</p></td><td class="cell"><p>-</p></td><td class="cell"><p>0.780</p></td><td class="cell"><p>0.780</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>AW</p></td><td class="cell"><p>Best</p></td><td class="cell"><p>1</p></td><td class="cell"><p>0.591</p></td><td class="cell"><p>0.591</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>AW</p></td><td class="cell"><p>k-NN combination</p></td><td class="cell"><p>5</p></td><td class="cell"><p>0.544</p></td><td class="cell"><p>0.544</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>AW</p></td><td class="cell"><p>Baseline</p></td><td class="cell"><p>-</p></td><td class="cell"><p>0.514</p></td><td class="cell"><p>0.514</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><td class="cell"></td></tr></table></section><references><p>E. Agirre, O.Lopez de Lacalle, and David Martinez. 2005. Exploring feature spaces with svd and unlabeled data for Word Sense Disambiguation. In <i>Proceedings ofthe Conference on Recent Advances on Natural Lan­guage Processing (RANLP '05), </i>Borovets, Bulgaria.</p><p>E. Agirre, O. Lopez de Lacalle, and D. Martinez. 2006. Exploring feature spaces with svd and unlabeled data for Word Sense Disambiguation.    In <i>Proceedings</i> <i>ofthe XXII Conference ofSociedad Espaola para el Procesamiento del Lenguaje Natural (SEPLN'06), </i>Zaragoza, Spain.</p><p>G. Leech. 1992. 100 million words of English: the British National Corpus. <i>Language Research, </i>28(1):1-13.</p><p>B. Magnini and G. Cavaglia. 2000. Integrating subject field codes into WordNet. In <i>Proceedings of the Sec­ond International LREC Conference, </i>Athens, Greece.</p><p>G.A. Miller, C. Leacock, R. Tengi, and R.Bunker. 1993. A Semantic Concordance. In <i>Proceedings ofthe ARPA Human Language Technology Workshop. Dis­tributed as </i>Human Language Technology <i>by San Ma­teo, CA: Morgan Kaufmann Publishers.</i>, pages 303­308, Princeton, NJ.</p><p>G. Ngai and R. Florian. 2001. Transformation-Based Learning in the Fast Lane. <i>Proceedings ofthe Second Conference ofthe North American Chapter ofthe As­sociation for Computational Linguistics, pages 40-47, Pittsburgh, PA, USA.</i></p><p>T. Pedersen. 2001. A Decision Tree of Bigrams is an Accurate Predictor of Word Sense. In <i>Proceedings ofthe Second Meeting ofthe North American Chap­ter ofthe Association for Computational Linguistics (NAACL-01), </i>Pittsburgh, PA.</p></references></body></article>