For Heads-of · Practitioner

Transformer

A deep learning architecture that uses self-attention to process sequences of data, and the foundation of modern large language models.

  • transformers
  • attention
  • architecture
  • LLM

How it works

A transformer processes all the tokens in its input together rather than one at a time, using attention to weigh which parts of the input matter most for each part of the output.

Efficiency

Processing in parallel made transformers faster to train and more scalable than earlier architectures such as recurrent neural networks (RNNs), which is what made today's very large models practical.

Dominance in LLMs

The major large language models are built on transformer architectures. One consequence matters for security: instructions and data arrive in the same token sequence and pass through the same attention mechanism, with no separate channel for either. That is the architectural root of prompt injection.

Related Terms

Related risks and controls

← Back to Glossary