MT seminar · translation memory demo

Translations in Vector Space

How an AI system can search a translation memory by meaning, and use what it finds to translate a new sentence. Built from a translation memory of 50 English–Chinese sentence pairs.

1 · Meaning as a place

Every sentence gets a spot on a map

An embedding model reads a sentence and gives it a position. Sentences that mean similar things land close together, whatever the language. Each dot below is one sentence from our translation memory. Lines join each English sentence to its Chinese translation. Click any dot.

Model
English Chinese translation pair

Click a dot to see the sentence, its translation, and the sentences closest in meaning.

2 · Translation memory

A translation memory that searches by meaning

CAT tools such as Trados, memoQ and Phrase keep every approved segment pair in a translation memory (TM). Store each segment's position on the map as well, and the memory becomes a vector database: a new sentence can find the stored segments closest to it in meaning, and those segments can be handed to an AI translator as examples.

The memory's 50 sentence pairs include three (#48–50) with approved product names from two clients (a phone app and an airline) and a chemistry sentence using Taiwan's standard scientific terms. Pick a new sentence to translate. None of them are in the memory.

1 · New sentenceUse ← → to switch examples
Everyday sentences: house style
Jargon and terminology
Where it lands
new sentence match used not used

The star sits among its three best matches, pulled hardest towards the top one. Other distances on this flattened map are only approximate.

3 · Add the match to the prompt (RAG)

Retrieve a similar segment, add it to the AI's instructions, then let the AI generate the translation.


          
4 · Translate
Without the memory
With the memory (RAG)

The translation for the prompt chosen in step 3 comes first; the other is shown faded for comparison. Highlighted: wording taken from the translation memory, and what the AI wrote without it.

3 · For the translator

What to keep in mind

Search by meaning

Meaning search finds useful segments even when the wording and the situation differ: a cat napping in a box helped translate a dog napping on a sofa. It can even search across languages.

The memory's mistakes travel

Whatever is retrieved gets imitated, including errors. In testing, the AI copied the spelling 面包 from segment 4 of this memory instead of the standard 麵包. Clean memories matter more than ever.

Jargon the AI cannot know

Common terms are usually fine: the AI already writes 重飛 for an aircraft's go-around. Client names and regional standards are another matter. Alone, the AI invented 「靜音守護」, kept “StarTrail” in English and used mainland chemistry terms; one retrieved segment fixed each. Examples guide rather than force, so required terms still need a check.

Close in meaning is not the same meaning

A sentence with a wrong number or the opposite meaning still lands very close on the map. Retrieval finds relevant material; deciding whether it is correct stays with the translator.

Behind the scenes: comparing two embedding models
Model

Every English sentence against every Chinese sentence

Rows are English sentences, columns Chinese. Darker means closer in meaning. The dark diagonal shows each sentence's closest match is its own translation. Sentence aligners use this to build translation memories and MT training data from existing translations.

0.10.9similarity, same scale for both models

Scorecard

Both models find all 50 translations. Unrelated sentences look more alike to BGE-M3, so the right answer wins by a smaller margin. In a memory with millions of segments, small margins lead to wrong matches.

How far ahead is the right translation?

Similarity of the real translation minus that of the best wrong one. Further right is a safer win. Hover a row to see the runner-up.

Qwen3-Embedding-4BBGE-M3

Lowest-scoring pairs

Can a low similarity flag a bad translation? These are the pairs the current model scores lowest. Most are free, idiomatic translations rather than mistakes.

Show all 50 pairs

Stress test: deliberate errors

Constructed for this demo: small edits of the reference translation, labelled with MQM-style error types. Dots show similarity to the English source; the dashed line marks the reference.