GCPG: A General Framework for Controllable Paraphrase Generation

Kexin Yang, Dayiheng Liu, Wenqiang Lei, Baosong Yang, Haibo Zhang, Xue Zhao, Wenqing Yao, Boxing Chen

Introduction

Paraphrasing is more than just swapping synonyms; it involves restating an idea to meet specific constraints. Whether simplifying a sentence for a child, formalizing it for a report, or incorporating technical jargon, the ability to control the output is crucial. In Natural Language Processing (NLP), this is known as Controllable Paraphrase Generation (CPG).

Historically, researchers have treated "what to say" (lexical control) and "how to say it" (syntactical control) as separate challenges. Moreover, models often struggle with "copying"—accidentally mimicking the vocabulary of a structural template (exemplar) rather than just its grammar. GCPG (General Controllable Paraphrase Generation) addresses these issues with a unified framework that allows simultaneous control over both lexical and syntactical elements.

Methodology: A Unified Text-to-Text Approach

The GCPG framework simplifies controllable paraphrasing by treating it as a standard "text-to-text" task. This approach avoids complex graph encoders or specialized architectures, making it compatible with powerful pre-trained language models like ProphetNet or BART.

The GCPG architecture treats various control signals as a unified text sequence input to a pre-trained language model.

1. Unified Input Representation

Instead of using separate modules for different constraints, GCPG concatenates the source sentence with various control signals—such as keywords, Part-of-Speech (POS) sequences, and linearized constituent trees—into a single string. These segments are separated by a special [SEP] token, allowing the model to attend to all constraints globally.

2. Syntax-Similarity based Exemplar (SSE)

A key innovation of this work is the Syntax-Similarity based Exemplar (SSE). To prevent the model from lazily copying words from a structural guide, the researchers developed a method to decouple grammar from vocabulary during training.

The SSE process retrieves a grammatically similar but lexically distinct exemplar from a dictionary to guide the model's syntax without encouraging word copying.

During training, rather than using a modified version of the target sentence as a guide, the system retrieves a completely different sentence from an "Exemplar Dictionary" that shares a similar syntactic structure (based on syntax edit distance). This forces the model to learn abstract grammatical patterns rather than simple word-level mimicry.

Evaluation and Results

The researchers evaluated GCPG on two primary benchmarks: ParaNMT-small (500K pairs created via back-translation) and QQP-Pos (curated from Quora Question Pairs for syntactical control).

Key Findings

  • State-of-the-Art Performance: GCPG with SSE significantly outperformed previous models on ParaNMT-small, showing substantial improvements in ROUGE scores (e.g., a 13.95/24.31/18.64 ROUGE-1/2/L jump over previous methods).
  • Mitigating the Copying Problem: The SSE method reduced the "BLEU-Exemplar" score—a metric for word copying from the structural guide—from 7.32 down to 2.63. This confirms that the model learns to follow syntax rather than just merging sentences.
  • Synergy of Controls: Lexical and syntactical controls were found to be synergistic. Keywords anchor the meaning, while syntax trees provide the structural "skeleton," resulting in paraphrases that are both accurate and diverse.

Conclusion and Future Work

GCPG demonstrates that standard Transformer-based architectures can effectively "understand" abstract grammatical instructions when presented as flat text sequences. While the framework marks a significant advancement, future work will address dataset noise and explore multilingual applications and more complex stylistic constraints like emotional tone.

Reference: Yang, K., Liu, D., Lei, W., Yang, B., Zhang, H., Zhao, X., Yao, W., & Chen, B. (2022). GCPG: A General Framework for Controllable Paraphrase Generation. Findings of the Association for Computational Linguistics: ACL 2022.

Summary updated

BibTeX
@inproceedings{yang2022gcpg,
  author = {Kexin Yang and Dayiheng Liu and Wenqiang Lei and Baosong Yang and Haibo Zhang and Xue Zhao and Wenqing Yao and Boxing Chen},
  title = {{GCPG: A General Framework for Controllable Paraphrase Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.318},
}
Figure