Pushing the Limits of Paraphrastic Sentence Embeddings with Millions of Machine Translations

John Wieting, Kevin GimpelarXiv 2017

Abstract

We describe PARANMT-50M, a dataset of more than 50 million English-English sentential paraphrase pairs. We generated the pairs automatically by using neural machine translation to translate the non-English side of a large parallel corpus, following Wieting et al. (2017). Our hope is that ParaNMT-50M can be a valuable resource for paraphrase generation and can provide a rich source of semantic knowledge to improve downstream natural language understanding tasks. To show its utility, we use ParaNMT-50M to train paraphrastic sentence embeddings that outperform all supervised systems on every SemEval semantic textual similarity competition, in addition to showing how it can be used for paraphrase generation.

Introduction

In Natural Language Processing (NLP), sentence embeddings serve as mathematical representations of sentential meaning. A core objective is to ensure that paraphrases—sentences with equivalent meanings—possess highly similar vector representations. Historically, the development of high-quality sentence-level paraphrase datasets has been hindered by the high cost of manual annotation, leading to small datasets that limit model generalization. Most state-of-the-art systems rely on these small, supervised sets, often resulting in models that over-specialize and underperform on out-of-distribution text.

Methodology: PARANMT-50M Construction

To address the data scarcity, we introduce PARANMT-50M, a massive dataset comprising over 50 million English-English paraphrase pairs. These pairs were generated using a "back-translation" approach:

  1. Source Selection: We utilized CzEng 1.6, a parallel corpus containing 51 million Czech-English sentence pairs.
  2. Automated Paraphrasing: A Neural Machine Translation (NMT) system translated the Czech side back into English.
  3. Pairing: The original English sentence was paired with its NMT-generated counterpart to form a paraphrase pair.
Examples of reference translations and their NMT-generated paraphrases.

This method leverages the inherent stylistic and lexical variations in NMT outputs to create a vast training resource without the need for human labeling.

Training with Mega-batching

To train the embeddings, we employed a margin-based loss function and introduced "mega-batching." This technique aggregates multiple mini-batches to identify the most challenging negative examples—sentences that are structurally similar but semantically distinct. This process forces the model to learn finer semantic nuances. We evaluated several architectures, including simple word averaging (WORD), character trigram averaging (TRIGRAM), and LSTMs.

Key Results

Our unsupervised embeddings, trained on PARANMT-50M, achieved state-of-the-art performance, outperforming all 119 submissions from 43 teams in the 2016 SemEval competition. Notably, simple models like word averaging performed exceptionally well when scaled to 50 million pairs, often surpassing complex LSTMs trained on smaller datasets.

Performance improvement across different architectures as the mega-batch size (M) increases.

On the STS Benchmark, our best model achieved a Pearson’s $r \times 100$ of 79.9, significantly outperforming previous unsupervised methods such as C-PHRASE (63.9) and GloVe averaging (40.6). Furthermore, our models demonstrated superior generalization compared to established models like InferSent and SkipThought.

Discussion and Limitations

While PARANMT-50M provides an unprecedented scale of data, manual evaluation indicates that approximately 16% of pairs in lower-scoring tiers contain noise, primarily due to alignment errors in the source corpus. Additionally, the source data's reliance on movie subtitles may introduce a conversational bias. Despite these limitations, the dataset's scale and the effectiveness of the mega-batching technique represent a significant advancement in training robust, paraphrastic sentence embeddings. Future work will explore applying this methodology to other languages and utilizing the "canonicalization" properties of the trained models for grammar correction and noise reduction.

Summary updated

BibTeX
@misc{wieting2017pushing,
  author = {John Wieting and Kevin Gimpel},
  title = {{Pushing the Limits of Paraphrastic Sentence Embeddings with Millions of Machine Translations}},
  year = {2017},
  eprint = {1711.05732},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.05732},
}
Figure