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.
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.
Click a dot to see the sentence, its translation, and the sentences closest in 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.
Memory segments ranked by closeness in meaning. The best match is used if it scores 0.60 or more.
The star sits among its three best matches, pulled hardest towards the top one. Other distances on this flattened map are only approximate.
Retrieve a similar segment, add it to the AI's instructions, then let the AI generate the translation.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.