Unsupervised Paraphrase Generation using Pre-trained Language Models

Chaitra V. Hegde, Shrikumar PatilarXiv 2020

Paraphrasing—the task of restating text while preserving its original meaning—is a fundamental challenge in natural language processing (NLP). It is essential for applications ranging from conversational agents to data augmentation for low-resource tasks. However, traditional supervised methods require massive parallel corpora, which are expensive to curate and often limited to specific domains like Quora questions. This paper introduces a novel unsupervised approach that leverages the latent knowledge within pre-trained language models (PLMs) like GPT-2 to generate high-quality, diverse paraphrases without any labeled data.

The Sentence Reconstruction Task

The core innovation of this work is framing paraphrase generation as a "sentence reconstruction" problem. Instead of training a model on pairs of equivalent sentences, the authors teach the model to rebuild a fluent sentence from a "corrupted" skeleton. This process forces the model to rely on its internal understanding of English grammar and semantics to fill in the gaps.

Methodology

  1. Corruption: A source sentence is stripped of its stop words (e.g., "is," "the," "at"). To prevent the model from simply memorizing the input, the remaining keywords are randomly shuffled 20% of the time, and 20% of the words are replaced with synonyms.
  2. Fine-tuning: GPT-2 (345M parameters) is fine-tuned to take these corrupted keyword strings as input and output the original, fluent sentence.
  3. Inference and Filtering: At test time, the model generates multiple candidate reconstructions using top-k sampling. To ensure semantic fidelity, a Sentence Transformer calculates the cosine similarity between the original and the new version, retaining only those with a similarity score above 0.75.
Examples of the sentence reconstruction process, showing original input (In), the keyword-based corruption (Corrupted), and the model's generated paraphrases (Out).

Experimental Results

The model was evaluated primarily on the Quora Question Pairs (QQP) dataset. Despite being entirely unsupervised, the proposed method achieved state-of-the-art results, often outperforming established supervised baselines.

Quality and Diversity

As shown in the performance comparison below, the model (Ours) achieves competitive ROUGE scores against both supervised and unsupervised methods. Notably, it reached a METEOR score of 50.48, nearly doubling the performance of several supervised models which typically score in the high 20s. Furthermore, a low self-BLEU score (30.27) confirms that the generated outputs are not mere copies of the input but represent diverse linguistic variations.

Comparison of ROUGE-1 and ROUGE-2 scores against various supervised and unsupervised baselines.

Human Evaluation and Downstream Utility

Human judges validated the model's performance, finding the generated paraphrases to be semantically correct 75.5% of the time. Beyond intrinsic metrics, the authors demonstrated the practical utility of their model through data augmentation on the Stanford Sentiment Treebank (SST-2). By augmenting the training set with generated paraphrases, they observed significant performance gains in downstream classifiers. For instance, a TF-IDF + Random Forest classifier saw an accuracy jump of 9.68%.

Conclusion

This research demonstrates that large-scale pre-trained language models can be effectively repurposed for unsupervised paraphrasing. By using a simple yet effective corruption-reconstruction objective, the model captures the essence of paraphrasing—maintaining meaning while varying expression—without the need for expensive parallel datasets. While the computational cost of running large models remains a factor, the ability to generate high-quality paraphrases in any domain where unlabeled text is available marks a significant step forward for unsupervised NLP.

Summary updated

BibTeX
@misc{hegde2020unsupervised,
  author = {Chaitra V. Hegde and Shrikumar Patil},
  title = {{Unsupervised Paraphrase Generation using Pre-trained Language Models}},
  year = {2020},
  eprint = {2006.05477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.05477},
}
Figure