<?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="250"/><title>Approximate Scalable Bounded Space Sketch for Large Data NLP</title><pubinfo>Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing,pages 250-261, Edinburgh, Scotland, UK, July 27-31, 2011. ©2011 Association for Computational Linguistics</pubinfo><author surname="Goyal" givenname="Amit"><org  name="University of Maryland" country="USA" city="College Park"/></author><author surname="Daume III" givenname="Hal"><org  name="University of Maryland" country="USA" city="College Park"/></author></firstpageheader><frontmatter><p><b>Approximate Scalable Bounded Space Sketch for Large Data NLP</b></p><p><b>Amit Goyal and Hal Daume III</b></p><p>Dept. of Computer Science University of Maryland College Park, MD 20742</p><p>{amit,hal}@umiacs.umd.edu</p></frontmatter><abstract>We exploit sketch techniques, especially the Count-Min sketch, a memory, and time effi­cient framework which approximates the fre­quency of a word pair in the corpus without explicitly storing the word pair itself. These methods use hashing to deal with massive amounts of streaming text. We apply Count-Min sketch to approximate word pair counts and exhibit their effectiveness on three im­portant NLP tasks. Our experiments demon­strate that on all of the three tasks, we get performance comparable to Exact word pair counts setting and state-of-the-art system. Our method scales to 49 GB of unzipped web data using bounded space of 2 billion counters (8 GB memory). </abstract></header><body><section number="1" title="Introduction"><p>There is more data available today on the web than there has ever been and it keeps increasing. Use of large data in the Natural Language Processing (NLP) community is not new. Many NLP problems (Brants et al., 2007; Turney, 2008; Ravichandran et al., 2005) have benefited from having large amounts of data. However, processing large amounts of data is still challenging.</p><p>This has motivated NLP community to use com­modity clusters. For example, Brants et al. (2007) used 1500 machines for a day to compute the rela­tive frequencies of n-grams from 1.8TB of web data. In another work, a corpus of roughly 1.6 Terawords was used by Agirre et al. (2009) to compute pair-wise similarities of the words in the test sets using the MapReduce infrastructure on 2, 000 cores. How­ever, the inaccessibility of clusters to an average user has attracted the NLP community to use streaming, randomized, and approximate algorithms to handle large amounts of data (Goyal et al., 2009; Levenberg et al., 2010; Van Durme and Lall, 2010).</p><p>Streaming approaches (Muthukrishnan, 2005) provide memory and time-efficient framework to deal with terabytes of data. However, these ap­proaches are proposed to solve a singe problem. For example, our earlier work (Goyal et al., 2009) and Levenberg and Osborne (2009) build approxi­mate language models and show their effectiveness in Statistical Machine Translation (SMT). Stream-based translation models (Levenberg et al., 2010) has been shown effective to handle large parallel streaming data for SMT. In Van Durme and Lall</p><doubt alpha="66.7" length="45" tooSmall="False" monospace="0.0">(2009b), a Talbot Osborne Morris Bloom (TOMB)</doubt><p>Counter (Van Durme and Lall, 2009a) was used to find the top-K verbs "y" given verb "x" using the highest approximate online Pointwise Mutual Infor­mation (PMI) values.</p><p>In this paper, we explore sketch techniques, especially the Count-Min sketch (Cormode and Muthukrishnan, 2004) to build a <i>single </i>model to show its effectiveness on three important NLP tasks:</p><p>• Predicting the Semantic Orientation of words (Turney and Littman, 2003)</p><p>• Distributional Approaches for word similarity</p><doubt alpha="47.6" length="21" tooSmall="False" monospace="0.0">(Agirre et al., 2009)</doubt><p>• Unsupervised Dependency Parsing (Cohen and Smith, 2010) with a little linguistics knowl­edge.</p><p>In all these tasks, we need to compute association measures like Pointwise Mutual Information (PMI), and Log Likelihood ratio (LLR) between words.<page local="2" global="251"/> To compute association scores (AS), we need to count the number of times pair of words appear together within a certain window size. However, explicitly storing the counts of all word pairs is both computa­tionally expensive and memory intensive (Agirre et al., 2009; Pantel et al., 2009). Moreover, the mem­ory usage keeps increasing with increase in corpus size.</p><p>We explore Count-Min (CM) sketch to address the issue of <i>efficient storage </i>of such data. The CM sketch stores counts of all word pairs within a <i>bounded space. </i>Storage space saving is achieved by <i>approximating </i>the frequency of word pairs in the corpus without explicitly storing the word pairs themselves. Both updating (adding a new word pair or increasing the frequency of existing word pair) and querying (finding the frequency of a given word pair) are constant time operations making it efficient online storage data structure for large data. Sketches are <i>scalable </i>and can easily be implemented in dis­tributed setting.</p><p>We use CM sketch to store counts of word pairs (except word pairs involving stop words) within a window of size<footnote anchor="1"/> 7 over different size corpora. We store exact counts of words (except stop words) in hash table (since the number of unique words is not large that is quadratically less than the num­ber of unique word pairs). The approximate PMI and LLR scores are computed using these approxi­mate counts and are applied to solve our three NLP tasks. Our experiments demonstrate that on all of the three tasks, we get performance comparable to Exact word pair counts setting and state-of-the-art system. Our method scales to 49 GB of unzipped web data using bounded space of 2 billion counters (8 GB memory). This work expands upon our ear­lier workshop papers (Goyal et al., 2010a; Goyal et al., 2010b).</p></section><section number="2" title="Sketch Techniques"><p>A sketch is a compact summary data structure to store the frequencies of all items in the input stream. Sketching techniques use hashing to map items in streaming data onto a small sketch vector that can be updated and queried in constant time. These techniques generally process the input stream in one di­rection, say from left to right, without re-processing previous input. The main advantage of using these techniques is that they require a storage which is sub-linear in size of the input stream. The following surveys comprehensively review the streaming liter­ature: (Rusu and Dobra, 2007; Cormode and Had-jieleftheriou, 2008).</p><footnote label="1">7 is chosen from intuition and not tuned.</footnote><p>There exists an extensive literature on sketch tech­niques (Charikar et al., 2004; Li et al., 2008; Cormode and Muthukrishnan, 2004; Rusu and Dobra, 2007) in algorithms community for solving many large scale problems. However, in practice, re­searchers have preferred Count-Min (CM) sketch over other sketch techniques in many application ar­eas, such as Security (Schechter et al., 2010), Ma­chine Learning (Shi et al., 2009; Aggarwal and Yu, 2010), and Privacy (Dwork et al., 2010). This moti­vated us to explore CM sketch to solve three impor­tant NLP problems.<footnote anchor="2"/></p><subsection number="2.1" title="Count-Min Sketch"><p>The Count-Min sketch (Cormode and Muthukrish-nan, 2004) is a compact summary data structure used to store the frequencies of all items in the in­put stream. The sketch allows fundamental queries on the data stream such as point, range and inner product queries to be approximately answered very quickly. It can also be applied to solve the finding frequent items problem (Manku and Motwani, 2002) in a data stream. In this paper, we are only interested in point queries. The aim of a point query is to es­timate the count of an item in the input stream. For other details, the reader is referred to (Cormode and Muthukrishnan, 2004).</p><p>Given an input stream of word pairs of length N and user chosen parameters ö and e, the algorithm stores the frequencies of all the word pairs with the following guarantees:</p><p>• All reported frequencies are within the true fre­quencies by at most eN with a probability of at least 1-ö.</p><p>• The space used by the algorithm is <i>O(</i><footnote anchor="1"/> log | ).</p><footnote label="2">In future, in another line of research, we will explore com­paring different sketch techniques for NLP problems.</footnote><page local="3" global="252"/><p>• Constant time of O(log( j )) per each update and query operation.</p><subsubsection number="2.1.1" title="CM Data Structure"><p>A Count-Min sketch (CM) with parameters (e,ö) is represented by a two-dimensional array with width w and depth d :</p><doubt alpha="52.0" length="25" tooSmall="False" monospace="0.0">sketch[1,1]•••sketch[1,w]</doubt><doubt alpha="53.6" length="28" tooSmall="False" monospace="0.0">sketch[d,1]• • •sketch[d, w]</doubt><p>Among the user chosen parameters, e controls the amount of tolerable error in the returned count and ö controls the probability with which the returned count is not within the accepted error. These val­ues of e and ö determine the width and depth of the two-dimensional array respectively. To achieve the guarantees mentioned in the previous section, we set w=<footnote anchor="2"/> and d=log(|). The depth d denotes the number of pairwise-independent hash functions em­ployed by the algorithm and there exists a one-to-one correspondence between the rows and the set of hash functions. Each of these hash functions hk:{xi... <i>xN} </i>—&gt;• {1... w}, 1 &lt; <i>k </i>&lt; <i>d, </i>takes a word pair from the input stream and maps it into a counter indexed by the corresponding hash function. For example, h2(x) = 10 indicates that the word pair "x" is mapped to the 10th position in the second row of the sketch array.</p><p>Initialize the entire sketch array with zeros.</p><p><b>Update Procedure: </b>When a new word pair "x" with count c arrives, one counter in each row (as de­cided by its corresponding hash function) is updated by c.</p><doubt alpha="52.2" length="46" tooSmall="False" monospace="0.0">sketch[k, hk(x)]—sketch[k, hk(x)]+c, V1&lt; k &lt; d</doubt><p><b>Query Procedure: </b>Since multiple word pairs can get hashed to the same position, the frequency stored by each position is guaranteed to overestimate the true count. Thus, to answer the point query for a given word pair, we return minimum over all the po­sitions indexed by the k hash functions. The answer to Query(x): c = mink sketch[k, hk(x)]</p><p>Both update and query procedures involve evalu­ating d hash functions and reading of all the values in those indices and hence both these procedures are linear in the number of hash functions. Hence both these steps require O(log( j)) time. In our experi­ments (see Section 3.1), we found that a small num­ber of hash functions are sufficient and we use d=5. Hence, the update and query operations take only a constant time. The space used by the algorithm is the size of the array i.e. wd counters, where w is the width of each row.</p></subsubsection><subsubsection number="2.1.2" title="Properties"><p>Apart from the advantages of being space ef­ficient, and having constant update and constant querying time, the Count-Min sketch has also other advantages that makes it an attractive choice for NLP applications.</p><p>• Linearity: Given two sketches s1 and S2 com­puted (using the same parameters w and d) over different input streams, the sketch of the combined data stream can be easily obtained by adding the individual sketches in O(<footnote anchor="1"/> log j ) time which is independent of the stream size.</p><p>• The linearity is especially attractive because it allows the individual sketches to be computed independent of each other, which means that it is easy to implement it in distributed setting, where each machine computes the sketch over a sub set of corpus.</p></subsubsection></subsection><subsection number="2.2" title="Conservative Update"><p>Estan and Varghese introduced the idea of conserva­tive update (Estan and Varghese, 2002) in the con­text of computer networking. This can easily be used with CM sketch to further improve the estimate of a point query. To update a word pair "x" with fre­quency c, we first compute the frequency c of this word pair from the existing data structure and the counts are updated according to:</p><doubt alpha="51.4" length="35" tooSmall="False" monospace="0.0">c = minksketch[k, hk(x)],V1 &lt; k &lt; d</doubt><doubt alpha="55.6" length="45" tooSmall="False" monospace="0.0">sketch[k, hk(x)]— max{sketch[k, hk(x)],c + c}</doubt><p>The intuition is that, since the point query returns the minimum of all the d values, we will update a counter only if it is necessary as indicated by the above equation. Though this is a heuristic, it avoids the unnecessary updates of counter values and thus reduces the error.</p><p>In our experiments, we found that employing the conservative update reduces the Average Relative<page local="4" global="253"/></p><p>Error (ARE) of these counts approximately by a fac­tor of 1.5. (see Section 3.1). But unfortunately, this update can only be maintained over individual sketches in distributed setting.</p></subsection></section><section number="3" title="Intrinsic Evaluations"><p>To show the effectiveness of the CM sketch and CM sketch with conservative update (CU) in the context of NLP, we perform intrinsic evaluations. First, the intrinsic evaluations are designed to measure the er­ror in the approximate counts returned by CM sketch compared to their true counts. Second, we compare the word pairs association rankings obtained using PMI and LLR with sketch and exact counts.</p><p>It is memory and time intensive to perform many intrinsic evaluations on large data (Ravichandran et al., 2005; Brants et al., 2007; Goyal et al., 2009). Hence, we use a subset of corpus of 2 million sen­tences (Subset) from Gigaword (Graff, 2003) for it. We generate words and word pairs over a window of size 7. We store exact counts of words (except stop words) in a hash table and store approximate counts of word pairs (except word pairs involving stop words) in the sketch.</p><subsection number="3.1" title="Evaluating approximate sketch counts"><p>To evaluate the amount of over-estimation error (see Section 2.1) in CM and CU counts compared to the true counts, we first group all word pairs with the same true frequency into a single bucket. We then compute the average relative error in each of these buckets. Since low-frequency word pairs are more prone to errors, making this distinction based on fre­quency lets us understand the regions in which the algorithm is over-estimating. Moreover, to focus on errors on low frequency counts, we have only plot­ted word pairs with count at most 100. Average Rel­ative error (ARE) is defined as the average of abso­lute difference between the predicted and the exact value divided by the exact value over all the word pairs in each bucket.</p><p>ARE = J_      <u>j</u><u>Exact</u><u>j </u><u>- </u><u>Predicted, </u><u>| </u>= N <i>^ </i>Exact,</p><p>Where Exact and Predicted denotes values of ex­act and CM/CU counts respectively; N denotes the number of word pairs with same counts in a bucket.</p><p>In Fig. 1(a), we fixed the number of counters to 20 million (20M) with four bytes of memory per each counter (thus it only requires 80 MB of main mem­ory). Keeping the total number of counters fixed, we try different values of depth (2, 3, 5 and 7) of the sketch array and in each case the width is set to . The ARE curves in each case are shown in Fig. 1(a). We can make three main observations from Figure 1(a): First it shows that most of the errors occur on low frequency word pairs. For frequent word pairs, in almost all the different runs the ARE is close to zero. Secondly, it shows that ARE is significantly lower (by a factor of 1.5) for the runs which use conservative update (CUx run) compared to the runs that use direct CM sketch (CMx run). The encourag­ing observation is that, this holds true for almost all different (width,depth) settings. Thirdly, in our ex­periments, it shows that using depth of 3 gets com­paratively less ARE compared to other settings.</p><p>To be more certain about this behavior with re­spect to different settings of width and depth, we tried another setting by increasing the number of counters to 50 million. The curves in 1(b) follow a pattern which is similar to the previous setting. Low frequency word pairs are more prone to error com­pared to the frequent ones and employing conserva­tive update reduces the ARE by a factor of 1.5. In this setting, depth 5 does slightly better than depth 3 and gets lowest ARE.</p><p>We use CU counts and depth of 5 for the rest of the paper. As 3 and 5 have lowest ARE in different settings and using 5 hash functions, we get ö = 0.01 (d = log(<footnote anchor="1"/> ) refer Section 2.1) that is probability of failure is 1 in 100, making the algorithm more robust to false positives compared with 3 hash functions, ö = 0.1 with probability of failure 1 in 10.</p><p>Fig. 1(c) studies the effect of the number of coun­ters in the sketch (the size of the two-dimensional sketch array) on the ARE with fixed depth 5. As ex­pected, using more number ofcounters decreases the ARE in the counts. This is intuitive because, as the length of each row in the sketch increases, the prob­ability of collision decreases and hence the array is more likely to contain true counts. By using 100 million counters, which is comparable to the length of the stream 88 million, we are able to achieve al­most zero ARE over all the counts including the rare<page local="5" global="254"/></p><doubt alpha="41.0" length="39" tooSmall="False" monospace="0.0">CM-7 CM-5 CM-3 CM-2 CU-7 CU-5 CU-3 CU-2</doubt><doubt alpha="0.0" length="8" tooSmall="False" monospace="0.0">10 10 10</doubt><p>True frequency counts of word pairs (log scale)</p><doubt alpha="62.5" length="16" tooSmall="False" monospace="0.0">(a) 20M counters</doubt><doubt alpha="0.0" length="8" tooSmall="False" monospace="0.0">0.4 0.35</doubt><doubt alpha="0.0" length="9" tooSmall="False" monospace="0.0">0.3 0.251</doubt><doubt alpha="0.0" length="12" tooSmall="False" monospace="0.0">0.2: &gt; 0.151</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">0.1</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">0.05</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">-CM-7</doubt><doubt alpha="33.3" length="6" tooSmall="False" monospace="0.0">*-CM-5</doubt><doubt alpha="25.8" length="31" tooSmall="False" monospace="0.0">CM-3 ■■-■CM-2 - - CU-7 &gt; - CU-5</doubt><doubt alpha="30.8" length="13" tooSmall="False" monospace="0.0">* - CU-3 CU-2</doubt><doubt alpha="62.5" length="16" tooSmall="False" monospace="0.0">(b) 50M counters</doubt><doubt alpha="25.0" length="12" tooSmall="False" monospace="0.0">10M 20M -50M</doubt><doubt alpha="25.0" length="4" tooSmall="False" monospace="0.0">100M</doubt><p>(c) Different size models with depth 5</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">o</doubt><doubt alpha="75.0" length="4" tooSmall="True" monospace="0.0">o LÜ</doubt><doubt alpha="75.0" length="4" tooSmall="True" monospace="0.0">o jj</doubt><doubt alpha="25.0" length="4" tooSmall="False" monospace="0.0">j) &gt;</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">I</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">&gt;CD</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">0)</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">&gt;</doubt><doubt alpha="100.0" length="2" tooSmall="True" monospace="0.0">CD</doubt><doubt alpha="100.0" length="2" tooSmall="True" monospace="0.0">or</doubt><doubt alpha="66.7" length="9" tooSmall="True" monospace="0.0">egcd CD &gt;</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">10</doubt><p>Figure 1: Compare 20 and 50 million counter models with different (width,depth) settings. The notation CMx represents the Count Min sketch with a depth of 'x' and CUx represents the CM sketch along with conservative update and depth 'x'.</p><p>ones<footnote anchor="3"/>. Note that the space we <i>save </i>by not storing the exact counts is almost four times the memory that we use here because on an average each word pair is twelve characters long and requires twelve bytes (thrice the size of an integer) and 4 bytes for storing the integer count. Note, we get even bigger space savings if we work with longer phrases (phrase clus­tering), phrase pairs (paraphrasing/translation), and varying length n-grams (Information Extraction).</p></subsection><subsection number="3.2" title="Evaluating word pairs association ranking"><p>In this experiment, we compare the word pairs asso­ciation rankings obtained using PMI and LLR with CU and exact word pair counts. We use two kinds of measures, namely recall and Spearman's correlation to measure the overlap in the rankings obtained by exact and CU counts. Intuitively, recall captures the number of word pairs that are found in both the sets and then Spearman's correlation captures if the rela­tive order of these common word pairs is preserved in both the rankings. In our experimental setup, if the rankings match exactly, then we get a recall (R) of 100% and a correlation (p) of 1.</p><p>The results with respect to different sized counter (20 million (20M), 50 million (50M)) models are shown in Table 1. If we compare the second and third column of the table using PMI and LLR for 20M counters, we get exact rankings for LLR com­pared to PMI while comparing TopK word pairs. The explanation for such a behavior is: since we are</p><footnote label="3">Even with other datasets we found that using counters lin­ear in the size of the stream leads to ARE close to zero v counts.</footnote><p>Table 1: Evaluating the PMI and LLR rankings obtained using CM sketch with conservative update (CU) and Exact counts not throwing away any infrequent word pairs, PMI will rank pairs with low frequency counts higher (Church and Hanks, 1989). Hence, we are evaluat­ing the PMI values for rare word pairs and we need counters linear in size of stream to get almost perfect ranking. This is also evident from the fourth column for 50M of the Table 1, where CU PMI ranking gets close to the optimal as the number of counters ap­proaches stream size.</p><p>However, in some NLP problems, we are not in­terested in low-frequency items. In such cases, even using space less than linear in number of counters would suffice. In our extrinsic evaluations, we show that using space less than the length of the stream does not degrade the performance.</p></subsection></section><section number="4" title="Extrinsic Evaluations 4.1 Data"><p>Gigaword corpus (Graff, 2003) and a 50% portion of a copy of web crawled by (Ravichandran et al., 2005) are used to compute counts of words and word pairs.<page local="6" global="255"/> For both the corpora, we split the text into sentences, tokenize and convert into lower-case. We generate words and word pairs over a window ofsize 7. We use four different sized corpora: SubSet (used for intrinsic evaluations in Section 3), Gigaword (GW), GigaWord + 20% of web data (GWB20), and GigaWord + 50% of web data (GWB50). Corpus Statistics are shown below. We store exact counts of words in a hash table and store approximate counts of word pairs in the sketch. Hence, the stream size in our case is the total number of word pairs in a corpus.</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><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>#Cs</b></p></td><td class="cell"><p><b>20M</b></p></td><td class="cell"><p><b>50M</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>AS</b></p></td><td class="cell"><p><b>PMI</b></p></td><td class="cell"><p><b>LLR</b></p></td><td class="cell"><p><b>PMI</b></p></td><td class="cell"><p><b>LLR</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>TopK</i></p></td><td class="cell"><p>R</p></td><td class="cell"><p>p</p></td><td class="cell"><p>R</p></td><td class="cell"><p>P</p></td><td class="cell"><p>R</p></td><td class="cell"><p>P</p></td><td class="cell"><p>R P</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>50</i></p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0 1.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>100</p></td><td class="cell"><p>.98</p></td><td class="cell"><p>.94</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0 1.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>500</p></td><td class="cell"><p>.80</p></td><td class="cell"><p>.98</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>.98</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0 1.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1000</p></td><td class="cell"><p>.56</p></td><td class="cell"><p>.99</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>.96</p></td><td class="cell"><p>.99</p></td><td class="cell"><p>1.0 1.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5000</p></td><td class="cell"><p>.35</p></td><td class="cell"><p>.90</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>.85</p></td><td class="cell"><p>.99</p></td><td class="cell"><p>1.0 1.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>10000</p></td><td class="cell"><p>.38</p></td><td class="cell"><p>.55</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>1.0</p></td><td class="cell"><p>.81</p></td><td class="cell"><p>.95</p></td><td class="cell"><p>1.0 1.0</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><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">o</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">P</doubt><subsection number="4.2" title="Semantic Orientation"><p>Given a word, the task of finding the Semantic Ori­entation (SO) (Turney and Littman, 2003) of the word is to identify if the word is more likely to be used in positive or negative sense. We use a similar framework as used by the authors to infer the SO. We take the seven positive words (good, nice, excel­lent, positive, fortunate, correct, and superior) and the seven negative words (bad, nasty, poor, negative, unfortunate, wrong, and inferior) used in (Turney and Littman, 2003) work. The SO of a given word is calculated based on the strength of its association with the seven positive words, and the strength of its association with the seven negative words. We compute the SO of a word "w" as follows: SO-AS(w) = <i>AS(p,w)- </i><i>AS</i><i> </i>(<i>n'w</i>)</p><p><i>p^Pwords n^Nwords</i></p><p>Where, Pwords and Nwords denote the seven pos­itive and negative prototype words respectively. We use PMI and LLR to compute association scores (AS). If this score is positive, we predict the word as positive. Otherwise, we predict it as negative.</p><p>We use the General Inquirer lexicon<footnote anchor="4"/> (Stone et al., 1966) as a benchmark to evaluate the semantic orientation scores similar to (Turney and Littman, 2003) work. Words with multiple senses have multi­ple entries in the lexicon, we merge these entries for our experiment. Our test set consists of 1597 posi­tive and 1980 negative words. Accuracy is used as an evaluation metric and is defined as the percentage of number of correctly identified SO words.</p><footnote label="4">The General Inquirer lexicon is freely available at http: // www.wjh.harvard.edu/~ inquirer/</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">■ 65</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">60</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">70</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">o o</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">65</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">□ CU</doubt><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">— Exact</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">55</doubt><doubt alpha="33.3" length="39" tooSmall="False" monospace="0.0">0     500M    1B     1.5B 2B Model Size</doubt><doubt alpha="35.1" length="37" tooSmall="False" monospace="0.0">0    500M    1B    1.5B 2B Model Size</doubt><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">(a) SO PMI</doubt><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">(b) SO LLR</doubt><p>Figure 2: Evaluating Semantic Orientation using PMI and LLR with different number of counters of CU sketch built using Gi-gaword.</p><subsubsection number="4.2.1" title="Varying sketch size"><p>We evaluate SO of words using PMI and LLR on Gigaword (9.8GB). We compare approximate SO computed using varying sizes of CU sketches: 50 million (50M), 100M, 200M, 500M, 1 billion (1B) and 2 billion (2B) counters with Exact SO. To compute these scores, we count the number of indi­vidual words w1 and w2 and the pair (w^w2) within a window of size 7. Note that computing the exact counts of all word pairs on these corpora is com­putationally expensive and memory intensive, so we consider only those pairs in which one word appears in the prototype list and the other word appears in the test set.</p><p>First, if we look at the Exact SO using PMI and LLR in Figure 2(a) and 2(b) respectively, it shows that using PMI, we get about 6 points higher ac­curacy than LLR on this task (The 95% statistical significance boundary for accuracy is about ± 1.5.). Second, for both PMI and LLR, having more num­ber of counters improve performance.<footnote anchor="5"/> Using <i>2</i><i>B </i>counters, we get the same accuracy as Exact.</p><footnote label="5">We use maximum of 2B counters (8GB main memory), as most of the current desktop machines have at most 8GB RAM.</footnote><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">75</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>_n</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><b>r''</b></p><p><b>/</b></p><p><b>/</b></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><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>f</p></td><td class="cell"><p>□ CU</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>□</p><p><b>■—,-^</b></p></td><td class="cell"><p>—Exact</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><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><b>Corpus</b></p></td><td class="cell"><p><b>Subset</b></p></td><td class="cell"><p><b>GW</b></p></td><td class="cell"><p><b>GWB20</b></p></td><td class="cell"><p><b>GWB50</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Unzipped Size (GB)</i></p></td><td class="cell"><p>.32</p></td><td class="cell"><p>9.8</p></td><td class="cell"><p>22.8</p></td><td class="cell"><p>49</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p># <i>of sentences (Million)</i></p></td><td class="cell"><p>2.00</p></td><td class="cell"><p>56.78</p></td><td class="cell"><p>191.28</p></td><td class="cell"><p>462.60</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Stream Size (Billion)</i></p></td><td class="cell"><p>.088</p></td><td class="cell"><p>2.67</p></td><td class="cell"><p>6.05</p></td><td class="cell"><p>13.20</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><page local="7" global="256"/></subsubsection><subsubsection number="4.2.2" title="Effect of Increasing Corpus Size"><p>We evaluate SO of words on three different sized corpora (see Section 4.1): GW (9.8GB), GWB20 (22.8GB), and GWB50 (49GB). First, since for this task using PMI performs better than LLR, so we will use PMI for this experiment. Second, we will fix number of counters to <i>2</i><i>B </i>(CU-2B) as it performs the best in Section 4.2.1. Third, we will compare the CU-2B counter model with the Exact over increas­ing corpus size.</p><p>We can make several observations from the Fig­ure 3: • It shows that increasing the amount of data improves the accuracy of identifying the SO of a word. We get an absolute increase of 5.5 points in accuracy, when we add 20% Web data to GigaWord (GW). Adding 30% more Web data (GWB50), gives a small increase of 1.3 points in accuracy which is not even statistically significant. • Second, CU-2B performs as good as exact for all corpus sizes. • Third, the number of <i>2</i><i>B </i>counters (bounded space) is less than the length of stream for GWB20 (6.05B ), and GWB50 (13.2B). Hence, it shows that using counters less than the stream length does not degrade the performance. • These results are also compara­ble to Turney's (2003) state-of-the-art work where they report an accuracy of 82.84%. Note, they use a billion word corpus which is larger than GWB50.</p><doubt alpha="0.0" length="15" tooSmall="False" monospace="0.0">82 8078 7674 72</doubt><doubt alpha="44.4" length="45" tooSmall="False" monospace="0.0">10GB    20GB    30GB    40GB 50GB Corpus Size</doubt><p>Figure 3: Evaluating Semantic Orientation of words with Ex­act and CU counts with increase in corpus size</p></subsubsection></subsection><subsection number="4.3" title="Distributional Similarity"><p>Distributional similarity is based on the distribu­tional hypothesis that similar terms appear in simi­lar contexts (Firth, 1968; Harris, 1954). The context vector for each term is represented by the strength of association between the term and each of the lex­ical, semantic, syntactic, and/or dependency units that co-occur with it<footnote anchor="6"/>. We use PMI and LLR to com­pute association score (AS) between the term and each of the context to generate the context vector. Once, we have context vectors for each of the terms, cosine similarity measure returns distributional sim­ilarity between terms.</p><subsubsection number="4.3.1" title="Efficient Distributional Similarity"><p>We propose an efficient approach for computing distributional similarity between word pairs using CU sketch. In the first step, we traverse the corpus and store counts of all words (except stop words) in hash table and all word pairs (except word pairs in­volving stop words) in sketch. In the second step, for a target word "x", we consider all words (except infrequent contexts which appear less than or equal to 10.) as plausible context (since it is faster than traversing the whole corpus.), and query the sketch for vocabulary number of word pairs, and compute approximate AS between word-context pairs. We maintain only top K AS scores<footnote anchor="7"/> contexts using pri­ority queue for every target word "x" and save them onto the disk. In the third step, we use cosine simi­larity using these approximate top K context vectors to compute efficient distributional similarity.</p><p>The efficient distributional similarity using sketches has following advantages:</p><p>• It can return semantic similarity between any word pairs that are stored in the sketch.</p><p>• It can return the similarity between word pairs in time O(K).</p><p>• We do not store word pairs explicitly, and use fixed number of counters, hence the overall space required is bounded.</p><p>• The additive property of sketch (Sec. 2.1.2) en­ables us to parallelize most of the steps in the algorithm. Thus it can be easily extended to very large amounts of text data.</p><p>We use two test sets which consist of word pairs, and their corresponding human rankings. We gen­erate the word pair rankings using efficient distri­butional similarity. We report the spearman's rank correlation<footnote anchor="8"/> coefficient (p) between the human and distributional similarity rankings.<page local="8" global="257"/> The two test sets are:</p><footnote label="6">Here, the context for a target word "x" is defined as words appear within a window of size 7.</footnote><footnote label="7">For this work, we use K = 1000 which is not tuned.</footnote><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">I</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">□ CU</doubt><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">— Exact</doubt><doubt alpha="35.1" length="37" tooSmall="False" monospace="0.0">0    500M    1B    1.5B 2B Model Size</doubt><p>1. <b>WS-353 </b>(Finkelstein et al., 2002) is a set of 353 word pairs.</p><p>2. <b>RG-65: </b>(Rubenstein and Goodenough, 1965) is set of 65 word pairs.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">0.25</doubt><doubt alpha="6.7" length="15" tooSmall="False" monospace="0.0">i0.2 ' 0.15 0.1</doubt><doubt alpha="36.1" length="36" tooSmall="False" monospace="0.0">0    500M   1B    1.5B 2B Model Size</doubt><doubt alpha="5.3" length="19" tooSmall="False" monospace="0.0">0.55i0.5 ' 0.45 0.4</doubt><p>(a) Word Similarity PMI      (b) Word Similarity LLR</p><p>Figure 4: Evaluating Distributional Similarity between word pairs on WS-353 test set using PMI and LLR with different number of counters of CU sketch built using Gigaword data-set.</p></subsubsection><subsubsection number="4.3.2" title="Varying sketch size"><p>We evaluate efficient distributional similarity be­tween between word pairs on WS-353 test set us­ing PMI and LLR association scores on Giga-word (9.8GB). We compare different sizes of CU sketch (similar to SO evaluation): 50 million (50M), 100M, 200M, 500M, 1 billion (1B) and 2 bil­lion (2B) counters with the Exact word pair counts. Here again, computing the exact counts of all word-context pairs on these corpora is time, and memory intensive, we generate context vectors for only those words which are present in the test set.</p><p>First, if we look at word pair ranking using exact PMI and LLR across Figures 4(a) and 4(b) respec­tively, it shows that using LLR, we get better p of .55 compared to p of .25 using PMI on this task (The 95% statistical significance boundary on p for WS-353 is about ± .08). The explanation for such a be­havior is: PMI rank context pairs with low frequency counts higher (Church and Hanks, 1989) compared to frequent ones which are favored by LLR. Second, for PMI in Fig. 4(a), having more counters does not improve p. Third, for LLR in Fig. 4(b), having more number of counters improve performance and using <i>2</i><i>B </i>counters, we get p close to the Exact.</p><footnote label="8">To calculate the Spearman correlations values are trans­formed into ranks (if tied ranks exist, average of ranks is taken), and we calculate the Pearson correlation on them.</footnote><table caption="Table 2: Evaluating word pairs ranking with Exact and CU counts. Scores are evaluated usingpmetric."></table></subsubsection><subsubsection number="4.3.3" title="Effect of Increasing Corpus Size"><p>We evaluate efficient distributional similarity be­tween word pairs using three different sized cor­pora: GW (9.8GB), GWB20 (22.8GB), and GWB50 (49GB) on two test sets: WS-353, and RG-65. First, since for this task using LLR performs better than PMI, so we will use LLR for this experiment. Sec­ond, we will fix number of counters to <i>2</i><i>B </i>(CU-2B) as it performs the best in Section 4.2.1. Third, we will compare the CU-2B counter model with the Exact over increasing corpus size. We also com­pare our results against the state-of-the-art results (Agirre) for distributional similarity (Agirre et al., 2009). We report their results of context window of size 7.</p><p>We can make several observations from the Ta­ble 2: • It shows that increasing the amount of data is not substantially improving the accuracy of word pair rankings over both the test sets. • Here again, CU-2B performs as good as exact for all cor­pus sizes. • CU-2B and Exact performs same as the state-of-the-art system. • The number of <i>2</i><i>B </i>coun­ters (bounded space) is less than the length of stream for GWB20 (6.05B ), and GWB50 (13.2B). Hence, here again it shows that using counters less than the stream length does not degrade the performance.</p></subsubsection></subsection></section><section number="5" title="Dependency Parsing"><p>Recently, maximum spanning tree (MST) algo­rithms for dependency parsing (McDonald et al., 2005) have shown great promise, primarily in su­pervised settings. In the MST framework, words in a sentence form nodes in a graph, and connections between nodes indicate how "related" they are. A maximum spanning tree algorithm constructs a dependency parse by linking together "most similar" words.<page local="9" global="258"/> Typically the weights on edges in the graph are parameterized as a linear function of features, with weight learned by some supervised learning al­gorithm. In this section, we ask the question: can word association scores be used to derive syntactic structures in an <i>unsupervised </i>manner?</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>Test Set</b></p></td><td class="cell"><p><b>WS-353</b></p></td><td class="cell"><p><b>RG-65</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Model</b></p></td><td class="cell"><p>GW <i>GWB20 GWB50</i></p></td><td class="cell"><p>GW GWB20 GWB50</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Agirre</p></td><td class="cell"><p>.64</p></td><td class="cell"><p>.75</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Exact CU-2B</p></td><td class="cell"><p>.55      .55 .62 .53      .58 .62</p></td><td class="cell"><p>.65      .72 .74 .66      .72 .74</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><p>A first pass answer is: clearly not. Metrics like PMI would assign high association scores to rare word pairs (mostly content words) leading to incor­rect parses. Metrics like LLR would assign high association scores to frequent words, also leading to incorrect parses. However, with a <i>small amount </i>of linguistic side information (Druck et al., 2009; Naseem et al., 2010), we see that these issues can be overcome. In particular, we see that large data + a little linguistics &gt; fancy unsupervised learning algorithms.</p><subsection number="5.1" title="Graph Definition"><p>Our approach is conceptually simple. We construct a graph over nodes in the sentence with a unique "root" node. The graph is directed and fully con­nected, and for any two words in positions i and j, the <i>weight </i>from word i to word j is defined as:</p><doubt alpha="66.7" length="57" tooSmall="False" monospace="0.0">wij =aascasc(wj, wj) - adistdist(i - j)+ alingling(ti;tj)</doubt><p>Here, asc(wi,wj) is a association score such as PMI or LLR computed using approximate counts from the sketch. Similarly, dist(i — j) is a simple parameterized model of distances that favors short dependencies. We use a simple unnormalized (log) Laplacian prior of the form dist(i—j ) = j —1|, centered around 1 (encouraging short links to the right). It is negated because we need to convert dis­tances to similarities.</p><p>The final term, ling<i>(t</i><b><i>i</i></b><i>,t</i><b><i>j) </i></b>asks: according to some simple linguistic knowledge, how likely is if that the (gold standard) part of speech tag associated with word i points at that associated with word j? For this, we use the same linguistic information used by (Naseem et al., 2010), which does <i>not </i>encode direction information. These rules are: root —&gt;■ { aux, verb }; verb —&gt;■ { noun, pronoun, adverb, verb }; aux — { verb }; noun — { adj, art, noun, num };  prep — { noun };   adj   — { adv</p><p>Table 3: Comparing CU-2B build on GWB50 + a little lin­guistics v/s fancy unsupervised learning algorithms.</p><p>} . We simply give an additional weight of 1 to any edge that agrees with one of these linguistic rules.</p></subsection><subsection number="5.2" title="Parameter Setting"><p>The remaining issue is setting the interpolation pa­rameters <i>a </i>associated with each of these scores. This is a difficult problem in purely unsupervised learning. We report results on three settings. First, the OPTIMAL setting is based on grid search for op­timal parameters. This is an oracle result based on grid search over two of the three parameters (hold­ing the third fixed at 1). In our second approach, BALANCED, we normalize the three components to "compete" equally. In particular, we scale and trans­late all three components to have zero mean and unit variance, and set the as to all be equal to one. Fi­nally, our third approach, SEMISUP, is based on us­ing a small amount of labeled data to set the param­eters. In particular, we use 10 labeled sentences to select parameters based on the same grid search as the OPTIMAL setting. Since this relies heavily on which 10 sentences are used, we repeat this experi­ment 20 times and report averages.</p></subsection><subsection number="5.3" title="Experiments"><p>Our experiments are on a dependency-converted ver­sion of section 23 of the Penn Treebank using mod­ified Collins' head finding rules. We measure accu­racies as <i>directed, </i>unlabeled dependency accuracy. We separately report results of sentences of length at most 10, at most 20 and finally of all length. Note that there is no training or cross-validation: we sim­ply run our MST parser on test data directly.</p><p>The results of the parsing experiments are shown in Table 3.<page local="10" global="259"/> We compare against the following al­ternative systems. The first, Cohen-Dirichlet and Cohen-Best, are previously reported state-of-the-art results for unsupervised Bayesian dependency pars­ing (Cohen and Smith, 2010). The first is results using a simple Dirichlet prior; the second is the best reported results for any system from that paper.</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><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>len &lt; 10</b></p></td><td class="cell"><p><b>len &lt; 20</b></p></td><td class="cell"><p><b>all</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>cohen-dirichlet Cohen-Best</p></td><td class="cell"><p>45.9 59.4</p></td><td class="cell"><p>39.4 45.9</p></td><td class="cell"><p>34.9 40.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Oracle</p><p>Baseline+Ling Baseline</p></td><td class="cell"><p>75.1 42.4 33.5</p></td><td class="cell"><p>66.6 33.8 30.4</p></td><td class="cell"><p>63.0 29.7 28.9</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>CU-2B LLR Optimal CU-2B PMI Optimal</p></td><td class="cell"><p>62.4 ± <i>7.7 </i>63.3 ± <i>7.8</i></p></td><td class="cell"><p>51.1 ± <i>3.2</i></p><p>52.0 ± <i>3.2</i></p></td><td class="cell"><p>41.1 ± <i>1.9 </i>41.1 ± <i>2.0</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>CU-2B LLR Balanced CU-2B PMI Balanced</p></td><td class="cell"><p>49.1 ± <i>7.6</i></p><p><b>49.5 </b>± <b><i>8.0</i></b></p></td><td class="cell"><p>43.6 ± <i>33 </i><b>45.0 </b>± <b><i>3.2</i></b></p></td><td class="cell"><p>37.2 ± <i>1.9</i></p><p><b>38.3 </b>± 2.o</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>CU-2B LLR Semisup CU-2B PMI Semisup</p></td><td class="cell"><p>55.7 ± <i>0.0 </i><b>56.5 </b>± o.o</p></td><td class="cell"><p>44.1 ± <i>0.0 </i><b>45.8 </b>± o.o</p></td><td class="cell"><p>39.4 ± <i>0.0 </i><b>39.9 </b>± o.o</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><p>Next, we compare against an "oracle" system that uses LLR extracted from the training data for the Penn Treebank, where the LLR is based on the prob­ability of observing an edge given two words. This is not a true oracle in the sense that we <i>might </i>be able to do better, but it is unlikely. The next two baseline system are simple right branching base­line trees. The Baseline system is a purely right-branching tree. The Baseline+Ling system is one that is right branching <i>except </i>that it can only create edges that are compatible with the linguistic rules, provided a relevant rule exists. For short sentences, this is competitive with the Dirichlet prior results.</p><p>Finally we report variants of our approach using association scores computed on the GWB50 using CU sketch with 2 billion counters. We experiment with two association scores: LLR and PMI. For each measure, we report results based on the three ap­proaches described earlier for setting the a hyper­parameters. Error bars for our approaches are 95% confidence intervals based on bootstrap resampling.</p><p>The results show that, for this task, PMI seems slightly better than LLR, across the board. The Op­timal performance (based on tuning two hyperpa­rameters) is amazingly strong: clearly beating out all the baselines, and only about 15 points behind the Oracle system. Using the Balanced ap­proach causes a degradation of only 3 points from the Optimal on sentences of all lengths. In general, the balancing approach seems to be slightly worse than the semi-supervised approach, except on very short sentences: for those, it is substantially better. Overall, though, the results for both Balanced and Semisup are competitive with state-of-the-art unsu-pervised learning algorithms.</p></subsection></section><section number="6" title="Discussion and Conclusion"><p>The advantage of using sketch in addition to being memory and time efficient is that it contains counts for all word pairs and hence can be used to compute association scores like PMI and LLR between any word pairs. We show that using sketch counts in our experiments, on the three tasks, we get perfor­mance comparable to Exact word pair counts setting and state-of-the-art system. Our method scales to 49 GB of unzipped web data using bounded space of 2 billion counters (8 GB memory). Moreover, the lin­earity property of the sketch makes it scalable and usable in distributed setting. Association scores and counts from sketch can be used for more NLP tasks like small-space randomized language models, word sense disambiguation, spelling correction, relation learning, paraphrasing, and machine translation.</p></section><section title="Acknowledgments"><p>The authors gratefully acknowledge the support of NSF grant IIS-0712764 and Google Research Grant for Large-Data NLP. Thanks to Suresh Venkatasub-ramanian and Jagadeesh Jagarlamudi for useful dis­cussions and the anonymous reviewers for many helpful comments.</p></section><references><p>Charu C. Aggarwal and Philip S. Yu. 2010. On classi­fication of high-cardinality data streams. In <i>SDM'10, </i>pages 802-813.</p><p>Eneko Agirre, Enrique Alfonseca, Keith Hall, Jana Kravalova, Marius Pa§ca, and Aitor Soroa. 2009. A study on similarity and relatedness using distributional and wordnet-based approaches. In <i>NAACL '09: Pro­ceedings ofHLT-NAACL.</i></p><p>Thorsten Brants, Ashok C. Popat, Peng Xu, Franz J. Och, and Jeffrey Dean. 2007. Large language mod­els in machine translation. In <i>Proceedings ofEMNLP-</i> <i>CoNLL.</i><i></i></p><p>Moses Charikar, Kevin Chen, and Martin Farach-Colton. 2004. Finding frequent items in data streams. <i>Theor. Comput. Sci., </i>312:3-15, January.</p><p>K. Church and P. Hanks. 1989. Word Associa­tion Norms, Mutual Information and Lexicography. In <i>Proceedings of ACL, </i>pages 76-83, Vancouver, Canada, June.</p><p>S. B. Cohen and N. A. Smith. 2010. Covariance in unsu­pervised learning of probabilistic grammars. <i>Journal of Machine Learning Research, </i>11:3017-3051.</p><p>Graham Cormode and Marios Hadjieleftheriou. 2008. Finding frequent items in data streams. In <i>VLDB.</i></p><p>Graham Cormode and S. Muthukrishnan. 2004. An im­proved data stream summary: The count-min sketch and its applications. <i>J. Algorithms.</i></p><page local="11" global="260"/><p>Gregory Druck, Gideon Mann, and Andrew McCal-lum. 2009. Semi-supervised learning of dependency parsers using generalized expectation criteria. In <i>Pro­ceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing ofthe AFNLP: Volume 1 - Volume </i>1, ACL '09, pages 360­368, Stroudsburg, PA, USA. Association for Compu­tational Linguistics.</p><p>Cynthia Dwork, Moni Naor, Toniann Pitassi, Guy N. Rothblum, and Sergey Yekhanin. 2010. Pan-private streaming algorithms. In <i>In Proceedings ofICS.</i></p><p>Cristian Estan and George Varghese. 2002. New di­rections in traffic measurement and accounting. <i>SIG-COMM Comput. Commun. Rev., </i>32(4).</p><p>L. Finkelstein, E. Gabrilovich, Y. Matias, E. Rivlin, Z. Solan, G. Wolfman, and E. Ruppin. 2002. Plac­ing search in context: The concept revisited. In <i>ACM Transactions on Information Systems.</i></p><p>J. Firth. 1968. A synopsis of linguistic theory 1930­1955. In F. Palmer, editor, <i>Selected Papers </i><i>ofJ.</i><i> </i><i>R.</i><i> Firth. </i>Longman.</p><p>Amit Goyal, Hal Daume III, and Suresh Venkatasubra-manian. 2009. Streaming for large scale NLP: Lan­guage modeling. In <i>NAACL.</i></p><p>Amit Goyal, Jagadeesh Jagarlamudi, Hal Daume III, and Suresh Venkatasubramanian. 2010a. Sketch tech­niques for scaling distributional similarity to the web. In <i>GEMS workshop at ACL, </i>Uppsala, Sweden.</p><p>Amit Goyal, Jagadeesh Jagarlamudi, Hal Daume III, and Suresh Venkatasubramanian. 2010b. Sketching tech­niques for Large Scale NLP. In <i>6th WAC Workshop at</i> <i>NAACL-HLT.</i><i></i></p><p>D.Graff. 2003. English Gigaword. Linguistic Data Con­sortium, Philadelphia, PA, January.</p><p>Z. Harris. 1954. Distributional structure. <i>Word 10 (23), </i>pages 146-162.</p><p>Abby Levenberg and Miles Osborne. 2009. Stream-based randomised language models for SMT. In <i>EMNLP, </i>August.</p><p>Abby Levenberg, Chris Callison-Burch, and Miles Os-borne. 2010. Stream-based translation models for statistical machine translation. In <i>Human Language Technologies: The 2010 Annual Conference </i><i>ofthe</i><i> North American Chapter </i><i>ofthe</i><i> Association for Com­putational Linguistics, </i>HLT '10, pages 394-402. As­sociation for Computational Linguistics.</p><p>Ping Li, Kenneth Ward Church, and Trevor Hastie. 2008. One sketch for all: Theory and application of condi­tional random sampling. In <i>Neural Information Pro­cessing Systems, </i>pages 953-960.</p><p>G. S. Manku and R. Motwani. 2002. Approximate fre­quency counts over data streams. In <i>VLDB.</i></p><p>Ryan McDonald, Fernando Pereira, Kiril Ribarov, and Jan Hajic. 2005. Non-projective dependency parsing using spanning tree algorithms. In <i>Proceedings </i><i>ofthe</i><i> conference on Human Language Technology and Em­pirical Methods in Natural Language Processing, </i>HLT '05, pages 523-530, Stroudsburg, PA, USA. Associa­tion for Computational Linguistics.</p><p>S. Muthukrishnan. 2005. Data streams: Algorithms and applications. <i>Foundations and Trends in Theoretical Computer Science, </i>1(2).</p><p>Tahira Naseem, Harr Chen, Regina Barzilay, and Mark Johnson. 2010. Using universal linguistic knowl­edge to guide grammar induction. In <i>Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing, </i>EMNLP '10, pages 1234-1244. Association for Computational Linguistics.</p><p>Patrick Pantel, Eric Crestan, Arkady Borkovsky, Ana­Maria Popescu, and Vishnu Vyas. 2009. Web-scale distributional similarity and entity set expansion. In <i>Proceedings ofEMNLP.</i></p><p>Deepak Ravichandran, Patrick Pantel, and Eduard Hovy. 2005. Randomized algorithms and nlp: using locality sensitive hash function for high speed noun clustering. In <i>Proceedings ofACL.</i></p><p>H. Rubenstein and J.B. Goodenough. 1965. Contextual correlates of synonymy.  <i>Computational Linguistics,</i> 8:627-633.</p><p>Florin Rusu and Alin Dobra. 2007. Statistical analysis of sketch estimators. In <i>SIGMOD '07. </i>ACM.</p><p>Stuart Schechter, Cormac Herley, and Michael Mitzen-macher. 2010. Popularity is everything: a new approach to protecting passwords from statistical-guessing attacks. In <i>Proceedings of the 5th USENIX conference on Hot topics in security, </i>HotSec'10, pages 1-8, Berkeley, CA, USA. USENIX Association.</p><p>Qinfeng Shi, James Petterson, Gideon Dror, John Lang­ford, Alex Smola, and S.V.N. Vishwanathan. 2009. Hash kernels for structured data. <i>J. Mach. Learn. Res., </i>10:2615-2637, December.</p><p>Philip J. Stone, Dexter C. Dunphy, Marshall S. Smith, and Daniel M. Ogilvie. 1966. <i>The General Inquirer: A Computer Approach to Content Analysis. </i>MIT Press.</p><p>Peter D. Turney and Michael L. Littman. 2003. Measur­ing praise and criticism: Inference of semantic orienta­tion from association. <i>ACM Trans. Inf. Syst., </i>21:315­346, October.</p><p>Peter D. Turney. 2008. A uniform approach to analogies, synonyms, antonyms, and associations. In <i>Proceed­ings ofCOLING 2008.</i></p><p>Benjamin Van Durme and Ashwin Lall. 2009a. Prob­abilistic counting with randomized storage. In <i>IJ-CAI'09: Proceedings of the 21st international jont conference onArtifical intelligence.</i></p><page local="12" global="261"/><p>Benjamin Van Durme and Ashwin Lall. 2009b. Stream­ing pointwise mutual information. In <i>Advances in Neural Information Processing Systems 22.</i></p><p>Benjamin Van Durme and Ashwin Lall. 2010. Online generation of locality sensitive hash signatures. In <i>Proceedings ofthe ACL 2010 Conference Short Pa­pers, </i>pages 231-235, July.</p></references></body></article>