opus-mt-en-ru-4m-soup
A fine-tuned English-to-Russian machine translation model based on Helsinki-NLP/opus-mt-en-ru. The model was trained on an expanded parallel corpus containing 4 million sentence pairs, produced by combining 2 million selected pairs from KvaytG/en-ru-parallel-10m with 2 million synthetic pairs generated through back-translation.
The final weights combine the original parent model and a fine-tuned, checkpoint-averaged model using weight interpolation with alpha = 0.4. This setting was selected because it retained the parent model's BLEU score while delivering a statistically significant improvement in chrF on the evaluation corpus.
Training and model construction
1. Starting point
The original Helsinki-NLP/opus-mt-en-ru model was used as the parent model and initialization for fine-tuning.
2. Training data preparation
The source corpus was KvaytG/en-ru-parallel-10m, an English–Russian parallel dataset containing the text_en, text_ru, and score fields.
The following split was used:
| Portion | Size | Use |
|---|---|---|
| First / top portion of the corpus | 2,000,000 pairs | Original parallel training data and source for the back-translation expansion |
| Additional back-translated data | 2,000,000 pairs | Synthetic training data |
| Combined training pool | 4,000,000 pairs | Fine-tuning |
| Immediately following portion | 10,000 pairs | Validation |
The 10,000 validation pairs were taken immediately after the selected 2-million-pair training portion. They were kept separate from the stated training split.
3. Fine-tuning
The parent Helsinki-NLP/opus-mt-en-ru model was fine-tuned on the combined corpus of four million pairs. This produced the child model.
4. Checkpoint averaging
The three latest checkpoints from fine-tuning were averaged to create an averaged child model.
5. Parent–child weight interpolation
The averaged child model was interpolated with the original parent model. The selected coefficient was alpha = 0.4:
W_final = (1 - alpha) * W_parent + alpha * W_child
where W_child denotes the model obtained by averaging the three latest fine-tuning checkpoints.
Several interpolation coefficients were evaluated. The alpha = 0.4 model was selected as a compromise: it retained the parent model's BLEU level while improving chrF.
Evaluation
Evaluation data
The evaluation corpus was constructed by combining deduplicated WMT English–Russian test sets from WMT 2013 through WMT 2024. The combined file contained 27,810 sentence pairs.
Aggregate results
The parent and interpolated models were evaluated on the same examples with the same inference settings (num_beams = 5, length_penalty = 1.4, FP16, and the same input/output length and batching constraints).
| Model | BLEU | chrF2 |
|---|---|---|
Parent: Helsinki-NLP/opus-mt-en-ru | 25.7756 | 53.4735 |
Interpolated model (alpha = 0.4) | 25.7851 | 53.9538 |
| Change | +0.0095 | +0.4803 |
Paired bootstrap significance test
A paired bootstrap test with 1,000 resampling trials was run against the parent model.
| Metric | p-value | Interpretation |
|---|---|---|
| BLEU | 0.3157 | The observed difference is not statistically significant. |
| chrF2 | 0.0010 | The improvement is statistically significant. |
The results indicate a statistically significant chrF2 improvement, while the BLEU score remains statistically indistinguishable from the parent model on this evaluation corpus.
Recommended generation settings
The best observed setting was:
| Parameter | Selected value |
|---|---|
num_beams | 8 |
length_penalty | 1.2 |
Values of length_penalty both higher and lower than 1.2 resulted in worse metric scores. Similarly, increasing num_beams beyond 8 led to a deterioration in metric performance as well as slower processing speed.
Usage
from transformers import MarianMTModel, MarianTokenizer
model_name = "KvaytG/opus-mt-en-ru-4m-soup"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
# Example of precise translation
text = "Workplace harmony is crucial, emphasizing group effort rather than individual accomplishments."
inputs = tokenizer(text, return_tensors="pt", padding=True)
output = model.generate(
**inputs,
num_beams=8,
length_penalty=1.2
)
print(tokenizer.decode(output[0], skip_special_tokens=True))
License
This model is released under the Apache License 2.0.
Citation
@misc{kvaytg_opus_mt_en_ru_4m_soup,
author = {KvaytG},
title = {opus-mt-en-ru-4m-soup},
year = {2026},
publisher = {Hugging Face},
journal = {Hugging Face Models},
url = {https://huggingface.co/KvaytG/opus-mt-en-ru-4m-soup},
note = {Fine-tuned English-to-Russian MarianMT model trained on 4 million parallel sentence pairs, including 2 million back-translated synthetic pairs. Uses checkpoint averaging and parent-child weight interpolation with alpha = 0.4. Based on Helsinki-NLP/opus-mt-en-ru.}
}