Abstract
Paraphrase generation has benefited extensively from recent progress in the designing of training objectives and model architectures. However, previous explorations have largely focused on supervised methods, which require a large amount of labeled data that is costly to collect. To address this drawback, we adopt a transfer learning approach and propose a training pipeline that enables pre-trained language models to generate high-quality paraphrases in an unsupervised setting. Our recipe consists of task-adaptation, self-supervision, and a novel decoding algorithm named Dynamic Blocking (DB). To enforce a surface form dissimilar from the input, whenever the language model emits a token contained in the source sequence, DB prevents the model from outputting the subsequent source token for the next generation step. We show with automatic and human evaluations that our approach achieves state-of-the-art performance on both the Quora Question Pair (QQP) and the ParaNMT datasets and is robust to domain shift between the two datasets of distinct distributions. We also demonstrate that our model transfers to paraphrasing in other languages without any additional finetuning.
Introduction
Paraphrase generation—the task of restating a sentence while preserving its original meaning—is a fundamental component of various natural language processing (NLP) applications, including text summarization, data augmentation, and conversational agents. While recent advances in large-scale pre-trained language models (LMs) have significantly improved performance in supervised settings, these methods rely heavily on large, high-quality parallel datasets. Such datasets are expensive to curate and often limited to specific domains, such as the Quora Question Pairs (QQP) dataset.
Furthermore, even state-of-the-art LMs exhibit a "laziness" bias when tasked with paraphrasing in an unsupervised manner. Without explicit supervision, these models tend to either copy the input sequence verbatim or generate continuations rather than transformations. To address these challenges, we propose an unsupervised training pipeline that leverages the latent knowledge within pre-trained LMs, combined with a novel decoding algorithm called Dynamic Blocking (DB).
Methodology
Our approach follows a three-stage pipeline designed to adapt a general-purpose language model into a specialized, diverse paraphraser without requiring labeled pairs.
1. Task-Adaptation
The first stage involves fine-tuning a pre-trained LM (such as T5 or BART) on a large corpus of unlabeled sentences from the target domain. We employ a denoising objective where the model is tasked with reconstructing original sentences from "corrupted" versions. Corruption techniques include random token deletion and shuffling. This process allows the model to internalize the domain-specific vocabulary and syntactic structures.
2. Dynamic Blocking (DB)
The core innovation of our work is the Dynamic Blocking algorithm. During the autoregressive decoding process, the model is discouraged from copying the source sequence. Specifically, if the model generates a token that exists in the source sentence, the algorithm identifies the immediate successor of that token in the source and blocks it from being selected in the next generation step.
Unlike static blocking, which might ban a word entirely, DB only restricts the immediate sequence. This allows the model to use all original words but forces it to find alternative syntactic paths, such as reordering phrases or selecting synonyms. For example, if the source is "The cat sat," and the model generates "The," DB prevents "cat" from being the next token, prompting the model to generate "feline" or reorder the sentence.
3. Self-Supervision
In the final stage, we use the task-adapted model equipped with Dynamic Blocking to generate a synthetic dataset of paraphrase pairs. A "student" model is then trained on this synthetic data. This distillation process allows the final model to internalize paraphrasing patterns, resulting in a more efficient and robust model that does not require the computationally expensive blocking algorithm during inference.
Evaluation and Results
To accurately assess the balance between semantic preservation and surface-level diversity, we introduced BERT-iBLEU. This metric calculates the harmonic mean of BERT-score (for semantics) and "inverse" BLEU (for diversity).
Performance on Benchmarks
We evaluated our method on the QQP and ParaNMT datasets. On QQP, our unsupervised "TA+SS+DB" model achieved a BERT-iBLEU score of 83.1, outperforming a supervised Transformer baseline which scored 68.7.
Human Evaluation
Human evaluators compared our model's outputs against several baselines and even ground-truth human labels. Remarkably, our model's paraphrases were preferred over the human-labeled ground truth in both QQP and ParaNMT benchmarks. This suggests that our approach can mitigate the noise often found in "gold" datasets, where human labels may be overly repetitive or low-quality.
Cross-Lingual and Domain Robustness
Our model demonstrated significant robustness to domain shifts. When trained on question data and tested on general prose, performance remained stable, unlike previous unsupervised methods. Additionally, we observed zero-shot cross-lingual transfer; a multilingual BART model could paraphrase in German using Dynamic Blocking without any German-specific fine-tuning.
Discussion and Limitations
While the proposed method achieves state-of-the-art results, we identified certain failure modes. The model occasionally generates antonyms (e.g., changing "gain weight" to "lose weight") or swaps subject-object roles (e.g., changing "you love someone" to "someone loves you"). Furthermore, specific named entities are sometimes lost in the pursuit of diversity. Future research will focus on integrating Named Entity Recognition (NER) to preserve factual accuracy and exploring context-aware paraphrasing.
Conclusion
We have demonstrated that pre-trained language models possess a latent capacity for high-quality paraphrasing that can be unlocked through strategic task-adaptation and the Dynamic Blocking decoding algorithm. Our unsupervised pipeline not only matches but often exceeds the quality of supervised models and human-labeled data, providing a scalable solution for paraphrase generation across domains and languages.
Summary updated