Skip to main content

Envisioning is an emerging technology research institute and advisory.

LinkedInInstagramGitHub

Since 2010

research
  • Observatory
  • Adaptive capacity
  • Newsletter
  • Methodology
  • Origins
  • Vocab
  • RSS feeds
services
  • Signals Session
  • Bespoke Projects
  • Build Sessions
  • Pricing
  • Use cases
  • Signals
  • Signal Scan↗free
impact
  • ANBIMAFuture of Brazilian Capital Markets
  • IEEECharting the Energy Transition
  • Horizon 2045Future of Human and Planetary Security
  • WKOTechnology Scanning for Austria
solutions
  • Innovation
  • Strategy
  • Consultants
  • Foresight
  • Associations
  • Governments
  • L&D
resources
  • Partners
  • Coding for Non-Coders
  • How we work
  • Data visualization
  • Multi-Model Convergence
  • FAQ
  • Security and privacy
  • Public sector
about
  • Manifesto
  • Community
  • Events
  • Support
  • Contact
ResearchCapabilityServicesSignalsAbout
ResearchCapabilityServicesSignalsAbout
  1. Home
  2. Vocab
  3. Transformer

Transformer

A neural network architecture using self-attention to process sequential data in parallel.

Year: 2017Generality: 900
Back to Vocab

The Transformer is a neural network architecture introduced in the 2017 paper "Attention Is All You Need." Rather than processing tokens one at a time like recurrent networks do, the Transformer uses self-attention to compute relationships between all positions in a sequence simultaneously. Each token attends to every other token, producing weighted representations that capture context regardless of distance. This matters for long sequences because RNNs struggle to propagate information across them. The original architecture pairs an encoder, which builds contextual representations of the input, with a decoder that generates output token by token while attending to both its own prior outputs and the encoder's representations.

The self-attention mechanism projects each token into three vectors: query, key, and value. It then computes dot-product similarities between queries and keys to determine how much each token should attend to every other. These attention scores are scaled, softmax-normalized, and used to produce a weighted sum of value vectors. Multiple attention heads run in parallel, each learning to focus on different types of relationships, and their outputs are concatenated and projected. Positional encodings are added to token embeddings to inject sequence order information, since the architecture itself is otherwise permutation-invariant. Stacked layers of multi-head attention and feed-forward sublayers, each wrapped with residual connections and layer normalization, build increasingly abstract representations.

The Transformer became the backbone of virtually every major language model, including BERT, GPT, T5, and their successors, enabling progress in translation, summarization, question answering, and code generation. Its parallelism makes it well suited to large-scale training on modern GPU and TPU hardware, supporting the scaling laws that underpin today's large language models. Beyond NLP, the architecture has been adapted for vision (Vision Transformers), audio, protein structure prediction, and reinforcement learning.

Sources

  1. Attention Is All You Need

    arXiv · Jun 12, 2017

  2. Transformer

    Wikipedia

Research this in Signals

Scan Transformer for yourself.

Signals turns a topic into a sourced research record you can inspect and rerun. Your first scan is free, and this one starts with Transformer already loaded, so edit it or scan as is.

Related

Related

Encoder-Decoder Transformer
Encoder-Decoder Transformer

A transformer architecture that encodes input sequences and decodes them into outputs.

2017Generality: 722
Self-Attention
Self-Attention

A mechanism that lets neural networks weigh relationships between all parts of an input simultaneously.

2017Generality: 794
Transformer Block
Transformer Block

A core neural network module combining self-attention and feedforward layers for sequence modeling.

2017Generality: 820
Attention
Attention

A mechanism enabling neural networks to dynamically focus on relevant parts of input.

2014Generality: 875
Attention Network
Attention Network

A neural network that dynamically weights input elements to capture relevant context.

2015Generality: 796
Multi-Head Attention
Multi-Head Attention

Attention mechanism that jointly attends to information from multiple representation subspaces simultaneously.

2017Generality: 794