TSDB EngineeringBack to main site

Testing translation models on subtitles, part 1

We tested eight open translation models on 9,960 lines of human-made subtitles to find the best one for translating subtitles on The Subtitle DB.

ENESFRDEPTITNLPLTRARJAKOZHRUSVCSFIEL

We are building a Translate option for The Subtitle DB. The idea is simple. If you find a title that has no subtitle in your language, you just ask for one, and we translate it from the subtitle in the title's original language.

But before we start flipping switches, we had a problem. Which model do we actually use?

We wanted translations that didn't sound like a broken toaster, and we wanted them fast. Because let's be honest, nobody wants to sit there staring at a loading bar while their film is paused on a cliffhanger. To figure it out, we put eight open models through their paces using real subtitles and measured exactly how they performed.

The suspects

We didn't just pick any model off the shelf. We only looked at those we can run ourselves and whose licenses allow commercial use.

The lineup looked like this:

  • TranslateGemma 4B, Google's translation model built on Gemma 3
  • Hy-MT2 1.8B, Tencent's translation model
  • MiLMMT 1B, Xiaomi's translation model for 46 languages
  • LMT 0.6B and LMT 1.7B, two sizes of NiuTrans's translation model for 60 languages
  • MADLAD-400 3B, Google's translation model for over 400 languages
  • M2M100 418M, Meta's translation model for 100 languages
  • OPUS-MT, the University of Helsinki's family of small models, one for each language pair. Where there was no model for a pair, we translated into English first and then out of it.

The first five are small language models trained for translation. The last three are the older sort of translation models that were the industry standard before language models.

Building the test set

To test them, we picked 250 pairs of subtitles. Each pair consisted of a subtitle in the original language and a human-made version in another language for the same release. We lined them up by their timings and kept a passage of 40 lines where they matched.

That gave us 9,960 lines from 249 movies and episodes, spanning 30 source languages and 65 target languages. English was the source for 110 of them, followed by French, Spanish, Chinese, Italian, German and Japanese.

One detail. Every subtitle in the set was uploaded before 2020. Why? Because these days, plenty of uploads are already machine translated. We didn't want to grade a model by comparing it to another machine's homework.

Each model translated the 40 lines of a passage using the title as context. The language models worked in chunks of 10 lines, or one by one if they couldn't keep 10 apart. LMT could never manage 10, so we timed it one line at a time.

The scoring system

We compared the results against the human subtitles using two different yardsticks.

First, there is COMET. This is a model trained on thousands of ratings from professional translators. It looks at the source, the translation and the human version to judge if the meaning actually got across. This was our main measure.

Then there is chrF++. This one is simpler. It just counts how many characters and words the translation shares with the human version. It is easy to repeat, but it has a flaw. It marks down a perfectly good translation just because it used different words.

Both use a scale of 0 to 100. We also kept an eye out for models that got confused and translated into the wrong language, copied lines over without translating them, or got stuck in a loop repeating themselves.

For speed, we measured source words translated per second and the time it takes to finish a typical 1,500-line movie. Every model ran on the same hardware under the same limits, so the results are for comparing the models against one another.

The results

ModelCOMETchrF++Words per secondMinutes per movieWrong language
TranslateGemma 4B75.340.81510.41.7%
MiLMMT 1B75.140.6266.39.4%
Hy-MT2 1.8B74.239.2207.96.8%
LMT 1.7B71.836.6257.17.3%
MADLAD-400 3B71.441.6208.12.1%
OPUS-MT69.638.32900.60.9%
M2M100 418M67.736.6961.70.9%
LMT 0.6B66.632.9276.67.7%

OPUS-MT does not have a route for every pair, so its scores cover the 230 of 234 passages it could actually handle. The other models scored about the same on that same subset.

TranslateGemma took the crown for the best translations and was the most reliable. It almost never used the wrong language and handled slang the best. MiLMMT was close, missing out by a fraction of a point, and it was faster at 26 words per second compared to 15. However, almost one in ten passages came back in the wrong language. Hy-MT2 matched TranslateGemma in the languages it supports but fell well behind elsewhere.

Then there was OPUS-MT. The surprise of the bunch. It is about 19 times faster than TranslateGemma and can translate a whole movie in well under a minute. The cost is the quality. It lost more of the meaning (about six COMET points) and was weakest in Korean, Japanese and Chinese.

Speaking of which, Chinese, Japanese, Korean and Burmese were the hardest target languages for every single model. Names were also a problem. Not one of them translated "Vlad" correctly from Chinese.

We had run the same test earlier on 250 pairs from any year. The four models we tested both times finished in the same order, and TranslateGemma came out on top with a COMET score of 76.3.

What's next

We will use these results to pick the model for the Translate option, and we will keep checking its output against these same measures.

Part 2 runs the same test on 500 titles.