PIP: Parse-Instructed Prefix for Syntactically Controlled Paraphrase Generation

Yixin Wan, Kuan-Hao Huang, Kai-Wei Chang

Introduction

Syntactically Controlled Paraphrase Generation (SCPG) aims to rewrite a source sentence into a target sentence that preserves the original meaning while strictly adhering to a provided syntactic "skeleton" or constituency parse tree. This capability is essential for applications ranging from data augmentation to personalized text simplification.

While full fine-tuning of Pre-trained Language Models (PLMs) like BART or T5 remains the performance benchmark, it is computationally expensive and requires storing full model copies for every task. Parameter-efficient alternatives like Prefix-Tuning—which optimizes only a small set of continuous vectors (prefixes) while keeping the PLM frozen—have emerged. However, standard prefix-tuning often fails to capture the complex, discrete syntactic constraints required for SCPG, especially in low-resource settings.

The PIP Framework

To address these limitations, researchers at UCLA developed Parse-Instructed Prefix (PIP). PIP enhances standard prefix-tuning by "instructing" the tunable prefix vectors with target syntactic information. This allows the model to leverage the rich representations of the frozen PLM while being explicitly guided by the desired syntax.

The authors propose two primary variants of PIP:

  1. PIP-Direct: A "hard-coded" approach where the target parse tree is encoded into a vector that directly replaces the "value" prefix of the model’s final encoder layer.
  2. PIP-Indirect: A "soft-guided" approach that introduces a Parse Encoding Loss (PEL). This auxiliary loss encourages the prefix vectors to retain syntactic information by requiring that the original parse tree encoding be reconstructible from the prefix-attended state.
The PIP-Indirect architecture utilizes a Parse Encoding Loss (PEL) to guide prefix vectors with syntactic instructions.

Experimental Evaluation

The PIP method was evaluated using a frozen BART-base model across several benchmarks, including ParaNMT for training and Quora, MRPC, and PAN for cross-domain generalization. The primary metrics included BLEU and ROUGE for semantic quality, and Template Matching Accuracy (TMA) and Tree Edit Distance (TED-3) for syntactic adherence.

Key Results

As shown in the experimental results, PIP-Indirect consistently outperforms standard prefix-tuning across all datasets and metrics.

Performance comparison of PIP variants against Seq2seq fine-tuning and standard Prefix-Tuning across multiple datasets.

On the ParaNMT dataset, PIP-Indirect achieved a BLEU score of 50.82 and a TMA of 86.20, significantly narrowing the gap with full fine-tuning (BLEU 57.17, TMA 89.94) while using approximately 10x fewer trainable parameters (18.78M vs. 139.42M). Notably, PIP-Indirect also demonstrated superior generalization to unseen domains compared to standard prefix-tuning.

Discussion and Conclusion

A critical insight from the study is that task-specific "instruction" is more valuable than raw parameter capacity. An ablation study revealed that a larger version of standard prefix-tuning (Prefix-Tuning-Large) actually performed worse than the smaller PIP models, suggesting that the bottleneck in SCPG is not the number of parameters, but how effectively they capture syntactic constraints.

PIP demonstrates that high-quality, syntactically controlled text generation is achievable without the prohibitive costs of full fine-tuning. By providing explicit syntactic guidance to a small set of tunable parameters, PIP offers a scalable and efficient solution for complex language generation tasks.

Summary updated

BibTeX
@inproceedings{wan2023pip,
  author = {Yixin Wan and Kuan-Hao Huang and Kai-Wei Chang},
  title = {{PIP: Parse-Instructed Prefix for Syntactically Controlled Paraphrase Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.659},
}
Figure