Neural Paraphrase Generation with Stacked Residual LSTM Networks

Aaditya Prakash, Sadid A. Hasan, Kathy Lee, Vivek V. Datla, Ashequl Qadir, Joey Liu, Oladimeji Farri

Abstract

In this paper, we propose a novel neural approach for paraphrase generation. Conventional paraphrase generation methods either leverage hand-written rules and thesauri-based alignments, or use statistical machine learning principles. To the best of our knowledge, this work is the first to explore deep learning models for paraphrase generation. Our primary contribution is a stacked residual LSTM network, where we add residual connections between LSTM layers. This allows for efficient training of deep LSTMs. We evaluate our model and other state-of-the-art deep learning models on three different datasets: PPDB, WikiAnswers and MSCOCO. Evaluation results demonstrate that our model outperforms sequence to sequence, attention-based and bi-directional LSTM models on BLEU, METEOR, TER and an embedding-based sentence similarity metric.

Introduction

Paraphrasing—the task of expressing the same idea using different words—is a fundamental challenge in natural language processing (NLP). It serves as a critical component for applications such as question answering, summarization, and information retrieval. Historically, researchers relied on hand-crafted rules or statistical machine learning techniques. While deep learning has revolutionized paraphrase recognition, its application to generation has been limited by the "degradation problem": as recurrent networks get deeper, training error often increases, making it difficult to capture the complex semantic transformations required for fluid paraphrasing.

Methods: Stacked Residual LSTMs

To address these training difficulties, we utilize an Encoder-Decoder framework powered by a Stacked Residual LSTM architecture.

Architecture and Residual Connections

The model consists of four vertically stacked LSTM layers. In a standard stacked setup, the output of one layer serves as the input to the next. Our approach introduces residual connections, where the input to a layer is added to its output.

Architecture of the Stacked Residual LSTM network showing identity shortcuts between layers.

As shown in Figure 4, these connections allow gradients to flow more easily through the network during training. Effectively, the model learns "residual" changes to the sentence representation rather than having to re-learn the entire identity mapping at every layer. This "shortcut" mechanism makes "doing nothing" the default behavior for the network, which is particularly beneficial for paraphrasing, where many words (such as nouns or function words) should remain unchanged from the source sequence.

Experimental Setup

We evaluated the model on three diverse datasets to demonstrate its robustness:

  • PPDB (Paraphrase Database): A massive collection of over 18 million paraphrases, focusing on lexical and phrasal levels.
  • WikiAnswers: Nearly 18 million word-aligned question pairs, capturing natural variations in human queries.
  • MSCOCO: An image captioning dataset where multiple human-written captions for the same image act as natural paraphrases. This demonstrates that captioning data is highly effective for training paraphrase models even without visual information.

Results and Discussion

The Stacked Residual LSTM consistently outperformed standard Sequence-to-Sequence, attention-based, and bi-directional models across all benchmarks.

Perplexity curves across epochs for MSCOCO, WikiAnswers, and PPDB datasets, comparing different model architectures.

As illustrated in Figure 5, the Residual LSTM (represented by the green/yellow lines) achieves lower perplexity and faster convergence compared to baselines. On the MSCOCO dataset, our model achieved a BLEU score of 37.0, significantly beating the standard Seq2Seq (28.9) and Attention-based models (33.4). On WikiAnswers, it reached a BLEU of 37.2. Qualitatively, the model demonstrates a knack for meaningful semantic substitutions, such as changing "a small kitten is sitting in a bowl" to "a cat that is sitting on a bowl."

Conclusion

This study confirms that increasing the depth of neural networks improves performance in NLP tasks, provided that residual connections are used to mitigate training degradation. Unlike bi-directional models, which double the number of parameters, residual connections add zero learnable parameters, making them a computationally efficient way to boost accuracy. Future work will focus on developing evaluation metrics that better reward semantic novelty, as standard metrics like BLEU and METEOR often fail to recognize valid synonyms and non-overlapping semantic matches.

Summary updated

BibTeX
@inproceedings{prakash2016neural,
  author = {Aaditya Prakash and Sadid A. Hasan and Kathy Lee and Vivek V. Datla and Ashequl Qadir and Joey Liu and Oladimeji Farri},
  title = {{Neural Paraphrase Generation with Stacked Residual LSTM Networks}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2016},
  url = {https://openreview.net/forum?id=NaJNBZ6RZuut},
}

Loading related content...

Figure