TSDB EngineeringBack to main site

AI translations are live!

When a film or episode has no subtitle in a language its viewers need, TehTranslator now translates one from the original.

Imagine you have finally found that film you have been meaning to watch. You have the popcorn, you have the drink, and you have the mood. Then you realise the only subtitles available are in a language you do not speak. It is a proper mood killer.

That is why, when a title on The Subtitle DB has no subtitle in a language its viewers need, we now translate one. The job goes to TehTranslator.

It runs TranslateGemma 4B, the same model that came out on top when we tested eight translation models on real subtitles and again when we repeated the test on 500 titles.

The process

We are not interested in a game of Chinese whispers.

We always translate from a subtitle written by a person in the original language of the title. We never translate from another translation or from an AI transcript. If you start translating a translation, the mistakes just pile up until the dialogue makes no sense.

The translated file keeps the exact timings of the original. To keep things honest, a line near the start tells the viewer it was machine translated by TehTranslator. Once it is downloaded and passed around, it still says what it is. On the site, it is marked as AI translated, with TehTranslator listed as the uploader.

We are starting with the titles and languages where the demand is highest. We do not translate into Chinese, Japanese, Korean or Burmese yet, because every model we tested did worst in those languages.

Polishing the rough edges

Before we let this out into the wild, we translated 50 titles and read the results line by line against the originals. A score on a spreadsheet is one thing, but actually reading it is another.

We found some oddities. The plot summary we gave the model occasionally decided to just appear as a subtitle line. Italics vanished. Lines became too long for the screen. Some lines even came back with alternatives in brackets, like "désolé(e)".

We sorted those out. We also tweaked the checks that decide if a file is good enough to publish. The old checks were too strict, turning away good files, most often for names written in another alphabet or for Danish that looked a bit too much like Norwegian.

Then we tried four changes to how we prompt the model. We scored each one with COMET against human subtitles for 24 films and episodes in 12 languages.

First, we gave the model the previous lines and their translations so it could follow the conversation. We kept that. Second, we told it which names characters use for each other so it would leave them alone. We kept that too.

Then we tried sending sentences that ran over several lines as a single block. Fewer groups failed, but we had to cut the translation back into lines. This meant words appeared on screen at the wrong time, especially in Turkish where the verb sits at the end. We binned it. Finally, we tried a rule for formal and informal "you". In German, it made total strangers say "du" to each other. Not exactly the right vibe, so we dropped it.

The two changes we kept barely touched the score, but the two we dropped would have made the subtitles worse. The released version scores 83.7 on that test. Since the test has no Chinese, Japanese or Korean, you cannot compare this number with the ones in parts 1 and 2.

Opting out

If AI translations are not your cup of tea, the API lets you leave them out.

Add ai=exclude&ai_kind=translated to a request to drop translated files, or use ai=exclude on its own to drop every AI-made file, whether they are transcribed or translated. Every file in a response has an ai field set to "translated", "transcribed" or null.

The API reference has the full details.