Introduction
Traditional neural paraphrase models often treat the task as a uniform sequence-to-sequence mapping, where every word is processed through the same "black-box" mechanism. However, human paraphrasing is inherently hierarchical, typically involving the preservation of a general sentence structure (a template) while substituting specific phrases or words. For instance, "What is the reason for $x$?" naturally maps to "What makes $x$ happen?".
The Decomposable Neural Paraphrase Generator (DNPG) addresses the limitations of standard models—specifically their lack of interpretability and poor domain adaptation—by disentangling paraphrasing into two distinct levels: sentence-level templates and phrase-level swaps.
Methodology
The DNPG architecture is built on the Transformer framework but introduces a modular design to handle different linguistic granularities.
The Separator
At the core of the model is the Separator, a BiLSTM-based module. It utilizes a Gumbel-Softmax trick to assign a "granularity label" to each input word, determining whether it belongs to a local phrase-level segment or a global sentence-level template.
Multi-Granularity Encoders and Decoders
The model employs two specialized Transformer streams in parallel:
- Phrase-level Stream: This component uses local attention, focusing only on adjacent words to capture specific idioms and rare vocabulary. It incorporates a copying mechanism to manage out-of-vocabulary terms.
- Sentence-level Stream: This stream uses global attention but is restricted to tokens labeled as "sentence-level." This constraint forces the model to learn abstract templates (e.g., "How do I $x$?") while ignoring domain-specific details.
The Aggregator
Finally, an LSTM-based Aggregator merges the outputs from both the phrase-level and sentence-level decoders to generate the final word-by-word paraphrase.
Experimental Evaluation
The DNPG was evaluated on two major benchmarks: WikiAnswers (2 million noisy question pairs) and Quora Question Pairs (100,000 human-annotated duplicates).
Key Results
- In-Domain Performance: DNPG achieved a BLEU score of 41.64 on WikiAnswers, significantly outperforming standard Transformers (33.01) and Pointer-Generator models (39.36).
- Domain Adaptation: The model's modularity proved highly effective for cross-domain tasks. When trained on WikiAnswers and tested on Quora, the adapted DNPG reached a BLEU of 16.98, nearly doubling the performance of a standard Transformer with a copy mechanism (8.15).
Insights and Future Directions
The success of DNPG highlights that inductive biases—specifically restricting a model's "sight" to force hierarchical learning—can lead to more robust and interpretable AI. Because the sentence templates are often domain-invariant, the model can be fine-tuned on new topics using Reinforcement Learning even without parallel data.
While highly effective, the model currently relies on manual heuristics for initial training and can sometimes produce less diverse paraphrases in new domains by over-relying on "safe" templates. Future research may explore finer-grained decompositions, such as clause-level or lexical-level modules, to further enhance generation quality.
Summary updated