A Discriminative Neural Model for Cross-Lingual Word Alignment

Elias Stengel-Eskin, Tzu-Ray Su, Matt Post, Benjamin Van Durme

TL;DR

This paper introduces a novel discriminative neural model for cross-lingual word alignment, integrated into a Transformer-based machine translation system. By leveraging a small amount of human-annotated data, their model significantly outperforms existing unsupervised baselines on intrinsic alignment tasks and demonstrates substantial downstream improvements in tasks like Named Entity Recognition (NER) through data projection.

What Problem Does This Paper Address?

Modern Neural Machine Translation (NMT) models, particularly those based on the Transformer architecture, have largely moved away from explicit word-to-word alignments, which were a cornerstone of older Statistical Machine Translation (SMT) systems. While NMT doesn't strictly need these alignments for translation, they are invaluable for various downstream tasks. These include transferring formatting, incorporating lexicons, and crucially, creating cross-lingual datasets through projection. This process involves projecting annotations (like NER tags) from a high-resource language to a low-resource language using word alignments. However, attention mechanisms in NMT, while intuitively similar to alignments, often don't correlate well with human annotations and exhibit systematic errors, hindering their utility for such downstream applications. This paper aims to bridge this gap by developing a neural alignment model that produces high-quality, discriminative alignments, even with limited labeled data.

Methods

The core of the paper is a novel discriminative neural alignment module designed to be integrated into an NMT architecture, specifically the Transformer. The model leverages the encoder and decoder hidden states from a pre-trained NMT model. The approach involves:

  1. Projection to a Shared Space: Source and target word representations (hidden states) are projected into a shared space using a feed-forward neural network with tanh activations.
  2. Semantic Link Calculation: The dot product of these projected vectors is computed to create a matrix of semantic "links" between source and target words.
  3. Convolutional Smoothing: A crucial step involves convolving this link matrix with a shared weight matrix. This convolution models the context-dependent nature of alignments, allowing decisions about aligning word i to j to be influenced by the alignment decisions of neighboring words. This is a key differentiator from simpler attention mechanisms.
  4. Sigmoid Normalization and Binary Classification: The convolved matrix is passed through a sigmoid function to obtain probabilities for each potential alignment. Each alignment decision is then treated as a separate binary classification problem, optimized using binary cross-entropy loss.

The model is initialized with weights from a pre-trained NMT model, allowing it to benefit from unsupervised pre-training on large amounts of bitext.

Datasets

The paper utilizes several datasets:

  • GALE Chinese-English Parallel Aligned Treebank: Used for training and evaluating the Chinese alignment model. This dataset is based on broadcast news corpora and features gold-standard alignments produced by multiple human annotators.
  • GALE Arabic-English Parallel Aligned Treebank: Used for training and evaluating the Arabic alignment model, also based on broadcast news and featuring gold-standard alignments.
  • OntoNotes 5.0 Corpus: Used for downstream NER projection experiments. This corpus provides gold-standard NER annotations for both English and Chinese.
  • WMT 2017 En-Zh bitext: Used for pre-training the Chinese NMT model.
  • Local resources for Arabic: Used for pre-training the Arabic NMT model.

The authors highlight that the GALE corpora are substantial (~1.7K-5K sentences) compared to other alignment datasets, making them suitable for training neural models.

Key Insights and Ideas

  • Discriminative Alignment is Key: The paper strongly advocates for discriminative alignment models, especially when high-quality alignments are needed for downstream tasks, rather than relying solely on attention mechanisms from NMT.
  • Limited Labeled Data is Sufficient: A small amount of human-annotated alignment data (thousands of sentences) can yield significant improvements, outperforming unsupervised methods that might use millions of sentences of bitext.
  • Annotation Quality Over Quantity: The impact of annotated alignment data on alignment score is far greater than the amount of unlabelled bitext used for pre-training. This suggests focusing on acquiring high-quality, albeit smaller, annotated datasets.
  • Context Matters for Alignment: The convolutional smoothing step is critical, demonstrating that alignments are not independent decisions and that modeling their relationships significantly boosts performance.
  • Projection for NER is Effective: The model's high-quality alignments lead to substantial improvements when used for NER data projection, making it a viable strategy for creating low-resource NER datasets.
  • Untrained Annotators Can Contribute: The feasibility of using untrained L2 speakers for alignment annotation is demonstrated, suggesting a scalable way to acquire data for new language pairs.

Key Results

  • Intrinsic Alignment Performance: The discriminative model achieved major improvements over unsupervised baselines (FastAlign and attention-based alignments) on English-Chinese (up to 27 F1 points) and English-Arabic (up to 14 F1 points) alignment tasks.
  • NER Projection Performance: When used for NER span projection, the model's alignments led to significantly better NER performance compared to using FastAlign alignments.
  • Data Efficiency: With just over half the training examples (2500 sentences), the model performed comparably to FastAlign. Halving pre-training bitext had a smaller impact than halving labeled fine-tuning data.
  • Arabic Performance: The model showed strong performance on Arabic, even with only 1.7K labeled examples, and average attention performed poorly in this setting.
  • Human Annotation Speed: Untrained L2 annotators could annotate at a rate of 4.4 sentences per minute, achieving high precision but lower recall, indicating potential for improvement with more training.

Limitations and Future Work

  • Data Requirement: The discriminative model requires labeled alignment data, which is not available for all language pairs. This limits its direct applicability to languages without such resources.
  • Annotation Effort: While the paper shows untrained annotators can contribute, acquiring thousands of annotated sentences still represents a significant effort.
  • Future Work:
    • Explore different language pairs and new, higher-quality elicited alignments.
  • Investigate architecture modifications for task-specific annotation and inference (e.g., focusing only on NER spans).
  • Extend beyond NER to other token-level tasks like coreference resolution and event detection.
  • Explore ways to increase annotation speed by focusing annotators on specific token types.

Summary updated

BibTeX
@inproceedings{stengeleskin2019discriminative,
  author = {Elias Stengel-Eskin and Tzu-Ray Su and Matt Post and Benjamin Van Durme},
  title = {{A Discriminative Neural Model for Cross-Lingual Word Alignment}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1084},
}
Figure