Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Transformer

Definition

The neural network architecture, built on attention, that underlies most current language models. Google researchers introduced it in 2017.

In more detail

Introduced in the 2017 paper "Attention Is All You Need", transformers process all tokens in parallel and let each token draw on every other token through attention.

The original design had an encoder and a decoder. Most of today's chat models use only the decoder, predicting one token at a time from everything before it. Stacks of attention and feed-forward layers, repeated dozens of times, make up the model, and the same architecture with small changes now handles images, audio and code as well as text.

  • Attention

    The mechanism that lets a transformer weigh how much each token should draw on every other token when building its representation.

  • Interpretability

    Research into how a model works inside: which internal patterns stand for which concepts, and how they combine to produce an output.

  • Large language model (LLM)

    A neural network trained on very large amounts of text to predict the next token, which lets it generate and transform language.

  • Mixture of experts (MoE)

    A model architecture that routes each token through a few specialised sub-networks, so only part of the model runs per token.

  • AI literacy

    Knowing what current AI systems can and cannot do, and how to check their output.

    SkillBeginner

  • Attention

    The mechanism that lets a transformer weigh how much each token should draw on every other token when building its representation.

    Glossary

  • KV cache

    Memory where a transformer stores attention keys and values for tokens it has already processed, so it does not recompute them each step.

    Glossary