Introduction
Syntactically-controlled paraphrase generation (SPG) is the task of rewriting a sentence to maintain its original meaning while following a specific grammatical structure. This is often achieved by providing the model with a syntactic template, typically a parse tree. However, selecting an appropriate template is a major bottleneck. Manual selection is impractical at scale, and existing automated methods often rely on simple heuristics like frequency or syntactic similarity. These heuristics can fail when a template, though structurally similar to the source, is semantically incompatible, leading to "hallucinated" content or grammatical errors.
Methodology
The researchers proposed QSTR (Quality-based Syntactic Template Retriever), which moves beyond simple similarity to predict the actual quality of the resulting paraphrase before it is even generated.
The QSTR Retriever
QSTR utilizes a "two-tower" neural network architecture. One tower encodes the source sentence, and the other encodes a candidate syntactic template. Instead of a direct similarity measure, the model computes a correlation matrix between word embeddings and syntactic constituents. This allows the model to evaluate the "fit" of the sentence's semantics within the template's structure. The model is trained to predict a quality score aligned with ParaScore, a state-of-the-art metric for paraphrase evaluation.
Diverse Templates Search (DTS)
To address the issue of repetitive outputs when generating multiple paraphrases, the authors introduced the DTS algorithm. DTS employs Tree Edit Distance (TED) to ensure that retrieved templates for a single source sentence are structurally diverse. By enforcing a minimum distance between selected templates, the system explores a broader "syntactic neighborhood," which is particularly beneficial for data augmentation tasks.
Experimental Results
The system was evaluated on the ParaNMT-Small and QQP-Pos benchmarks. QSTR significantly outperformed previous state-of-the-art retrievers across both semantic (BLEU, Cosine Similarity) and syntactic (TED) metrics.
Key highlights include:
- Human-Level Performance: QSTR-retrieved templates often yielded paraphrases comparable in quality to those using human-annotated templates.
- Effective Data Augmentation: In few-shot learning experiments (e.g., on SST-2 and MRPC), QSTR-generated data provided more significant accuracy gains than other retrieval methods.
- Comparison with LLMs: QSTR-guided models, despite being much smaller and faster, achieved performance levels close to large language models like Vicuna-13B, while offering superior control over syntactic structure.
Conclusion and Future Work
QSTR addresses the template selection bottleneck in SPG by optimizing for predicted output quality. By combining a quality-aware retriever with a diversity-focused search algorithm (DTS), the framework produces high-quality, varied paraphrases that are highly effective for downstream NLP tasks. While the model currently relies on the ParaScore metric during training, future work may involve refining the retriever to reduce metric dependency and exploring its integration with even larger generative backbones.
Summary updated