Neural semi-Markov CRF for Monolingual Word Alignment

Wuwei Lan, Chao Jiang, Wei Xu

Introduction

Monolingual word alignment (MWA) involves identifying semantically equivalent words or phrases between two sentences in the same language. This task is foundational for various natural language processing applications, including paraphrase generation, text simplification, and bias detection. However, traditional MWA models often struggle with phrase-level alignments—where semantic relationships are many-to-many—and have historically relied on small, noisy, or syntactically constrained datasets.

Methodology: Neural semi-Markov CRF

To address these challenges, we propose a Neural semi-Markov Conditional Random Field (CRF) model. Unlike standard token-level CRFs, a semi-Markov CRF segments input sentences into variable-length spans (up to length $D$) and labels these spans directly. This approach naturally captures multi-word expressions and non-linguistic phrases in context.

The Neural semi-Markov CRF architecture, featuring span interaction and bidirectional training.

The model architecture consists of several key layers:

  • Span Representation: We utilize SpanBERT to generate contextualized embeddings. Spans are represented by concatenating boundary token states with a self-attention vector over internal words.
  • Span Interaction: A two-layer feed-forward network computes the semantic similarity between source and target spans.
  • Markov Transition: This layer scores transitions based on relative distance, leveraging the observation that word alignments typically follow a roughly diagonal path.
  • Bidirectional Training: The model is trained to align in both directions (source-to-target and vice versa), using the intersection of these predictions during inference to maximize precision.

The MultiMWA Benchmark

A significant contribution of this work is the introduction of the Multi-Genre Monolingual Word Alignment (MultiMWA) benchmark. MultiMWA is the largest and most diverse human-annotated dataset for this task, spanning four distinct genres: News (MTRef), Wikipedia (Wiki), News simplification (Newsela), and scientific writing (arXiv).

Comparison of MultiMWA with existing monolingual word alignment datasets.

Compared to existing datasets like iSTS or MSR RTE, MultiMWA offers higher quality and greater scale, providing a more robust foundation for training and evaluating MWA systems.

Key Results and Insights

Our model achieves state-of-the-art performance, reaching over 90% F1 on the MultiMWA-MTRef dataset. It consistently outperforms previous models such as Jacana and Sultan et al., as well as competitive Question Answering (QA) baselines.

Key findings include:

  • Span-based Advantages: Moving to span-level tagging eliminates the need for complex post-processing heuristics to handle many-to-many alignments.
  • Impact of Pre-training: Using SpanBERT instead of standard BERT resulted in a 1.3 F1 point improvement, highlighting the importance of span-specific pre-training.
  • Cross-Domain Generalizability: Models trained on news data (MTRef) generalize well to Wikipedia and scientific text, suggesting a domain-independent logic in human semantic alignment.
  • Downstream Utility: Integrating our aligner into a text simplification model (EditNTS) improved the SARI score by 0.9 on Newsela and 0.6 on Wikipedia-auto, demonstrating the utility of high-quality alignment in practical applications.

Limitations and Future Work

Despite its success, the model faces certain limitations. Error analysis shows that 58.6% of errors relate to phrase boundary identification (e.g., misidentifying the exact extent of a multi-word phrase). Additionally, the current architecture assumes continuous spans, making it unable to handle "skip alignments" (e.g., "owes ... to"). Future research will explore architectures capable of representing non-contiguous spans and further refining phrase boundary detection.

Summary updated

Abstract

Monolingual word alignment is important for studying fine-grained editing operations (i.e., deletion, addition, and substitution) in text-to-text generation tasks, such as paraphrase generation, text simplification, neutralizing biased language, etc. In this paper, we present a novel neural semi-Markov CRF alignment model, which unifies word and phrase alignments through variable-length spans. We also create a new benchmark with human annotations that cover four different text genres to evaluate monolingual word alignment models in more realistic settings. Experimental results show that our proposed model outperforms all previous approaches for monolingual word alignment as well as a competitive QA-based baseline, which was previously only applied to bilingual data. Our model demonstrates good generalizability to three out-of-domain datasets and shows great utility in two downstream applications: automatic text simplification and sentence pair classification tasks.
BibTeX
@inproceedings{lan2021neural,
  author = {Wuwei Lan and Chao Jiang and Wei Xu},
  title = {{Neural semi-Markov CRF for Monolingual Word Alignment}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.531},
}
Figure