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:
- Lexicon Model: Predicts frequent subwords from a predefined vocabulary.
- Character Decoder: An LSTM-based component that generates character sequences, allowing the model to handle rare or out-of-vocabulary words.
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.
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