---
title: "What is a transformer in AI? The architecture of language models."
url: https://www.bonbay.fr/en/ia/comprendre-ia/lexique-ia/transformer/
site: "Bonbay IA"
description: "The transformer is the neural network architecture behind GPT, Claude and Mistral. Simple definition, origin and common confusions."
updated: 2026-11-13
---

# What is a transformer in AI? The architecture of language models.

> The transformer is a neural network architecture introduced in 2017 by Google researchers in the paper “Attention Is All You Need”. Its attention mechanism lets the model weigh, for each word, the importance of every other word in the text. Today’s large language models, such as GPT, Claude and Mistral, are derived from it.

The T in GPT stands for transformer. The word refers to the way almost all current language models are built.

## En bref

- **All the text at once** The transformer processes the words in a sentence in parallel, which made it possible to train much larger models than before.
- **Attention** To work out what “it” refers to in a sentence, the model looks at which preceding words matter most.

## In practice in a business

A business does not have to choose an architecture: almost all models on the market are transformers. The word is mainly useful for reading technical documentation, or understanding why the length of the text you send affects cost and response time.

## Not to be confused with

A transformer is not a specific model but a family of architectures from which GPT, Claude, Gemini, Llama and Mistral derive. It has nothing to do with an electrical transformer either.

## Questions fréquentes

### What does GPT mean?

Generative Pre-trained Transformer: a generative transformer, pre-trained on large volumes of text. The acronym comes from OpenAI.

### Are transformers only used for text?

No. The same architecture also handles images, sound and code, which made multimodal models possible.

### Are there other architectures?

Yes, research is exploring several to handle longer texts at lower cost. For now, transformers remain the basis of the major models on the market.
