Structural Biases for Improving Transformers on Translation into Morphologically Rich Languages

Paul Soulos, Sudha Rao, Caitlin Smith, Eric Rosen, Asli Celikyilmaz, R. Thomas McCoy, Yichen Jiang, Coleman Haley, Roland Fernandez, Hamid Palangi, Jianfeng Gao, Paul Smolensky

Introduction

Translating into morphologically rich languages (MRLs) like Turkish or Inuktitut presents a significant challenge for standard Transformer models. In these languages, a single word often encapsulates complex grammatical information through sequences of morphemes—stems and suffixes—that would require an entire phrase in English. While Transformers have achieved state-of-the-art results in many translation tasks, they are fundamentally "structure-agnostic." They rely on vast amounts of data to implicitly learn linguistic relationships, which is often unavailable for MRLs. This research explores the introduction of "structural biases" to improve translation quality and sample efficiency.

Proposed Methods: Injecting Structural Bias

The authors investigate two primary methods for introducing structural awareness into the translation pipeline: architectural modification and linguistically-informed data preprocessing.

The TP-Transformer (TPT)

The TP-Transformer is an architectural evolution of the standard Transformer based on Tensor Product Representations. Unlike standard attention mechanisms that treat tokens as monolithic entities, the TPT explicitly attempts to disentangle "content" (fillers) from "structure" (roles). It augments the attention mechanism with a role vector, allowing the model to learn how to apply grammatical structures (like suffixes) independently of specific word meanings.

The TP-Transformer architecture augments standard attention with role vectors and Hadamard products to disentangle content from structural position.

Morphological Tokenization

Standard tokenization methods like Byte-Pair Encoding (BPE) split words based on character frequency. In MRLs, this often results in "unnatural" splits that break meaningful morphemes. The authors propose using language-specific morphological parsers to ensure that words are segmented into their actual constituent stems and suffixes before training, providing the model with a clear, linguistically grounded starting point.

Experimental Setup

The study evaluates these methods on two target languages:

  • English-Turkish: Using the Open Subtitles corpus (scaled at 1.4M, 5M, and 36M sentence pairs) and the SETimes news corpus.
  • English-Inuktitut: Using the Nunavut Hansard Corpus (1.3M sentence pairs).

Results and Analysis

The introduction of structural biases led to significant improvements in translation quality, particularly in low-resource settings.

Sample Efficiency and Complexity Correlation

A key finding is that structural biases act as a "shortcut" for the model. In low-resource Turkish scenarios (1.4M sentences), morphological tokenization provided a massive ~8 BLEU point jump over the baseline. While the performance gap narrows as the dataset size increases, the structural biases consistently allow the model to reach higher performance levels with less data.

Furthermore, the effectiveness of these methods is directly correlated with the morphological complexity of the input. As the number of morphemes per word increases, the performance gain from using TPT or morphological tokenization becomes more pronounced.

BLEU score improvements relative to the baseline Transformer-BPE model across different data scales and tokenization methods, showing a positive correlation with morphological density.

Qualitative Improvements

Human evaluation by native speakers confirmed that the TP-Transformer is significantly better at maintaining correct word order and subject-verb agreement. This suggests that the "role-filler" disentanglement successfully helps the model capture the underlying syntax of the target language.

Conclusion

This research demonstrates that "hard-coding" a preference for linguistic structure—either through architecture or tokenization—is a powerful tool for machine translation in data-constrained or morphologically complex environments. While the benefits of architectural changes like the TPT may diminish with massive datasets, they remain a vital strategy for improving the sample efficiency and grammatical accuracy of models for the world's many morphologically rich languages.

Summary updated

BibTeX
@misc{soulos2022structural,
  author = {Paul Soulos and Sudha Rao and Caitlin Smith and Eric Rosen and Asli Celikyilmaz and R. Thomas McCoy and Yichen Jiang and Coleman Haley and Roland Fernandez and Hamid Palangi and Jianfeng Gao and Paul Smolensky},
  title = {{Structural Biases for Improving Transformers on Translation into Morphologically Rich Languages}},
  year = {2022},
  eprint = {2208.06061},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.06061},
}
Figure