The Transformer is a neural architecture that uses self-attention to model relationships among tokens, forming the backbone of most modern LLMs.
AI Glossary
Transformer
The Transformer is a neural architecture that uses self-attention to model relationships among tokens, forming the backbone of most modern LLMs.
Definition
Plain English explanation
It is the model design that lets each word look at other words to decide what matters in context.
Technical explanation
Transformers replace recurrence with self-attention and feed-forward blocks, enabling parallel training and long-range dependency modeling. Variants include encoder-only, decoder-only, and encoder–decoder designs.
Why it matters
Understanding Transformers clarifies why modern LLMs scale and how attention relates to context windows and compute cost.
Real-world applications
- Language modeling and translation
- Vision Transformers
- Multimodal fusion architectures
Benefits
- Strong sequence modeling
- Parallelizable training
- Flexible transfer across tasks
Limitations
- Quadratic attention cost with sequence length (mitigated by variants)
- Large models need significant compute
Common misconceptions
- Not every neural net is a Transformer
- Attention maps are not complete explanations of model behavior
Related glossary terms
FAQ
Are Transformers only for text?
No. Transformers are used in vision, speech, and multimodal models as well.
Last reviewed
Sources
- Vaswani et al., 2017
Correction request
If a technology assignment or hub description is inaccurate, submit a correction via the Corrections Policy.
All technologies → · AI Models → · APIs & SDKs → · Integrations → · Compliance → · Browse all companies → · Explore industries → · Compare →