Unifying Discrete and Continuous Representations for Unsupervised Paraphrase Generation

Mingfeng Xue, Dayiheng Liu, Wenqiang Lei, Jie Fu, Jian Lan, Mei Li, Baosong Yang, Jun Xie, Yidan Zhang, Dezhong Peng, Jiancheng Lv

Abstract

Unsupervised paraphrase generation often struggles with maintaining factual accuracy and generating diverse syntactic structures. We present a novel framework that eliminates the need for parallel translation data by combining a self-supervised pseudo-data constructor with a unified representation model. By encoding sentence meaning into discrete variables and entities into continuous variables, the proposed method achieves state-of-the-art performance on major benchmarks, significantly improving entity retention while allowing for controllable diversity.

Introduction

Paraphrase generation is a fundamental task in natural language processing, essential for applications such as summarization and question answering. Despite its importance, current unsupervised approaches face significant challenges. First, they often lack the data required for high-quality training. Second, common techniques like round-trip translation tend to produce outputs that are syntactically too similar to the input. Finally, "entity hallucination"—where names or technical terms are incorrectly altered—remains a critical failure mode for existing models.

Methods

The proposed framework addresses these challenges through a two-stage process: self-supervised pseudo-data construction and a unified paraphrasing model.

Self-Supervised Pseudo-Data Construction

To overcome the lack of parallel corpora, a Pseudo-Data Constructor is employed. The process involves extracting keywords and noun chunks from a single sentence, shuffling them, and training a model to reconstruct the original sentence. At inference time, feeding shuffled keywords allows the generation of diverse "pseudo-paraphrases" with varying word orders, creating a synthetic training set of semantically similar but structurally distinct pairs.

Overview of the training and inference pipeline, including pseudo-data construction and model training.

Unified Paraphrasing Model

The core of the architecture is the separation of sentence meaning and entity information using an encoder-decoder setup inspired by VQ-VAE:

  • Discrete Representations: The general semantic "gist" and syntax are mapped to a discrete codebook. Sampling from this codebook, controlled by a temperature parameter ($\tau$), enables the generation of diverse sentence structures.
  • Continuous Representations: To prevent the loss of specific details during quantization, entities (e.g., names, products) are maintained as continuous variables. This ensures high-fidelity transmission of factual information to the decoder.

Results and Evaluation

The model was evaluated on the WikiAnswers and QQP datasets in an unsupervised setting. A key contribution is the introduction of the Entity-Score, an F1-based metric specifically designed to measure the retention of original entities.

Comparison of the proposed method against unsupervised baselines on the WikiAnswers dataset.

As shown in the experimental results, the proposed model significantly outperforms existing state-of-the-art unsupervised methods. On the WikiAnswers dataset, it achieved an Entity-Score of 85.10, a substantial improvement over the previous best of 69.91. Furthermore, the model demonstrates a superior balance between diversity and quality, maintaining high BLEU and iBLEU scores while providing more structural variation than traditional round-trip translation. Human evaluations confirmed these findings, with the model receiving higher ratings for semantics, structure, and entity retention.

Conclusion

By unifying discrete and continuous representations, this framework effectively mitigates entity hallucination while promoting syntactic diversity in unsupervised paraphrase generation. Future work will focus on reducing dependency on external NER tools, handling varied entity formats (e.g., numerical variations), and scaling the architecture to larger language models.

Summary updated

BibTeX
@inproceedings{xue2023unifying,
  author = {Mingfeng Xue and Dayiheng Liu and Wenqiang Lei and Jie Fu and Jian Lan and Mei Li and Baosong Yang and Jun Xie and Yidan Zhang and Dezhong Peng and Jiancheng Lv},
  title = {{Unifying Discrete and Continuous Representations for Unsupervised Paraphrase Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.852},
}
Figure