# Transformer

Canonical page: https://www.theglitch.ai/ai-glossary/transformer

The neural network design behind GPT, Claude, Gemini and most modern models. It reads a whole sequence at once and uses attention to decide which parts matter to each other.

[Transformer, common card \#240 in The Glitch AI glossary: The neural network design behind GPT, Claude, Gemini and most modern models. It reads a whole sequence at once and uses attention to decide which parts matter to each other.](https://www.theglitch.ai/images/cards/glossary/transformer.png?v=1e09b2bd73651779)

GLS 240 · common

Also called: Transformer architecture.

For: Must know · Builders

## Why it matters

It is the T in GPT. Its parallel design is why models could scale to today’s sizes.

## In practice

Reading “the trophy didn’t fit in the case because it was too big”, attention links “it” to “trophy”.

## Watch for

Cost grows quickly with input length, which is why context windows have limits.

## Related terms

[Attention](https://www.theglitch.ai/ai-glossary/attention) · [Large language model](https://www.theglitch.ai/ai-glossary/large-language-model) · [Context window](https://www.theglitch.ai/ai-glossary/context-window)

## Guides that use it

[Stop studying AI. Start shipping.](https://www.theglitch.ai/learn/stop-learning-ai) · [27 AI terms to know in 2027.](https://www.theglitch.ai/learn/ai-terms-2027)

## Sources

- [Vaswani et al. (2017): Attention Is All You Need](https://arxiv.org/abs/1706.03762)

- [Wikipedia: Transformer (deep learning architecture)](https://en.wikipedia.org/wiki/Transformer_%28deep_learning_architecture%29)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
