WSPAlign: Word Alignment Pre-training via Large-Scale Weakly Supervised Span Prediction

Qiyu Wu, Masaaki Nagata, Yoshimasa Tsuruoka

Abstract

WSPAlign is a novel pre-training framework designed to overcome the "data bottleneck" in word alignment by leveraging massive, weakly supervised data from Wikipedia. By framing alignment as a span prediction task and training on millions of automatically annotated paragraph pairs, WSPAlign achieves new state-of-the-art results across multiple language pairs. Notably, it significantly outperforms models trained on scarce manual data and demonstrates remarkable efficiency in zero-shot and few-shot scenarios.

Introduction

Word alignment—the task of identifying correspondences between words in a source sentence and its translation—is a fundamental component of machine translation, annotation projection, and various cross-lingual NLP tasks. Historically, high-performing aligners have been constrained by a dependency on either expensive, rare manual alignment datasets or high-quality parallel corpora, which are limited for low-resource languages. Furthermore, models trained on specific datasets often fail to generalize across domains or languages.

The authors of WSPAlign propose a shift in paradigm: moving from a reliance on "perfect" gold-standard parallel sentences to utilizing the vast, noisy, and partially aligned non-parallel paragraphs found in Wikipedia. This approach aims to break the dependency on scarce manual labels by leveraging large-scale weak supervision.

Methodology

The core innovation of WSPAlign is its Weakly Supervised Span Prediction approach, which transforms the alignment problem into a machine reading comprehension task. The framework follows a multi-stage pipeline:

  1. Data Collection (Co-mentions): Instead of searching for direct translations, the authors collect paragraph pairs from Wikipedia that mention the same entity (e.g., "Ashikaga Yoshimitsu"). These paragraphs are not necessarily translations; they simply share a common topic.
  2. Automatic Annotation: Weak labels are generated using two primary strategies:
  3. Wiki Word Alignment: Spans in different languages that hyperlink to the same Wikidata entity are automatically aligned.
  4. Common Word Alignment: For non-entity words, unsupervised similarity of contextual embeddings from a Pre-trained Language Model (PLM) is used to create silver-standard alignments.
  5. Span Prediction Pre-training: The model, based on a Transformer encoder (such as mBERT or XLM-R), is trained to solve a SQuAD-style task: given a word in the source paragraph, it must predict the start and end indices of the corresponding span in the target paragraph.
  6. Symmetrization: To ensure consistency, the model predicts alignments in both directions (Source $\to$ Target and Target $\to$ Source) and averages the resulting probabilities.
Overview of the WSPAlign framework, illustrating the transition from Wikipedia paragraph pairs to span prediction pre-training.

Experimental Setup

The model was pre-trained on 2 million paragraph pairs sampled from Wikipedia across six languages: English, German, French, Romanian, Chinese, and Japanese. Evaluation was conducted on five gold-standard benchmarks, including the GALE Chinese-English Parallel Aligned Treebank (Zh-En), the Kyoto Free Translation Task (Ja-En), and standard shared task datasets for De-En, Ro-En, and En-Fr.

Results and Performance

WSPAlign established a new state of the art (SOTA) across all tested benchmarks. In supervised fine-tuning, it improved upon previous best baselines by 3.3 to 6.1 F1 points.

Performance comparison (F1 Score) of WSPAlign against baselines across different language pairs and training data sizes, highlighting zero-shot and few-shot capabilities.

Key performance insights include:

  • Zero-Shot Performance: Even without manual training data, the pre-trained WSPAlign-M6 model outperformed existing unsupervised baselines like SimAlign and Giza++ by a wide margin.
  • Few-Shot Efficiency: As shown in the results plots, with just 32 manual examples, WSPAlign reaches performance levels that previously required thousands of training instances. This makes it highly practical for low-resource scenarios where manual data is nearly non-existent.
  • Cross-lingual Transfer: Interestingly, pre-training on monolingual data (English-only paragraph pairs, denoted as WSPAlign-E) still improved performance on other language pairs, suggesting the model learns a general mechanism for alignment that transcends specific language barriers.

Conclusion and Future Work

WSPAlign demonstrates that the quantity of noisy, weakly supervised data can be more effective for pre-training than a limited amount of high-quality manual labels. By using entities as anchors and framing alignment as span prediction, the model naturally handles complex many-to-many alignments and varying word orders.

While highly effective, the method currently relies on existing PLMs and POS taggers, which may be a limitation for extremely low-resource languages. Future work involves scaling pre-training to hundreds of languages and exploring more sophisticated ways to utilize monolingual data for languages with minimal Wikipedia presence.

Summary updated

BibTeX
@inproceedings{wu2023wspalign,
  author = {Qiyu Wu and Masaaki Nagata and Yoshimasa Tsuruoka},
  title = {{WSPAlign: Word Alignment Pre-training via Large-Scale Weakly Supervised Span Prediction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  url = {https://openreview.net/forum?id=oqmS7BRtwOB},
}
Figure