MIA Retro AI Arcade2017

Micro-Transformer

Preheating self-attention heads...
Curator's Exhibit Guide

Micro-Transformer: Inside Modern Language Models

How to Play

Have you ever chatted with ChatGPT, or watched your phone guess the next word as you type? These tools are powered by a cutting-edge AI architecture called the Transformer, invented in 2017.

In this simulator, you can type sentences and watch how a mini-transformer processes them. You will see lines of connection light up between words showing how the AI decides which words relate to one another, and watch it calculate probabilities to predict what word should come next!

Cabinet Controls: Type a starting phrase (like "The artificial intelligence") in the input box and click **Predict**. Hover your mouse cursor over any word in the text visualizer. The screen will display lines of connection and percentage values. This reveals the **Attention Weights** showing exactly which other words the model is focusing on to understand that specific word!

How It Works

Older computer programs tried to read sentences word-by-word. This meant they got confused easily. If they read a long sentence, they would forget the beginning by the time they reached the end. The Transformer solved this by reading the entire sentence at once, using a superpower called Self-Attention:

  • Drawing Connections: Self-attention allows the model to look at every word and calculate how much it relates to all other words. For example, in the sentence "The bank of the river," the word "bank" pays attention to "river" to know it means land, not a place with money.
  • Context Scoring: The Transformer creates mathematical scores representing these relationships. It uses these scores to construct a unified understanding of the entire sentence's context.
  • Predicting the Future: Finally, it compares this context against its massive dictionary of words and outputs a probability score for each one. The word with the highest score is predicted as the next word.
Relation to AI

The Transformer is the single most important breakthrough in AI of the last decade. It is the core engine behind **Large Language Models (LLMs)** like Gemini, Claude, and GPT.

By using self-attention, Transformers can understand the subtle nuances of human language, write essays, translate languages, and even write computer code.

By interacting with this visualizer, you are looking directly at the neural wiring that enables modern AI to converse and write in a way that feels incredibly human!