Transformer
Also called Transformer architecture, transformer model, decoder-only transformer.
The Transformer is a neural network architecture that processes sequences with self-attention, letting every position draw information directly from every other position instead of through recurrence or convolution. Most large language models are built on it.
Description
Vaswani et al. introduced the Transformer in 2017 as an encoder-decoder model for machine translation, built from stacked layers of multi-head self-attention and position-wise feed-forward networks, with residual connections, layer normalization and positional encodings to represent token order. Because attention over a whole sequence can be computed in parallel, it trains much faster than recurrent networks. The authors reported 28.4 BLEU on WMT 2014 English-to-German and a single-model 41.8 BLEU on English-to-French after training for 3.5 days on eight GPUs. Most large language models use a decoder-only variant trained to predict the next token. The cost of standard self-attention grows quadratically with sequence length, which has motivated variants such as sliding window, grouped-query and multi-head latent attention, and kernels such as FlashAttention.
Sources
- Vaswani et al. (2017). Attention Is All You Need.
Cite this entry
Protologue. (2026). Transformer. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0268). https://protologue.com/t/transformer/
BibTeX
@misc{protologue_transformer,
title = {Transformer},
author = {{Protologue}},
year = {2026},
howpublished = {Protologue: A Taxonomy of Prompting and LLM Techniques, v1.9.1},
note = {Entry PTL-0268},
url = {https://protologue.com/t/transformer/}
}New terms, as they're coined
One email a week with the newest techniques, each defined and sourced like this entry.
Delivered through Beehiiv. Unsubscribe from any issue.