<?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="907"/><title>Learning Graph Walk Based Similarity Measures for Parsed Text</title><author surname="Minkov" givenname="Einat"><org  name="Carnegie Mellon University" country="USA" city="Pittsburgh"/></author><author surname="Cohen" givenname="William W."><org  name="Carnegie Mellon University" country="USA" city="Pittsburgh"/></author></firstpageheader><frontmatter><p><b>Learning Graph Walk Based Similarity Measures for Parsed Text</b></p><p><b>Einat Minkov* William W. Cohen</b></p><p>Language Technologies Institute Machine Learning Department</p><p>Carnegie Mellon University Carnegie Mellon University</p><p>Pittsburgh, PA 15213, USA Pittsburgh, PA 15213, USA</p><p>einat@cs.cmu.edu wcohen@cs.cmu.edu</p></frontmatter><abstract>We consider a parsed text corpus as an in­stance of a labelled directed graph, where nodes represent words and weighted directed edges represent the syntactic relations be­tween them. We show that graph walks, com­bined with existing techniques of supervised learning, can be used to derive a task-specific word similarity measure in this graph. We also propose a new <i>path-constrained </i>graph walk method, in which the graph walk process is guided by high-level knowledge about mean­ingful edge sequences (paths). Empirical eval­uation on the task of named entity coordinate term extraction shows that this framework is preferable to vector-based models for small-sized corpora. It is also shown that the path-constrained graph walk algorithm yields both performance and scalability gains. </abstract></header><body><section number="1" title="Introduction"><p>Graph-based similarity measures have been used for a variety of language processing applications. In this paper we assume directed graphs, where typed nodes denote entities and labelled directed and weighted edges denote the relations between them. In this framework, graph walks can be ap­plied to draw a measure of similarity between the graph nodes. Previous works have applied graph walks to draw a notion of semantic similarity over such graphs that were carefully designed and man­ually tuned, based on WordNet reations (Toutanova</p><p>Current address: Nokia Research Center Cambridge, Cam­bridge, MA 02142, USA.</p><p>et al., 2004; Collins-Thompson and Callan, 2005; Hughes and Ramage, 2007).</p><p>While these and other researchers have used WordNet to evaluate similarity between words, there has been much interest in extracting such a measure from text corpora (e.g., (Snow et al., 2005; Pado and Lapata, 2007)). In this paper, we suggest pro­cessing dependency parse trees within the general framework ofdirected labelled graphs. We construct a graph that directly represents a corpus of struc­tured (parsed) text. In the suggested graph scheme, nodes denote words and weighted edges represent the dependency relations between them. We apply graph walks to derive an inter-word similarity mea­sure. We further apply learning techniques, adapted to this framework, to improve the derived corpus-based similarity measure.</p><p>The learning methods applied include existing learning techniques, namely edge weight tuning, where weights are associated with the edge types, and discriminative reranking of graph nodes, using features that describe the possible paths between a graph node and the initial "query nodes" (Minkov and Cohen, 2007).</p><p>In addition, we outline in this paper a novel method for learning <i>path-constrained </i>graph walks. While reranking allows use of high-level features that describe properties of the traversed paths, the suggested algorithm incorporates this information in the graph walk process. More specifically, we allow the probability flow in the graph to be conditioned on the history of the walk. We show that this method results in improved performance as it directs proba­bility flow to meaningful paths. In addition, it leads</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">907</doubt><p><i>Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing, </i>pages 907-916, Honolulu, October 2008. ©2008 Association for Computational Linguistics<page local="2" global="908"/></p><p>to substantial gains in terms ofruntime performance.</p><p>The graph representation and the set of learning techniques suggested are empirically evaluated on the task of <i>coordinate term </i>extraction<footnote anchor="1"/> from small to moderately sized corpora, where we compare them against vector-based models, including a state-of-the-art syntactic distributional similarity method (Pado and Lapata, 2007). It is shown that the graph walk based approach gives preferable results for the smaller datasets (and comparable otherwise), where learning yields significant gains in accuracy.</p><p>There are several contributions of this paper. First, we represent dependency-parsed corpora within a general graph walk framework, and derive inter-word similarity measures using graph walks and learning techniques available in this framework. To our knowledge, the application of graph walks to parsed text in general, and to the extraction of coor­dinate terms in particular, is novel. Another main contribution of this paper is the path-constrained graph walk variant, which is a general learning tech­nique for calculating the similarity between graph nodes in directed and labelled graphs.</p><p>Below we first outline our proposed scheme for representing a dependency-parsed text corpus as a graph, and provide some intuitions about the asso­ciated similarity metric (Section 2). We then give an overview ofthe graph-walk based similarity met­ric (Section 3), as well as the known edge weight tuning and reranking learning techniques (Section 4). We next present the proposed algorithm of path-constrained graph walks (Section 5). The paper pro­ceeds with a review of related work (Section 6), a discussion of the coordinate term extraction task, empirical evaluation and our conclusions (Sections 7-9).</p></section><section number="2" title="Representing a Corpus as a Graph"><p>A typed dependency parse tree consists of directed links between words, where dependencies are la­belled with the relevant grammatical relation (e.g., <i>nominal subject, indirect object </i>etc.). We suggest representing a text corpus as a connected graph of dependency structures, according to the scheme shown in Figure 1. The graph shown in the figure</p><footnote label="1">In particular, we focus on the extraction of named entity classes.</footnote><p><b>nsubj partmod prep.with</b> <b>der prep.</b><b>of</b></p><figure caption="Figure 1: The suggested graph schema, demonstrated for a two-sentence corpus."></figure><p>includes the dependency analysis of two sentences: "boys like playing with all kinds of cars", and "girls like playing with dolls". In the graph, each word mention is represented as a node, which includes the index of the sentence in which it appears, as well as its position within the sentence. Word mentions are marked as circles in the figure. The "type" of each word - henceforth a <i>term </i>node - is denoted by a square in the figure. Each word mention is linked to the corresponding term; for example, the nodes "likei" and "like2" represent distinct word mentions and both nodes are linked to the <i>term </i>"like". For every edge in the graph, we add another edge in the opposite direction (not shown in the figure); for ex­ample, an inverse edge exists from "like1" to "girls1" with an edge labelled as "nsubj-inv". The resulting graph is highly interconnected and cyclic.</p><p>We will apply graph walks to derive an extended measure of similarity, or relatedness, between word <i>terms </i>(as defined above). For example, starting from the term "girls", we will reach the semantically re­lated term "boys" via the following two paths:</p><doubt alpha="49.1" length="53" tooSmall="False" monospace="0.0">. .   mention      .  , nsubj-.-Aas —term-..- mention</doubt><doubt alpha="41.9" length="43" tooSmall="False" monospace="0.0">(1) girls —&gt;   girls1 —&gt; like1 —&gt;   like —&gt;</doubt><p><i>...       nsubj—inverse .        </i><i>-as</i><i> — term.</i></p><doubt alpha="44.4" length="27" tooSmall="False" monospace="0.0">like2 —&gt;      boys2 —&gt; boys</doubt><p><i>. .    mention       .  -  nsubj partmod .</i></p><doubt alpha="50.0" length="42" tooSmall="False" monospace="0.0">(2) girls —&gt;   girls1 —&gt; like1 —&gt; playing1</doubt><doubt alpha="37.5" length="72" tooSmall="False" monospace="0.0">as —term    .     .      mention   .     .     - partmod—inverse ..... _</doubt><doubt alpha="51.4" length="35" tooSmall="False" monospace="0.0">—&gt;   playing —&gt;   playing2 —&gt; like2</doubt><p><i>nsubj   inverse as term</i></p><p>—&gt; boys2 —&gt; boys . Intuitively, in a graph representing a large cor­pus, terms that are more semantically related will be linked by a larger number ofconnecting paths. In addition, shorter connecting paths may be in general more meaningful. In the next section we show that the graph walk paradigm addresses both of these re­quirements.<page local="3" global="909"/> Further, different edge types, as well as the paths traversed, are expected to have varying im­portance in different types of word similarity (for ex­ample, verbs and nouns are associated with different connectivity patterns). These issues are addressed using learning.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">908</doubt></section><section number="3" title="Graph Walks and Similarity Queries"><p>This section provides a quick overview of the graph walk induced similarity measure. For details, the reader is referred to previous publications (e.g., (Toutanova et al., 2004; Minkov and Cohen, 2007)).</p><p>In summary, similarity between two nodes in the graph is defined by a weighted graph walk process, where an edge of type <i>I </i>is assigned an edge weight, <i>6e,</i><i> </i>determined by its type.<footnote anchor="2"/> The transition proba­bility of reaching node y from node x over a single time step, Pr(x —<i>&gt; y), </i>is defined as the weight of their connecting edge, <i>9l</i>, normalized by the to­tal outgoing weight from <i>x. </i>Given these transition probabilities, and starting from an initial distribu­tion Vq of interest (a <i>query), </i>we perform a graph walk for a finite number of steps K. Further, at each step of the walk, a proportion 7 of the probability mass at every node is emitted. Thus, this model ap­plies exponential decay on path length. The final probability distribution of this walk over the graph nodes, which we denote as R, is computed as fol­lows: <i>R = </i>7* VqM\ where M is the transi­tion matrix.<footnote anchor="3"/> The answer to a query, Vq, is a list of nodes, ranked by the scores in the final distribution <i>R.</i><i> </i>In this multi-step walk, nodes that are reached from the query nodes by many shorter paths will be assigned a higher score than nodes connected over fewer longer paths.</p></section><section number="4" title="Learning"><p>We consider a supervised setting, where we are given a dataset of example queries and labels over the graph nodes, indicating which nodes are relevant to which query. For completeness, we describe here two methods previously described by Minkov and</p><footnote label="2">In this paper, we consider either uniform edge weights; or, learn the set of weights 0 from examples.</footnote><footnote label="3">We tune K empirically and set 7 = 0.5, as in (Minkov and Cohen, 2007).</footnote><p>Cohen (Minkov and Cohen, 2007): a hill-climbing method that tunes the graph weights; and a reranking method. We also specify the feature set to be used by the reranking method in the domain of parsed text.</p><subsection number="4.1" title="Weight Tuning"><p>There are several motivations for learning the graph weights 6 in this domain. First, some dependency relations - foremost, <i>subject </i>and <i>object </i>- are in gen­eral more salient than others (Lin, 1998; Pado and Lapata, 2007). In addition, dependency relations may have varying importance per different notions of word similarity (e.g., noun vs. verb similarity (Resnik and Diab, 2000)). Weight tuning allows the adaption of edge weights to each <i>task </i>(i.e., distribu­tion of queries).</p><p>The weight tuning method implemented in this work is based on an error backpropagation hill climbing algorithm (Diligenti et al., 2005). The al­gorithm minimizes the following cost function:</p><p>where ez is the error for a target node z defined as the squared difference between the final score assigned to z by the graph walk, <i>pz</i>, and some ideal score ac­cording to the example's labels, p°p*.<footnote anchor="4"/> Specifically, p°p* is set to 1 in case that the node z is relevant or 0 otherwise. The error is averaged over a set of example instantiations of size <i>N. </i>The cost function is minimized by gradient descent where the deriva­tive of the error with respect to an edge weight <i>0e</i><i> </i>is derived by decomposing the walk into single time steps, and considering the contribution of each node traversed to the final node score.</p></subsection><subsection number="4.2" title="Node Reranking"><p>Reranking of the top candidates in a ranked list has been successfully applied to multiple NLP tasks (Collins, 2002; Collins and Koo, 2005). In essence, discriminative reranking allows the re-ordering of results obtained by methods that perform some form of local search, using features that encode higher level information.</p><footnote label="4">For every example query, a handful of the retrieved nodes are considered, including both relevant and irrelevant nodes.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">909</doubt><page local="4" global="910"/><p>A number of features describing the set of paths from <i>V</i>q can be conveniently computed in the pro­cess of executing the graph walk, and it has been shown that reranking using these features can im­prove results significantly. It has also been shown that reranking is complementary to weight tuning (Minkov and Cohen, 2007), in the sense that the two techniques can be usefully combined by tuning weights, and then reranking the results.</p><p>In the reranking approach, for every training ex­ample i (1 &lt; <i>i &lt; </i>N), the reranking algorithm is provided with the corresponding output ranked list of <i>I*</i><i> </i>nodes. Let Zj be the output node ranked at rank j in <i>I*,</i><i> </i>and let <i>pZij </i>be the probability assigned to <i>z</i><i>%j </i>by the graph walk. Each output node <i>z</i><i>*j </i>is repre­sented through m features, which are computed by pre-defined feature functions f1,..., fm. The <i>rank­ing function </i>for node z*j is defined as:</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">m</doubt><doubt alpha="57.6" length="33" tooSmall="False" monospace="0.0">F(z*j,a) = aolog{pzij) +akfk(z%j)</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">k=i</doubt><p>where <i>a </i>is a vector of real-valued parameters. Given a new test example, the output of the model is the output node list reranked by F<i>(z</i><i>*j</i>, a). To learn the parameter weights a, we here applied a boosting method (Collins and Koo, 2005) (see also (Minkov et al., 2006)).</p><subsubsection number="4.2.1" title="Features"><p>We evaluate the following feature templates. <i>Edge label sequence </i>features indicate whether a par­ticular sequence of edge labels <i>1*</i><i> </i>occurred, in a particular order, within the set of paths leading to the target node <i>z</i><i>%j</i>. <i>Lexical unigram </i>feature indi­cate whether a word mention whose lexical value is <i>tk</i><i> </i>was traversed in the set of paths leading to <i>z</i><i>*j</i>. Finally, the <i>Source-count </i>feature indicates the number of different source query nodes that <i>z</i><i>*j </i>was reached from. The intuition behind this last fea­ture is that nodes linked to multiple query nodes, where applicable, are more relevant. For exam­ple, for the query term "girl" in the graph depicted in Figure 1, the target node "boys" is described by the features (denoted as <i>feature-name.feature-value): sequence.nsubj.nsubj-inv </i>(where <i>mention </i>and <i>as-term </i>edges are omitted), <i>lexical.'"like" </i>etc.</p><p>In this work, the features encoded are binary. However, features can be assugned numeric weights that corresponds to the probability of the indicator being true for any path between x and z*j (Cohen and Minkov, 2006).</p></subsubsection></subsection></section><section number="5" title="Path-Constrained Graph Walk"><p>While node reranking allows the incorporation of high-level features that describe the traversed paths, it is desirable to incorporate such information ear­lier in the graph walk process. In this paper, we suggest a variant of a graph-walk, which is <i>con­strained </i>by path information. Assume that prelim­inary knowledge is available that indicates the prob­ability of reaching a relevant node after following a particular edge type sequence (path) from the query distribution Vq to some node x. Rather than fix the edge weights 6, we can evaluate the weights of the outgoing edges from node <i>x </i>dynamically, given the history of the walk (the path) up to this node. This should result in gains in accuracy, as paths that lead mostly to irrelevant nodes can be eliminated in the graph walk process. In addition, scalability gains are expected, for the same reason.</p><p>We suggest a path-constrained graph walk algo­rithm, where path information is maintained in a compact path-tree structure constructed based on training examples. Each vertex in the path tree de­notes a particular walk history. In applying the graph walk, the nodes traversed are represented as a set of node pairs, comprised of the graph node and the cor­responding vertices in the path tree. The outgoing edge weights from each node pair will be estimated according to the respective vertex in the path tree. This approach needs to address two subtasks: learn­ing of the path-tree; and updating of the graph walk paradigm to co-sample from the graph and the path tree. We next describe these two components in de­tail.</p><p><b>The Path-Tree</b></p><p>We construct a path-tree <i>T </i>using a training set of N example queries. Let a <i>path </i><i>p </i>be a sequence of <i>k &lt; K </i>edge types (where K is the maximum number of graph walk steps). For each training ex­ample, we recover all of the connecting paths lead­ing to the top <i>M </i>(correct and incorrect) nodes. We consider only acyclic paths. Let each path <i>p </i>be as­sociated with its count, within the paths leading to the correct nodes, denoted as C+.  Similarly, the count within paths leading to the negatively labelled nodes is denoted Cp.<page local="5" global="911"/> The full set of paths observed is then represented as a tree.<footnote anchor="5"/> The leaves of the tree are assigned a Laplace-smoothed probability:</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">910</doubt><doubt alpha="0.0" length="6" tooSmall="False" monospace="0.0">+2 -11</doubt><figure caption="Figure 2: An example path-tree."></figure><p>Pr<i>(</i>p<i>)</i><i> </i><i>=</i><i> </i><i>Cï</i><i>Wvr</i></p><p>Given path probabilities, they are propagated backwards to all tree vertices, applying the <i>MAX </i>operator.<footnote anchor="6"/> Consider the example given in Figure 2. The path-tree in the figure includes three paths (con­structed from edge types <i>k,l,m,n). </i>The top part of the figure gives the paths' associated counts, and the bottom part of the figure gives the derived outgo­ing edge probabilities at each vertex. This path-tree specifies, for example, that given an edge of type l was traversed from the root, the probability ofreach-ing a correct target node is 0.9 if an edge of type n is followed, whereas the respective probability if an edge of type <i>m </i>is followed is estimated at a lower 0.2.</p><p><b>A Concurrent Graph-walk</b></p><p>Given a generated path tree, we apply <i>path-constrained </i>graph walks that adhere both to the topology of the graph G, and to the path tree T. Walk histories of each node <i>x </i>visited in the walk are compactly represented as pairs &lt; t, <i>x </i>&gt;, where t denotes the relevant vertex in the path tree. For example, suppose that after one walk step, the main­tained node-history pairs include <i>&lt; T(l), x</i>i <i>&gt; </i>and &lt; T(m), x2 &gt;. If x3 is reached in the next walk step <b>Given:</b><b> </b>graph G, path-tree T, query distribution V0, number of steps K <b>Initialize:</b><b>    </b>for each xj G    V0,  assign a pair <b>Repeat for steps </b>k = 0 <b>to </b>K<b>:</b><b></b></p><footnote label="5">The conversion to a tree is straight-forward, where identical path prefixes are merged.</footnote><footnote label="6">Another possibility is to average the downstream cumula­tive counts at each vertex. The MAX operation gave better re­sults in our experiments.</footnote><doubt alpha="53.8" length="13" tooSmall="False" monospace="0.0">&lt;root(T), xj&gt;</doubt><doubt alpha="66.7" length="21" tooSmall="False" monospace="0.0">For each &lt;tj,xj&gt;G Vk:</doubt><p>Let L be the set of outgoing edge labels from x4, in G.</p><p><i>For each lm G L:</i></p><p><i>For each </i><i>xj</i><i> </i>G G s.t., xj    — <i>xj</i>, add &lt; <i>tj,xj</i><i> </i><i>&gt;</i><i> </i>to</p><p>Vfc+i, where tj G T, s.t. tj        tj, with probability Pr(xj|Vk) x <i>Pr(lm\tj,T</i>).    (The latter probabilities should be normalized with respect to xj.) <b>If </b>tj is a terminal node in T, emit xj with probability</p><p>Pr(xj|Vfc) x Pr(tj|T).</p><figure caption="Figure 3: Pseudo-code for path-constrained graph walk"></figure><p>from both xi and x over paths included in the path-tree, it will be represented by multiple node pairs, e.g., &lt; T(l — n),x3 &gt; and &lt; T(m — l,x3 &gt;. A pseudo-code for a path-constrained graph walk is given in Figure 3. It is straight-forward to discard paths in T that are associated with a lower proba­bility than some threshold. A threshold of 0.5, for example, implies that only paths that led to a major­ity of positively labelled nodes in the training set are followed.</p></section><section number="6" title="Related Work"><p>Graph walks over typed graphs have been applied to derive semantic similarity for NLP problems us­ing WordNet as a primary information source. For instance, Hughes and Ramage (2007) constructed a graph which represented various types of word re­lations from WordNet, and compared random-walk similarity to similarity assessments from human-subject trials. Random-walk similarity has also been used for lexical smoothing for prepositional word attachment (Toutanova et al., 2004) and query ex­pansion (Collins-Thompson and Callan, 2005). In contrast to these works, our graph representation de­scribes parsed text and has not been (consciously) engineered for a particular task. Instead, we in­clude learning techniques to optimize the graph­walk based similarity measure. The learning meth­ods described in this paper can be readily applied to other directed and labelled entity-relation graphs.<page local="6" global="912"/><footnote anchor="7"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">911</doubt><p>The graph representation described in this paper is perhaps most related to syntax-based vector space models, which derive a notion of semantic similar­ity from statistics associated with a parsed corpus (Grefenstette, 1994; Lin, 1998; Pado and Lapata, 2007). In most cases, these models construct vectors to represent each word w*, where each element in the vector for corresponds to particular "context" c, and represents a count or an indication of whether <i>Wi </i>occurred in context c. A "context" can refer to simple co-occurrence with another word w<i>j,</i><i> </i>to a particular syntactic relation to another word (e.g., a relation of "direct object" to w<i>j), </i>etc. Given these word vectors, inter-word similarity is evaluated us­ing some appropriate similarity measure for the vec­tor space, such as cosine vector similarity, or <i>Lin's similarity </i>(Lin, 1998).</p><p>Recently, Pado and Lapata (Pado and Lapata, 2007) have suggested an extended syntactic vector space model called <i>dependency vectors, </i>in which rather than simple counts, the components of a word vector of contexts consist of <i>weighted scores, </i>which combine both co-occurrence frequency and the importance of a context, based on properties of the connecting dependency paths. They considered two different weighting schemes: a <i>length </i>weight­ing scheme, assigning lower weight to longer con­necting paths; and an <i>obliqueness </i>weighting hierar­chy (Keenan and Comrie, 1977), assigning higher weight to paths that include grammatically salient relations. In an evaluation of word pair similar­ity based on statistics from a corpus of about 100 million words, they show improvements over sev­eral previous vector space models. Below we will compare our framework to that of Pado and Lap­ata. One important difference is that while Pado and Lapata make manual choices (regarding the set of paths considered and the weighting scheme), we ap­ply learning to adjust the analogous parameters.</p></section><section number="7" title="Extraction of Coordinate Terms"><p>We evaluate the text representation schema and the proposed set of graph-based similarity measures on the task of <i>coordinate term </i>extraction. In particular, we evaluate the extraction of named entities, includ­ing <i>city names </i>and <i>person names </i>from newswire data, using word similarity measures. Coordinate terms reflect a particular type of word similarity (relatedness), and are therefore an appropriate test case for our framework. While coordinate term ex­traction is often addressed by a rule-based (tem­plates) approach (Hearst, 1992), this approach was designed for very large corpora such as the Web, where the availability of many redundant documents allows use of high-precision and low-recall rules. In this paper we focus on relatively small corpora. Small limited text collections may correspond to documents residing on a personal desktop, email collections, discussion groups and other specialized sets of documents.</p><footnote label="7">We refer the reader to the TextGraph workshop proceed­ings, http://textgraphs.org .</footnote><p>The task defined in the experiments is to retrieve a ranked list of city or person names given a small set of seeds. This task is implemented in the graph as a query, where we let the query distribution V<i>q </i>be uniform over the given seeds (and zero elsewhere). Ideally, the resulting ranked list will be populated with many additional city, or person, names.</p><p>We compare graph walks to <i>dependency vec­tors </i>(DV) (Pado and Lapata, 2007),<footnote anchor="8"/> as well as to a vector-based bag-of-words co-occurrence model. DV is a state-of-the-art syntactic vector-based model (see Section 6). The co-occurrence model represents a more traditional approach, where text is processed as a stream rather than syntactic structures. In ap­plying the vector-space based methods, we compute a similarity score between <i>every </i>candidate from the corpus and each of the query terms, and then aver­age these scores (as the query distributions are uni­form) to construct a ranked list. For efficiency, in the vector-based models we limit the considered set of candidates to named entities. Similarly, the graph walk results are filtered to include named entities.<footnote anchor="9"/></p><p><b>Corpora. </b>As the experimental corpora, we use the training set portion of the MUC-6 dataset (MUC, 1995) as well as articles from the Associated Press (AP) extracted from the AQUAINT corpus (Bilotti<page local="7" global="913"/></p><footnote label="8">We used the code from http://www.coli.uni- saarland.de/ pado/dv.html, and converted the underlying syntactic patterns to the Stanford dependency parser conven­tions.</footnote><footnote label="9">In general, graph walk results can be filtered by various word properties, e.g., capitalization pattern, or part-of-speech.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">912</doubt><p>Table 1 : Corpus statistics et al., 2007), all parsed using the Stanford depen­dency parser (de Marneffe et al., 2006).<footnote anchor="10"/> The MUC corpus provides true named entity tags, while the AQUAINT corpus includes automatically generated, noisy, named entity tags. Statistics on the experi­mental corpora and their corresponding graph rep­resentation are detailed in Table 1. As shown, the MUC corpus contains about 140 thousand words, whereas the MUC+AP experimental corpus is sub­stantially larger, containing about 2.5 million words.</p><p>We generated 10 queries, each comprised of4 city names selected randomly according to the distribu­tion of city name mentions in MUC-6. Similarly, we generated a set of 10 queries that include 4 per­son names selected randomly from the MUC corpus. (The MUC corpus was appended to AP, so that the same query sets are applicable in both cases.) For each task, we use 5 queries for training and tuning and the remaining queries for testing.</p></section><section number="8" title="Experimental Results"><p><b>Experimental setup. </b>We evaluated cross-validation performance over the training queries in terms of mean average precision for varying walk lengths K. We found that beyond K = 6 improvements were small (and in fact deteriorated for K = 9). We there­fore set K = 6. Weight tuning was trained using the training queries and two dozens of target nodes overall. In reranking, we set a feature count cutoff of 3, in order to avoid over-fitting. Reranking was applied to the top 200 ranked nodes output by the graph walk using the tuned edge weights. Finally, path-trees were constructed using the top 20 correct nodes and 20 incorrect nodes retrieved by the uni­formly weighted graph walk. In the experiments, we apply a threshold of 0.5 to the path constrained graph walk method.</p><p>We note that for learning, true labels were used for the fully annotated MUC corpus (we hand labelled all of the named entities of type location in the cor­pus as to whether they were city names). However, noisy negative examples were considered for the larger automatically annotated AP corpus. (Specif­ically, for cities, we only considered city names in­cluded in the MUC corpus as correct answers.)</p><footnote label="10">http://nlp.stanford.edu/software/lex-parser.shtml ; sen­tences longer than 70 words omitted.</footnote><p>A co-occurrence vector-space model was applied using a window of two tokens to the right and to the left of the focus word. Inter-word similarity was evaluated in this model using cosine similar­ity, where the underlying co-occurrence counts were normalized by log-likelihood ratio (Pado and Lap-ata, 2007). The parameters of the DV method were set based on a cross validation evaluation (using the MUC+AP corpus). The <i>medium </i>set of dependency paths and the <i>oblique </i>edge weighting scheme were found to perform best. We experimented with co­sine as well as Lin similarity measure in combina­tion with the dependency vectors representation. Fi­nally, given the large number of candidates in the MUC+AP corpus (Table 1), we show the results of applying the considered vector-space models to the top, high-quality, entities retrieved with reranking for this corpus.<footnote anchor="11"/></p><p><b>Test set results. </b>Figure 4 gives results for the city name (top) and the person name (bottom) extraction tasks. The left part of the figure shows results us­ing the MUC corpus, and its right part - using the MUC+AP corpus. The curves show precision as a function of rank in the ranked list, up to rank 100. (For this evaluation, we hand-labeled all the top-ranked results as to whether they are city names or person names.) Included in the figure are the curves of the graph-walk method with uniform weights (G:Uw), learned weights (G:Lw), graph-walk with reranking (Rerank) and a path-constrained graph­walk (PCW). Also given are the results of the co­occurrence model (CO), and the syntactic vector-space DV model, using the Lin similarity measure (DV:Lin). Performance of the DV model using co­sine similarity was found comparable or inferior to using the Lin measure, and is omitted from the fig­ure for clarity.</p><p>Several trends can be observed from the results. With respect to the graph walk methods, the graph walk using the learned edge weights consistently outperforms the graph walk with uniform weights. Reranking and the path-constrained graph walk,<page local="8" global="914"/></p><footnote label="11">We process the union ofthe top 200 results per each query.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">913</doubt><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><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Corpus</i></p></td><td class="cell"><p><i>words</i></p></td><td class="cell"><p><i>nodes</i></p></td><td class="cell"><p><i>edges</i></p></td><td class="cell"><p><i>unique NEs</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MUC</p></td><td class="cell"><p>140K</p></td><td class="cell"><p>82K</p></td><td class="cell"><p>244K</p></td><td class="cell"><p>3K</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MUC+AP</p></td><td class="cell"><p>2,440K</p></td><td class="cell"><p>1,030K</p></td><td class="cell"><p>3,550K</p></td><td class="cell"><p>36K</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><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">MUC</doubt><doubt alpha="83.3" length="6" tooSmall="False" monospace="0.0">MUC+AP</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">g 'o</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">CL</doubt><doubt alpha="10.3" length="39" tooSmall="False" monospace="0.0">0   10 20 30 40 50 60 70 80 90 100 Rank</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><doubt alpha="0.0" length="15" tooSmall="False" monospace="0.0">0.8 0.6 0.4 0.2</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><doubt alpha="10.8" length="37" tooSmall="False" monospace="0.0">0 10 20 30 40 50 60 70 80 90 100 Rank</doubt><p>Figure 4: Test results: Precision at the top 100 ranks, for the city name extraction task (top) and person name extraction task (bottom).</p><doubt alpha="50.0" length="6" tooSmall="False" monospace="0.0">o o Q_</doubt><p>however, yield superior results. Both of these learn­ing methods utilize a richer set of features than the graph walk and weight tuning, which can consider only local information. In particular, while the graph walk paradigm assigns lower importance to longer connecting paths (as described in Section 3), rerank-ing and the path-constrained walker allow to dis­card short yet irrelevant paths, and by that eliminate noise at the top ranks of the retrieved list. In gen­eral, the results show that edge sequences carry ad­ditional meaning compared with the individual edge label segments traversed.</p><p>Out of the vector-based models, the co­occurrence model is preferable for the city name extraction task, and the syntactic dependency vec­tors model gives substantially better performance for person name extraction. We conjecture that city name mentions are less structured in the underlying text. In addition, the syntactic weighting scheme of the DV model is probably not optimal for the case of city names. For example, a <i>conjunction </i>relation was found highly indicative for city names (see below). However, this relation is not emphasized by the DV weighting schema. As expected, the performance of the vector-based models improves for larger corpora (Terra and Clarke, 2003). These models demonstrate good performance for the larger MUC+AP corpus, but only mediocre performance for the smaller MUC corpus.</p><p>Contrasting the graph-based methods with the vector-based models, the difference in performance in favor of reranking and PCW, especially for the smaller corpus, can be attributed to two factors. The first factor is learning, which optimizes performance for the underlying data. A second factor is the incor­poration of non-local information, encoding proper­ties of the traversed paths.</p><p><b>Models. </b>Following is a short description of the models learned by the different methods and tasks. Weight tuning assigned high weights to edge types such as <i>conj-and, prep-in </i>and <i>prep-from, nn, ap-pos </i>and <i>amod </i>for the city extraction task. For per-<page local="9" global="915"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">914</doubt><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></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>i   <footnote anchor="1"/> <footnote anchor="1"/></b></p><p><b>! </b><b><i>.'?&lt;</i></b></p></td><td class="cell"><p><b>I      I      I      I      I      I I</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><i>-■^T -»</i><i>--</i><i>•                          - "</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>---—' ' -</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>.......</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><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">I</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">O)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">o</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">TD &lt;0</doubt><doubt alpha="0.0" length="5" tooSmall="False" monospace="0.0">&gt; &lt;/&gt;</doubt><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">0) T3 O</doubt><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">CLÇ0</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">O</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">.Q</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">E</doubt><doubt alpha="0.0" length="17" tooSmall="False" monospace="0.0">20 18 16 14 12 10</doubt><doubt alpha="0.0" length="7" tooSmall="False" monospace="0.0">8 6 4 2</doubt><doubt alpha="0.0" length="9" tooSmall="False" monospace="0.0">2     3 4</doubt><p>Walk steps</p><figure caption="Figure 5: The graph walk exponential spread is bounded by the path constrained walk."></figure><p>son extraction, prominent edge types included <i>subj, obj, poss </i>and <i>nn. </i>(The latter preferences are sim­ilar to the linguistically motivated weights of DV.) High weight features assigned by reranking for city name extraction included, for example, lexical fea­tures such as "based" and "downtown", and edge bi-grams such as "prep-in-Inverse— conj-and" or "nn-Inverse— nn". Positive highly predictive paths in the constructed path tree included many symmetric paths, such as conj_andInverse...—.conj_and..., prepinInverse...—.prepjn..., for the city name extraction task.</p><p><b>Scalability. </b>Figure 5 shows the number of graph nodes maintained in each step of the graph walk (logarithm scale) for a typical city extraction query and the MUC+AP corpus. As shown by the solid line, the number of graph nodes visited using the weighted graph walk paradigm grows exponentially with the length of the walk. Applying a path-constrained walk with a threshold of 0 (PCW:0) re­duces the maximal number of nodes expanded (as paths not observed in the training set are discarded). As shown, increasing the threshold leads to signifi­cant gains in scalability. Overall, query processing time averaged at a few minutes, using a commodity</p><p>PC.</p></section><section number="9" title="Conclusion and Future Directions"><p>In this paper we make several contributions. First, we have explored a novel but natural representation for a corpus of dependency-parsed text, as a labelled directed graph. We have evaluated the task of coor­dinate term extraction using this representation, and shown that this task can be performed using similar­ity queries in a general-purpose graph-walk based query language. Further, we have successfully ap­plied learning techniques that tune weights assigned to different dependency relations, and re-score can­didates using features derived from the graph walk.</p><p>Another orthogonal contribution of this paper is a path-constrained graph walk variant, where the graph walk is guided by high level knowledge about meaningful paths, learned from training examples. This method was shown to yield improved perfor­mance for the suggested graph representation, and improved scalability compared with the local graph walk. The method is general, and can be readily ap­plied in similar settings.</p><p>Empirical evaluation of the coordinate term ex­traction task shows that the graph-based framework performs better than vector-space models for the smaller corpus, and comparably otherwise. Over­all, we find that the suggested model is suitable for deep (syntactic) processing of small specialized cor­pora. In preliminary experiments where we evalu­ated this framework on the task of extracting general word synonyms, using a relatively large corpus of 15 million words, we found the graph-walk perfor­mance to be better than DV using cosine similarity measures, but second to DV using Lin's similarity measure. While this set of results is incomplete, we find that it is consistent with the results reported in this paper.</p><p>The framework presented can be enhanced in sev­eral ways. For instance, WordNet edges and mor­phology relations can be readily encoded in the graph. We believe that this framework can be ap­plied for the extraction of more specialized no­tions of word relatedness, as in relation extraction (Bunescu and Mooney, 2005). The path-constrained graph walk method proposed may be enhanced by learning edge probabilities, using a rich set of fea­tures. We are also interested in exploring a possi­ble relation between the path-constrained walk ap­proach and reinforcement learning.</p></section><section title="Acknowledgments"><p>The authors wish to thank the anonymous reviewers and Hanghang Tong for useful advice. This material is based upon work supported by Yahoo! Research.</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">5</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">6</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">915</doubt><table class="main" frame="box" rules="all" border="0" 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>G:U —'—</p></td><td class="cell"><p><footnote anchor="1"/></p></td><td class="cell"><p>i</p></td><td class="cell"><p><footnote anchor="1"/></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>-  PCW:0 — x—</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.PCW:0.5</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>PCW:0.8 <b>b</b></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>----x^^_</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p><i>,f</i><i> </i><i>-</i></p></td><td class="cell"><p>"""^</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>-</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>-</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>- /</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>-</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>/         i i</b></p></td><td class="cell"><p></p></td><td class="cell"><p><b>i</b></p></td><td class="cell"><p><b>1</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><td class="cell"></td><td class="cell"></td></tr></table><page local="10" global="916"/></section><references><p>Matthew W. Bilotti, Paul Ogilvie, Jamie Callan, and Eric Nyberg. 2007. Structured retrieval for question an­swering. In <i>SIGIR.</i></p><p>Razvan C. Bunescu and Raymond J. Mooney. 2005. A shortest path dependency kernel for relation extrac­tion. In <i>HLT-EMNLP.</i></p><p>William W. Cohen and Einat Minkov. 2006. A graph-search framework for associating gene identifiers with documents. <i>BMC Bioinformatics, </i>7(440).</p><p>Michael Collins and Terry Koo. 2005. Discrimina­tive reranking for natural language parsing. <i>Compu­tational Linguistics, </i>31(1):25-69.</p><p>Kevyn Collins-Thompson and Jamie Callan. 2005. Query expansion using random walk models. In <i>CIKM.</i></p><p>Michael Collins. 2002. Ranking algorithms for named-entity extraction: Boosting and the voted perceptron.</p><p>In <i>ACL.</i></p><p>Marie-Catherine de Marneffe, Bill MacCartney, and Christopher D. Manning. 2006. Generating typed dependency parses from phrase structure parses. In <i>LREC.</i><i></i></p><p>Michelangelo Diligenti, Marco Gori, and Marco Maggini. 2005. Learning web page scores by error back-</p><p>propagation. In <i>IJCAI. </i>Gregory Grefenstette. 1994. <i>Explorations in Automatic</i> <i>Thesaurus Discovery.</i><i> </i>Kluwer Academic Publishers,</p><p>Dordrecht.</p><p>Marti Hearst. 1992. Automatic acquisition ofhyponyms from large text corpora. In <i>COLING.</i></p><p>Thad Hughes and Daniel Ramage. 2007. Lexical seman­tic relatedness with random graph walks. In <i>EMNLP.</i></p><p>Edward Keenan and Bernard Comrie. 1977. Noun phrase accessibility and universal grammar. <i>Linguis­tic Inquiry, </i>8.</p><p>Dekang Lin. 1998. Automatic retrieval and clustering of similar words. In <i>COLING-ACL.</i></p><p>Einat Minkov and William W. Cohen. 2007. Learning to rank typed graph walks: Local and global approaches. In <i>WebKDD/KDD-SNA workshop.</i></p><p>Einat Minkov, William W. Cohen, and Andrew Y. Ng. 2006. Contextual search and name disambiguation in email using graphs. In <i>SIGIR.</i></p><p>1995. Proceedings of the sixth message understanding conference (muc-6). In <i>Morgan Kaufmann Publish­ers, Inc. Columbia, Maryland.</i></p><p>Sebastian Pado and Mirella Lapata. 2007. Dependency-based construction of semantic space models. <i>Compu­tational Linguistics, </i>33(2).</p><p>Philip Resnik and Mona Diab. 2000. Measuring verb similarity. In <i>CogSci.</i></p><p>Rion Snow, Daniel Jurafsky, and Andrew Y. Ng. 2005. Learning syntactic patterns for automatic hypernym discovery. In <i>NIPS.</i></p><p>Egidio Terra and C. L. A. Clarke. 2003. Frequency estimates for statistical word similarity measures. In <i>NAACL.</i><i></i></p><p>Kristina Toutanova, Christopher D. Manning, and An­drew Y. Ng. 2004. Learning random walk models for inducing word dependency distributions. In <i>ICML.</i></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">916</doubt></references></body></article>