Abstract
Current Natural Language Processing (NLP) models often exhibit significant brittleness when faced with minor structural variations in input text. This paper introduces Syntactically Controlled Paraphrase Networks (SCPNs), an architecture designed to rewrite sentences according to specific grammatical templates while maintaining semantic integrity. By generating "syntactic adversarial examples," the researchers demonstrate that structural changes can easily flip model predictions. Furthermore, they show that augmenting training data with these examples substantially enhances model robustness against such variations.
Introduction: The Challenge of Syntactic Variation
Most NLP models, while high-performing on standard benchmarks, are surprisingly fragile. While previous research has extensively explored "lexical" adversarial attacks—where words are swapped for synonyms—this work focuses on the more complex domain of syntactic variation.
Changing a sentence's structure (e.g., converting an active voice sentence to a passive one) requires maintaining the core meaning while completely rearranging the sentence's "shell." Standard models often fail to recognize that the underlying meaning remains unchanged despite these structural shifts.
Methodology: Syntactically Controlled Paraphrase Networks (SCPN)
The authors propose a two-stage pipeline centered around the SCPN architecture:
- Large-Scale Data Generation: To train the model, the researchers utilized "backtranslation" on the PARANMT-50M dataset. By translating English sentences into Czech and back to English, they naturally produced millions of meaning-preserving paraphrases with varying structures.
- Automatic Syntactic Labeling: These paraphrase pairs were labeled using a standard parser to identify their syntactic structures (parse trees). This created a supervised dataset where the input is a sentence and a target syntax, and the output is the desired paraphrase.
- Architecture: The SCPN is an encoder-decoder model using LSTMs, equipped with attention and "copy" mechanisms to handle rare vocabulary. The decoder is conditioned on a representation of the target parse tree at every time step, ensuring the output adheres to the requested grammatical template.
- Parse Generation: To simplify user interaction, a Parse Generator was trained to expand simple top-level templates into full, complex parse trees for the SCPN to follow.
Key Results and Robustness Gains
The SCPN proved highly effective at generating adversarial examples that "break" existing models. For the SST sentiment task, SCPN-generated paraphrases caused the model's prediction to flip in 41.8% of cases, significantly higher than the 20.2% rate for standard backtranslation baselines.
Crucially, the researchers demonstrated that these weaknesses could be mitigated through adversarial training. By augmenting the original training sets with SCPN-generated examples, the models became significantly more robust.
As shown in the results, data augmentation reduced the "broken" rate on the SST dataset from 41.8% to 31.4% without compromising accuracy on standard test data. Human evaluations further validated the approach, with crowdsourced participants rating SCPN paraphrases as grammatical and meaning-preserving approximately 62-64% of the time.
Conclusion
This research establishes that syntax can be treated as a controllable variable in neural text generation. The "syntactic blind spot" identified in state-of-the-art models highlights a critical area for improvement in NLP reliability. Future work may involve dynamic template selection or extending the framework to control other linguistic attributes such as voice, tense, or politeness.
Summary updated