Glossary By topic A to Z Basics A unit's output value for a given input: its weighted sum after the activation function . The activations of a layer together are its representation of the input.
Used in: Every network here.
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
The function a unit applies to its weighted sum, such as ReLU (keep positive values, zero out the rest) or a sigmoid (squash any number into 0 to 1). Without one, a stack of weighted sums with nothing nonlinear between them would collapse into a single layer , however deep. KAN learns its functions instead of fixing them. The perceptron's is a hard threshold: on above it, off below.
Used in: Nearly every network here; KAN learns its functions instead of fixing them.
Source: Nair & Hinton 2010 (opens in a new tab) ; Glorot, Bordes & Bengio 2011 (opens in a new tab)
A number a unit adds to its weighted sum, learned like a weight . It sets how easily the unit responds, so it can fire even when its inputs are all zero.
Used in: Nearly every network here.
Source: Rosenblatt 1958
One of the categories a classifier sorts inputs into, such as cat or dog, or the digits 0 to 9. A classifier usually gives one output per class, turned into probabilities by a softmax .
Used in: Perceptron , MLP , CNN , ResNet , ViT , Capsule network , CLIP , BERT
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
Machine learning with networks of many layers , each finding features built from those of the layer below. It took off in the late 2000s and early 2010s, once more data, faster hardware, and better training methods made deep networks practical; most networks here from the DBN on are deep.
Used in: Nearly every network here; the perceptron, the Hopfield network, and the Kohonen map are shallow.
Source: LeCun, Bengio & Hinton 2015 (opens in a new tab)
A dense (fully connected) layer links every unit to every unit of the layer before.
Inputs Units Sparse means few: a sparse code has only a few units active at once, as in a sparse autoencoder, and a sparse mixture of experts runs only a few experts per token .
Used in: MLP , Sparse autoencoder , Sparse MoE , CNN , ResNet
Source: Ranzato et al. 2006 ; Shazeer et al. 2017
A learned vector that stands for an item, such as a token , an image, or a sentence.
Dimension 1 → Dimension 2 → cat dog car bus man woman king queen Training can place items near each other when they are alike in the way its task needs, so distance in the space comes to mean something. Word2vec (2013) made learned word vectors the standard starting point for language.
Used in: Transformer , CLIP , Siamese network , GPT-style LLM , BERT , ViT , Masked diffusion LLM
Source: Bengio et al. 2003 (opens in a new tab) ; Mikolov et al. 2013 (opens in a new tab)
A property of the input that a unit responds to, such as an edge, a texture, or a word's tense. A convolution 's output, one feature measured at every position, is a feature map.
Used in: CNN , MLP , Sparse autoencoder , Deep belief network , Capsule network
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
A layer between the input and the output, whose values no one sets or reads directly.
Input layer Hidden layer Hidden layer Output layer Hidden layers, with a nonlinear activation function , let a network build its own features , which is what lets it learn more than a straight-line boundary.
Used in: MLP , Autoencoder , RBM , Deep belief network , Radial basis network , Sparse autoencoder , Boltzmann machine
Source: Rumelhart, Hinton & Williams 1986
What a model assumes about its data before seeing any, built into its design. A convolution assumes that nearby pixels matter most and that a pattern means the same wherever it appears; a recurrent network, that order matters; a graph network, that the graph's edges say what is related. An assumption that fits the data saves data, and one that doesn't holds the model back. Attention builds in fewer assumptions about images (neither that nearby pixels matter most nor that a pattern means the same anywhere), which is why the original ViT needed more training images than a CNN to match it, until better training recipes narrowed the gap, and why it keeps improving when images are plentiful.
Discussed in: CNN , ViT
Source: Battaglia et al. 2018 (opens in a new tab) ; Dosovitskiy et al. 2020
The input is the data a network is given, such as an image's pixels or a sentence's tokens ; the output is what it produces, such as a label, the next token , or an image. The guide marks them with stems: below an input, above an output.
Used in: Every network here.
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
A stage of computation that turns one representation into the next, usually a row of units working side by side.
Input layer Hidden layer Hidden layer Output layer A network's depth is its number of layers. In the guide's drawings a row is one stage of the computation, often one layer, but a row can also stand for a whole block (a Transformer's attention and the feed-forward layer after it), so counting rows doesn't give a model's depth.
Used in: Every network here.
Source: Rumelhart, Hinton & Williams 1986
A line between two cells in the guide's diagrams. Its style says what it carries: a plain line a learned weight , dashed a weight set by similarity, dotted a gate , an arrow data passed on, a wavy line a learned function. The key lists them.
Used in: Every network here.
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
A network's learned numbers: its weights and biases . A mixture of experts can have many parameters but use only a few experts per token , so its active parameters, the ones each token runs through, are far fewer.
Used in: Every network here.
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab) ; Shazeer et al. 2017
One of the small squares an image is cut into, flattened into a vector and treated as a token . ViT-B/16 reads a 224-by-224 image as 196 patches of 16 by 16 pixels; other patch sizes and resolutions give other counts.
Used in: ViT , CLIP
Source: Dosovitskiy et al. 2020
How likely each possible outcome is, adding up to 1 over all of them: each class , token , or action a network might choose, or, for numbers that vary smoothly, how densely they fall in each range (a Gaussian 's bell curve). Softmax turns scores into one; generative models learn one over their data and sample from it.
Used in: Boltzmann machine , RBM , Variational autoencoder , Normalizing flow , Actor-critic (PPO) , GPT-style LLM , Capsule network
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
Rectified linear unit: the activation function that passes a positive sum unchanged and turns a negative one to zero.
Weighted sum → Output → −1.6 → 0 −0.4 → 0 0.8 → 0.8 1.8 → 1.8 Cheap, and easy to train through many layers , it became the default in deep networks in the early 2010s.
Used in: MLP , CNN , ResNet , Deep belief network
Source: Nair & Hinton 2010 (opens in a new tab) ; Glorot, Bordes & Bengio 2011 (opens in a new tab)
A function that turns a list of scores into weights that are positive and add up to 1, giving the largest scores most of the weight.
2 1 −0.5 0.2 Scores softmax Cat 7.39 0.62 Dog 2.72 0.23 Fox 0.61 0.05 Owl 1.22 0.10 Attention uses it to weigh positions, a language model to turn scores into the next token 's probabilities .
Used in: Transformer , GPT-style LLM , Sparse MoE , BERT , ViT , CLIP , Modern Hopfield network , WaveNet , Seq2seq with attention , Masked diffusion LLM , Recurrent hybrid
Source: Bridle 1989 (opens in a new tab)
The output training wants for an input: the right label, the actual next token , or the direction a flow should move. The loss measures how far the output is from it.
Used in: Nearly every network here; not the Hopfield network, the Kohonen map, the Boltzmann machine or RBM, or a GAN's generator, which learn without a set answer for each input.
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
One item of a sequence as a model reads it: a word or part of a word, an image patch , a sound sample. Each becomes a vector before the network sees it.
Used in: Transformer , GPT-style LLM , BERT , ViT , CLIP , Masked diffusion LLM , Linear attention , Mamba , Recurrent hybrid , Sparse MoE
Source: Sennrich, Haddow & Birch 2016 (opens in a new tab)
The basic element of a network, also called a neuron: it multiplies each input by a weight , adds them up with a bias , and passes the sum through an activation function . The guide draws one as a circle.
Used in: Every network here.
Source: McCulloch & Pitts 1943 (opens in a new tab) ; Rosenblatt 1958
An ordered list of numbers, such as a unit's weights or a token 's embedding : a point, or a direction, in a space with one axis per number.
0.94 0.34 [0.94, 0.34] Most of what flows through a network is vectors.
Used in: Every network here.
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
A number on a connection that scales whatever passes along it. Training adjusts the weights; they are what a network learns. Most lines in the guide stand for one.
Used in: Every network here.
Source: Rosenblatt 1958
Exclusive or: true when exactly one of two inputs is on.
Input 1 → Input 2 → Hidden 1 Hidden 2 0, 0 1, 0 0, 1 1, 1 Its true and false cases can't be split by one straight line, so a perceptron can't learn it, while a network with a hidden layer can; Minsky and Papert's 1969 analysis of such limits is often blamed for slowing the field for years.
Used in: Perceptron , MLP
Source: Minsky & Papert 1969 (opens in a new tab) ; Rumelhart, Hinton & Williams 1986
Operations A memory recalled by content rather than address: given part of a stored pattern, or a noisy copy, it returns the whole. Its capacity is how many patterns it can store before recall breaks down.
Used in: Hopfield network , Modern Hopfield network
Source: Hopfield 1982 ; Ramsauer et al. 2020
A way for each position in a sequence to gather what it needs from the others, taking more from the positions that match it best: its query against their keys.
Tokens Attention New vector The weights are set by the input itself, unlike a layer 's learned weights, which is why the guide draws them dashed. Self-attention reads the same sequence; cross-attention reads another, such as the source sentence in translation . A layer usually runs several at once, each a head (multi-head attention).
Used in: Transformer , BERT , GPT-style LLM , ViT , CLIP , Seq2seq with attention , Masked diffusion LLM , Recurrent hybrid , Modern Hopfield network , Neural Turing machine , Linear attention
Source: Bahdanau, Cho & Bengio 2014 ; Vaswani et al. 2017
Reading a sequence both ways, so each position sees what comes after it as well as before.
Inputs Forward → ← Backward Outputs An encoder may read its input both ways, as BERT's does, or in one direction only, as the first seq2seq encoders did. A model writing one token at a time can't see tokens it hasn't written yet, but it can still read an input it is given, such as the sentence to translate, both ways. Processing every position at once isn't the same thing: GPT trains on all positions in parallel , yet each reads only to its left.
Used in: Bidirectional RNN , BERT , Transformer , Seq2seq with attention , ViT , CLIP , Masked diffusion LLM
Source: Schuster & Paliwal 1997 ; Devlin et al. 2018
A small group of layers repeated to build a deep network , such as a Transformer's attention and feed-forward layers with their residual connections . Stacking the same block many times is how most deep networks are made; the primer opens one.
Used in: Transformer , GPT-style LLM , BERT , ResNet , Mamba , Sparse MoE , Recurrent hybrid , ViT , Linear attention
Source: He et al. 2015 ; Vaswani et al. 2017
The narrowest layer of a network that squeezes its input and widens it again, which forces it to keep only what matters most for its task, such as rebuilding the input.
Input Code Output Encoder Decoder In an autoencoder the bottleneck is the code ; in U-Net it is the coarsest scale, with skip connections carrying the fine detail around it.
Used in: U-Net , Autoencoder , Variational autoencoder
Source: Ronneberger, Fischer & Brox 2015 ; Rumelhart, Hinton & Williams 1986
A group of units whose output is a vector : its length says how likely an entity is present, and its direction describes it, such as its pose. Capsules pass their outputs on by routing by agreement.
Used in: Capsule network
Source: Sabour, Frosst & Hinton 2017
In a model that generates a sequence, each position may read only itself and the ones before it, never later ones.
Tokens Attention Its target is the next position, so in training it cannot see what it is learning to predict. The guide draws it as lines that reach back or straight up, never forward. WaveNet gets the same effect from causal convolutions , which only look back.
Used in: GPT-style LLM , Transformer , Linear attention , WaveNet
Source: Vaswani et al. 2017
One of the stacked maps at each position of a convolutional layer , such as red, green, and blue in an image, or one filter 's output deeper in. A filter reads every channel in its window , and each filter makes one new channel.
Used in: CNN , ResNet , U-Net , WaveNet , Capsule network
Source: LeCun et al. 1989
Holding some units fixed at given values, such as the visible units at a training example, while the rest of the network settles or is sampled around them.
Clamped Used in: Boltzmann machine , RBM , Deep belief network
Source: Ackley, Hinton & Sejnowski 1985
The representation an encoder makes of its input, from which a decoder rebuilds it: usually smaller than the input, or, in a sparse autoencoder, with only a few units active at once.
Input Code Output Encoder Decoder Used in: Autoencoder , Sparse autoencoder , Denoising autoencoder , Variational autoencoder
Source: Rumelhart, Hinton & Williams 1986 ; Hinton & Salakhutdinov 2006 (opens in a new tab)
Applying one small set of weights , a filter , at every position of the input, so a pattern is detected wherever it appears.
Input Filter Feature map Each output reads only a few neighbors, and every position shares the same weights, so the weights stay few. Stacked layers see wider and wider regions: in an image, early filters find edges and later ones shapes. WaveNet's dilated convolutions skip inputs, so a few layers reach far back.
Used in: CNN , ResNet , U-Net , WaveNet , Capsule network
Source: Fukushima 1980 ; LeCun et al. 1989
How closely two vectors point the same way, from 1 (same direction) through 0 (perpendicular) to −1 (opposite), whatever their lengths: a common score for comparing embeddings .
40° cos 40° = 0.77 cos = 0.77 cos = 0 cos = −1 cos = 1 Whether perpendicular means unrelated depends on the embedding.
Used in: Siamese network , CLIP
Source: Reimers & Gurevych 2019 ; Radford et al. 2021
The network a diffusion model trains and runs at every step: given a noisy sample and how noisy it is, it predicts the noise (or the clean data), so a little can be taken away. It is usually a U-Net or a Transformer.
Used in: Diffusion model , Denoising autoencoder , U-Net
Source: Ho, Jain & Abbeel 2020
Spacing out the inputs a convolution reads, skipping some between each.
Inputs Spacing 1 Spacing 2 Spacing 4 Doubling the spacing at each layer lets the reach grow exponentially with depth: with filters two wide, as in WaveNet, and spacings 1, 2, 4, … 512, ten layers reach 1,024 steps back, and a few stacks of them thousands. Wider filters or other spacings reach further or less far.
Used in: WaveNet
Source: van den Oord et al. 2016 ; Yu & Koltun 2015 (opens in a new tab)
A connection between two nodes of a graph .
In a graph network the edges are the input's relations, such as bonds between atoms; in KAN each edge carries its own learned function instead of a single weight .
Used in: Graph neural network , KAN
Source: Scarselli et al. 2009 ; Liu et al. 2024
An encoder turns an input into an internal representation; a decoder turns a representation into an output.
Input Code Output Encoder Decoder Autoencoders, translation models, and U-Nets pair the two; BERT is an encoder alone and GPT a decoder alone.
Used in: Autoencoder , Variational autoencoder , Transformer , BERT , GPT-style LLM , U-Net , Seq2seq with attention , Sparse autoencoder , Denoising autoencoder , ViT , CLIP , Siamese network
Source: Sutskever, Vinyals & Le 2014 ; Cho et al. 2014
A single number a Hopfield network or Boltzmann machine gives each state of its units, low for the states it has learned to favor.
State → Energy → In a Hopfield network no update can raise it, so the state settles into a minimum, often a stored pattern. A Boltzmann machine's random units keep changing, sometimes uphill; what settles is how often each state turns up, the low-energy ones most.
Used in: Hopfield network , Boltzmann machine , RBM , Modern Hopfield network , Deep belief network
Source: Hopfield 1982 ; Ackley, Hinton & Sejnowski 1985
For a network of random units, such as a Boltzmann machine, the point after enough updates where how often each state turns up stops changing: low-energy states turn up most, though the units themselves keep changing. Boltzmann machines learn by comparing equilibrium with the data clamped and with it free.
Used in: Boltzmann machine , RBM , Deep belief network
Source: Ackley, Hinton & Sejnowski 1985
The small MLP in each Transformer block , applied to every position on its own after attention : it widens each vector , applies an activation function , and narrows it back. It holds a large share of each block's parameters , often two-thirds, and a mixture of experts replaces it with many.
Used in: Transformer , BERT , GPT-style LLM , ViT , CLIP , Seq2seq with attention , Masked diffusion LLM , Recurrent hybrid , Sparse MoE
Source: Vaswani et al. 2017
One learned pattern detector in a convolution : a small grid of weights that, at each position, writes how strongly its pattern appears there.
Input Filter Feature map A layer runs many filters, each making its own feature map ; also called a kernel .
Used in: CNN , ResNet , U-Net , WaveNet
Source: LeCun et al. 1989
A learned multiplier, computed by the network and usually between 0 and 1, that scales a signal: near 0 shuts it out, near 1 lets it through.
Input State LSTMs and GRUs compute their gates from the input and the previous state , to decide what their state keeps, forgets, and shows. Mamba's selective state gates in a similar way, but from the input alone, which lets it train in parallel . xLSTM's exponential gates can go above 1. The guide draws a gate as a dotted line ending at a dot on the arrow it acts on.
Used in: LSTM , GRU , Mamba , WaveNet , Linear attention , Recurrent hybrid
Source: Hochreiter & Schmidhuber 1997
A bell-shaped response: largest at a center point and falling off smoothly with distance from it.
Input → Output → 1.00 0.49 0.01 Each unit of a Gaussian radial basis network, the most common kind, responds this way to inputs near its center.
Used in: Radial basis network
Source: Broomhead & Lowe 1988
A set of nodes joined by edges , such as atoms and bonds, people and friendships, or roads and junctions. A graph network works on it directly, so it handles any number of nodes in any arrangement.
Used in: Graph neural network
Source: Scarselli et al. 2009
A small output layer on a shared network, turning its features into one answer: a class , the probability of each action , a value. In attention , a head is one of several attention steps run side by side, each with its own queries , keys, and values, so each can look for something different.
Used in: CNN , ResNet , Actor-critic (PPO) , Transformer , BERT , GPT-style LLM , ViT
Source: Vaswani et al. 2017
Able to be run backward exactly: every output comes from one input, which can be recovered. A normalizing flow is built from invertible layers chosen so that their effect on probability is cheap to compute. Most are coupling layers, which leave half the numbers as they are and use them to shift and scale the other half, so each layer is easy to undo.
Used in: Normalizing flow
Source: Dinh, Krueger & Bengio 2014
A function scoring how alike two inputs are, such as a Gaussian bump of the distance between them. Kernel methods such as support vector machines work entirely through such scores; each unit of a radial basis network is one kernel, measured against its center. (A convolution 's filter is also called its kernel.)
Used in: Radial basis network , CNN
Source: Broomhead & Lowe 1988 ; Goodfellow, Bengio & Courville 2016 (opens in a new tab)
Hidden: describing what a model works with but never observes directly.
Input Code Output Encoder Decoder A latent space is where such codes live; a VAE or GAN draws a point there and decodes it into something new, and nearby points decode to similar things. An autoencoder's code is a latent vector .
Used in: Autoencoder , Variational autoencoder , GAN , Diffusion model , Normalizing flow
Source: Kingma & Welling 2013
Hiding part of what a network may see: tokens swapped for a mask token for it to fill in (BERT, masked diffusion LLMs), or positions attention may not read (a causal mask ).
Used in: BERT , Masked diffusion LLM , GPT-style LLM
Source: Devlin et al. 2018 ; Vaswani et al. 2017
How a graph network updates each node : every neighbor sends it a message computed from its own state , and the node combines them with its state. Repeating it lets information travel one edge farther each round.
Used in: Graph neural network
Source: Scarselli et al. 2009 ; Kipf & Welling 2016
A layer made of many expert networks whose outputs a gating network, the router , combines.
Tokens Router Experts Outputs The original of 1991 weighted every expert; a sparse mixture of experts, the usual kind today, picks only a few for each token , so the model holds far more parameters than any one token runs through. It can grow without costing proportionally more compute per token, though every expert must still be held in memory, and many of today's largest language models use it. The Routing entry steps through it.
Used in: Sparse MoE
Source: Jacobs et al. 1991 (opens in a new tab) ; Shazeer et al. 2017
A point in a graph , such as an atom or a person, joined to others by edges .
In a graph network each node holds a vector , updated from its neighbors' messages ; in KAN a node just adds up what its edges bring.
Used in: Graph neural network , KAN
Source: Scarselli et al. 2009
Rescaling a layer 's numbers to a standard spread, so signals stay in a steady range as they pass through many layers and training stays stable.
1 2.6 0.6 0.46 0.46 2 0.4 −1.6 −1.23 −1.23 3 3.8 1.8 1.38 1.38 4 1.2 −0.8 −0.61 −0.61 Layer normalization works on each token 's vector , batch normalization on each feature across a batch.
Used in: Most deep networks since 2015, and nearly every Transformer block.
Source: Ioffe & Szegedy 2015 (opens in a new tab) ; Ba, Kiros & Hinton 2016 (opens in a new tab)
Shrinking a feature map by summarizing each small patch , usually by its largest value.
Feature map Pooled It keeps whether a pattern appeared while forgetting exactly where, and lets later layers see more of the input for the same cost.
Used in: CNN
Source: Fukushima 1980 ; Riesenhuber & Poggio 1999 (opens in a new tab)
A slot in a sequence or grid: one token , one time step, one patch , or one place in a feature map . Attention on its own ignores order, so Transformers add positional encodings: the original added a fixed pattern of waves to each token's vector , BERT and ViT learn one per position, and most recent language models rotate queries and keys by their position instead (RoPE).
Used in: Transformer , BERT , GPT-style LLM , ViT , CLIP , Masked diffusion LLM , CNN , Bidirectional RNN , WaveNet , Recurrent hybrid
Source: Vaswani et al. 2017 ; Su et al. 2021 (opens in a new tab)
The distribution a generative model draws its codes or noise from before generating, usually a plain Gaussian . A VAE is trained to keep its codes close to it, so codes drawn from the prior usually decode to something plausible; where the codes of real data leave parts of the prior unfilled, samples from there can come out poorly.
Used in: Variational autoencoder , GAN , Normalizing flow , Diffusion model
Source: Kingma & Welling 2013
The three vectors attention makes from each position, each by its own learned weights .
Tokens Attention Output q k k k v v v A position's query is compared with every key; the better the match, the more of that position's value it takes, like a lookup that returns a blend instead of one entry.
Used in: Transformer , GPT-style LLM , BERT , ViT , Modern Hopfield network , Linear attention , CLIP , Masked diffusion LLM , Recurrent hybrid
Source: Vaswani et al. 2017
The parts of a memory-augmented network that read from and write to its memory. Each produces soft weights over the memory's rows, by content or by location, so reading and writing are differentiable and can be trained by backpropagation .
Used in: Neural Turing machine
Source: Graves, Wayne & Danihelka 2014
Running the same network once per step of a sequence, passing a state from each step to the next: a running summary of everything so far.
Inputs State Outputs The state is what lets the network remember, and squeezing all of history into it is what makes long memories hard.
Used in: RNN , LSTM , GRU , Bidirectional RNN , Seq2seq with attention , Neural Turing machine , Linear attention , Mamba , Recurrent hybrid
Source: Jordan 1986 ; Elman 1990
Writing a random sample as the network's outputs plus independent noise , a mean plus a spread times a standard random number, so the error can be passed back through the sampling step. It is what lets a VAE train by backpropagation .
Used in: Variational autoencoder
Source: Kingma & Welling 2013
A path that carries a layer 's input around it and adds it to the layer's output, so the layer only has to learn a change.
Input Layer Sum It lets very deep networks train, because the signal, and in training its gradient , can pass straight through. Also called a skip connection; U-Net's skip connections copy instead of adding.
Used in: ResNet , Transformer , BERT , GPT-style LLM , ViT , U-Net , CLIP , Masked diffusion LLM , Linear attention , Mamba , Recurrent hybrid , Sparse MoE
Source: He et al. 2015
The running vector that residual connections carry through a deep network : each block reads it and adds its own output back, so the stream builds up every block's contribution.
Used in: ResNet , Transformer , GPT-style LLM , BERT , ViT , CLIP , Masked diffusion LLM , Linear attention , Mamba , Recurrent hybrid , Sparse MoE
Source: He et al. 2015 ; Vaswani et al. 2017
Deciding where each input goes, or how much of it goes where.
Tokens Router Experts Outputs A mixture of experts ' router scores the experts for each token and sends it to only the top few, a sparse selection; CapsNet's routing by agreement instead splits each capsule 's output among all the higher capsules, by softmax weights that favor those whose predictions agree with it.
Used in: Sparse MoE , Capsule network
Source: Shazeer et al. 2017 ; Sabour, Frosst & Hinton 2017
A numerical method that follows a velocity forward in small steps, as for an ordinary differential equation (ODE). Flow-matching models sample this way, and so can diffusion models (DDIM); diffusion's original sampler instead adds fresh noise at each step, a random version of the same walk. Better solvers take bigger steps with little loss in quality.
Used in: Flow matching , Diffusion model
Source: Chen et al. 2018 ; Lipman et al. 2022
A smooth curve made of short polynomial pieces joined end to end, shaped by a few control values.
Input → Output → The original KAN learns one spline per edge ; later versions swap in other curves that run faster.
Used in: KAN
Source: Liu et al. 2024
What a network carries from one step to the next: an RNN's hidden state , an LSTM's cell state beside it, or the matrix-valued state of linear attention and state space models , which stays the same size however long the sequence grows. In reinforcement learning the state is instead the situation the environment is in, which the policy sees.
Used in: RNN , LSTM , GRU , Bidirectional RNN , Seq2seq with attention , Mamba , Linear attention , Recurrent hybrid , Neural Turing machine , Graph neural network , Actor-critic (PPO)
Source: Elman 1990 ; Hochreiter & Schmidhuber 1997 ; Sutton & Barto 2018 (opens in a new tab)
A recurrence built from linear updates of a hidden state , an idea from control theory. Because each update is linear, training can compute a whole sequence in parallel , while generating runs one step at a time with a state of fixed size. Mamba makes the updates depend on the input (selective), so it can choose what to keep.
Used in: Mamba , Recurrent hybrid
Source: Gu, Goel & Ré 2021 (opens in a new tab) ; Gu & Dao 2023
How a linear-time model writes each token into its fixed-size state , the main way such models differ. Plain linear attention accumulates: each token adds its key and value , and nothing is ever removed, so old entries blur together as the state fills. Decay, as in RetNet and Mamba, shrinks the old state a little before each write, at a fixed rate or as the input decides, so the model can forget. The delta rule, as in DeltaNet, first reads what the state already returns for the key and writes only the difference from the new value, so it overwrites an entry rather than piling on top of it; Gated DeltaNet adds decay as well, so it can both forget and correct.
Used in: Linear attention , Mamba , Recurrent hybrid
Source: Katharopoulos et al. 2020 ; Schlag, Irie & Schmidhuber 2021 (opens in a new tab) ; Yang, Kautz & Hatamizadeh 2024
The direction and speed a point should move at a given moment, as a vector . Flow matching trains its network to output it, and sampling follows it step by step; the guide marks it with an arrow.
Used in: Flow matching
Source: Lipman et al. 2022
The few neighboring positions an operation reads at once, such as a convolution 's three inputs.
Inputs Layer 1 Layer 2 Sliding it along the input applies the same operation everywhere. Dilating it, skipping inputs between its reads, reaches farther with no extra weights ; widening it reaches farther too, but adds a weight for every input it gains.
Used in: CNN , WaveNet , U-Net , Seq2seq with attention
Source: LeCun et al. 1989
Objectives Training two networks as opponents, each improving by beating the other. In a GAN the generator gains when the discriminator mistakes its fakes for real data, and the discriminator when it doesn't; the contest pushes the fakes toward the real thing, though it can be unstable to train.
Used in: GAN
Source: Goodfellow et al. 2014
Units compete for each input: the one whose weights match it best wins and moves its weights toward it, and in a Kohonen map so do its neighbors on the map. Over many inputs each unit comes to stand for one kind of input.
Used in: Kohonen map
Source: Kohonen 1982 ; Rumelhart & Zipser 1985 (opens in a new tab)
Training embeddings by pulling matching pairs together and pushing mismatched ones apart, such as a photo and its caption against the other captions in the batch.
Second pair First pair Used in: CLIP , Siamese network
Source: Hadsell, Chopra & LeCun 2006 ; Radford et al. 2021
Strengthening the weight between two units that are active together, often summed up as cells that fire together wire together. A Hopfield network stores its patterns this way, in one pass, with no error passed back.
Used in: Hopfield network
Source: Hebb 1949 (opens in a new tab) ; Hopfield 1982
How probable a model finds some data (for continuous data such as images, a probability density). Training to raise it, usually its logarithm, teaches the model to assign high probability to real examples; a normalizing flow computes it exactly, a VAE a lower bound on its logarithm.
Used in: Normalizing flow , Variational autoencoder , GPT-style LLM , Diffusion model , WaveNet
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab) ; Dinh, Krueger & Bengio 2014
Training a model to fill in tokens hidden from it, using the tokens on both sides.
Tokens Attention Prediction BERT picks 15% of positions to predict and replaces most of them with a mask token (a few with a random token, a few left as they are). It suits a model that reads the whole text at once; a masked diffusion LLM generates by repeating it, unmasking a few tokens at a time.
Used in: BERT , Masked diffusion LLM
Source: Devlin et al. 2018
Training a model to predict each token from the ones before it, so ordinary text supplies its own answers, and every position of a sequence is a training example at once.
Tokens Attention It is how GPT-style language models learn.
Used in: RNN , LSTM , GRU , Seq2seq with attention , WaveNet , Transformer , GPT-style LLM , Linear attention , Mamba , Recurrent hybrid , Sparse MoE
Source: Bengio et al. 2003 (opens in a new tab) ; Radford et al. 2018
Noise is random variation, here added on purpose. A denoising model learns to remove it, which teaches it what clean data looks like; diffusion repeats this a little at a time to generate , and a GAN's generator turns noise into data in one pass.
Used in: Denoising autoencoder , Diffusion model , Flow matching , GAN , Normalizing flow , Variational autoencoder
Source: Vincent et al. 2008 ; Ho, Jain & Abbeel 2020
Training a network to reproduce its own input, usually through a narrow middle, so it must learn what matters about the data to get it back.
Used in: Autoencoder , Sparse autoencoder , Denoising autoencoder , Variational autoencoder , RBM
Source: Rumelhart, Hinton & Williams 1986 ; Hinton & Salakhutdinov 2006 (opens in a new tab)
A lower bound on the logarithm of how probable a model with a hidden code finds the data, trained in place of that log-likelihood , which can't be computed exactly; raising the bound usually raises the log-likelihood too, but not always: part of any gain can come from the bound growing tighter instead. A VAE's bound rewards rebuilding the input while keeping its codes close to its prior . Diffusion models train on a simplified form of the same bound.
Used in: Variational autoencoder , Diffusion model
Source: Kingma & Welling 2013
Training How a network finds which way to change each weight .
Input Hidden Output Error passed back It passes the error back from the output, layer by layer, giving each weight its share of the blame, its gradient; gradient descent then moves every weight a small step the other way. Repeated over many examples, this is what training means for most networks here.
Used in: Nearly every network here; not the Hopfield network, the Boltzmann machines, or the Kohonen map, which learn by local rules.
Source: Rumelhart, Hinton & Williams 1986
A fast way to train an RBM: start Gibbs sampling at the data, run only a step or a few, and nudge the weights toward the data and away from the short run's result. It approximates maximum-likelihood training without waiting for equilibrium . Not related to contrastive learning.
Used in: RBM , Deep belief network
Source: Hinton 2002
Training a model, the student, to reproduce another's outputs, the teacher's: to make a smaller or faster copy. For diffusion and flow models it cuts sampling from many steps to a few.
Used in: Flow matching , Diffusion model
Source: Hinton, Vinyals & Dean 2015 (opens in a new tab)
Training a pretrained model a little further, on a smaller dataset for a specific task, starting from its learned weights rather than from scratch. It is far cheaper than pretraining and adapts the model's features to the task.
Used in: BERT , Deep belief network , ViT , GPT-style LLM , Actor-critic (PPO)
Source: Devlin et al. 2018 ; Hinton, Osindero & Teh 2006
Sampling from a network of random units by updating some of them, each drawn given the rest, over and over. Run long enough it reaches equilibrium ; in an RBM a whole layer can be drawn at once, since its units don't connect to each other.
Used in: Boltzmann machine , RBM , Deep belief network
Source: Geman & Geman 1984 (opens in a new tab) ; Ackley, Hinton & Sejnowski 1985
A number that measures how far a network's output is from what it should be; training lowers it.
Weight → Loss → loss 2.58 loss 0.75 loss 0.35 loss 0.27 loss 0.25 Each panel's objective says what its loss rewards.
Used in: Nearly every network here; not the Hopfield network or the Kohonen map, which follow update rules instead.
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
Fitting the training examples so closely, quirks and errors included, that a network does worse on new data.
Training time → Loss → Best It shows when the loss on held-out examples, kept out of training, starts rising while the training loss still falls. Stopping there, early stopping, guards against it, as do regularization and more data.
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
Training a model further after pretraining , to shape how it behaves: on examples of good answers (instruction tuning), directly on people's preferences (as DPO does), or by reinforcement learning such as RLHF, often several in turn. It turns a text predictor into an assistant.
Used in: GPT-style LLM , Actor-critic (PPO)
Source: Ouyang et al. 2022
Training a model first on a large, general task, such as predicting words across much of the web, so it learns broadly useful features before any specific use. A DBN pretrains one layer at a time; BERT and GPT pretrain on text.
Used in: Deep belief network , BERT , GPT-style LLM , ViT , CLIP
Source: Hinton, Osindero & Teh 2006 ; Devlin et al. 2018
Anything that limits how freely a network fits its training data, so that it does better on new data. Weight decay pulls every weight a little toward zero; dropout switches off random units at each training step, so no unit can count on another; data augmentation shows each example in many variations, such as an image flipped or cropped; early stopping ends training once the held-out loss stops falling. Some panels build it into their objective: the sparse autoencoder's sparsity penalty, the denoising autoencoder's noise, and the VAE's pull toward its prior .
Used in: Sparse autoencoder , Denoising autoencoder , Variational autoencoder
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab) ; Srivastava et al. 2014 (opens in a new tab)
Drawing an output at random from a model's probabilities instead of always taking the likeliest one, which is how generative models give varied results.
drawn cat 0.50 0.50 0.50 0.72 dog 0.25 0.25 0.25 0.18 drawn car 0.15 0.15 0.15 0.07 sky 0.10 0.10 0.10 0.03 Used in: GPT-style LLM , Diffusion model , Variational autoencoder , Boltzmann machine , RBM , Deep belief network , GAN , Normalizing flow , WaveNet , Flow matching , Actor-critic (PPO) , Masked diffusion LLM
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
Training on answers the data supplies itself: hide part of the input, or the next word, and ask the network for it. It needs no labels, so it can learn from vast amounts of text and images; it is the usual way to pre-train .
Used in: BERT , GPT-style LLM , Masked diffusion LLM , Denoising autoencoder , WaveNet , Diffusion model , Flow matching
Source: Devlin et al. 2018 ; Radford et al. 2018
Training on inputs paired with targets , the answers the network should give: labels people provided, such as what a photo shows, or targets from measurements, simulations, or a program, such as the copied sequences a Neural Turing machine learns to reproduce. The network is corrected toward each target. Most classifiers here, from the perceptron to ResNet, learn this way.
Used in: Perceptron , MLP , CNN , ResNet , U-Net , KAN , LSTM , Bidirectional RNN , Neural Turing machine , Deep belief network , Modern Hopfield network , Radial basis network , Denoising autoencoder , ViT , Graph neural network , Capsule network
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
Training adjusts a model's weights from data; inference runs the model on new inputs with its weights fixed. A model may be trained in several stages, retrained later, or updated as new data arrives, and each stage is costly; inference runs every time the model is used, so its cost per input matters most once a model is in use.
Used in: Every network here.
Source: Goodfellow, Bengio & Courville 2016 (opens in a new tab)
Training with no answers at all: the network finds structure in the data on its own, such as clusters , compact codes , or the data's overall shape. The Kohonen map, Boltzmann machines, and autoencoders learn this way.
Used in: Kohonen map , RBM , Boltzmann machine , Autoencoder , Hopfield network , Sparse autoencoder , Deep belief network , Variational autoencoder , GAN , Normalizing flow
Source: Kohonen 1982 ; Goodfellow, Bengio & Courville 2016 (opens in a new tab)
The error passed back through many layers , or many steps of a recurrence , shrinking a little at each until the earliest weights barely learn.
Output 1 1 1 1 Layer 4 0.25 0.25 0.25 Layer 3 0.06 0.06 Layer 2 0.016 Layer 1 0.004 It long made deep and recurrent networks hard to train; LSTM gates , residual connections , ReLU activations , and careful starting weights all answer it.
Discussed in: RNN , LSTM
Source: Hochreiter 1991 (opens in a new tab) ; Bengio, Simard & Frasconi 1994 (opens in a new tab)
Reinforcement learning What an agent does at each step, chosen by its policy : push left or right, move a piece, write a token . The environment responds with a new state and a reward .
Used in: Actor-critic (PPO)
Source: Sutton & Barto 2018 (opens in a new tab)
The two parts of an actor-critic method. The actor is the policy , choosing actions ; the critic estimates the value of a state , the total reward still expected from it (the return), or of taking a given action in it. Comparing what happened with the critic's estimate tells the actor which actions did better than expected. The two can share one network or be separate ones.
Used in: Actor-critic (PPO)
Source: Schulman et al. 2017 ; Sutton & Barto 2018 (opens in a new tab)
PPO's way of keeping each update small: it clips its objective, so once an action 's probability has moved more than about 20% from before the update, in the direction that helps, pushing it further gains nothing. That removes the incentive for larger changes rather than strictly capping them, and keeps learning steady when one batch is lucky or unlucky.
Used in: Actor-critic (PPO)
Source: Schulman et al. 2017
Everything outside the network that it acts on: a game, a simulator, a robot's surroundings, a person rating answers. It takes each action and returns the next state and a reward . The guide draws it as an outlined box.
Used in: Actor-critic (PPO)
Source: Sutton & Barto 2018 (opens in a new tab)
In reinforcement learning , the network that chooses actions : given the current state , it usually gives the probability of each action, and one is drawn; a deterministic policy picks one directly. Policy-gradient methods train it directly, making well-rewarded actions more likely.
Used in: Actor-critic (PPO)
Source: Sutton & Barto 2018 (opens in a new tab) ; Williams 1992
Learning by trial and error. A network, the policy , chooses actions , and the environment returns rewards : scores for how well things went. Training makes actions that led to more reward more likely. RLHF fine-tunes language models this way, with rewards from a model trained on people's preferences.
Used in: Actor-critic (PPO)
Source: Sutton & Barto 2018 (opens in a new tab) ; Ouyang et al. 2022
The score the environment returns after an action , such as +1 for each step the pole stays up. Training aims for the most reward over time, not at each step.
Used in: Actor-critic (PPO)
Source: Sutton & Barto 2018 (opens in a new tab) ; Ouyang et al. 2022
Model families A model that generates one piece at a time, each predicted from everything before it, feeding each output back in as the next input: in the guide, an arrowhead on an input's stem, or an arrow around the side for the newest.
Tokens in Attention Attention Next token Most language models work this way; diffusion language models fill in many tokens at once instead.
Examples: GPT-style LLM , Transformer , Seq2seq with attention , WaveNet , Linear attention , Recurrent hybrid
Source: van den Oord et al. 2016 ; Radford et al. 2018
Generating data by learning to undo a gradual noising: a network is trained to remove a little noise at a time, then run from pure noise, step by step, to make something new. The Diffusion model panel draws it; masked diffusion LLMs do the same with masked tokens .
Examples: Diffusion model , Masked diffusion LLM
Source: Sohl-Dickstein et al. 2015 ; Ho, Jain & Abbeel 2020
A model that learns what its training data looks like well enough to make new examples of it: images, audio, or text. Some make a sample all at once (a GAN, a VAE's decoder ), some refine noise step by step (diffusion , flow matching), and some write one piece at a time (autoregressive models such as WaveNet and GPT).
Examples: Boltzmann machine , RBM , Deep belief network , Variational autoencoder , GAN , Diffusion model , Normalizing flow , WaveNet , Flow matching , GPT-style LLM , Masked diffusion LLM
Source: Goodfellow et al. 2014 ; Kingma & Welling 2013
The two networks of a GAN. The generator turns random noise into a sample ; the discriminator sees real data and the generator's samples and guesses which is which. After training, only the generator is kept.
Used in: GAN
Source: Goodfellow et al. 2014
A model of text: given some tokens , it gives a probability for each token that could fit, usually the next one (next-token prediction ), sometimes masked ones in between. Trained on vast amounts of text and then post-trained , large ones are today's chat assistants.
Examples: GPT-style LLM , BERT , Masked diffusion LLM , Transformer , Linear attention , Mamba , Recurrent hybrid , Sparse MoE
Source: Bengio et al. 2003 (opens in a new tab) ; Radford et al. 2018
A generative model built from invertible steps that turn simple noise into data and back, so it has an exact formula for its likelihood of any data (a probability density), which a flow of discrete steps computes directly. Flow matching trains a continuous one, whose steps are tiny moves along a learned velocity ; its likelihood is computed numerically, by solving an ODE , often with a random estimate of one term along the way.
Examples: Normalizing flow , Flow matching
Source: Dinh, Krueger & Bengio 2014 ; Chen et al. 2018
A shallow network that learns a vector for every word from the words around it.
Word Its vector Words nearby In its usual form, skip-gram with negative sampling , each word's vector is trained to score the words really near it high and a few words drawn at random low. Words used in similar contexts end up with similar vectors, so that king − man + woman lands near queen. GloVe and fastText are close relatives, and every language model since begins by looking up a learned embedding for each token .
Discussed in: BERT
Source: Mikolov et al. 2013a (opens in a new tab) ; Mikolov et al. 2013b (opens in a new tab)
Tasks and data Grouping data points that lie close together, with no labels.
Feature 1 → Feature 2 → A radial basis network often places its centers by clustering the training data, and a Kohonen map clusters as it learns.
Used in: Radial basis network , Kohonen map
Source: Moody & Darken 1989 ; Kohonen 1982
A direction along which data varies most; the first few give the best straight-line compression of the data.
Feature 1 → Feature 2 → A linear autoencoder with a narrow middle learns the same subspace, so it takes nonlinear layers to do better.
Discussed in: Autoencoder
Source: Bourlard & Kamp 1988
Rounding values to one of a fixed set of levels.
Time → Value → WaveNet quantizes each audio sample to one of 256 values, so it can predict the next as a choice among them with a softmax . (Quantizing a model's weights to fewer bits, to save memory, is the same idea.)
Used in: WaveNet
Source: van den Oord et al. 2016
Labeling every pixel of an image with what it shows, such as cell or background, rather than labeling the image as a whole. A U-Net outputs a dense map with a label for each pixel: smaller than its input in the original, whose convolutions don't pad, and the same size in most later versions.
Used in: U-Net
Source: Ronneberger, Fischer & Brox 2015
Mapping one sequence to another of possibly different length, such as a sentence to its translation: an encoder reads the whole input, and a decoder writes the output, usually one token at a time.
Words in States Words out In the first neural versions (seq2seq, 2014) the decoder got only the encoder's last state , so a whole sentence had to fit in one vector , and long ones lost detail; attention let the decoder read every encoder state instead. Translation drove the move from recurrent encoder–decoders to attention, and then to the Transformer.
Examples: Seq2seq with attention , Transformer
Source: Sutskever, Vinyals & Le 2014 (opens in a new tab) ; Cho et al. 2014 ; Bahdanau, Cho & Bengio 2014
Doing a task with no training examples for that task. CLIP classifies an image by comparing it with captions such as “a photo of a dog”, so it can use labels from no training set, though its pretraining on web images and captions has likely seen similar images and words.
Used in: CLIP
Source: Radford et al. 2021
Scale How many tokens a model can take into account at once: its working memory.
Tokens Attention Next token Attention 's cost grows with it, which is why linear-time and hybrid models aim at long contexts.
Discussed in: Mamba , Recurrent hybrid
Source: Vaswani et al. 2017
The keys and values a Transformer keeps for every earlier token as it generates , so each new token can attend to them without recomputing them. It grows with the context , and so does the cost of each new token; recurrent and state-space layers keep a fixed-size state instead.
Used in: Transformer , GPT-style LLM , Recurrent hybrid
Source: Vaswani et al. 2017 ; Pope et al. 2022 (opens in a new tab)
Working on every position of a sequence at once instead of one after another, which is what makes training on modern hardware fast. A Transformer trains on a whole sequence in one pass, while an RNN goes step by step, each state waiting for the last; linear attention and state space models are built so their recurrence can be computed in parallel too. Diffusion language models carry it into generation , filling in many tokens per pass.
Discussed in: LSTM , Mamba , Masked diffusion LLM
Source: Vaswani et al. 2017 ; Gu & Dao 2023
Full attention compares every pair of positions, so its pairwise work grows with the square of the length: twice the text, four times that work.
Sequence length → Cost → 1× 4× 16× The rest of the model grows only in step with the length, so for short texts the quadratic part need not dominate. Recurrent and state-space models carry a fixed-size state instead, so their work grows only in step with the length, but must squeeze all of the past into that state. Hybrids keep a few attention layers for direct access to earlier tokens : still quadratic, but with far less quadratic work.
How sequence models' costs grow with the length of the sequence (with full attention) Model Training Cost of each new token Memory while generating Recall of earlier tokens RNN, LSTM, GRU one step at a time flat a fixed-size state through a fixed-size summary Transformer in parallel; work grows with the square grows with the context a KV cache that grows with the context direct access to every earlier token Linear attention, Mamba, DeltaNet in parallel; work grows in step flat a fixed-size state through a fixed-size summary Recurrent hybrid in parallel; linear work plus a few quadratic layers grows only in its few attention layers a much smaller KV cache direct access, through its attention layers
Discussed in: Mamba , Recurrent hybrid
Source: Katharopoulos et al. 2020