What Is a Transformer Model?

A transformer model is a type of neural network architecture that uses a mechanism called attention to weigh the relationships between all parts of its input at once. Introduced in 2017, it is the architecture behind most modern large language models and much of today's generative AI.

How a transformer model works

The key idea in a transformer is attention, which lets the model consider how every part of the input relates to every other part when processing it. Reading a sentence, it can connect a pronoun to the noun it refers to several words back, weighing which other words matter most for understanding each one. This gives it a strong grasp of context.

Attention also lets a transformer process an entire input in parallel rather than strictly one item at a time, which older sequence architectures could not do. That parallelism made it practical to train very large models on very large datasets, which is a major reason transformers, and the models built on them, scaled up so quickly.

Why transformer models matter for AI

Transformer models matter because they are the foundation of the current wave of AI. Large language models, many image and audio models, and most generative AI are built on the transformer architecture, and its ability to handle context well and train efficiently at scale is much of why recent progress happened. Understanding that these systems are transformers underneath explains a lot about how they behave. At Custom AI Studio, the models we build on are transformer-based, and we adapt them to a client's specific data and goals.

Frequently asked questions.

The stuff we hear most on the first call. Don't see yours? Book a 30-minute conversation.

What is attention in a transformer?
Attention is the mechanism that lets the model weigh how much each part of the input matters to every other part. It is how a transformer keeps track of context, connecting related words or elements regardless of how far apart they are.
Why are transformers important?
Because they handle context well and can be trained efficiently at large scale, which made today's large language models and much of generative AI possible. Most modern high-performing AI models use the transformer architecture.
What does the "GPT" in some model names mean?
GPT stands for generative pre-trained transformer, which describes the approach: a transformer model, pre-trained on large amounts of data, used to generate text. The "transformer" part is the architecture described here.

Want to put AI
to work?

We work with leadership teams to find the right opportunities, define the strategy, and build the systems that move the business forward.