NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Supervised Word Alignment Method based on Cross-Language Span Prediction using Multilingual BERT

Masaaki Nagata, Katsuki Chousa, Masaaki Nishino

Abstract

Word alignment—the task of identifying corresponding words in parallel text—is a cornerstone of machine translation and cross-lingual annotation projection. Traditional statistical methods and recent neural aligners often require massive bitexts to achieve high accuracy. This paper introduces a supervised method that reimagines word alignment as a cross-language span prediction task. By leveraging the pre-trained multilingual BERT (mBERT) model and framing the problem as a question-answering task, the proposed method achieves state-of-the-art performance with remarkably small amounts of training data, outperforming previous benchmarks by over 13 F1 points on certain datasets.

Introduction

Word alignment is essential for various NLP tasks, including projecting linguistic annotations, enforcing terminology constraints, and improving post-editing interfaces. For decades, the field relied on statistical tools like GIZA++, which were developed in the 1990s. While neural network-based aligners have recently emerged, they typically suffer from a "data hunger" problem, requiring millions of parallel sentences to reach high accuracy. This makes them impractical for low-resource languages or specialized domains where massive bitexts are unavailable.

Example of word alignment between Japanese and English sentences, illustrating the complex reordering and many-to-many mappings involved.

This research addresses the need for a supervised method that is both highly accurate and data-efficient, capable of learning from just a few hundred manually aligned sentences.

Methodology

Cross-Language Span Prediction

The core innovation of this work is framing word alignment as a Cross-Language Span Prediction task, identical to the format used in the SQuAD (Stanford Question Answering Dataset) challenge. To find the alignment for a source word, the model treats that word as a "question" and the entire target sentence as the "context." The model then predicts the start and end points (the span) of the corresponding word(s) in the target sentence.

Illustration of the span prediction mechanism where source tokens are treated as queries to identify corresponding spans in the target sentence.

Contextualized Queries

Because single words (e.g., "of") can be ambiguous, the authors include the source word's surrounding context in the "question" side of the model. Experiments revealed that using the entire source sentence as context for the question yielded the best results, jumping F1 scores from 59.3 to 77.6 in Japanese-English tests.

Multilingual BERT and Symmetrization

The model fine-tunes a pre-trained multilingual BERT (mBERT) model. Since mBERT is trained on 104 languages, it possesses an inherent cross-lingual understanding that can be leveraged for span prediction. Because the model is directional (Source → Target), it is run in both directions, and the results are combined using a "bidirectional average" (bidi-avg) heuristic to ensure consistency and improve recall.

Experimental Setup and Results

The method was evaluated on five diverse language pairs: Chinese-English (Zh-En), Japanese-English (Ja-En), German-English (De-En), Romanian-English (Ro-En), and English-French (En-Fr). For European languages, the model used as few as 150 to 300 training sentences.

Key results include:

  • State-of-the-Art Accuracy: On Chinese-English data, the model achieved an 86.7 F1 score, a 13.3-point improvement over the previous supervised state-of-the-art (DiscAlign).
  • Surpassing Statistical Baselines: On Japanese-English, it reached 77.6 F1, far surpassing GIZA++ (57.6 F1).
  • Data Efficiency: The model outperformed previous neural methods that utilized 4 million bitexts for pre-training, despite using zero additional bitexts beyond the small gold alignment sets.
  • AER Improvements: On German-English, it achieved an Alignment Error Rate (AER) of 11.4, significantly better than the previous best of 16.0.

Discussion and Conclusion

The success of this method highlights that finding a word's translation is functionally equivalent to finding the answer to a factoid question in a paragraph. This allows alignment research to benefit from the rapid progress in the Question Answering field. The power of pre-training is evident; mBERT's existing cross-lingual mapping allows a small amount of "gold" data to effectively teach the model how to extract alignment knowledge.

Future work will address limitations such as discontinuous alignments (e.g., German negation "nicht ... mehr") by exploring n-best span predictions. Additionally, the authors plan to test more compact models like DistilBERT for faster inference and more powerful multilingual models like XLM-RoBERTa to further push accuracy boundaries.

Summary updated

BibTeX
@inproceedings{nagata2020supervised,
  author = {Masaaki Nagata and Katsuki Chousa and Masaaki Nishino},
  title = {{A Supervised Word Alignment Method based on Cross-Language Span Prediction using Multilingual BERT}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.41},
}
Figure