Abstract
Paraphrase generation is a fundamental task in natural language processing, yet it is often constrained by the availability of large-scale annotated parallel corpora. Moreover, unsupervised methods typically struggle with generating syntactically diverse outputs. This paper presents SynPG (Syntactically controlled Paraphrase Generator), an unsupervised framework that disentangles semantics from syntax. By employing a Transformer-based architecture where the semantic encoder is "blinded" to structure via the removal of positional encodings, SynPG learns to map meaning into arbitrary syntactic templates. Experimental results demonstrate that SynPG significantly outperforms unsupervised baselines in syntactic control and matches or exceeds supervised models when scaled to large unannotated datasets.
Introduction
The field of paraphrase generation faces a dual challenge: the "Data Gap" and the "Diversity Gap." High-quality supervised models require millions of annotated pairs, which are expensive to produce. Conversely, unsupervised methods like Variational Autoencoders (VAEs) often produce "lazy" paraphrases that merely substitute synonyms while retaining the original sentence structure.
The authors propose a solution that allows for fine-grained syntactic control using only raw, unannotated text. The goal is to follow a specific syntactic "blueprint"—such as converting an active sentence to a passive one—without having seen such transformations during training.
Methodology: Disentangling Meaning and Structure
The core of SynPG is its encoder-decoder architecture, designed to explicitly separate what is said from how it is said.
The SynPG Architecture
The model consists of two specialized encoders and a shared decoder:
- Semantic Encoder: Captures the core meaning. To ensure it does not learn the sentence's structure, the authors remove positional encodings. This forces the encoder to treat the input as an unordered "bag of words," focusing purely on lexical semantics.
- Syntactic Encoder: Captures the grammatical skeleton. It processes a linearized constituency parse tree. Unlike the semantic encoder, this component utilizes positional encodings to preserve the hierarchical relationships of the grammar.
- Decoder: A standard Transformer decoder that merges the semantic "cloud" and the syntactic "skeleton" to reconstruct the target sentence.
Training and Inference
During the unsupervised training phase, the model learns to reconstruct a sentence from its own semantic embedding and its own parse tree. At inference, the model performs zero-shot paraphrasing by combining the semantic embedding of a source sentence with a different target syntactic template.
Experimental Setup
The model was primarily trained on the reference sentences of the ParaNMT-50M dataset, notably ignoring the parallel pairs. A larger variant, SynPG-Large, was trained on the One Billion Word Benchmark. Evaluation was conducted across four major benchmarks: ParaNMT, Quora Question Pairs (QQP), PAN, and MRPC.
Key Results and Insights
SynPG demonstrates a remarkable ability to control output syntax while maintaining semantic fidelity.
- Superior Syntactic Control: SynPG achieved a 71.0% Template Matching Accuracy (TMA) on ParaNMT, vastly outperforming the next best unsupervised baseline, SIVAE, which reached only 30.0%.
- Competitive Quality and Scaling: When trained on the 1B word corpus and fine-tuned (SynPG-FT), the model outperformed supervised models on the Quora and MRPC datasets in both BLEU scores and syntactic accuracy.
- Word Dropout: A critical finding was that randomly dropping words during training prevents the model from simply copying the input, encouraging more diverse and flexible vocabulary usage in the generated paraphrases.
- Adversarial Robustness: Data augmented by SynPG improved model robustness against syntactic attacks. For instance, on the SST-2 sentiment task, the failure rate under attack dropped from 46.7% to 39.6%.
Conclusion and Future Work
SynPG provides a powerful framework for syntactically controlled paraphrase generation without the need for parallel data. By leveraging architectural constraints—specifically the removal of positional encodings—the model effectively disentangles semantics from syntax. While the current iteration relies on external syntactic templates, future work aims to automate template generation to create a fully end-to-end, autonomous paraphrase system.
Summary updated