Subword Segmental Machine Translation: Unifying Segmentation and Target Sentence Generation

Francois Meyer, Jan BuysACL 2023

Abstract

Traditional neural machine translation (NMT) treats subword segmentation as a fixed preprocessing step, which often fails to capture the linguistic nuances of morphologically complex languages. We present Subword Segmental Machine Translation (SSMT), a model that unifies segmentation and translation into a single trainable process. By treating segmentation as a latent variable and employing a novel dynamic decoding algorithm, SSMT learns to segment words on the fly. Our evaluation across several low-resource, agglutinative languages demonstrates that SSMT significantly improves translation quality and morphological consistency compared to standard task-agnostic methods like BPE.

Introduction

Most modern NMT systems rely on algorithms like Byte-Pair Encoding (BPE) or Unigram Language Modeling (ULM) to decompose words into subwords. However, these segmenters are "task-agnostic"—they are executed once before training and remain static. For morphologically rich languages, where a single word may contain a root and multiple affixes, fixed segmentations often fail to align with actual linguistic meaning. This is particularly problematic in low-resource settings. SSMT addresses this by making segmentation a learnable part of the model, optimized specifically for the translation task.

Methodology

SSMT is a Transformer-based encoder-decoder architecture that treats subword segmentation as a latent variable. The decoder generates target sentences using a mixture of two components:

  1. Lexicon Model: Predicts frequent subwords from a predefined vocabulary.
  2. Character Decoder: An LSTM-based component that generates character sequences, allowing the model to handle rare or out-of-vocabulary words.
The SSMT architecture utilizes a mixture model combining a lexicon and a character-level decoder to unify segmentation and generation.

Training and Dynamic Decoding

During training, the model uses a dynamic programming algorithm to sum the probabilities of all possible segmentations of a target sentence. For inference, the authors introduce Dynamic Decoding. Unlike standard beam search, this algorithm looks one character ahead and maintains potential beams for different segmentation paths, retrospectively selecting the most probable one.

Key Results and Insights

SSMT was evaluated on English translation into six languages representing different morphological types, including Xhosa, Zulu, Swati, and Finnish.

Performance in Low-Resource Settings

SSMT outperformed or matched all baselines (BPE, ULM, and DPE) on all agglutinative conjunctive languages. The most significant gains were observed in Swati, the most data-scarce language in the study, where SSMT achieved a 26.2 chrF score, compared to BPE's 23.4.

Comparison of chrF scores across different subword methods, highlighting SSMT's competitive performance in complex linguistic settings.

Emergent Morphology

One of the most striking findings is that SSMT "discovers" linguistic morphology without explicit supervision. In Xhosa, the model achieved a morpheme boundary identification F1 score of 58.90, nearly double that of BPE (30.19). This suggests that task-specific segmentation leads to subwords that are much closer to actual linguistic morphemes.

Limitations and Future Work

The primary trade-off for SSMT's accuracy is computational cost. Training takes roughly 10 times longer than standard NMT due to dynamic programming requirements, and inference is significantly slower (approx. 15 seconds per sentence). Future work will focus on optimizing these processes and extending dynamic decoding to other text generation tasks.

Summary updated

BibTeX
@inproceedings{meyer2023subword,
  author = {Francois Meyer and Jan Buys},
  title = {{Subword Segmental Machine Translation: Unifying Segmentation and Target Sentence Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.175},
}
Figure