PAWS: Paraphrase Adversaries from Word Scrambling

Yuan Zhang, Jason Baldridge, Luheng He

TL;DR

This paper introduces PAWS, a new dataset designed to challenge paraphrase identification models by including sentence pairs with high word overlap but distinct meanings, often due to subtle word order changes. Models trained on existing datasets perform poorly on PAWS, but incorporating PAWS data significantly improves their ability to distinguish meaning based on structure, highlighting the importance of non-local contextual understanding.

What Problem Does This Paper Address?

Paraphrase identification is a crucial task in natural language understanding, aiming to determine if two sentences convey the same meaning. However, existing datasets often fall short in challenging models. Specifically, they lack sentence pairs that share a high number of words (high lexical overlap) but are not paraphrases. This deficiency means that models trained on these datasets can become overly reliant on word overlap and fail to grasp the nuances of meaning conveyed by word order and syntactic structure. For instance, distinguishing between "flights from New York to Florida" and "flights from Florida to New York" is difficult for models that only consider word presence, even though their meanings are entirely different. This gap hinders the development of truly robust paraphrase identification systems.

Methods

The authors introduce a novel workflow to generate challenging paraphrase and non-paraphrase pairs with high lexical overlap. This workflow has two main components:

  1. Word Swapping: This method involves controlled swapping of words within existing sentences. To ensure fluency and naturalness, it leverages language models and constrained beam search, guided by part-of-speech tags and named entity recognition. The goal is to create sentence pairs that maintain the same bag-of-words but alter the meaning through word reordering.
  2. Back Translation: This technique uses a pivot language (German, in this case) to translate sentences back and forth. By translating an English sentence to German and then back to English, subtle reorderings and word choices can emerge, often resulting in paraphrases with high word overlap but different syntactic structures.

These generated pairs are then filtered and annotated by human raters for fluency and paraphrase judgments, ensuring high quality and balanced labels.

Datasets

The paper introduces the PAWS (Paraphrase Adversaries from Word Scrambling) dataset. It comprises 108,463 well-formed paraphrase and non-paraphrase pairs with high lexical overlap. PAWS is constructed from sentences originally found in the Quora Question Pairs (QQP) corpus and Wikipedia. The dataset is split into two versions: PAWSQQP and PAWSWiki. Additionally, an unlabeled PAWSWiki set of 656k pairs is created for pre-training.

Key Insights and Ideas

  • The critical role of word order: The paper strongly emphasizes that subtle changes in word order can drastically alter sentence meaning, a phenomenon that current paraphrase identification models often fail to capture due to limitations in existing datasets.
  • Adversarial examples for robustness: PAWS serves as an "adversarial" dataset, specifically designed to expose weaknesses in models. By creating pairs that are difficult for machines but relatively easy for humans, it pushes the boundaries of model understanding.
  • Beyond lexical overlap: The success of models on PAWS is directly linked to their ability to go beyond simple word matching and understand non-local contextual information and syntactic structure.
  • PAWS as a diagnostic tool: The dataset is presented as an effective instrument for evaluating and driving progress in models that can better exploit sentence structure and context.

Key Results

  • Dismal performance on existing models: State-of-the-art models trained on existing paraphrase datasets (like QQP) achieve less than 40% accuracy on PAWS.
  • Significant improvement with PAWS training: Including even a small subset of PAWS training data (e.g., 12k pairs) boosts model accuracy on PAWS to 85% without degrading performance on existing tasks.
  • BERT and DIIN excel: Models like BERT and DIIN, which are designed to capture non-local context and complex interactions, show significant gains when trained on PAWS.
  • BOW and DecAtt struggle: Simpler models like Bag-of-Words (BOW) and models that primarily focus on local context (like DecAtt) fail to learn effectively from PAWS, even with training data.
  • Pre-training benefits: Using the unlabeled PAWSWiki dataset for pre-training consistently improves performance across various models, demonstrating its value for general-purpose language understanding.

Limitations and Future Work

  • Model complexity vs. performance: While BERT achieves high scores, its computational cost is significantly higher than models like DIIN. The paper suggests DIIN might be a more practical choice for scenarios with strict latency requirements.
  • Cross-domain generalization: While models trained on one domain (e.g., QQP) can generalize to another (e.g., Wikipedia), performance is better when trained on in-domain data. However, training on both domains (QQP and Wikipedia) leads to improved cross-domain performance.
  • Further exploration of model combinations: The paper notes that models like BERT and DIIN, despite both performing well, make different errors, suggesting that combining them could lead to even better results.
  • Continued dataset expansion: The authors implicitly suggest that further expansion and refinement of PAWS, or similar datasets, will be crucial for advancing paraphrase identification research.

Summary updated

BibTeX
@inproceedings{zhang2019paws,
  author = {Yuan Zhang and Jason Baldridge and Luheng He},
  title = {{PAWS: Paraphrase Adversaries from Word Scrambling}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=H1-AAGWO-B},
}
Figure