[Paper Review] Scaling Laws for Neural Machine Translation
This paper presents a bivariate scaling law for encoder-decoder Transformer models in neural machine translation, showing that cross-entropy loss depends on both encoder and decoder parameter counts—not just total parameters. It finds that scaling benefits differ significantly based on whether test sets are source-original (translated) or target-original (natural), with BLEU scores plateauing on source-original data despite continued loss reduction.
We present an empirical study of scaling properties of encoder-decoder Transformer models used in neural machine translation (NMT). We show that cross-entropy loss as a function of model size follows a certain scaling law. Specifically (i) We propose a formula which describes the scaling behavior of cross-entropy loss as a bivariate function of encoder and decoder size, and show that it gives accurate predictions under a variety of scaling approaches and languages; we show that the total number of parameters alone is not sufficient for such purposes. (ii) We observe different power law exponents when scaling the decoder vs scaling the encoder, and provide recommendations for optimal allocation of encoder/decoder capacity based on this observation. (iii) We also report that the scaling behavior of the model is acutely influenced by composition bias of the train/test sets, which we define as any deviation from naturally generated text (either via machine generated or human translated text). We observe that natural text on the target side enjoys scaling, which manifests as successful reduction of the cross-entropy loss. (iv) Finally, we investigate the relationship between the cross-entropy loss and the quality of the generated translations. We find two different behaviors, depending on the nature of the test data. For test sets which were originally translated from target language to source language, both loss and BLEU score improve as model size increases. In contrast, for test sets originally translated from source language to target language, the loss improves, but the BLEU score stops improving after a certain threshold. We release generated text from all models used in this study.
Motivation & Objective
- To investigate whether encoder-decoder NMT models follow the same univariate scaling laws as decoder-only language models.
- To understand how the composition of training and evaluation data—particularly source-original vs. target-original text—affects model scaling behavior.
- To examine whether improvements in cross-entropy loss translate to gains in generation quality, measured by BLEU and BLEURT.
- To determine optimal capacity allocation between encoder and decoder for maximum performance under scaling.
- To assess the impact of synthetic data (e.g., back-translation) on scaling saturation and model quality.
Proposed method
- Empirically train a wide range of encoder-decoder Transformer models with varying encoder and decoder sizes across two language pairs.
- Model cross-entropy loss as a bivariate function of encoder and decoder parameter counts, fitting a power-law scaling formula.
- Evaluate models on both source-original (translated) and target-original (natural) test sets to assess data composition effects.
- Measure generation quality using BLEU and BLEURT scores, comparing trends across model scaling strategies.
- Use beam search with fixed hyperparameters to ensure consistent decoding across models during evaluation.
- Analyze the relationship between cross-entropy loss and generation metrics, identifying divergence points in different data regimes.
Experimental results
Research questions
- RQ1Does the cross-entropy loss of encoder-decoder NMT models follow a univariate scaling law based on total parameters, or is a bivariate formulation required?
- RQ2How does the naturalness of source and target side text in training and evaluation sets affect model scaling behavior and loss reduction?
- RQ3Do improvements in cross-entropy loss consistently translate to better BLEU or BLEURT scores across different data compositions?
- RQ4What is the optimal allocation of model capacity between encoder and decoder for maximizing translation quality under scaling?
- RQ5How does training on synthetic, back-translated data influence the saturation point of model performance?
Key findings
- A univariate scaling law based on total model parameters fails to describe NMT loss; a bivariate function of encoder and decoder parameters provides significantly better predictions.
- The power law exponent for scaling the decoder is different from that of the encoder, indicating asymmetric contributions to loss reduction.
- On target-original evaluation sets, cross-entropy loss continues to decrease with model size, and BLEURT scores improve correspondingly.
- On source-original evaluation sets, cross-entropy loss improves with size, but BLEU scores plateau after a certain model capacity, indicating a breakdown in correlation.
- The irreducible error region for source-original data is reached early, even with moderately sized models, suggesting limited benefit from scaling on such data.
- Training on back-translated (target-original) data allows continued performance gains with scale, while training on source-original data leads to early saturation, possibly due to limited diversity in translationese.
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.