<?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="1317"/><title>Paraphrasing with Search Engine Query Logs</title><author surname="Zhao" givenname="Shiqi"><org  name="Harbin Institute of Technology" country="China" city="Harbin"/></author><author surname="Wang" givenname="Haifeng"><org  name="Harbin Institute of Technology" country="China" city="Harbin"/></author><author surname="Liu" givenname="Ting"><org  name="Harbin Institute of Technology" country="China" city="Harbin"/></author></firstpageheader><frontmatter><p><b>Paraphrasing with Search Engine Query Logs</b></p><p><b>Shiqi Zhao**, Haifeng Wang*, and Ting Liu*</b></p><p>tBaidu Inc.</p><p>* HIT Center for Information Retrieval, Harbin Institute of Technology</p><p>{zhaoshiqi,  wanghaifengj@baidu.com, tliu@ir.hit.edu.cn</p></frontmatter><abstract>This paper proposes a method that extracts paraphrases from search engine query logs. The method first extracts paraphrase query-title pairs based on an assumption that a search query and its correspond­ing clicked document titles may mean the same thing. It then extracts paraphrase query-query and title-title pairs from the query-title paraphrases with a pivot ap­proach. Paraphrases extracted in each step are validated with a binary classifier. We evaluate the method using a query log from Baidu<footnote anchor="1"/>, a Chinese search engine. Experimental results show that the pro­posed method is effective, which extracts more than 3.5 million pairs of paraphrases with a precision of over 70%. The results also show that the extracted paraphrases can be used to generate high-quality para­phrase patterns. </abstract></header><body><section number="1" title="Introduction"><p>The use of paraphrases is ubiquitous in hu­man languages, which also presents a challenge for natural language processing (NLP). Previous studies have shown that paraphrasing can play im­portant roles in plenty of areas, such as machine translation (MT) (Callison-Burch et al., 2006; Kauchak and Barzilay, 2006), question answer­ing (QA) (Duboue and Chu-Carroll, 2006; Riezler et al., 2007), natural language generation (NLG) (Iordanskaja et al., 1991), and so on. As a result, the research on paraphrasing and its applications have attracted significant interest.</p><footnote label="1"> www.baidu.com</footnote><p>This paper proposes a method that uses search engine query logs for extracting paraphrases, which is illustrated in Figure 1. Specifically, three kinds of paraphrases can be extracted with our method, which include (1) query-title (Q-T): a query and a document title that users clicked on; (2) query-query (Q-Q): two queries, for which users clicked on the same document title; (3) title-title (T-T): two titles that users clicked on for the same query. We train a classifier for each kind to filter incorrect pairs and refine the paraphrases.</p><p>Extracting paraphrases using query logs has many advantages. First, query logs keep growing, which have no scale limitation. Second, query logs reflect web users' real needs, hence the ex­tracted paraphrases may be more useful than that from other kinds of corpora. Third, paraphrases extracted from query logs can be directed applied in search engines for query suggestion and doc­ument reranking. In addition, we find that both queries and titles contain a good many question sentences, which can be useful in developing QA systems.</p><p>We conduct experiments using a query log of a commercial Chinese search engine Baidu, from which we extracted about 2.7 million pairs of paraphrase Q-T, 0.4 million pairs of paraphrase Q-Q, and 0.4 million pairs of paraphrase T-T. The precision of the paraphrases is above 70%. In addition, we generate paraphrase patterns using the extracted paraphrases. The results show that 73,484 pairs of paraphrase patterns have been gen­erated, with a precision of over 78%.</p><p>In the rest of the paper, we first review related work in Section 2. Section 3 describes our method in detail. Section 4 presents the evaluation and re-</p><p><i>Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010), </i>pages 1317-1325,<page local="2" global="1318"/></p><doubt alpha="65.0" length="20" tooSmall="False" monospace="0.0">Beijing, August 2010</doubt><figure caption="Figure 1: Illustration of the proposed method."></figure><p>sults. Section 5 concludes the paper and discusses future directions.</p></section><section number="2" title="Related Work"><p>In this section, we briefly review previous studies on paraphrase extraction and query log mining in information retrieval (IR).</p><subsection number="2.1" title="Paraphrase Extraction"><p>A variety of data resources have been exploited for paraphrase extraction. For example, some re­searchers extract paraphrases from multiple trans­lations of the same foreign novel (Barzilay and McKeown, 2001; Ibrahim et al., 2003), while some others make use of comparable news arti­cles that report on the same event within a small time interval (Shinyama et al., 2002; Barzilay and Lee, 2003; Dolan et al., 2004). Besides the mono­lingual corpora, bilingual parallel corpora have also been used for extracting paraphrases (Ban­nard and Callison-Burch, 2005; Callison-Burch, 2008; Zhao et al., 2008). Their basic assumption is that phrases that align with the same foreign phrase may have the same meaning.</p><p>The above methods have achieved promising results. However, their performances are usually constrained due to the scale and domain limita­tion. As an alternative, researchers have tried to acquire paraphrases from large-scale web cor­pora (Lin and Pantel, 2001; Pa§ca and Dienes, 2005; Bhagat and Ravichandran, 2008) or directly based on web mining (Ravichandran and Hovy, 2002). These methods are guided by an extended version of distributional hypothesis, namely, if two phrases often occur in similar contexts, their meanings tend to be similar. The disadvantage of these methods is that the underlying assump­tion does not always hold. Phrases with opposite meanings can also occur in similar contexts, such as "X solves Y" and "X worsens Y" (Lin and Pan-tel, 2001). In addition, the extracted paraphrases are generally short fragments with two slots (vari­ables) at both ends.</p></subsection><subsection number="2.2" title="Query Log Mining in IR"><p>Query logs are widely used in the IR commu­nity, especially for mining similar queries. For ex­ample, Wen et al. (2002) clustered queries based on user click information. Their basic idea is that if some queries result in similar user clicks, the meanings of these queries should be similar. Such methods have also been investigated in (Gao et al., 2007) for cross-lingual query suggestion and (Zhao et al., 2007) for synonymous questions identification. This paper is partly inspired by their studies. However, we do not simply use click information as clues for mining similar queries. Instead, we mine paraphrases across queries and clicked document titles.</p><p>In addition, query logs can be used for query expansion. For instance, Cui et al. (2002) extract probabilistic correlations between query terms and document terms by analyzing query logs, which are then used to select high-quality<page local="3" global="1319"/></p><p><b>H1:   </b>If a query q hits a title t, then q and t are likely to be paraphrases.</p><p><b>H2:   </b>If queries qi and q2 hit the same title t, qi and q2 are likely to be paraphrases.</p><p><b>H3:   </b>If a query q hits titles t1 and t2, then ti and t2 are likely to be paraphrases.</p><table caption="Table 1: Hypotheses for extracting paraphrases."></table><p>expansion terms for new queries. Note that the expansion terms are merely related terms of the queries, not necessarily paraphrases.</p><p>There are other studies that use query logs for constructing ontologies (Sekine and Suzuki, 2007), learning named entities (Pa§ca, 2007), building user profiles (Richardson, 2008), correct­ing spelling errors (Ahmad and Kondrak, 2005), and so forth.</p></subsection></section><section number="3" title="The Proposed Method"><subsection number="3.1" title="Basic Idea"><p>Nowadays, more and more users tend to search long queries with search engines. Many users even directly search questions to get exact an­swers. By analyzing our query log that records rich information including user queries, clicked urls, titles, etc., we find that most titles of clicked documents are highly related with search queries. Especially, paraphrases can be easily found from long queries and the corresponding clicked ti­tles. This motivates us to extract paraphrases from query-title pairs. Here we introduce a concept <i>hit </i>that will be frequently used: given a query q, a web document d, and d's title t, if there exist some users that click on d when searching q, then we say q <i>hits t.</i></p><p>The hypothesis for extracting paraphrase Q-T is shown in Table 1 (H1). In addition, we find that when several queries hit the same title, the queries are likely to be paraphrases of each other. The other way round, when a query hits several titles, paraphrases can also be found among the ti­tles. We therefore further extract paraphrase Q-Q and T-T from the paraphrase Q-T. The underly­ing hypotheses can be found in Table 1 (H2 and <b>INPUT:</b><b> </b>Q: query space, T: title space <b>OUTPUT: </b>Pqt: the set of paraphrase Q-T, Pqq : the set of paraphrase Q-Q, <i>Pit: </i>the set of paraphrase T-T, <i>ParaSet: </i>the set of paraphrases</p><doubt alpha="62.5" length="24" tooSmall="False" monospace="0.0">1.FORany q G Q and t G T</doubt></subsection></section><section number="2." title="IF q hits t"></section><section number="3." title="IF I sParaphrase(q, t)"><doubt alpha="50.0" length="20" tooSmall="False" monospace="0.0">4. Add (q, t) to Pqt</doubt></section><section number="5." title="END IF"></section><section number="6." title="END IF"></section><section number="7." title="END FOR"><doubt alpha="59.3" length="27" tooSmall="False" monospace="0.0">8.FORany q1;q2G Q and t G T</doubt><doubt alpha="64.3" length="28" tooSmall="False" monospace="0.0">9.IF(qi,t)GPqtand (q2,t)GPqt</doubt><p>10. <b>IF </b><i>IsParaphrase(qi,q2)</i></p><doubt alpha="61.1" length="18" tooSmall="False" monospace="0.0">11.Add(qi,q2)toPqq</doubt></section><section number="12." title="END IF"></section><section number="13." title="END IF"></section><section number="14." title="END FOR"><p>15. <b>FOR </b>any ti,t2 gT and q gQ 17. <b>IF </b><i>I sParaphrase(ti, </i><i>t2)</i></p><doubt alpha="62.1" length="29" tooSmall="False" monospace="0.0">16.IF(q,ti)GPqtand (q,t2)GPqt</doubt><doubt alpha="55.0" length="20" tooSmall="False" monospace="0.0">18. Add (ti,t2)toPtt</doubt></section><section number="19." title="END IF"></section><section number="20." title="END IF"></section><section number="21." title="END FOR"><p>22. <b>RETURN </b><i>ParaSet = Pqt </i>U Pqq U <i>Ptt </i>Table 2: Algorithm for extracting paraphrases.</p><p>H3). Note that, based on H2 and H3, paraphrase Q-Q and T-T can be directly extracted from raw Q-T pairs. However, in consideration of preci­sion, we extract them from paraphrase Q-T. We call our paraphrase Q-Q and T-T extraction ap­proach as a pivot approach, since we use titles as <i>pivots </i>(queries as <i>targets) </i>when extracting para­phrase Q-Q and use queries as <i>pivots </i>(titles as <i>tar­gets) </i>when extracting paraphrase T-T.</p><subsection number="3.2" title="Algorithm"><p>Our paraphrase extraction algorithm is shown in Table 2.  In particular, lines 1~7 extract paraphrase Q-T from the query log.<page local="4" global="1320"/> Lines 8^14 and 15~21 extract paraphrase Q-Q and T-T, respec­tively. Line 22 combines the paraphrase Q-T, Q-Q, and T-T together. To filter noise, the extracted Q-T, Q-Q, and T-T pairs are all validated using a function <i>IsParaphrase(si, </i>s2). In this work, we recast paraphrase validation as a binary clas­sification problem. Any pair of (si; s2) is classi­fied as 1 (paraphrase) or 0 (non-paraphrase) with a support vector machine (SVM) classifier. The features used for classification will be detailed in Section 3.3.</p><p>In practice, we exploit a query log that contains 287 million Q-T pairs, which are then filtered us­ing the following constraints: (1) exclude Q-T pairs that are too short, i.e., either query q or tittle t contains less than three terms; (2) exclude Q-T pairs where q subsumes t or vice versa, e.g., "4 W (beef)" and "4W W tëfâ (cooking method of beef)"; (3) exclude Q-T pairs in which the similar­ity between q and t is below a predefined threshold <i>T</i><footnote anchor="2"/>; (4) exclude Q-T pairs whose t contains fre­quent internet terms, such as "+J5 (homepage)", "Nèè (web site)", "iï^t (online)", since such ti­tles are mostly organization home pages, online videos, downloadable resources, etc., which are useless for our purpose of paraphrase extraction.</p></subsection><subsection number="3.3" title="Features for Paraphrase Validation"><p>Given a pair of candidate paraphrases (si; s2), in which <i>s</i>i and <i>s</i>2 can be either a query or a title, we exploit the following features in the classification-based paraphrase validation.</p><p>• <b>Frequency Feature </b>FF. FF is defined based on each <i>(si,s2</i>)'s frequency. We expect that more frequent <i>(si,s2)</i><i> </i>should be more reliable.</p><doubt alpha="38.9" length="18" tooSmall="False" monospace="0.0">FF(si,s2)={Vf1'*'^</doubt><doubt alpha="50.0" length="14" tooSmall="False" monospace="0.0">1 ifC(si,s2)&gt;C</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(1)</doubt><p>where <i>C(s</i>i, <i>s</i>2) denotes the number of times that the ( <i>s</i>i <i>, s</i>2) pair occurs in the corpus. <i>C </i>is a nor­malizing factor (C = 10 in our experiments).</p><footnote label="2">The similarity is computed based on word overlap rate, which will be described in detail in section 3.3. We set T = 0.6 in the experiments.</footnote><p>• <b>Length Rate Feature </b>FLR:</p><doubt alpha="53.8" length="26" tooSmall="False" monospace="0.0">F(ss)minjcw(si),cw(s2)}(2)</doubt><doubt alpha="32.0" length="25" tooSmall="False" monospace="0.0">FLR(si,s2)=-7-7-7-7-TT(2)</doubt><p>max{Cw (si ),Cw (s2)} where <i>cw </i><i>(s)</i><i> </i>denotes the number of words in s.</p><p>• <b>Word Overlap Rate Feature </b>FWOR :</p><doubt alpha="25.0" length="28" tooSmall="False" monospace="0.0">t?       &lt;        \Cw(sins2)</doubt><doubt alpha="34.6" length="26" tooSmall="False" monospace="0.0">FWOR(si,s2)=-?-7-7-7-TT(3)</doubt><p>max{Cw (si ),Cw (s2)} where "si n s2" is the intersection of si and s2.</p><p>• <b>Character Overlap Rate Feature </b>FeOR. Chi­nese words are composed of characters. It is quite often that words with similar characters share similar meanings, such as "Â'Èft (comfortable)" and "Ä (comfortable)", "äjH (sell)" and</p><p>U (sell)". Here we use FeOR to measure the sim­ilarity between si and s2 at the character level. Detailedly, we segment si and s2 into sets of characters and compute the overlap rate based on Equation (3)<footnote anchor="3"/>.</p><p>• <b>Cosine Similarity Feature </b><i>Fes</i>. In <i>Fes</i>, both si and s2 are represented as vectors and their co­sine similarity is computed as:</p><doubt alpha="56.0" length="25" tooSmall="False" monospace="0.0">F(ss)veCw(si)■vecw(s2)(4)</doubt><doubt alpha="52.0" length="25" tooSmall="False" monospace="0.0">||vecw(si)y x||vecw(s2)||</doubt><p>where <i>veCw </i>(s) is the vector of words in s, "■" de­notes the dot product of two vectors, ||veCw(s)|| is the norm of a vector. Here, the weight of each word w in a vector is computed using a heuristic similar to tf-idf:</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">N</doubt><doubt alpha="33.3" length="30" tooSmall="False" monospace="0.0">W(w)=tf (w)xlog(-(w) +0.1) (5)</doubt><p>where tf(w) is the frequency ofw in the given s, C(w) is the number of times that w occurs in the corpus, N = maxw c(w).</p><p>• <b>Edit Distance Feature </b>FED. Let £D(si,s2) be the edit distance at the word level between si and s2, we compute FED as follows:</p><doubt alpha="24.1" length="29" tooSmall="False" monospace="0.0">Fed(si,s2)= 1--;—i—,-7-^7 (6)</doubt><doubt alpha="55.6" length="18" tooSmall="False" monospace="0.0">max{Cw(si),Cw(s2)}</doubt><footnote label="3">In Fcor, c w  (s) of Equation (3) denotes the number of characters in s.</footnote><page local="5" global="1321"/><p><b>• Named Entity (NE) Similarity Feature </b>FNE ■</p><p>NE information is critical in paraphrase identifica­tion (Shinyama et af, 2002) We therefore com­pute the NE similarity between s1 and s2 and take it as a feature^ We employ a Chinese NE recog­nition tool that can recognize <i>person names, loca­tions, organizations, </i>and <i>numerals^ </i>The NE simi­larity is computed as:</p><doubt alpha="30.8" length="26" tooSmall="False" monospace="0.0">t?   &lt;      \Cne(sinS2)+ 1</doubt><doubt alpha="38.5" length="26" tooSmall="False" monospace="0.0">Fne(si,S2)=-t-1—,-/-Mil(7)</doubt><doubt alpha="43.5" length="23" tooSmall="False" monospace="0.0">max|c„e(Sl),C„e(S2)}+ 1</doubt><p>where <i>cne(s) </i>denotes the number of NEs in Equation (7) guarantees FNE = 1 if there are no NEs in either s1 or s2^</p><p>• <b>Pivot Fertility Feature </b>FPF <b>: </b>FPF is a fea­ture specially designed for paraphrase Q-Q and T-T extraction, which are based on the pivot ap-proach<footnote anchor="4"/> Specifically, we define <i>fertility </i>of a pivot as the number of targets it corresponds bo Our ob­servation indicates that the larger the fertility of a pivot is, the more noisy the targets are^ Hence we define FPF as:</p><doubt alpha="40.9" length="22" tooSmall="False" monospace="0.0">Fpf(si,s2)= max—1— (8)</doubt><p>where s1 = q1, s2 = q2, <i>p </i>= t when classifying Q-Q, while s1 = t1, s2 = t2, p = q when classi­fying T-T / (p) denotes the fertility of the pivot The value is maximized over p if s1 and s2 can be extracted with multiple pivots^</p></subsection><subsection number="3.4" title="Generating Paraphrase Patterns"><p>A key feature of our method is that the extracted paraphrases are particularly suitable for generat­ing paraphrase patterns, especially for the hot do­mains that are frequently searched^ For example, there are quite a few paraphrases concerning the therapy of various diseases, from which we can easily induce patterns expressing the meaning of "How to treat [X] disease", such as "[X] M #0 <i>M</i><i> </i>fë-)7", <i>fàfï</i><i> </i>[X] M", and "[X] M W</p><p><i>^nff</i><i> </i>7P£fe" Therefore, in this work, we try to generate paraphrase patterns using the extracted paraphrases^</p><p>In our preliminary experiments, we only induce paraphrase patterns from paraphrases that contain no more than 6 words^ In addition, only one slot is allowed in each pair of paraphrase patterns^ Let s1 and s2 be a pair of paraphrases extracted above^ If there exist words w G s1 and v G s2 that satisfy (1) w = v, (2) w and v are not stop words, then we can induce a pair of paraphrase patterns by re­placing w in s1 and v in s2 with a slot "[X]'\ It is obvious that several pairs of paraphrase patterns may be induced from one pair of paraphrases^</p><footnote label="4">Fpf is not used in paraphrase Q-T validation</footnote></subsection></section><section number="4" title="Experiments"><p>We experiment with a query log that contains a total of 284,316,659 queries^ Statistics reveal that 170,315,807 queries (59^90%) lead to at least one user click, each having L69 clicks on average^ We extract 287,129,850 raw Q-T pairs using the query log, from which 4,448,347 pairs of candidate Q-T are left after filtering as described in Section 3^ Almost all queries and titles are written in Chinese, though some of them contain English or Japanese words^ The preprocessing of candidate Q-T includes Chinese word segmentation (WSeg) and NE recognition (NER) Our WSeg tool is im­plemented based on forward maximum matching, while the NEI tool is based on a NE dictionary mined from the weh</p><subsection number="4.1" title="Evaluation of Candidate Q-T"><p>We first evaluate candidate Q-T without valida­tion To this end, we randomly sampled 5000 pairs of candidate Q-T and labeled them manu-alfy Each pair is labeled into one of the 3 classes: SAME - q and t have the same meaning; RELA - q and t have related meanings; DIFF - q and t have clearly different meanings^ The labeling results are listed in Table 3^ We can see that no candidate Q-T is in the DIFF class^ This is not surprising, since users are unlikely to click on web pages un­related to their queries^</p><p>To gain a better insight into the data, we ana­lyzed the subtle types of candidate Q-T in both SAME and RELA classes^ In detail, we sampled 1000 pairs of candidate Q-T from the 5000 pairs labeled above, in which 563 are in the SAME class, while the other 437 are in the RELA class.<page local="6" global="1322"/> Our analysis suggests that candidate Q-T in the SAME class can be divided into 4 subtle types:</p><table caption="Table 3: Human labeling of candidate Q-T" 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>SAME</b></p></td><td class="cell"><p><b>RELA</b></p></td><td class="cell"><p><b>DIFF</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>percent (%)</b></p></td><td class="cell"><p>55^92</p></td><td class="cell"><p>44^08</p></td><td class="cell"><p>-</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>• Trivial change (12.61%): changes of punctu­ation or stop words, such as "%5jf £ 4      and £4 &amp; ? ".</p><p>• Word or phrase replacement (68.38%): re­placements of synonymous words or phrases, such as "U KJP I W $7 £ + H (how mach is ...)" and "M I W 1^ Sffl Jü £^ (what is the price of...)".</p><p>• Structure change (7.10%): changes of both words and word orders, such as "ÄIE 4 77 Ä W ^ ft" 4 (what fruit can I eat on a diet)" and "n£ If 4 jRH nTW M (what fruit can help loss weight)".</p><p>• Others (11.90%): candidate Q-T that cannot be classified into the 3 types above.</p><p>The above analysis reveals that more than two thirds of candidate Q-T in the SAME class are in the "word or phrase replacement" type, while the ones with structure changes are slightly more than 7%. We believe this is mainly because queries and titles are relatively short and their structures are simple. Thus structure rewriting can hardly be conducted. This distribution is in line with that reported in (Zhao et al., 2008).</p><p>As for the RELA class, we find that 42.33% of such candidate Q-T share a problem of named en­tity mismatch, such as "J H (US) id <i>7^M </i>IM" and "4 H (China) II ^1 I M". This indicates that the NE similarity feature is necessary in paraphrase validation.</p></subsection><subsection number="4.2" title="Evaluation of Paraphrase Q-T"><p>The candidate Q-T extracted above are classified with a SVM classifier<footnote anchor="5"/> under its default setting. To evaluate the classifier, we run 5-fold cross val­idation with the 5000 human annotated data, in which we use 4000 for training and the rest 1000 for testing in each run. The evaluation criteria are precision (P), recall (R), and f-measure (F), which are defined as follows:</p><footnote label="5">We use libsvm-2.82 toolkit, which can be downloaded from http://www.csie.ntu.edu.tw/ cjlin/libsvm/</footnote><doubt alpha="54.5" length="11" tooSmall="False" monospace="0.0">p=\\SanSm\\</doubt><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">\\Sa\\'</doubt><doubt alpha="45.5" length="11" tooSmall="False" monospace="0.0">R =USan(10)</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">\Sm\</doubt><doubt alpha="45.5" length="11" tooSmall="False" monospace="0.0">F=2XPXR(11)</doubt><p>where Sa is the set of paraphrases automatically recognized with the classifier, Sm is the set of paraphrases manually annotated. Precision, re­call, and f-measure are averaged over 5 runs in the 5-fold cross validation.</p><p>Figure 2 (a) shows the classification results (dark bars). For comparison, we also show the precision, recall<footnote anchor="6"/>, and f-measure of the candidate Q-T (light bars). As can be seen, the precision is improved from 0.5592 to 0.7444 after classifica­tion. F-measure is also evidently enhanced. This result indicates that the classification-based para­phrase validation is effective. We then use all of the 5000 annotated data to train a classifier and classify all the candidate Q-T. Results show that 2,762,291 out of 4,448,347 pairs of candidate Q-T are classified as paraphrases.</p></subsection><subsection number="4.3" title="Evaluation of Paraphrase Q-Q and T-T"><p>From the paraphrase Q-T, we further extracted 934,758 pairs of candidate Q-Q and 438,954 pairs of candidate T-T (without validation). We ran­domly sampled 5000 from each for human an­notation. The results show that the precisions of candidate Q-Q and T-T are 0.4672 and 0.6860, re­spectively. As can be seen, the precision of can­didate Q-Q is much lower than that of candidate T-T. Our analysis reveals that it is mainly because candidate Q-Q are more noisy, since user queries contain quite a lot of spelling mistakes and infor­mal expressions.</p><p>The candidate Q-Q and T-T are also refined based on classification. We first evaluate the clas­sification performance using the 5000 human la­beled data. The experimental setups for Q-Q and<page local="7" global="1323"/></p><footnote label="6">We assume all possible paraphrases are included in the candidates, thus its recall is 100%.</footnote><p>(a) Q-T classification (b) Q-Q classification (c) T-T classification</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1. 2</doubt><figure caption="Figure 2: Classification precision (P), recall (R), and f-measure (F)."></figure><p>T-T classification are the same as that of Q-T clas­sification, in which we run 5-fold cross validation with a SVM classifier using its default parameters. Figure 2 (b) and (c) give the classification results (dark bars) as well as the precision, recall, and f-measure of the candidates (light bars).</p><p>We can see that the precision of Q-Q is signifi­cantly enhanced from 0.4672 to 0.7345 after clas­sification, which suggests that a substantial part of errors and noise are removed. The increase of f-measure demonstrates the effectiveness of clas­sification despite the decrease of recall. Mean­while, the quality of candidate T-T is not clearly improved after classification. The reason should be that the precision of candidate T-T is already pretty high. We then use all 5000 human labeled data to train a classifier for Q-Q and T-T respec­tively and classify all candidate Q-Q and T-T. Re­sults show that 390,920 pairs of paraphrase Q-Q and 415,539 pairs of paraphrase T-T are extracted after classification.</p><p>ize that the method currently used for inducing paraphrase patterns is simple. Hence we will im­prove the method in our following experiments. Specifically, multiple slots will be allowed in a pair of patterns. In addition, we will try to ap­ply the alignment techniques in the generation of paraphrase patterns, as Zhao et al. (2008) did.</p></subsection><subsection number="4.4" title="Evaluation of Paraphrase Patterns"><p>Using the method introduced in Section 3.4, we have generated 73,484 pairs of paraphrase pat­terns that appear at least two times in the cor­pus. We randomly selected 500 pairs and labeled them manually. The results show that the preci­sion is 78.4%. Two examples are shown in Ta­ble 4, in which Pi and P2 are paraphrase patterns. Some slot fillers are also listed below. We real-</p></subsection><subsection number="4.5" title="Analysis"><p><b>Feature Contribution. </b>To investigate the contri­butions of different features used in classification, we tried different feature combinations for each of our three classifiers. The results are shown in Ta­ble 5, in which "+" means the feature has contri­bution to the corresponding classifier. As can be seen, the character overlap rate feature <i>(</i><i>Fcor</i><i>), </i>cosine similarity feature (Fcs), and NE similarity feature (Fne) are the most useful, which play im­portant roles in all the three classifiers.<page local="8" global="1324"/> The other features are useful in some of the classifiers ex­cept the word overlap rate feature (Fwor). The classification results reported in prior sections are all achieved with the optimal feature combination.</p><table caption="Table 4: Examples of paraphrase patterns." 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Pi</p></td><td class="cell"><p>[X] 5C# £4 JTJr</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>P2</i></p></td><td class="cell"><p><i>tnfà</i><i> </i>JTJr [X] 5C#</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>(how to open [X] file)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>slot</p></td><td class="cell"><p>7z; ashx; aspx; bib; cda; cdfs; cmp;</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>cpi; csf; csv; cur; dat; dek...</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Pi</i></p></td><td class="cell"><p>^+ [X] <i>m wn</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>P2</p></td><td class="cell"><p>[X] m «</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>(poems about [X])</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>slot</p></td><td class="cell"><p>^JJJ (prairies); téff (Yangtze River);</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>Mi</i><i> </i>(Mount Tai); <i>Ê&gt;fâ </i>(nostalgia)...</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p><b>Analysis of the Paraphrases. </b>We combine the extracted paraphrase Q-T, Q-Q and T-T and get a total of 3,560,257 pairs of unique paraphrases. Statistics show that only 8380 pairs (0.24%) are from more than one source, which indicates that the intersection among the three sets is very small. Further statistics show that the average length of the queries and titles in the paraphrases is 6.69 (words).</p><p>To have a detailed analysis of the extracted paraphrases, we randomly selected 1000 pairs and manually labeled the precision, types, and do­mains. It is found that more than 43% of the para­phrases are paraphrase questions, in which <i>how </i>(36%), <i>what </i>(19%), and <i>yes/no </i>(14%) questions are the most common. In addition, we find that the precision of paraphrase questions (84.26%) is evidently higher than non-question paraphrases (65.14%). Those paraphrase questions are useful in question analysis and expansion in QA, which can hardly be extracted from other kinds of cor­pora.</p><p>As expected, the paraphrases we extract cover a variety of domains. However, around 50% of them are in the 7 most popular domains<footnote anchor="7"/>, includ­ing: (1) health and medicine, (2) documentary download, (3) entertainment, (4) software, (5) education and study, (6) computer game, (7) econ­omy and finance. This analysis reflects what web users are most concerned about. These domains, especially (4) and (6), are not well covered by the parallel and comparable corpora previously used for paraphrase extraction.</p><footnote label="7">Note that pornographic queries have been filtered from the query log beforehand.</footnote></subsection></section><section number="5" title="Conclusions and Future Directions"><p>In this paper, we put forward a novel method that extracts paraphrases from search engine query logs. Our contribution is that we, for the first time, propose to extract paraphrases from user queries and the corresponding clicked document titles. Specifically, three kinds of paraphrases are extracted, which can be (1) a query and a hit title, (2) two queries that hit the same title, and (3) two titles hit by the same query. The extracted paraphrases are refined based on clas­sification. Using the proposed method, we ex­tracted over 3.5 million pairs of paraphrases from a query log of Baidu. Human evaluation results show that the precision of the paraphrases is above 70%. The results also show that we can gener­ate high-quality paraphrase patterns from the ex­tracted paraphrases.</p><p>Our future research will be conducted along the following directions. Firstly, we will use a much larger query log for paraphrase extraction, so as to enhance the coverage of paraphrases. Secondly, we plan to have a deeper study of the transitivity of paraphrasing. Simply speaking, we want to find out whether we can extract <i>(s1,s3)</i><i> </i>as paraphrases given that (s1;s2) and (s2, s3) are paraphrases.</p></section><section number="6" title="Acknowledgments"><p>We would like to thank Wanxiang Che, Hua Wu, and the anonymous reviewers for their useful comments on this paper.</p><table caption="Table 5: Feature contribution." 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><b>Feature</b></p></td><td class="cell"><p><b>Q-T</b></p></td><td class="cell"><p><b>Q-Q</b></p></td><td class="cell"><p><b>T-T</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Ff</i></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><i>Flr</i></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><i>Fwor</i></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><i>Fcor</i></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><i>Fcs</i></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><i>Fed</i></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><i>Fne</i></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><i>Fpf</i></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"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table></section><references><p>Farooq Ahmad and Grzegorz Kondrak. 2005. Learn­ing a Spelling Error Model from Search Query Logs. In <i>Proceedings of HLT/EMNLP, </i>pages 955­962.</p><p>Colin Bannard and Chris Callison-Burch. 2005. Para­phrasing with Bilingual Parallel Corpora. In <i>Pro­ceedings ofACL, </i>pages 597-604.</p><page local="9" global="1325"/><p>Regina Barzilay and Lillian Lee. 2003. Learning to Paraphrase: An Unsupervised Approach Using Multiple-Sequence Alignment. In <i>Proceedings of HLT-NAACL, </i>pages 16-23.</p><p>Regina Barzilay and Kathleen R. McKeown. 2001. Extracting Paraphrases from a Parallel Corpus. In <i>Proceedings ofACL/EACL, </i>pages 50-57.</p><p>Rahul Bhagat and Deepak Ravichandran. 2008. Large Scale Acquisition of Paraphrases for Learning Sur­face Patterns. In <i>Proceedings of ACL-08: HLT, </i>pages 674-682.</p><p>Chris Callison-Burch, Philipp Koehn, and Miles Os-borne. 2006. Improved Statistical Machine Trans­lation Using Paraphrases. In <i>Proceedings ofHLT-NAACL, </i>pages 17-24.</p><p>Chris Callison-Burch. 2008. Syntactic Constraints on Paraphrases Extracted from Parallel Corpora. In <i>Proceedings ofEMNLP, </i>pages 196-205.</p><p>Hang Cui, Ji-Rong Wen, Jian-Yun Nie, Wei-Ying Ma. 2002. Probabilistic Query Expansion Using Query Logs In <i>Proceedings ofWWW, </i>pages 325-332.</p><p>Bill Dolan, Chris Quirk, and Chris Brockett. 2004. Unsupervised Construction of Large Paraphrase Corpora: Exploiting Massively Parallel News Sources. In <i>Proceedings </i><i>ofCOLING,</i><i> </i>pages 350­356.</p><p>Pablo Ariel Duboue and Jennifer Chu-Carroll. 2006. Answering the Question You Wish They Had Asked: The Impact of Paraphrasing for Question Answering. In <i>Proceedings ofHLT-NAACL, </i>pages 33-36.</p><p>Wei Gao, Cheng Niu, Jian-Yun Nie, Ming Zhou, Jian Hu, Kam-Fai Wong, and Hsiao-Wuen Hon. 2007. Cross-Lingual Query Suggestion Using Query Logs of Different Languages. In <i>Proceedings ofSIGIR, </i>pages 463-470.</p><p>Ali Ibrahim, Boris Katz, Jimmy Lin. 2003. Extract­ing Structural Paraphrases from Aligned Monolin­gual Corpora. In <i>Proceedings ofIWP, </i>pages 57-64.</p><p>Lidija Iordanskaja, Richard Kittredge, and Alain Polguere. 1991. Lexical Selection and Paraphrase in a Meaning-Text Generation Model. In Cecile L. Paris, William R. Swartout, and William C. Mann (Eds.): Natural Language Generation in Artificial Intelligence and Computational Linguistics, pages 293-312.</p><p>David Kauchak and Regina Barzilay. 2006. Para­phrasing for Automatic Evaluation. In <i>Proceedings</i> <i>ofHLT-NAACL, </i>pages 455-462.</p><p>De-Kang Lin and Patrick Pantel. 2001. Discovery of Inference Rules for Question Answering. In <i>Natu­ral Language Engineering </i>7(4): 343-360.</p><p>Marius Pa§ca and Peter Dienes. 2005. Aligning Nee­dles in a Haystack: Paraphrase Acquisition Across the Web. In <i>Proceedings ofIJCNLP, </i>pages 119­130.</p><p>Marius Pa§ca. 2007. Weakly-supervised Discovery of Named Entities using Web Search Queries. In <i>Proceedings </i><i>ofCIKM,</i><i> </i>pages 683-690.</p><p>Deepak Ravichandran and Eduard Hovy. 2002. Learn­ing Surface Text Patterns for a Question Answering System. In <i>Proceedings of ACL, </i>pages 41-47.</p><p>Matthew Richardson. 2008. Learning about the World through Long-Term Query Logs. In <i>ACM Transac­tions on the Web </i>2(4): 1-27.</p><p>Stefan Riezler, Alexander Vasserman, Ioannis Tsochantaridis, Vibhu Mittal and Yi Liu. 2007. Statistical Machine Translation for Query Expan­sion in Answer Retrieval. In <i>Proceedings ofACL, </i>pages 464-471.</p><p>Satoshi Sekine and Hisami Suzuki. 2007. Acquiring Ontological Knowledge from Query Logs. In <i>Pro­ceedings of WWW, </i>pages 1223-1224.</p><p>Yusuke Shinyama, Satoshi Sekine, and Kiyoshi Sudo. 2002. Automatic Paraphrase Acquisition from News Articles. In <i>Proceedings ofHLT, </i>pages 40­46.</p><p>Ji-Rong Wen, Jian-Yun Nie, and Hong-Jiang Zhang. 2002. Query Clustering Using User Logs. In <i>ACM Transactions on Information Systems </i>20(1): 59-81, 2002.</p><p>Shiqi Zhao, Haifeng Wang, Ting Liu, and Sheng Li. 2008. Pivot Approach for Extracting Paraphrase Patterns from Bilingual Corpora. In <i>Proceedings of</i> <i>ACL-08:</i><i>HLT, </i>pages 780-788.</p><p>Shiqi Zhao, Ming Zhou, and Ting Liu. 2007. Learning Question Paraphrases for QA from Encarta Logs. In <i>Proceedings ofIJCAI, </i>pages 1795-1800.</p></references></body></article>