Back to Case Studies

Translation Outlier Detection

ML and Multilingual Embeddings to Catch Bad Segments Before QA

ProductionMedia, Marketing & Language ServicesJul 2021 – Jan 2023NLP, Knowledge Systems & Generative AI
3.3x
Fewer errors reaching QA and clients
2 signals
Post-editing risk and similarity
11M
Translation-memory segments learned
Production
On the company's language-AI platform

My Role

Role
ML lead & approach designer
At CHI Software
Team
—
Stage reached
In production
Key decisions
  • Post-editing edit distance on 11M segments as labels
  • Similarity averaged across several multilingual models
  • Outlier thresholds from fitted score distributions

Approach at a Glance

Details
  1. 1Learning from 11M Segments
  2. 2Linguistic Risk Features
  3. 3Risk Scores and Outlier Thresholds
  4. 4Multilingual Semantic Similarity (built by me)
  5. 5Detector Integration

Executive Summary

An ML upgrade of the translation outlier detector at a global language-services company. Every large translation job contains a small number of segments that are wrong in ways that are easy to miss: a mistranslated sentence, a dropped clause, a segment that doesn't match its source at all. Reviewers can't read everything, so the goal is to point them to the segments most likely to be wrong.

I designed the approach and led the ML side: the risk model and the detector were implemented under my lead, and I built the multilingual similarity part myself. It flags outliers with two complementary signals:

  • Post-editing risk: predicts how much post-editing a segment is likely to need, from linguistic features learned on 11 million translation-memory segments.
  • Semantic mismatch: compares each source segment with its translation in a shared multilingual embedding space, averaging several XLM-RoBERTa and mBERT models, and flags pairs whose meaning doesn't line up.

With the upgraded detector, 3.3x fewer errors reached QA and clients. It runs in production on the company's language-AI platform, processing files of up to 50,000 segments in one run.


Client Profile

The company translates very large volumes of technical and corporate content. Quality assurance is a mix of automated checks and human review, and human review is the expensive part. Missing an error means it reaches the client, and checking everything by hand is not affordable.

What made outlier detection hard:

  • Errors are rare and varied: most segments are fine, and the bad ones fail in different ways.
  • Surface checks aren't enough: a translation can look well formed and still say something different from the source.
  • Many languages: the check has to work across language pairs, not for one language at a time.
  • Volume: tens of thousands of segments per file must be scored fast enough to fit into the workflow.

Technical Approach

  1. Learning from 11M Segments – I based the model on the company's translation memories: about 11 million source segments with their machine translation and final post-edited version. The edit distance between them shows how much each segment actually had to be fixed, which gives a ground truth for "risky" without manual labelling.

  2. Linguistic Risk Features – Each source segment is described by features that make translation error-prone: the share of very long words, words with initial capitals, camelCase and uppercase tokens, unknown words, lexical density, syllable and complex-word counts, part-of-speech mix, long noun chains and passive voice. The strongest predictors were long words, initial capitals, camelCase and unknown words: in software documentation, these are UI names and technical terms.

  3. Risk Scores and Outlier Thresholds – A regression model predicts each segment's expected post-editing distance (mean absolute error about 0.11 on a 0–1 scale), and documents are banded green, yellow or red by predicted edit distance. Outlier thresholds come from the fitted distributions of the scores, for example the 95th and 99th percentiles, so "outlier" means statistically unusual for that content, not an arbitrary cut-off.

  4. Multilingual Semantic Similarity (built by me) – Source and translation are embedded with several multilingual models (XLM-RoBERTa and mBERT variants) into one vector space, and their similarity is averaged across the models, which makes the score more stable than any single model. Pairs with low similarity are flagged as possible mistranslations or omissions, independent of the language pair.

  5. Detector Integration – The detectors run as services on the company's detector platform: a queue-driven worker in Docker, deployed to Kubernetes GPU nodes on Azure through a CI pipeline. It produces a report that reviewers can sort and filter, for files of up to 50,000 segments.


Business Outcome

Reviewers get the segments most likely to be wrong at the top of their list, flagged both by post-editing risk and by a meaning mismatch with the source. As a result, 3.3x fewer translation errors reached QA and clients. The detector runs in production on the company's language-AI platform.

Technologies

NLPMultilingual EmbeddingsXLM-RoBERTamBERTSentence SimilarityQuality EstimationPythonDockerKubernetesAzure

Planning something similar?

Tell me about it on a short call. New projects can start within 2 weeks