Paraphrasing with Search Engine Query Logs

Shiqi Zhao, Haifeng Wang, Ting LiuCOLING 2010

Abstract

Building large-scale paraphrase corpora is a significant challenge in natural language processing. This paper presents a scalable methodology for extracting millions of high-quality paraphrase pairs from search engine query logs. By leveraging user click behavior as a bridge between queries and document titles, the authors identify three types of paraphrase candidates: Query-Title (Q-T), Query-Query (Q-Q), and Title-Title (T-T). Using a Support Vector Machine (SVM) classifier for validation, the system extracted over 3.5 million paraphrase pairs with precision exceeding 70%.

Introduction

Paraphrasing—the ability to express the same meaning using different lexical choices—is fundamental to tasks such as machine translation, question answering, and information retrieval. However, the scarcity of large-scale, diverse paraphrase corpora limits progress. Traditional methods relying on parallel or comparable corpora are often constrained by domain and volume. This research explores the "wisdom of the crowd" found in search engine logs as a massive, dynamic source for paraphrase extraction.

Methodology

The proposed framework utilizes user "hits"—instances where a user clicks a document title $t$ after submitting a query $q$. These hits serve as the basis for three extraction hypotheses:

  1. Query-Title (Q-T): Direct paraphrasing between the search term and the clicked result title.
  2. Query-Query (Q-Q): Two distinct queries are considered paraphrases if they lead to clicks on the same document title (the title acts as a "pivot").
  3. Title-Title (T-T): Two document titles are considered paraphrases if they are both clicked in response to the same query (the query acts as a "pivot").
The three-step extraction process for Q-T, Q-Q, and T-T paraphrase candidates.

To filter noise inherent in web data, the authors employed a Support Vector Machine (SVM) classifier. Features for classification included lexical overlap (word/character level), semantic similarity (tf-idf cosine similarity and Named Entity matching), and statistical metrics like "Pivot Fertility," which measures the number of unique bridges connecting two phrases.

Results and Analysis

The methodology was applied to a massive dataset from Baidu, comprising 284 million queries. The system successfully extracted approximately 3.56 million unique paraphrase pairs.

The impact of the SVM validation is most evident in the precision gains across different candidate types. For instance, the precision of raw Q-Q candidates rose from 46.7% to 73.4% after classification. Overall, precision for all categories remained consistently above 70%.

Classification performance (Precision, Recall, F-measure) for Q-T, Q-Q, and T-T extraction.

Key Insights

  • Pivot Power: The pivot approach (Q-Q and T-T) is highly effective at discovering paraphrases that do not co-occur in a single session.
  • Named Entity Sensitivity: Named Entity similarity proved to be a critical feature; phrases with identical structures but different entities (e.g., different locations) are related but not paraphrastic.
  • QA Utility: Over 43% of the extracted pairs were questions, making the dataset particularly useful for training robust Question Answering systems.

Conclusion

Search engine query logs provide a rich, scalable resource for paraphrase extraction. By combining pivot-based extraction with supervised classification, researchers can generate millions of high-quality pairs. Future work includes extending pattern generation to multi-slot variables and investigating the transitivity of paraphrastic relationships.

Summary updated

BibTeX
@inproceedings{zhao2010paraphrasing,
  author = {Shiqi Zhao and Haifeng Wang and Ting Liu},
  title = {{Paraphrasing with Search Engine Query Logs}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2010},
}
Figure