Compositional Phrase Alignment and Beyond

Yuki Arase, Jun'ichi TsujiiEMNLP 2020

Abstract

Phrase alignment is a fundamental task in natural language processing, yet it remains challenging due to the prevalence of non-compositional reorderings and syntactic variations. This paper introduces a robust alignment framework that combines flexible unordered tree mapping with a novel BERT-based phrase representation. By utilizing a "SimMatrix" to encode global similarity distributions across sentence pairs, the model achieves 87.4% ALIF, reaching 95.7% of human-level performance.

Introduction

Identifying equivalent phrases across sentence pairs is critical for tasks such as paraphrase detection and textual entailment. While traditionally viewed as a compositional process—where phrase alignment is derived from constituent alignments—real-world language often exhibits non-compositional behavior. Global reorderings and significant syntactic shifts frequently break local tree-based assumptions. This research addresses these challenges by proposing a system that respects syntactic hierarchy while maintaining the flexibility to look beyond local structures.

Methodology

The proposed framework consists of two primary components:

1. Unordered Tree Mapping

The authors employ the Constrained Tree Edit Distance (CTED) algorithm. Unlike traditional ordered mapping, which is restricted by the linear sequence of phrases, unordered mapping allows for local reorderings. To maintain structural integrity, the model enforces "legitimacy conditions" including Consistency, Monotonicity, and Familiness.

Visualization of unordered tree mapping between source and target sentences.

2. SimMatrix Phrase Representation

A key innovation is the SimMatrix, which captures how a phrase relates to the entire opposing sentence rather than just its direct counterparts. The process involves computing a cosine similarity matrix between all tokens in the sentence pair, using a shallow CNN to encode this matrix into a global "similarity distribution" vector, and applying an attention mechanism to refine BERT phrase embeddings with this global context.

The SimMatrix architecture, showing the CNN-based encoding of token-level similarity into a global context vector.

3. Heuristic Post-processing

To handle the computational complexity of non-compositional alignment (an NP-hard problem), a top-down greedy heuristic is used to incorporate non-compositional alignments that reduce overall edit costs without violating structural constraints.

Datasets

Evaluation was conducted on the Syntactic Phrase Alignment Dataset for Evaluation (SPADE) and a newly introduced benchmark, ESPADA (Extended SPADA). ESPADA is currently the largest dataset of its kind, featuring 1,916 sentence pairs with gold-standard syntactic trees and human-annotated alignments from three experts.

Key Insights and Ideas

The research highlights that global context is essential for accurate alignment. By modeling the distribution of similarities across the whole sentence, the system avoids false positives where a phrase might have multiple "locally attractive" but globally incorrect matches. Furthermore, syntactic constraints serve as a powerful regularizer, pruning impossible alignments that simple similarity thresholds might miss. Fine-tuning BERT with a triplet margin loss was also found to be significantly more effective than using it as a static feature extractor.

Key Results

The complete model (BERT + SimMatrix + CTED) achieved an Alignment F-measure (ALIF) of 87.4%. This represents a substantial improvement over the previous state-of-the-art (78.6%) and reaches approximately 95.7% of the performance of trained human annotators. Ablation studies confirmed that the SimMatrix component is vital for handling complex, non-compositional cases.

Limitations and Future Work

While the system approaches human-level performance, limitations remain regarding the subjectivity of alignment and the dependency on initial parser accuracy. Future work will explore "forest alignment" to mitigate parsing errors by considering multiple possible parse trees and investigate chunk-based trees for less formal text fragments.

Summary updated

BibTeX
@inproceedings{arase2020compositional,
  author = {Yuki Arase and Jun'ichi Tsujii},
  title = {{Compositional Phrase Alignment and Beyond}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.125},
}
Figure