Paraphrasing with Search Engine Query Logs
Paper · 2010 · Shiqi Zhao, Haifeng Wang and Ting Liu
Summary
People can ask for the same information in different words, and a webpage can use a different expression again. A search log brings some of these expressions together. It records what a person typed and which result they chose to open. The authors ask how much of that material can be turned into paraphrases, pairs of expressions that convey the same meaning. A click offers a clue, but it is easy to see where that clue can fail. A page may be relevant because it supplies an answer, covers a broader subject, or discusses a related case. The task is to find wording that preserves meaning within a much larger collection of wording that merely concerns the same subject.
The method starts with a query and the title of a result that someone clicked. It filters these pairs and trains a classifier to select likely paraphrases. The surviving links then support two more kinds of candidates. Queries can be paired when both are linked to the same title, and titles can be paired when both are linked to the same query. A separate classifier checks the candidates from each route. The decisions draw on features such as shared Chinese characters, similarity between weighted word inventories, and agreement between recognized names and numbers.
In the largely Chinese Baidu log used for the experiments, 55.92% of the sampled query–title candidates had the same meaning after the initial filters and before classification. In cross-validation, where classifiers are fitted and tested on separate portions of the labeled examples, precision rose from 0.5592 to 0.7444 for query–title pairs and from 0.4672 to 0.7345 for query–query pairs. Precision measures how often a pair accepted as a paraphrase receives the same judgment from human readers. Title–title candidates started at 0.6860 precision and showed little clear improvement from classification. The combined extraction yielded 3,560,257 unique pairs, with overall precision reported above 70%.
The collection contained many questions, which were judged more precisely than the remaining pairs. The authors also used short paraphrases to form reusable patterns. Replacing a shared word with a slot could turn two requests about opening a particular file type into two ways of asking how to open any file of the specified type. This procedure yielded 73,484 pattern pairs that recurred in the corpus, with 78.4% precision in a manually checked sample. The experiments establish how well the extraction works on the material the authors could identify and inspect. The share of all possible paraphrases reachable through the log remains open.
Deep dive: Paraphrasing with Search Engine Query Logs
Paraphrasing with Search Engine Query Logs uses clicks to find equivalent queries and page titles, then tests how reliably those pairs preserve meaning. · about 35 minutes to read
The problem and its context
Finding rewrites in ordinary text
A paraphrase resource records which expressions can stand for the same meaning. In principle, a person could write and check those alternatives by hand. An extraction method starts with expressions that people have already written and tries to discover the relationships among them. The difficulty is finding evidence strong enough to connect the forms, especially when the words differ. If a page title and a query both mention the same procedure, the title could be a restatement of the request, a description of its answer, or a reference to a different procedure involving the same object. The shared words explain why the pair deserves a look. Deciding what each expression actually says is a separate judgment.
The paper places this task in natural language processing. A question answering system can encounter an unfamiliar formulation of a familiar question. A machine translation system can benefit from recognizing equivalent expressions, and an evaluation of translation can treat an acceptable alternative as evidence that an output conveys the intended meaning. The paper also cites the role of paraphrase in text generation, where the system has to choose how to express a meaning. These uses give semantic equivalence practical value. They also explain why a collection of loosely associated words answers a different need from a collection of rewrites.
The paper’s definition is visible in the judgments it asks readers to make. They examine whole items and distinguish expressions that convey the same meaning from expressions whose meanings are related. A searcher who types the name of an ingredient and opens a page about preparing it has made an understandable choice. The title gives a more specific task than the query expresses. If the two were entered as interchangeable formulations, an application using the pair could silently add a requirement the searcher never supplied. This kind of error can occur even when broad topical relevance is beyond doubt.
Every source of paraphrases needs some way to narrow the search. A corpus can contain many expressions with no obvious indication of which belong together. Earlier methods, as the authors describe them, exploited texts whose relation was already partially known. Other methods looked for expressions with comparable surroundings. The search-log proposal uses an observable action to narrow the candidates before doing any semantic classification. It asks whether a searcher’s selection can play a role comparable to known relationships between pieces of text in earlier extraction work.
Where earlier methods found alignment
A set of translations of the same literary work offers one form of alignment. Translators can express the same source material in different language, so comparable passages can contain alternative formulations. The authors cite this as one strand of monolingual acquisition. The method represented by Barzilay and McKeown’s work draws on parallel text of this kind. Extracting Paraphrases from a Parallel Corpus.
News articles provide another way to bring related passages together. Distinct outlets can cover the same event within a short period and describe it with different words. The source of correspondence in this case is common subject matter. The paper discusses both the use of multiple-sequence alignment and work on gathering large collections of comparable reports. Event coverage makes this material attractive for extraction and also influences which kinds of expressions the resulting resource is likely to contain. Learning to Paraphrase. Unsupervised Construction of Large Paraphrase Corpora.
Bilingual corpora provide a more direct precedent for one part of the search-log method. Two phrases in the same language can each be aligned to a common phrase in another language. That foreign expression acts as a pivot, an intermediate item that gives the extractor a reason to propose the two phrases as a pair. The evidence for the pair is indirect. The search-log method keeps this arrangement of two endpoints and a shared middle item, while changing what it takes for an endpoint to be linked to the middle. In bilingual extraction the link comes from textual alignment. In the search-log method it comes from a click followed by a paraphrase judgment. Paraphrasing with Bilingual Parallel Corpora. Syntactic Constraints on Paraphrases Extracted from Parallel Corpora.
The authors describe scale and domain as constraints on parallel and comparable collections. A collection organized around translated works or news events gives access to the language of that material. Large web corpora and direct web mining broaden the source. The assumption described for this line of work is that expressions which repeatedly occur in similar contexts tend to have related meanings. The authors point out that expressions of opposite effect can also share contexts. A phrase about fixing a problem and a phrase about making it worse may both occur with the same kinds of agents and problems. Each fits the surrounding words and conveys a different outcome. The paper also says the outputs of these approaches are generally short fragments with variables at their ends. Aligning Needles in a Haystack. Learning Surface Text Patterns for a Question Answering System.
These strands supply different kinds of evidence. A common event brings passages together at the level of what they report. A shared foreign phrase brings them together through alignment. Similar contexts bring together expressions that can occupy comparable linguistic positions. The paper’s proposal brings together a task expressed by a searcher and a title selected while pursuing that task. The distinction affects both the errors to expect and the forms that can be recovered. Queries and titles are already bounded strings, and either can contain a whole question. Candidate extraction can therefore begin with complete items as they occurred in the log.
What search logs had already been used to infer
In information retrieval, the paper describes earlier work that grouped queries according to their click behavior. If searches repeatedly lead people to similar results, it is reasonable to investigate whether the searches express similar needs. The authors trace related uses of that idea in cross-lingual query suggestion and in identifying synonymous questions. This work supplies a reason to treat clicks as informative about queries. The contribution here extends the comparison to the wording of the clicked title and makes that wording an output in its own right.
Search logs had also been used for query expansion, the practice of adding terms to a search to help retrieve useful material. The paper describes an earlier approach that estimated associations between terms typed in queries and terms found in documents. An expansion term can be valuable because it commonly appears in relevant material. A paraphrase pair aims to retain the meaning of the expression under comparison. Those objectives lead to different acceptance criteria even when the evidence comes from the same kind of log. A word associated with a topic may be a good expansion term, while replacing the topic with that word would change the request.
The authors were especially interested in longer searches, including questions typed directly into the search engine. The log contains the query, the clicked URL, and the title, so the extractor can inspect the words on both sides of a user action. Long enough queries and titles can specify what a person wants to find out, what object the request concerns, or what operation it asks about. The authors describe the continual growth of logs and their connection to what people actually search for as advantages. They also point to possible uses in query suggestion, result reranking, and the processing of questions.
The source thus offers both a relationship and a selection effect. The relationship is that someone followed a result while carrying out a search. The selection effect is that the method can inspect only the wording that occurs in the log and can connect only the items supported by its extraction procedure. A frequently searched practical problem can provide many examples of similar wording. An expression that rarely appears, or that seldom leads to a click, has fewer opportunities to enter the collection. This relationship between available evidence and possible coverage is part of what makes the paper’s experimental design important.
The method, step by step
From clicks to text pairs
The starting point is a record that connects a query to a clicked web document and supplies the document’s title. The paper says a query hits a title when users searching with that query click a document bearing the title. The unit passed onward is a pair of strings. The URL is how the log connects the action to the document, while the title is the text the procedure checks for equivalence. The comparison concerns the query and the title as written. It could succeed even when their word order differs, or fail when they use almost identical words about different subjects.
The method calls a query paired with a title Q-T. These pairs are the direct evidence from the log and are the source of the other candidate types. The first operation is to reduce the raw collection with rules. The next is to classify the remaining Q-T candidates. A support vector machine, or SVM, takes numerical features describing a pair and uses examples labeled by people to learn a decision boundary. Its output is a binary decision about whether to accept the pair as a paraphrase. The labels are 1 for a paraphrase and 0 for a pair outside that class.
From search clicks to paraphrase pairs
The steps in order.
The filtering and classification stages do different work. The rules define which click pairs are eligible for further inspection. A pair removed by a rule contributes neither a direct Q-T paraphrase nor a connection through which the system can propose a new pair. The classifiers decide among the candidates the preceding stages make available. A useful reading of the pipeline is to trace any final pair back to the evidence that made it eligible. For Q-T the trail leads to a direct click. For the other kinds it leads through a shared string and the direct pairs already accepted.
The first screen
One rule sets a minimum length. A pair is dropped if either side contains fewer than three terms. This concentrates extraction on strings that give more than a very short expression of the subject. The rule is applied to each side. A long title can therefore be removed because the query is short, even if the title itself contains a fully expressed question.
Another rule discards cases where the query subsumes the title or the title subsumes the query. The paper illustrates the reason with a pair in which one expression is the name of an ingredient and the other asks how it is prepared. The narrower text contains wording from the broader one, yet the two give different instructions about what information is wanted. The rule excludes such pairs before training or prediction on the filtered collection. Literal inclusion is treated as grounds for removal at this stage.
A word-overlap rule excludes pairs with similarity below a threshold. The similarity used here is the shared-word count divided by the larger of the two word counts, defined precisely below. The authors set the threshold to 0.6 for their experiments. This screen requires a fairly visible lexical connection between a query and a clicked title. It acts before the classifier can use character-level or other evidence, so low-overlap equivalences never reach the first classification stage.
The remaining rule excludes titles containing frequent web terms associated with home pages, sites, or online resources. The authors describe the titles caught by this rule as often belonging to organizations’ home pages, videos, or downloadable material of little use for their extraction purpose. Such a title can be a helpful search destination while offering little in the way of alternative wording for what the searcher typed. This rule operates on the title side. The log and the rules together yield the Q-T candidate pool evaluated by human readers.
How a title or query becomes a pivot
Once the first classifier has accepted some Q-T pairs, the same links can be read from either side. To find query–query pairs, abbreviated Q-Q, the procedure takes a title with several accepted queries and considers pairs among those queries. The title is the pivot. Its role is to supply an intermediate expression to which each endpoint has already been judged sufficiently similar. The candidate passed to the Q-Q classifier consists of the two endpoint queries.
To find title–title pairs, abbreviated T-T, the procedure groups accepted links around a query. A pair of titles becomes a candidate when each title has an accepted link to that query. The query is now the pivot and the titles are the endpoints. This route can bring together wording from separate documents. The evidence needed to propose a pair comes from the common query. The wording that is ultimately judged comes from the titles themselves.
The candidate-generation conditions can be written using the notation of the paper’s algorithm.
⟨q₁, t⟩ ∈ P_qt and ⟨q₂, t⟩ ∈ P_qt
Here q₁ and q₂ are the queries under consideration and t is their shared title. The angle brackets enclose a pair and ∈ means that the pair belongs to a set. P_qt is the set of accepted query–title paraphrases. Both membership conditions must hold for the procedure to consider q₁ and q₂ as a candidate pair. Its admission to the final Q-Q set depends on the next classification decision.
⟨q, t₁⟩ ∈ P_qt and ⟨q, t₂⟩ ∈ P_qt
Here q is the shared query, t₁ and t₂ are the endpoint titles, and P_qt again contains accepted query–title pairs. Each angle-bracketed expression is an individual Q-T link and ∈ tests its membership. The two tests make the title pair eligible for its own classifier. One endpoint can appear in many candidates when it belongs to a group with many other endpoints.
These conditions make the Q-T stage consequential beyond its direct output. If a genuine link is filtered or rejected, a later candidate that depends on that link can disappear. If an unrelated-in-meaning link survives, it can help propose additional pairs. A shared middle item can also be broad enough to connect expressions that concern different aspects of a subject. The check on the endpoints gives the system a chance to detect these problems after the provisional pairing has taken place. It also allows a classifier to use information about how many expressions the shared item connects.
The paper considers raw click pairs a possible basis for forming candidates through pivots. It uses validated links in the actual pipeline because it expects them to provide a cleaner starting point. That ordering is important when interpreting the results. A Q-Q or T-T candidate described as awaiting validation has already inherited the initial filters and the Q-T decisions on its supporting links. The final operation combines the three sets of accepted pairs.
ParaSet = P_qt ∪ P_qq ∪ P_tt
ParaSet is the collection returned by the extraction algorithm. P_qt contains accepted pairs composed of a query and a title, P_qq contains accepted pairs of queries, and P_tt contains accepted pairs of titles. The union symbol ∪ collects all members of these sets into a single collection. If a pair appears in more than one set, it has a single place in the union.
Measuring what the strings have in common
The classifiers receive numerical measurements of each proposed pair. Some measurements ask how many words or characters are shared, some ask how the two expressions differ in length and sequence, and some use evidence from outside the strings. The authors segment Chinese strings into words before computing word-level features. Their segmentation tool uses forward maximum matching, which works through the text from the beginning and takes the longest available word match at the current position. They also use named entity recognition, which identifies spans belonging to categories such as person names, locations, organizations, and numerals. Their Chinese tool relies on a dictionary acquired from the web.
Frequency provides a measure of recurring support for a pair. The authors expect often observed pairs to be more reliable. They normalize the count and use a ceiling so that the feature stops increasing once the count reaches the designated level.
F_F(s₁, s₂) = c(s₁, s₂) / C if c(s₁, s₂) < C
= 1 if c(s₁, s₂) ≥ C
F_F is the frequency feature. The strings s₁ and s₂ form the candidate pair and c(s₁, s₂) counts its occurrences in the corpus. C is the normalizing cutoff, set to 10 in the experiments. Below C, division by C converts the count to a fraction. At or above C, the value is 1. Repeated evidence can therefore distinguish pairs in the lower count range while very frequent pairs share the same value on this feature.
The length feature measures how evenly the words are distributed between the two sides. It uses words from the segmented strings as the counting unit.
F_LR(s₁, s₂) = min{c_w(s₁), c_w(s₂)} / max{c_w(s₁), c_w(s₂)}
F_LR is the length-rate feature, s₁ and s₂ are the candidate strings, and c_w(s) is the number of words in string s. The min operation selects the smaller word count and max selects the larger one. The ratio reaches 1 when the counts agree. This feature can indicate that one string is much more elaborated than the other even when there is substantial shared wording. By itself it treats equally long strings alike, regardless of what they contain.
The word-overlap feature asks how much lexical material the strings share relative to the longer string.
F_WOR(s₁, s₂) = c_w(s₁ ∩ s₂) / max{c_w(s₁), c_w(s₂)}
F_WOR is the word-overlap rate. The expressions s₁ and s₂ are the two sides of the pair and ∩ denotes their intersection. The numerator c_w(s₁ ∩ s₂) counts the shared words. The max operation in the denominator selects the larger word count. This choice makes the extra material in a longer string relevant even if the shorter string shares much of its wording. The same kind of ratio is used in the earlier Q-T filter. In classification it is one candidate feature among several.
The character-overlap feature applies the same construction after breaking the strings into characters. It reflects the authors’ observation that different Chinese words can share a character and have similar meanings. Two expressions about selling, for instance, may use different words that retain some common character material. The word-level feature treats different words as different units. The character-level feature can record the more local resemblance.
F_COR(s₁, s₂) = c_ch(s₁ ∩ s₂) / max{c_ch(s₁), c_ch(s₂)}
F_COR is the character-overlap rate and s₁ and s₂ are the candidate strings considered at character level. The notation c_ch(s) counts characters in s, and c_ch(s₁ ∩ s₂) gives the count of shared characters after character segmentation. The denominator uses max to choose the larger character count. The paper describes this feature as the word-overlap equation with its counting unit changed. The separate c_ch notation makes that change explicit.
Weight, word order, and named entities
The cosine feature represents each string as a vector. A vector here is a list of word weights with a common coordinate for each word. A shared word gives the two vectors weight in the same coordinate. The weight assigned to a word depends on its frequency in the current string and in the corpus. The authors describe this rule as similar to TF-IDF, a weighting scheme that reduces the influence of widely occurring terms.
W(w) = tf(w) × log(N / c(w) + 0.1)
W(w) is the weight of word w in the string being represented. The quantity tf(w) counts its occurrences in that string, and c(w) counts its occurrences in the corpus. N is the highest corpus occurrence count of any word. The operation log is the logarithm and 0.1 is the offset added to the ratio inside it. For otherwise comparable words in the string, a word with a lower corpus count gives a larger ratio and receives more weight. The offset is part of the heuristic the authors use.
F_CS(s₁, s₂) = (vec_w(s₁) · vec_w(s₂)) / (∥vec_w(s₁)∥ × ∥vec_w(s₂)∥)
F_CS is cosine similarity. The symbols s₁ and s₂ identify the two strings, and vec_w(s) is the vector of weighted words for string s. The dot product, written ·, multiplies corresponding coordinates and adds their products. The paired bars ∥ ∥ denote the length, or norm, of a vector. Dividing by the product of the norms measures alignment while accounting for the overall magnitude of the weights on each side. The representation reflects the inventory and weights of the words. Their order is handled by a separate feature.
The edit feature treats each string as a sequence of words. Edit distance measures how much editing is needed to turn one sequence into the other. The authors normalize that distance by the longer sequence and reverse the scale so that smaller relative distances produce higher similarity.
F_ED(s₁, s₂) = 1 − ED(s₁, s₂) / max{c_w(s₁), c_w(s₂)}
F_ED is the edit-distance feature and ED(s₁, s₂) is the word-level edit distance between the candidate strings s₁ and s₂. The function c_w(s) counts words and max chooses the larger count. Subtracting the normalized distance from 1 makes the feature larger for pairs that need less editing relative to their length. Two strings with similar word inventories can consequently receive different edit scores when they arrange those words differently.
The entity feature measures agreement on recognized names and numerals. An otherwise similar query and title can refer to different places, people, or organizations. Even where most words match, a change in which place a question concerns can substantially change its meaning. The entity feature lets the classifier inspect this part of the resemblance separately from the general overlap.
F_NE(s₁, s₂) = (c_ne(s₁ ∩ s₂) + 1) / (max{c_ne(s₁), c_ne(s₂)} + 1)
F_NE is the named-entity similarity feature. The candidate strings are s₁ and s₂. The function c_ne(s) counts recognized entities in s, and c_ne(s₁ ∩ s₂) counts the entities common to both. The max operation chooses the higher of the individual entity counts. The added 1 in the denominator keeps the expression defined when neither side has a recognized entity. In that case the numerator and denominator agree and the feature is 1. Thus absence on both sides is treated as compatible. A recognized entity on one side has to be matched on the other to contribute to the shared count.
How specific the pivot is
The last feature is available for candidates formed through a pivot. The authors call the number of targets connected to a pivot its fertility. Their observation is that a pivot connected to many targets tends to bring in more noise. For a query pair, the targets are queries connected to the shared title. For a title pair, they are titles connected to the shared query. A pivot supporting only a narrow group is given a larger value in the feature than one connected to a broad group.
F_PF(s₁, s₂) = maxₚ 1 / f(p)
F_PF is the pivot fertility feature, and s₁ and s₂ are the endpoints of the candidate pair. The symbol p denotes a title for Q-Q and a query for T-T. The function f(p) counts the targets of that pivot. The reciprocal 1 / f(p) gives a higher value when the pivot has fewer targets. The operation maxₚ takes the maximum over the pivots that support the same pair. This lets the most selective common pivot determine the value even when a broader pivot also connects the endpoints. Direct query–title pairs are classified without this feature.
Taken together, the features represent textual similarity, agreement on details, and evidence associated with the origin of the pair. They are inputs to a decision learned from human judgments. Shared characters can favor a pair, for instance, while an entity mismatch gives the classifier distinct evidence about what the words refer to. For Q-Q and T-T, the classifier can also take account of the specificity of the shared item. Each of the three classifier tasks has its own labeled examples and its own selected feature combination.
From accepted examples to reusable patterns
A final procedure generalizes short accepted paraphrases into patterns. The authors restrict each expression to no more than 6 words and give each resulting pattern pair one slot. The slot represents a place where a new word can be supplied. The procedure looks for a word occurring in both expressions and excludes stop words, the common words the method treats as unsuitable for filling this role. It replaces the chosen shared word at its position in each string with the marker [X]. The remainder of each expression and its word order stay as they were.
A pair about opening a file illustrates the operation. One formulation can introduce the file type early and ask how the file opens. An equivalent formulation can start by asking how to open the file and put the type later. Replacing the shared file type yields a pattern pair with the slot in different positions. Different occurrences of the same pair can support the pattern with different file types. The paper also shows paired formulations for requests about poems on a given subject, where subjects include geographical names and abstract themes.
A single source pair can have several shared words eligible for replacement. The procedure can propose several pattern pairs from it, each formed by choosing one such word. A word shared by the source strings supplies an identifiable correspondence for the slot. It does not require the authors to align every word or phrase across the two sides. Repetition in the corpus is the additional evidence used to retain patterns for evaluation, with the procedure counting patterns that occur at least two times. The resulting patterns are evaluated separately from the concrete pairs they came from.
Experiments and results
The log and the first human judgments
The data came from Baidu, a commercial search engine. The log contains 284,316,659 queries. The paper records 170,315,807 queries with at least one click, representing 59.90% of the queries in the log. Among queries with a click, the average was 1.69 clicks. The queries and titles were overwhelmingly Chinese. Some included English or Japanese words. The paper also says that pornographic queries had already been filtered from the log.
Click records yielded 287,129,850 raw query–title pairs. The length, containment, overlap, and title-term filters left 4,448,347 Q-T candidates. The raw count describes what could be assembled from the log before the text rules, while the latter count describes the input pool for the first classifier. The distinction matters for interpreting the first precision result. The human readers assessed a random sample from the pool surviving the rules.
The authors sampled 5000 candidate Q-T pairs and labeled them manually. SAME meant that the expressions conveyed the same meaning. RELA meant that the meanings were related. DIFF meant that the meanings were clearly different. SAME accounted for 55.92% of this sample and RELA for 44.08%. The authors found no DIFF examples in it. Human readers thus found broad relevance throughout the sampled pairs, with many distinctions between a close match and a related expression. The authors interpret the absence of DIFF as consistent with how people choose results to click.
These labels provide a baseline for the classifier experiment. Accepting every candidate yields the share judged SAME as precision. This comparison shows what classification adds after filtering. The 55.92% figure does not give the proportion of all raw clicks that correspond to paraphrases, since the authors sampled after applying the lexical and length screens. The sampled population is also the population from which the classifier’s labeled training and held-out examples come.
Measuring gains from classification
The authors test with 5-fold cross-validation. In each run for Q-T, 4000 of the 5000 labeled examples are used to train the SVM and 1000 are held out for testing. The process changes which portion is held out. The authors use the default settings of the libsvm-2.82 toolkit and average precision, recall, and F-measure over the 5 runs. Precision asks how many accepted test examples have a positive human judgment. Recall asks how many of the examples judged positive in the test portion are recovered. F-measure combines these quantities so that a gain in one can be considered alongside a loss in the other.
P = |S_a ∩ S_m| / |S_a|
P is precision. S_a is the set of pairs selected automatically as paraphrases and S_m is the set given a positive label by the human annotators. The symbol ∩ takes their intersection and the paired bars give the number of members of a set. The numerator counts accepted examples that the annotators agree with, and the denominator counts all accepted examples in the comparison.
R = |S_a ∩ S_m| / |S_m|
R is recall. The sets S_a and S_m again denote the automatically accepted pairs and the human-labeled paraphrases, respectively. The intersection ∩ supplies the cases in both sets and bars count them. The denominator is now the number of human-labeled positives. It measures what share of the available positive examples the decision recovered.
F = (2 × P × R) / (P + R)
F is the F-measure used in the paper. P is precision and R is recall. The formula multiplies them, scales the product by 2, and divides by their sum. The result rewards a decision that does well on both measures. A classifier can raise precision by accepting fewer uncertain cases while reducing recall if some of the rejected cases are real paraphrases.
For the baseline that accepts the candidate pool, the authors assign recall of 100% by assuming the candidates contain all possible paraphrases for the comparison. Operationally, any positive example in the annotated candidate sample is indeed available to the accept-all rule. The study does not enumerate positives outside that pool. The recall comparison therefore measures how well classification retains human-labeled positives among the candidates, where the prior screens and the available click links have already set the boundaries.
Direct pairs and pairs formed through pivots
On the Q-T task, cross-validation precision was 0.7444 with classification and 0.5592 when all filtered candidates were accepted. F-measure also increased. With the evaluation complete, the authors fitted the Q-T classifier using all 5000 annotated examples and applied it to the 4,448,347 candidates. It accepted 2,762,291 pairs. That output count records the decisions made across the candidate pool. The held-out precision measures how frequently decisions judged against human labels were correct.
Precision before and after classification on Baidu query–title candidates
The classifier accepts query–title pairs with higher precision than the initial candidate pool.
The numbers
| System or setting | Precision |
|---|---|
| Accept all filtered query–title candidates | 0.5592 |
| Query–title classifier in cross-validation (this paper) | 0.7444 |
The validated Q-T links gave rise to 934,758 Q-Q candidates and 438,954 T-T candidates. The authors sampled 5000 from each pool for human labeling. The Q-Q candidate sample had precision of 0.4672, and the T-T candidate sample had precision of 0.6860. Both samples describe candidate sets before their own classifiers act. Their underlying connections had already passed Q-T classification. The authors attribute the lower starting precision of the query pairs mainly to the noisier wording of user queries, including spelling errors and informal expressions.
The Q-Q and T-T classifier evaluations followed the same 5-fold procedure and used the same default SVM settings as the Q-T experiment. For query pairs, classification raised precision from 0.4672 to 0.7345. Recall declined relative to accepting the whole candidate pool, while F-measure went up. The loss of some true pairs was accompanied by enough removal of incorrect pairs to improve the combined measure. For the title pairs, the authors found little clear overall quality improvement and point to the stronger starting precision of the T-T candidates as a possible explanation.
Precision before and after classification on Baidu query–query candidates
Checking the endpoint queries improves the precision of pairs proposed through shared titles.
The numbers
| System or setting | Precision |
|---|---|
| Accept all query–query candidates from validated links | 0.4672 |
| Query–query classifier in cross-validation (this paper) | 0.7345 |
The authors then used the 5000 labeled examples for each of the two pivot tasks to train its final classifier and label its full candidate set. They obtained 390,920 accepted Q-Q pairs and 415,539 accepted T-T pairs. These are counts of accepted pairs by source. The decision rule for each source acts on its own candidate pool, so the counts also depend on how many candidates the pivot procedure generated in that direction.
The combined output and its patterns
Combining the direct and pivot-based outputs gave 3,560,257 unique pairs. The paper reports precision above 70% for the extracted paraphrases. The mean length of the queries and titles in these pairs was 6.69 words. The authors examined an additional random sample of 1000 pairs from the combined output to study precision, types, and subject domains. This view of the final collection complements the route-specific cross-validation. It includes strings gathered through different paths and provides information about what the extraction yields in practice.
The paper reports that 8380 pairs, or 0.24% of the combined collection, came from more than one of the three sources. The source here means the kind of extraction, such as a direct query–title relationship or a pair formed by a pivot. This result concerns identical pairs appearing in multiple output sets. Paraphrases can still cover the same subject or share an individual expression while adding different pairs. The overlap count describes how much exact pair duplication occurs when the outputs are combined.
The pattern experiment yielded 73,484 pairs of patterns that appeared at least two times in the corpus. The authors randomly chose 500 pattern pairs for manual judgment and obtained 78.4% precision. This is a judgment of the patterns produced by replacing shared words, under the study’s short-string, single-slot, and recurrence restrictions. It is separate from the precision of concrete Q-T or Q-Q pairs. Repeated support from concrete examples can make a pattern plausible, and human inspection tests whether the resulting generalized expressions still convey the same kind of request.
The example involving file types shows why the pattern output can be useful. Asking how a file opens and asking how to open a file of a named type can have corresponding positions for that type despite different word arrangements. A pair about poetry works in a different subject area, with the shared slot standing for the subject of the poems. The results give both a collection size and an estimate of the proportion of manually inspected outputs that made sense as paraphrase patterns. The sample is taken from patterns that survived the recurrence criterion, which is part of the result’s scope.
What the ablations show
Useful signals across the three classifiers
The authors try different feature combinations for each classifier and mark features that contribute to its selected configuration. Character overlap, cosine similarity, and named-entity similarity contribute across Q-T, Q-Q, and T-T. The reported classification results use the feature combination the authors found best for the corresponding task. Frequency, length, edit distance, and pivot fertility have roles that depend on the kind of pair. The feature analysis reports which measurements helped in the combinations tested. It gives no numerical gain attributable to an individual measurement.
The comparison separates broad lexical resemblance into different kinds of evidence. Character overlap can detect related material within Chinese words that differ when treated as whole units. Cosine similarity gives different weights to words depending on their corpus frequency. Entity similarity isolates agreement on details that can determine the subject of the expression. Their common contribution indicates that each was useful when paired with other signals in the experiment. The evidence does not identify the effect of using each feature alone or of changing the candidate population.
Plain word overlap did not contribute to any of the selected classifier combinations. It still played a role upstream as a filter on the original Q-T pairs. This is an important distinction in reading the feature analysis. The classifiers look at pairs that have arrived through direct links passing an initial overlap criterion. Even the pivot tasks start from those screened links. Within such pools the overlap ratio can offer little additional help alongside the character and weighted word features. Establishing the value of the overlap screen itself would require changing which pairs entered the pipeline and observing the resulting outputs.
The candidate-versus-classifier comparison is a separate test. Q-T and Q-Q precision improve after classification, and the F-measure results show that the improvements survive consideration of recall within the candidate pool. The small clear benefit for T-T gives a different picture of the same intervention. A distinct source of candidates can affect both how clean the input already is and what errors a classifier has an opportunity to remove. The feature-combination results and the acceptance comparison therefore answer different questions about performance.
What people found when inspecting the pairs
A closer analysis of the initial Q-T candidates sampled 1000 pairs from the labeled set of 5000. Of this smaller sample, 563 were SAME and 437 were RELA. The authors inspected the SAME pairs to distinguish kinds of rewriting. Word or phrase replacement made up 68.38% of the SAME examples in this analysis. Trivial differences involving punctuation or stop words accounted for 12.61%, and changes involving wording and order accounted for 7.10%. The remaining 11.90% fell into other cases.
An example of lexical replacement concerns asking about the cost of a treatment. One formulation can use an ordinary expression for how much it costs, and the other can ask for the treatment fee. The two expressions can preserve the request despite differences in their wording. Changes in punctuation offer a much smaller rewrite. Structural changes alter the order and arrangement of words as well. The authors associate the prevalence of lexical replacement and the smaller structural category with the brevity and simple structure of search queries and titles. The earlier overlap filter also defines the population in which those categories were counted.
In the RELA portion of that subsample, 42.33% of the pairs showed a named-entity mismatch. The paper gives an example in which similar wording about large water projects accompanies different country names. A reader can recognize the common subject and still see that the expressions refer to different places. This finding helps explain why entity agreement matters for precision when the rest of a pair is similar. The human inspection locates an error type, and the feature-combination comparison separately shows that entity similarity contributes to all of the classifiers. The two observations concern different measurements and point to the same distinction between shared wording and shared reference.
Questions, topics, and sources of output
In the 1000-pair sample of the combined output, more than 43% were paraphrase questions. Among the questions, how questions accounted for 36%, what questions for 19%, and yes/no questions for 14%. The precision of question pairs was 84.26%, compared with 65.14% for pairs outside that category. This is a comparison of human judgments within the combined-output sample. The authors did not assign pairs to an experimental condition in which question wording alone was changed.
Precision by question status in the combined Baidu paraphrase sample
Human judgments give question pairs higher precision than the remaining pairs.
The numbers
| System or setting | Precision % |
|---|---|
| Pairs outside the question category | 65.14 |
| Question pairs (this paper) | 84.26 |
The question comparison describes where the extraction worked especially well in that sample. It can also help a reader understand the authors’ interest in the log as a source for question processing. A query and a title may each contain an independently phrased question requesting the same information. Such pairs are directly suited to a resource of question variants. The sample demonstrates their presence and relative precision under the extraction procedure. The paper suggests using them in question analysis and expansion.
The subject analysis finds that around 50% of the sampled output falls into the 7 most common domains. These include health and medicine, entertainment, and software, as well as material concerning documentary downloads. The other prominent domains concern education and study, computer games, and economy and finance. The authors single out software and games as examples of subjects they consider poorly covered by previously used comparable and parallel corpora. This is a description of the content made available by the log and of its concentration in popular subjects. It does not measure domain-specific precision or compare identical extraction methods across different corpora.
The small overlap among the accepted source sets gives another perspective on what the pipeline adds. The pivot routes contribute pairs that seldom duplicate the direct source at the level of exact pair identity. That observation shows what the routes add to the combined inventory. The comparison does not establish how many of those pairs require the use of validated links, because the paper proposes the raw-link variant without reporting a matched extraction experiment for it. The evidence for the role of pivots is therefore the observed diversity and quality of the final candidates, alongside the endpoint classifiers’ evaluation.
Limitations
Limits and future directions identified by the authors
Coverage remained an open problem for the authors. They proposed moving to a larger query log to find more paraphrases. A log can continue to grow, but the study measures the output available from the Baidu data used in the experiments. Increasing the amount of data could create more links for existing expressions and bring in searches that were absent before. The paper leaves the corresponding change in coverage unmeasured. Counts such as the number of accepted pairs describe the resource obtained under the study’s conditions.
The authors also planned to investigate transitivity more deeply. Transitivity in this setting would mean that a first expression could be paired with a third when both are accepted as paraphrases of a second expression. The implemented pivot procedure uses that kind of relationship to propose candidates through a shared item and then checks the endpoints. A general rule for following chains of accepted pairs would have to deal with the uncertainty of the original judgments and the contexts in which particular meanings hold. The paper identifies this as a direction for further research.
For pattern induction, the authors characterize their method as simple and describe the reported experiment as preliminary. The rules apply to short source pairs, replace a shared word, and allow a single slot per pattern pair. The authors proposed allowing multiple slots and applying alignment techniques to work out more correspondences between the expressions. The precision estimate belongs to the recurring patterns generated under the current constraints. More flexible generation would change which candidates exist and would need a fresh estimate of their quality.
Limits visible in the evaluation
The most consequential scope limit is the candidate pool. For a direct Q-T pair to reach evaluation, the log must first contain a qualifying click and the two strings must survive the text filters. For a pivot pair to reach evaluation, the method must also have retained the supporting Q-T links. A good paraphrase could disappear at any of those stages. Within-pool recall can count the positives lost by a classifier, because human readers label examples from that pool. It cannot count valid expressions lost before the pool was defined or paraphrases that never appeared in the click relationships.
The string filters define a particular part of the paraphrase space. The minimum length excludes brief rewrites, the containment rule removes one kind of close correspondence, and the overlap rule requires shared lexical material. Chinese character overlap and weighted word similarity can help the classifier interpret candidates that pass these rules. They cannot restore an excluded direct link. Similarly, the finding that lexical replacement predominates among the inspected candidates describes expressions selected through this process. It gives limited evidence about the distribution of rewrite types in ordinary language outside the log.
The evidence for classification is strongest when each task is compared with accepting its own candidates. The study does not report a matched comparison with a parallel-corpus system, a web-corpus system, or a search-log procedure that forms pivot pairs directly from raw links. The differences between Q-Q and T-T also come from different kinds of text and different ways of grouping it. The authors’ explanation involving informal wording and spelling mistakes is plausible and arises from their inspection, while the experiment gives no independent estimate of the effect of those properties. Similarly, the question precision comparison establishes an association in the output sample rather than the effect of making an otherwise similar expression a question.
Manual labeling is particularly important because relevance and equivalence can be close judgments. The paper defines the Q-T categories and reports randomized samples, but gives no measure of how consistently independent annotators would draw the boundary. It also uses candidate-level cross-validation without reporting a split that holds out whole queries, titles, or pivots. Held-out pairs give evidence about decisions on different examples from the same labeled population. The experiments leave open how the classifiers would behave when entire groups of related queries or titles are absent during training.
The corpus is tied to a particular search service and is predominantly Chinese. Forward maximum matching and the entity dictionary determine what word and entity units the features can see. Character overlap is motivated specifically by similarities between Chinese words. These details make the study informative about the setting tested. Performance with another language, another search service, or a differently filtered log would require its own evaluation. The subject distribution is similarly local to what was searched, clicked, and retained in this collection. The paper gives reasons that a search log can supply practical topics that are scarce in other corpora, with no measurement of how consistently those topics would appear in other logs.
The pattern estimate also has a narrower interpretation than the idea of a reusable slot might suggest. When a shared word is replaced, the examples show that both formulations support some common fillers. Human judges assess the resulting pattern pair as a general expression. An arbitrary new filler might interact differently with the fixed wording, or have a meaning that changes what one formulation naturally asks. The reported precision is for the sampled recurring patterns themselves. It does not measure the success rate for all future substitutions or for patterns generated under looser restrictions.
Finally, the evaluations concern evaluation and benchmarks for extraction and pattern quality. The authors discuss ways to use the output for suggesting queries, reranking results, and processing questions. They do not report running those applications with and without the extracted resource. A human judgment of semantic equivalence is relevant to those uses, while the practical effect can also depend on which paraphrase is retrieved, when it is used, and how errors propagate in the receiving system. The measurements establish the quality and composition of the resource within the studied conditions.
What came after
The subsequent use of this method is undocumented here. The paper itself closes with plans to expand the search-log corpus, improve pattern induction, and test when paraphrase links can be followed beyond the shared query or title. Those directions follow from different parts of the experiments. A larger log would address the supply of observed expressions, more flexible patterns would change what can be generalized from those expressions, and a study of transitivity would address the reliability of connecting pairs indirectly. The paper presents these as future investigations.
Cite
Cite as Shiqi Zhao, Haifeng Wang and Ting Liu. 2010. Paraphrasing with Search Engine Query Logs. Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010).
@inproceedings{zhao2010paraphrasing,
title = {{Paraphrasing with Search Engine Query Logs}},
author = {Shiqi Zhao, Haifeng Wang and Ting Liu},
booktitle = {Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010)},
year = {2010},
url = {https://aclanthology.org/C10-1148/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/zhao-2010-paraphrasing-search-engine-query-logs/