Introduction
Paraphrase generation—the task of rewriting a sentence while preserving its semantic meaning—is a cornerstone of natural language processing (NLP). While supervised models have achieved significant success, they rely heavily on massive, high-quality parallel datasets that are expensive to curate and often unavailable for specialized domains or low-resource languages. Furthermore, providing fine-grained control over the structure of the generated paraphrase (e.g., transforming an active sentence into a passive one) typically requires even more complex supervised signals.
To address these challenges, researchers have introduced SUP (Syntactically-informed Unsupervised Paraphrasing), a framework that learns to generate paraphrases with specific grammatical structures using only non-parallel text. By leveraging a conditional variational auto-encoder (CVAE) and a novel two-stage training process, SUP achieves syntactic control without the need for paired examples.
The Challenge of Syntactic Control
Existing controlled paraphrase models often struggle with the trade-off between semantic preservation and syntactic flexibility. If a model is too rigid, it fails to adapt to diverse target structures; if it is too loose, the meaning of the original sentence is lost. Most unsupervised approaches lack a mechanism to explicitly guide the output's syntax. SUP overcomes this by defining a "syntactic template"— a simplified version of a constituency parse tree—and using it as a control signal during generation.
The SUP Framework
The SUP architecture consists of three primary components: a Sentence Encoder, a Tree Encoder, and a Decoder. The framework operates within a CVAE latent space, where a latent variable $z_x$ captures the semantics of the input sentence $x$, and a syntactic template $s$ provides the structural blueprint.
Architecture and Syntactic Templates
A key innovation in SUP is the use of a "Top-3" syntactic template. Using a full, deep parse tree as a control signal is often too restrictive, as few sentences share identical deep structures. By limiting the template to the top three levels of a constituency parse tree, the authors identify a "syntactic skeleton" that is flexible enough to be applied across different sentences while remaining specific enough to provide meaningful structural guidance.
The Tree Encoder processes these templates using a novel bidirectional approach, moving both top-down and left-to-right to capture the hierarchical relationships within the syntax.
Two-Stage Training Strategy
Since parallel data is unavailable, SUP is trained in two distinct phases:
- Stage 1: Warmup (Reconstruction): The model is trained to reconstruct an input sentence $x$ given its own syntactic template $s$. This phase establishes the basic mapping between the latent semantic space and the syntactic structure.
- Stage 2: Fine-tuning (The SUP Framework): To enable true paraphrasing, the model is trained to generate a sentence $y$ based on a different target syntax $s'$. Two specialized loss functions guide this process:
- Syntax Controlling Loss ($\\mathcal{L}_{sc}$): A pre-trained neural parser acts as an evaluator, checking if the generated sentence $y$ actually conforms to the target syntax $s'$.
- Cycle Reconstruction Loss ($\\mathcal{L}_{cr}$): To ensure semantic consistency, the model must be able to take the generated paraphrase $y$ and reconstruct the original sentence $x$ using the original syntax $s$. This "round-trip" ensures that the core meaning is not lost during the structural transformation.
Experimental Results
SUP was evaluated on major benchmarks, including the Quora Question Pairs (QQP) and ParaNMT datasets.
- Performance: SUP significantly outperformed previous unsupervised state-of-the-art models like SIVAE. On the QQP dataset, SUP achieved an Exact Syntactic Match (ESM) rate of 78.0%, a substantial improvement over SIVAE's 65.6%.
- Comparison to Supervised Models: Remarkably, SUP's performance was competitive with supervised models like SCPN, even exceeding them in syntactic match rates on the ParaNMT dataset despite having no access to parallel pairs during training.
- Adversarial Robustness: The researchers used SUP to generate "syntactic adversaries"—sentences with identical meanings but different structures—to test sentiment classifiers. By augmenting training data with these SUP-generated paraphrases, they reduced the failure rate of sentiment models against adversarial attacks from 28.0% to 25.0%.
Conclusion and Future Directions
SUP demonstrates that high-quality, syntactically controlled paraphrasing is possible without expensive parallel datasets. By focusing on a "Top-3" syntactic skeleton and employing a cycle-consistency training regime, the model effectively decouples syntax from semantics.
While highly effective at structural manipulation, future work remains to improve lexical variation (synonym swapping) and to mitigate error propagation from the pre-trained parser used during the evaluation phase. Nonetheless, SUP represents a significant step toward more flexible and robust unsupervised text generation.
Summary updated