Paraphrase Generation with Deep Reinforcement Learning

Zichao Li, Xin Jiang, Lifeng Shang, Hang Li

Introduction

Paraphrase generation is a critical task in natural language processing, yet traditional training methods often fall short. Most neural models rely on Maximum Likelihood Estimation (MLE), which penalizes any deviation from a specific reference sentence. This creates a "semantic gap": a model might be penalized for generating a perfectly valid paraphrase simply because it uses different vocabulary than the ground truth. While some researchers have turned to Reinforcement Learning (RL) using metrics like ROUGE or BLEU as rewards, these lexical metrics are often too brittle to capture true semantic equivalence.

To address these limitations, this paper introduces RbM (Reinforced by Matching), a framework that replaces static lexical rewards with a learned "evaluator" model capable of understanding deep semantic similarity.

The RbM Framework

The RbM framework consists of two primary neural components that interact in a feedback loop:

  1. The Generator ($G_\theta$): A sequence-to-sequence model utilizing an attention mechanism and a copy mechanism (pointer-generator). The copy mechanism is particularly important for paraphrasing, as it allows the model to retain rare entities or technical terms from the source sentence by "pointing" back to the input.
  2. The Evaluator ($M_\phi$): A deep matching model designed to assess the semantic relationship between the input sentence and the generated output, providing a reward score based on meaning rather than word overlap.
The RbM framework overview showing the interaction between the Generator and the Evaluator.

Training Methodologies

The authors propose two distinct training pipelines for the evaluator:

  • RbM-SL (Supervised Learning): This approach is used when a dataset contains both positive (paraphrase) and negative (non-paraphrase) pairs. The evaluator is trained to classify these pairs before being used to provide rewards.
  • RbM-IRL (Inverse Reinforcement Learning): In scenarios where only positive examples are available, IRL is employed. This method uses a max-margin principle to ensure that human-written references receive higher rewards than model-generated ones, forcing the evaluator to become increasingly discriminative as the generator improves.

To ensure training stability, the framework incorporates Reward Shaping via Monte Carlo simulations and Reward Rescaling based on batch ranking to prevent model collapse.

Experimental Results

The models were evaluated on the Quora Question Pairs dataset (including a challenging "Quora-II" split with no overlapping questions) and the Twitter URL Paraphrase Corpus.

Quantitative Performance

On the Quora-II benchmark, RbM-SL achieved a BLEU score of 35.81, significantly outperforming the standard pointer-generator baseline (30.01) and even RL-based models using ROUGE rewards (32.54).

Human Evaluation

Beyond automated metrics, human evaluation confirmed that RbM models produce more relevant and fluent paraphrases. As shown in the results, RbM-IRL and RbM-SL consistently scored higher in relevance (meaning preservation) and fluency compared to baselines, approaching the quality of human references.

Human evaluation results for relevance and fluency on Quora datasets.

Conclusion

The RbM framework demonstrates that moving beyond simple word-overlap metrics to learned semantic rewards significantly improves paraphrase quality. By utilizing Inverse Reinforcement Learning, the system can even learn effectively from positive-only data, creating a robust pipeline for generating diverse and accurate linguistic variations. Future work may extend this generator-evaluator paradigm to related tasks such as machine translation and dialogue systems.

Summary updated

BibTeX
@inproceedings{li2018paraphrase,
  author = {Zichao Li and Xin Jiang and Lifeng Shang and Hang Li},
  title = {{Paraphrase Generation with Deep Reinforcement Learning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1421},
}
Figure