Abstract
Identifying semantic equivalence between sentences, or paraphrase detection, remains a fundamental challenge in Natural Language Processing. While syntactic structure is essential for capturing meaning, structural alignment is often hindered by complex transformations and parsing errors. We present a novel, efficient algorithm for aligning syntactic phrases between paraphrased sentences by operating on parse forests (n-best parse trees) rather than single best trees. By combining a CKY-style dynamic programming approach with a flexible model that handles non-compositional alignments, our method achieves phrase alignment accuracy reaching approximately 90% of human performance.
Introduction
Paraphrase detection is a cornerstone of NLP, yet most existing methods align sentences based on word sequences or n-grams, often ignoring deeper linguistic structures. Syntactic alignment is notoriously difficult because paraphrases frequently involve complex transformations that do not follow a clean, one-to-one mapping. Previous structural approaches, such as Synchronous Context-Free Grammars (SCFG), often struggle with real-world paraphrasing where language compositionality is violated—for instance, when a single phrase in one sentence corresponds to a much larger, nested structure in another.
The proposed research aims to bridge this gap by creating a method that respects syntax while remaining flexible enough to handle these "messy" linguistic realities. A key insight is that while syntactic structure provides a powerful constraint, the model must allow for "non-compositional" jumps to accurately reflect human paraphrasing.
Methodology
The alignment algorithm is built upon four technical pillars designed to maximize both accuracy and flexibility:
- Parse Forests: Rather than relying on a single, potentially erroneous parse tree, the algorithm utilizes "parse forests"—packed representations of n-best trees. This allows the alignment process to resolve parsing ambiguities by selecting the tree structure that best fits the overall alignment.
- CKY-style Dynamic Programming: Alignment is formalized as a search for a "legitimate set" of phrase pairs. The algorithm recursively identifies alignments by examining supporting relations between child phrases, mirroring the bottom-up approach of a CKY parser.
- Non-Compositional Alignment: Standard alignment assumes compositionality—that if two phrases align, their constituent parts must also align. This paper introduces a "TRACE" mechanism to handle violations of this rule, allowing a phrase to align with an ancestor or a distant relative in the opposing tree.
- Feature-Enhanced EM: The model is trained using Expectation-Maximization (EM) with a rich feature set, including lexical heads, syntactic categories, WordNet synonyms, and word embeddings. A penalty function is included to prevent the over-use of "null" alignments.
Evaluation and Results
The model was trained on 41,000 sentence pairs from NIST OpenMT reference translations. For evaluation, a gold-standard dataset of 201 paraphrased pairs was constructed, annotated with HPSG parse trees and human-verified phrase alignments.
The proposed method achieved 83.64% Recall and 78.91% Precision, representing 92% and 89% of human performance, respectively. Ablation studies highlighted the importance of the core components:
- Forests vs. Trees: Using a 1-best tree instead of a forest resulted in a recall drop of over 3.5%, confirming that capturing parsing ambiguity is vital.
- Non-monotonicity: Removing the non-compositional logic (Monotonic) led to significant performance degradation.
- Reachability: The algorithm achieved a 98% "reachability" metric, indicating it could find a valid alignment path to the root nodes for nearly all sentence pairs, significantly outperforming more rigid grammar-based methods.
Conclusion
This work demonstrates that syntactic structure is a powerful tool for alignment when paired with sufficient flexibility. By operating on parse forests, the alignment process effectively acts as a "re-ranker" for the parser, picking the most plausible syntactic structure based on cross-sentential evidence. Future work will focus on reducing the computational complexity of forest-based operations and extending the framework to handle partial paraphrases and textual entailment.
Summary updated