Back to Discover
Lesson

How AI Translation Works

AI translation turns text into numbers, learns patterns across languages, and generates translated text by predicting one word at a time.

Before you enter

A complete interactive classroom, not just a preview.

Start when you are ready to enter this Stage's 11 scenes and explore, respond, and learn as you go.

11
Scenes
22 min
Estimated
Content language: en-US
Start this Stage
Sign-in may be required to play
What happens inside
  1. 01Why "Translate" Is Harder Than It Looksslide
    OrientationObserve

    Set up the puzzle: everyday translation hides surprisingly complex machinery.

    • What users see vs what the system does
    • Why simple word swap fails
    • What this lesson will reveal
  2. 02Try the Three Eras of Translationinteractive
    Model buildingApply

    A simulation where the learner feeds the same sentence into a rule-based, statistical, and neural translator to feel the difference.

    • Rule-based: dictionary + grammar rules
    • Statistical: pick the most likely phrase match
    • Neural: generate holistically
  3. 03From Words to Numbersslide
    OrientationObserve

    Bridge from eras to the modern neural pipeline by introducing tokenization and embeddings.

    • Text becomes tokens
    • Tokens become vectors
    • Similar meanings cluster in vector space
  4. 04See Tokens and Embeddingsinteractive
    Model buildingObserve

    A simulation that tokenizes a sentence and shows its embeddings projected onto a 2D map, where related words cluster.

    • Tokens highlighted on the sentence
    • Embedding positions plotted
    • Clusters reveal meaning
  5. 05Encoder-Decoder: Read, Then Writeinteractive
    Model buildingConstruct

    A diagram-style simulation walking through how the source sentence is encoded and then decoded step by step.

    • Encoder compresses meaning
    • Decoder generates target tokens
    • Each step depends on the encoded meaning
  6. 06Spot the Misalignmentinteractive
    Misconception repairPredict

    Predict: learners see a naive word-swap translation of an idiom and must mark which word pairs are misleading.

    • Idioms defeat word-for-word mapping
    • Meaning is not 1:1 across languages
    • Context matters more than vocabulary
  7. 07Attention: Looking Back at the Sourceslide
    OrientationObserve

    Explain attention as the decoder's way of re-reading the source sentence while writing.

    • Decoder generates token by token
    • Attention weights highlight relevant source words
    • Weights shift with each output step
  8. 08Watch Attention Moveinteractive
    Model buildingObserve

    An interactive visualization showing attention weights lighting up between source words and each generated target word.

    • See which source word is being focused on
    • Notice how focus shifts per step
    • Heavier lines = stronger attention
  9. 09Where AI Translation Still Trips Upslide
    OrientationExplain

    Survey quality challenges: ambiguity, idioms, names, low-resource languages, and hallucination.

    • Multiple valid translations exist
    • Rare languages have less training data
    • Models can confidently produce wrong output
  10. 10Translation Quality Challengeinteractive
    ApplicationChoose

    Learners compare three AI outputs side by side, choose the best one, and justify their pick by spotting errors.

    • Read critically, not passively
    • Detect dropped meaning, awkward phrasing, hallucinations
    • Justify with translation concepts
  11. 11The Full Pipeline in One Lineslide
    SynthesisExplain

    Recap the end-to-end journey: sentence → tokens → embeddings → encoder → attention → decoder → translated tokens.

    • All stages connect into one pipeline
    • Same blueprint powers chatbots and summaries
    • Translation is prediction, not lookup
Discussion

Discussion threads for a Stage aren't available yet.

Where this leads
Other versions of this lesson
Explore more

More in Technology & Computing

See all