NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Paraphrasing with Large Language Models

Sam Witteveen, Martin Andrews

TL;DR

This paper demonstrates that pre-trained autoregressive language models (specifically GPT-2) can be fine-tuned to produce high-quality, long-form paraphrases at both the sentence and full-paragraph levels. By pairing conditional generation with an automated filtering pipeline based on Universal Sentence Encoder (USE) similarity and ROUGE-L overlap thresholds, the authors generate coherent rewrites that preserve semantic meaning while altering sentence structure and vocabulary.

What Problem Does This Paper Address?

Paraphrase generation—producing a semantically equivalent text using different phrasing and structure—is a core NLP challenge with applications in data augmentation, question answering, and content creation. Historically, paraphrasing relied on rule-based systems or bilingual back-translation (machine translation pivoting). These methods struggle with longer spans of text, produce unnatural syntax, or fail to rephrase text meaningfully beyond word-level substitutions. The authors investigate whether modern transformer-based language models can handle nuanced paraphrase generation directly on full sentences and extended paragraphs without breaking texts into smaller fragments.

Methods

The authors fine-tune pre-trained GPT-2 (originally trained on WebText) for conditional sequence-to-sequence style paraphrase generation:

  • Input Representation: Supervised pairs of original text and paraphrases are concatenated into a single stream, separated by a distinct delimiter token (e.g., >>>>), formatted as: [Original Text] >>>> [Paraphrase].
  • Training Strategy: The model is trained for only a small number of epochs to prevent overfitting and memorize general task patterns. Training was lightweight, taking roughly 90 minutes on a single Nvidia K-80 GPU.
  • Decoding & Filtering Pipeline: Rather than relying on specialized decoding strategies like beam search or top-$k$ sampling constraints, the model generates multiple candidate paraphrases autoregressively given an unseen input prompt. The candidates are ranked and filtered via two metrics:
  • Semantic Similarity: Cosine similarity computed over 512-dimensional embeddings from the Universal Sentence Encoder (USE). Candidates with USE scores below $0.85$ are discarded to avoid meaning drift.
  • Lexical Diversity: ROUGE-L is calculated against the original text. Candidates with ROUGE-L scores exceeding $0.70$ are discarded to eliminate trivial copies or near-verbatim outputs.
  • The highest-scoring candidate that passes these thresholds is selected.

Datasets

The authors fine-tuned and tested separate model versions across three datasets:

  1. MSR Paraphrase Identification Dataset (MRPC): Standard benchmark containing ~4,000 sentence pairs in the training split.
  2. Original News Dataset: An internal dataset of 10,000 sentence-level news excerpts paired with human-generated paraphrases.
  3. Original Paragraph Dataset: A newly collected dataset of full paragraph-length excerpts and matching human-written paraphrases covering entertainment, news, and food articles.

Key Insights and Ideas

  • Syntactic and Grammatical Fluency from Pre-training: Large language models pre-trained on massive web corpora already encode rich syntactic and grammatical representations. As a result, only modest fine-tuning on a small paraphrase dataset is needed for the model to generalize effectively.
  • The "Goldilocks Zone" of Paraphrasing: Unfiltered generation results reveal a clear scoring envelope:
  • $\text{USE} < 0.85$: Severe semantic degradation and hallucinations (e.g., transforming a serious medical sentence into nonsense).
  • $\text{USE} \to 1.0$ and $\text{ROUGE-L} > 0.70$: High semantic fidelity, but essentially verbatim copies of the input.
  • Setting a ceiling on ROUGE-L combined with a floor on USE reliably isolates true structural paraphrases.
  • Native Long-Form Paraphrasing: Unlike sequence-to-sequence models of that era, which struggled with long sequences, GPT-2 naturally handles paragraph-level rewriting without needing to chunk the text into individual sentences first.

Key Results

The authors compared human-written paraphrase benchmarks against their generated texts:

  • Reference Dataset Baselines:
  • MSR Train: $\text{USE} = 0.8462$, $\text{ROUGE-L} = 0.4315$, $\text{BLEU} = 0.4593$
  • News Dataset: $\text{USE} = 0.8948$, $\text{ROUGE-L} = 0.4686$, $\text{BLEU} = 0.5648$
  • Paragraphs Dataset: $\text{USE} = 0.9208$, $\text{ROUGE-L} = 0.4966$, $\text{BLEU} = 0.5762$
  • Generation Quality: Filtered model outputs achieved semantic similarity ($\text{USE} \approx 0.89\text{--}0.93$) and n-gram overlap scores ($\text{ROUGE-L} \approx 0.45\text{--}0.50$, $\text{BLEU} \approx 0.47\text{--}0.54$) well within the range of human-generated reference data.
  • Zero-Shot Domain Transfer: Due to broad pre-training, the fine-tuned models generalized successfully to unseen domain content (e.g., Wikipedia and general web content) without domain-specific paraphrase training.

Limitations and Future Work

  • Variable Generation Quality: Raw autoregressive generation occasionally produces absurd candidates (e.g., producing "brain fart" or unrelated entities), necessitating automated candidate filtering to guarantee usable output.
  • Future Directions:
  • Tracing attention weights across transformer layers to identify how linguistic hierarchy (syntax vs. semantics) is encoded during rephrasing.
  • Investigating the inherent meta-learning (or few-shot) capabilities of transformer context windows for task adaptation without extensive fine-tuning.

Summary updated

BibTeX
@inproceedings{witteveen2019paraphrasing,
  author = {Sam Witteveen and Martin Andrews},
  title = {{Paraphrasing with Large Language Models}},
  booktitle = {NGT @ EMNLP},
  year = {2019},
  url = {https://openreview.net/forum?id=D55IDd4a82},
}

Loading related content...

Figure