TL;DR
The "Paraphrase Thought" (P-thought) model improves sentence embeddings by training a dual-generation system that simultaneously reconstructs an input sentence and generates its paraphrase. By optimizing for "semantic coherence"—the idea that semantically similar sentences should reside close together in vector space—the model outperforms established benchmarks like Skip-thought and InferSent on paraphrase identification and semantic similarity tasks.
The Semantic Coherence Problem
In Natural Language Processing (NLP), sentence embedding aims to map text into low-dimensional vectors that capture meaning. Traditionally, these models are evaluated indirectly through downstream tasks like sentiment analysis or document classification.
The authors argue this is a flawed approach: simple methods like Bag-of-Words (BoW) or TF-IDF often perform surprisingly well on classification tasks without actually "understanding" semantic relationships. To truly capture meaning, a model must satisfy semantic coherence: sentences with the same meaning should have nearly identical embedding vectors, regardless of their word choice or structure. The challenge lies in designing a training objective that forces the model to prioritize these deep semantic relationships over surface-level syntax.
The P-Thought Architecture
The authors introduce the Paraphrase Thought (P-thought) model, which utilizes a Sequence-to-Sequence (Seq2Seq) architecture with Gated Recurrent Units (GRUs). Its core innovation is a dual-decoder structure designed to move beyond simple sequence memorization.
As shown in the architecture diagram, the model consists of three main components:
- Encoder: Transforms an input sentence $s$ into a fixed-size representation vector. The authors experimented with three levels of complexity: a one-layer Bi-RNN, a two-layer forward RNN, and a two-layer Bi-RNN.
- Auto-decoder: Attempts to reconstruct the original input sentence $s$ from the vector.
- Paraphrase-decoder: Attempts to generate a known paraphrase $p$ of the input sentence from the same vector.
To balance these tasks, the authors use a hyperparameter $\alpha$ to weight the loss function. They argue that auto-decoding is a "trivial copying task," so they assign a higher weight ($\alpha > 1$) to the paraphrase-decoder to force the encoder to capture the abstract meaning shared between the two sentences.
Experimental Setup and Datasets
- MS-COCO: Primarily used for training and internal evaluation. Since each image in MS-COCO has at least five captions describing the same scene, these captions serve as natural paraphrases. The authors used approximately 2.46 million sentence pairs for training.
- STS Benchmark (Semantic Textual Similarity): Used for external validation. This dataset contains sentence pairs with human-rated similarity scores (0 to 5).
- Pre-trained GloVe: Used for vocabulary expansion to handle out-of-vocabulary (OOV) words by mapping them into the embedding space without needing a separate mapping matrix. This allowed the model to successfully handle a vocabulary of 2.1 million words efficiently.
Additionally, they propose a new evaluation metric called P-coherence (Paraphrase Coherence), which uses cosine similarity to measure how tightly clusters of paraphrased sentences are grouped in the embedding space, inspired by topic coherence metrics.
Results and Visual Analysis
The P-thought model demonstrated significant improvements over existing state-of-the-art methods:
- P-coherence: The P-thought (Two-layer Bi-RNN) achieved a score of 0.9725, significantly higher than InferSent (0.7454) and Skip-thought (0.5328).
- STS Benchmark: P-thought (One-layer Bi-RNN) achieved a Pearson correlation of 0.812, outperforming InferSent (0.758) and Sent2vec (0.755).
Using t-SNE plots, the authors qualitatively show that P-thought creates much tighter, more distinct clusters for groups of paraphrases compared to models like Skip-thought or SIF, which show significant overlap and "noise" between different semantic groups. This visualization confirms that the dual-decoder objective successfully enforces semantic coherence.
Key Insights and Limitations
One of the most interesting findings was the relationship between complexity and generalization. While the most complex model (Two-layer Bi-RNN) performed best on the internal P-coherence metric, the simplest model (One-layer Bi-RNN) performed best on the STS Benchmark. This suggests that complex models may overfit when trained on specific datasets like MS-COCO, which is narrow in scope (mostly image descriptions).
The primary limitation identified is data scarcity. The authors note that their more complex models likely overfit the linguistic style of MS-COCO. Future work suggests exploring semi-supervised or unsupervised learning to acquire a larger and more diverse set of paraphrase pairs. This would allow the model to scale its complexity (e.g., more layers or attention mechanisms) without the risk of domain-specific overfitting.
Summary updated