Large Programs

Home / How LLMs Work

How LLMs Work

How Does Machine Translation Work?

From word-for-word dictionaries to neural networks: how computers translate between languages, and why people still check the results.

27 November 2026 · 3 min read

Machine translation means using a computer to turn text or speech from one language into another. Wikipedia describes the aim as translating the meaning of both languages, including idioms and subtle shades, not just the words.

A sentence in language A goes into a model trained on example pairs and comes out in language B.

Three generations

1. Rules and dictionaries. The earliest systems were rule-based. Some were dictionary-based: words were translated as they are by a dictionary. Others, such as transfer-based and interlingual systems, first turned the sentence into an intermediate form that stands for its meaning. The big weakness, says Wikipedia, was that everything had to be made explicit. Spelling variations, mistakes in the input and every case of a word with two meanings needed their own rules.

2. Statistics. Later systems learned from large collections of the same text in two languages, such as the English and French records of the Canadian parliament or the European Parliament. They estimated which translation was most likely. The first statistical system named on Wikipedia is IBM's CANDIDE. In 2005, Google trained its system on about 200 billion words of United Nations material and accuracy improved. The weaknesses were the need for huge amounts of parallel text, which was rare for many language pairs, and problems with languages that change word forms a lot.

3. Neural networks. Today's systems use deep learning. Wikipedia says these methods have now superseded rule-based and statistical ones, along with large language models. Many neural systems are built on the Transformer, which looks at the whole sentence at once. The original Transformer paper, Attention Is All You Need, was tested on translation. You can also simply ask a language model to translate a text, which can work well but takes more computing than a specialised translation model.

A short history

  • 1629: René Descartes proposes a universal language where equal ideas share one symbol.
  • 1947 and 1949: A. D. Booth and Warren Weaver suggest using digital computers to translate. Weaver's 1949 memorandum is called very influential.
  • 1954: The Georgetown-IBM experiment gives a public demonstration of machine translation.
  • 1966: The ALPAC report, from a US advisory committee set up in 1964 and chaired by J. R. Pierce, says there had been no machine translation of general scientific text and none was in immediate prospect. It points out that the Georgetown project, after 8 years, still had to have its 1962 output edited by people, which took slightly longer and cost more than human translation. The report also recommends supporting basic research on computers and language. Wikipedia says funding fell afterwards.
  • 1996 and 1997: SYSTRAN offers free web translation, later through AltaVista Babelfish, which handled 500,000 requests a day in 1997.
  • 2012: Google says Google Translate translates roughly enough text to fill one million books in a day.

Why it still goes wrong

Wikipedia lists several kinds of problems:

  • Ambiguous words. A word with more than one meaning needs the right choice. Yehoshua Bar-Hillel raised this problem in the 1950s, arguing that without a "universal encyclopedia" a machine could not tell the meanings apart. Today there are many methods, but the problem has not vanished.
  • Context and common sense. Studies with human readers found that in several languages human translations beat ChatGPT translations in accuracy of terms and clarity of wording.
  • Human parity claims. The current consensus, according to Wikipedia, is that "human parity" claims for neural translation were based on limited domains, language pairs and tests, and are not real.
  • Missing training data for less common languages.

Translations from tools such as DeepL still typically need a human to edit them, says Wikipedia, citing the position in 2022. The page shows examples of public signs and menus where a translation tool produced nonsense.

What to do

For a menu, a message from a friend or a sign, a translation app is helpful. For anything important, such as a contract, medical information or a school form, ask a human translator. Compare with how to check AI answers.

Try this

Pick a short sentence with an idiom in your language, like "it's raining cats and dogs" or one from your own language. Translate it with a free tool into another language and back. Is the idiom still there? What does that tell you about meaning?

Sources