[Paper Review] On Optimal Transformer Depth for Low-Resource Language Translation
This paper investigates optimal Transformer depth for low-resource neural machine translation, finding that shallow-to-moderate depth models (3 encoder and 3 decoder layers) outperform deeper models (12 layers) on English-to-Setswana, Sepedi, and Afrikaans translation tasks. Despite using fewer parameters and less training time, the medium-depth model achieves a new state-of-the-art BLEU score of 72.43 on English-to-Afrikaans, more than doubling the previous best score.
Transformers have shown great promise as an approach to Neural Machine Translation (NMT) for low-resource languages. However, at the same time, transformer models remain difficult to optimize and require careful tuning of hyper-parameters to be useful in this setting. Many NMT toolkits come with a set of default hyper-parameters, which researchers and practitioners often adopt for the sake of convenience and avoiding tuning. These configurations, however, have been optimized for large-scale machine translation data sets with several millions of parallel sentences for European languages like English and French. In this work, we find that the current trend in the field to use very large models is detrimental for low-resource languages, since it makes training more difficult and hurts overall performance, confirming previous observations. We see our work as complementary to the Masakhane project ("Masakhane" means "We Build Together" in isiZulu.) In this spirit, low-resource NMT systems are now being built by the community who needs them the most. However, many in the community still have very limited access to the type of computational resources required for building extremely large models promoted by industrial research. Therefore, by showing that transformer models perform well (and often best) at low-to-moderate depth, we hope to convince fellow researchers to devote less computational resources, as well as time, to exploring overly large models during the development of these systems.
Motivation & Objective
- To investigate the impact of Transformer depth on performance in low-resource neural machine translation.
- To challenge the prevailing trend of using very deep Transformers in low-resource settings, where large models are hard to optimize.
- To identify an optimal depth range that balances performance and computational efficiency for low-resource language pairs.
- To provide theoretical motivation based on signal propagation in ReLU networks with dropout, which may constrain stable information flow in deep architectures.
- To advocate for smaller, more efficient models in low-resource NMT to reduce computational burden for under-resourced communities.
Proposed method
- Trained three Transformer variants: shallow (2 layers), medium (6 layers), and deep (12 layers), on English-to-Setswana, Sepedi, and Afrikaans translation tasks.
- Used the Autshumato dataset preprocessed by Martinus & Abbott (2019), ensuring comparability with prior work.
- Applied standard Transformer components including multi-head attention, feed-forward networks, and residual connections with layer normalization.
- Employed dropout and ReLU activations throughout, consistent with the original Transformer architecture.
- Conducted ablation studies comparing BLEU scores across different depths to evaluate performance trade-offs.
- Used theoretical insights from signal propagation in noisy ReLU networks (Schoenholz et al., 2016; Pretorius et al., 2018) to guide depth selection.
Experimental results
Research questions
- RQ1Does increasing Transformer depth improve performance in low-resource neural machine translation?
- RQ2Is there an optimal depth range for Transformer models in low-resource settings that balances performance and training stability?
- RQ3Can shallower or moderately deep Transformers outperform the standard 12-layer configuration in low-resource translation tasks?
- RQ4To what extent do theoretical signal propagation constraints in ReLU networks with dropout limit effective depth in Transformers?
- RQ5Can smaller models achieve state-of-the-art performance with reduced computational cost in low-resource NMT?
Key findings
- The medium-depth model (3 encoder and 3 decoder layers) achieved a new state-of-the-art BLEU score of 72.43 on English-to-Afrikaans translation, more than doubling the previous best score of 35.26.
- The medium-depth model outperformed previous baselines on both English-to-Setswana (30.49 BLEU vs. 28.07) and English-to-Afrikaans translation tasks.
- Despite using approximately half the number of parameters and less training time, the medium-depth model achieved superior performance on two of the three low-resource language pairs.
- The deep model (12 layers) underperformed the medium-depth model on all three tasks, indicating that increased depth is detrimental in low-resource settings.
- The model for Sepedi translation performed worse than the previous baseline, though attempts to reproduce the baseline yielded similar performance, suggesting potential data or hyperparameter sensitivity.
- The results support the hypothesis that signal degradation due to dropout and ReLU activation limits stable information flow in very deep Transformers, favoring moderate depth.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.