Subword Sampling for Low Resource Word Alignment

Ehsaneddin Asgari, Masoud Jalili Sabet, Philipp Dufter, Christoph Ringlstetter, Hinrich SchützearXiv 2020

Abstract

Annotation projection is an important area in NLP that can greatly contribute to creating language resources for low-resource languages. Word alignment plays a key role in this setting. However, most of the existing word alignment methods are designed for a high resource setting in machine translation where millions of parallel sentences are available. This amount reduces to a few thousands of sentences when dealing with low-resource languages failing the existing established IBM models. In this paper, we propose subword sampling-based alignment of text units. This method's hypothesis is that the aggregation of different granularities of text for certain language pairs can help word-level alignment. For certain languages for which gold-standard alignments exist, we propose an iterative Bayesian optimization framework to optimize selecting possible subwords from the space of possible subword representations of the source and target sentences. We show that the subword sampling method consistently outperforms word-level alignment on six language pairs: English-German, English-French, English-Romanian, English-Persian, English-Hindi, and English-Inuktitut. In addition, we show that the hyperparameters learned for certain language pairs can be applied to other languages at no supervision and consistently improve the alignment results. We observe that using $5K$ parallel sentences together with our proposed subword sampling approach, we obtain similar F1 scores to the use of $100K$'s of parallel sentences in existing word-level fast-align/eflomal alignment methods.

The Challenge of Low-Resource Word Alignment

In Natural Language Processing, annotation projection is a vital technique for bootstrapping resources, such as part-of-speech taggers or sentiment lexicons, for low-resource languages. It works by "projecting" labels from a high-resource language (like English) to a low-resource one via word alignment links in a parallel corpus.

However, industry-standard alignment models, such as the IBM models, are notoriously data-hungry. While they excel when trained on millions of sentences, their performance degrades significantly in low-resource scenarios—such as the Bible Parallel Corpus—where only 5,000 to 10,000 sentences may be available. This research addresses the "data gap" by moving beyond the word level, exploring how subword units can provide a denser signal for alignment when data is scarce.

Methodology: Subword Sampling and Optimization

The proposed framework introduces Subword Sampling, which treats words not as atomic units, but as decomposable sequences using Byte-Pair Encoding (BPE). The core of the method involves three main components:

  1. Sentence Subword Space: The authors define a 2D grid of possible segmentations for a language pair. Each axis represents the number of BPE merging steps (vocabulary size) for the source and target languages.
  2. Iterative Bayesian Optimization: Searching every possible subword combination is computationally prohibitive. The framework uses Bayesian optimization to efficiently find the optimal set of segmentation schemes and a threshold ($\lambda$) representing the minimum ratio of subword segments required to confirm a word-level link.
  3. Aggregation: Instead of relying on a single view, the final alignment aggregates links from multiple granularities. This ensembling effect smooths out errors inherent in any single segmentation level.
The search space for subword granularities, where Bayesian optimization selects optimal vocabulary pairs for alignment aggregation.

Experimental Setup and Datasets

The study utilizes gold-standard word alignments from the WPT 2003 and 2005 shared tasks, covering English paired with German, French, Romanian, Persian, Hindi, and Inuktitut. To simulate low-resource constraints, training sets were downsampled to 5,000 sentences (3,000 for Hindi). The method was also evaluated on mid-resource sets (50k to 600k sentences) for Romanian, Inuktitut, and Persian to test scalability.

Results and Analysis

The subword sampling method consistently outperformed word-level baselines (fast_align and eflomal) across all six language pairs, with F1 score improvements ranging from 1.4 to 8.0 percentage points. Most notably, using only 5,000 parallel sentences, the method achieved F1 scores comparable to standard methods using over 100,000 sentences.

Alignment matrices demonstrating the model's ability to handle complex linguistic structures like compounds and multi-word expressions.

Linguistic Insights

  • Compound Cracking: Subword sampling is particularly effective at aligning long compounds (common in German) to multiple English words, a task where standard word-level models often fail.
  • Universal Generalizability: Optimal subword settings learned on one language pair (e.g., English-German) were found to consistently improve results for unseen pairs (e.g., English-Persian), suggesting the benefits of subword sampling are not strictly language-specific.
  • Regularization via Ensembling: Aggregating different subword views acts as a regularizer, capturing various semantic nuances and improving overall fertility and recall.

Conclusion

This work demonstrates that subword sampling is a powerful tool for low-resource word alignment, significantly reducing the data requirements for high-quality results. While the initial optimization requires a small gold-standard seed, the resulting hyperparameters generalize well across languages. Future work will explore alternative segmentation methods and the direct impact of improved alignment on downstream tasks like Named Entity Recognition (NER).

Summary updated

BibTeX
@misc{asgari2020subword,
  author = {Ehsaneddin Asgari and Masoud Jalili Sabet and Philipp Dufter and Christoph Ringlstetter and Hinrich Schütze},
  title = {{Subword Sampling for Low Resource Word Alignment}},
  year = {2020},
  eprint = {2012.11657},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.11657},
}
Figure