WeightSpace Atlas
How neural networks are built
16 architectures31 parts7 basic concepts13 lenses71 models
Architectures
16- FeedforwardMultilayer perceptronDense layers with a nonlinearity between them: the smallest network that can learn curved decision boundaries.
- ConvolutionalConvolutional networkStacks of convolution, activation and pooling that turn a grid of pixels into a short list of class scores.
- ConvolutionalResidual blockTwo convolutions whose output is added back to their input, so very deep networks stay trainable.
- ConvolutionalInverted residual blockExpands a thin feature map, filters it depthwise, and projects it back down, with the shortcut on the thin side.
- ConvolutionalFeature pyramid detectorA backbone produces feature maps at several scales; a light head at each scale predicts a class score and a box per cell.
- RecurrentRecurrent networkA recurrent layer carries state across time steps; a dense head turns each step’s state into a prediction.
- RecurrentConvolutional recurrent network with CTCConvolutions turn an image line or waveform into a sequence of frames; a sequence model labels each frame; CTC collapses them into text.
- AttentionTransformer encoderToken embeddings refined by repeated blocks of self-attention and a feed-forward MLP, each wrapped in a residual and LayerNorm.
- AttentionTransformer decoderGenerates one token at a time: masked self-attention over what it has written, cross-attention to the input, then a vocabulary softmax.
- AttentionVision transformerCuts an image into patches, embeds each as a token, and runs a transformer encoder over them.
- Encoder–decoderU-NetShrinks an image to coarse features and grows it back, copying each encoder level across to the matching decoder level.
- Encoder–decoderAutoencoderAn encoder squeezes the input into a short code and a decoder rebuilds the input from it.
- Encoder–decoderSequence to sequenceAn encoder reads the whole input sequence; a decoder writes an output sequence of a different length from it.
- GenerativeVariational autoencoderAn autoencoder whose code is a probability distribution, so new samples can be drawn from it.
- GenerativeGenerative adversarial networkA generator turns random noise into images while a discriminator learns to tell them from real ones.
- ControlPolicy networkA small MLP that reads a game or sensor state and outputs what to do next: action scores, Q-values or a motor command.
Parts
31- LinearDense layerEvery output is a weighted sum of every input plus a bias: the basic learned building block of most networks.
- Live demoConvolutionConvolutionSlides a small learned filter over an image or signal, so the same detector runs at every position.
- Live demoConvolutionDepthwise separable convolutionSplits a convolution into a per-channel spatial filter and a 1 × 1 channel mixer, for a fraction of the cost.
- ConvolutionTransposed convolutionA learned upsampler: each input value paints a weighted copy of the kernel into a larger output.
- Live demoPoolingMax poolingKeeps only the strongest response in each window, shrinking the map and tolerating small shifts.
- Live demoPoolingAverage poolingReplaces each window with its mean; global average pooling turns a feature map into one vector.
- Live demoActivationReLUPasses positive values unchanged and sets negative ones to zero: the default nonlinearity.
- Live demoActivationLeaky ReLULike ReLU, but negative inputs keep a small slope, so units never go completely silent.
- Live demoActivationGELUA smooth ReLU that weighs each input by how likely it is to be positive; the transformer default.
- Live demoActivationSigmoidSquashes any number into the range 0 to 1, so it can be read as a probability or used as a gate.
- Live demoActivationTanhSquashes any number into the range −1 to 1, centered at zero.
- Live demoActivationSoftmaxTurns a vector of scores into probabilities that are positive and add up to one.
- Live demoActivationSwishx times sigmoid(x): a smooth, slightly non-monotonic alternative to ReLU used in efficient CNNs.
- NormalizationLayer normalizationRescales each token’s features to zero mean and unit variance, then applies a learned gain and bias.
- NormalizationBatch normalizationNormalizes each channel with statistics gathered during training, then applies a learned gain and bias.
- NormalizationInstance and group normalizationNormalizes each image’s channels by their own statistics, removing per-image contrast and brightness.
- RecurrentLSTMA recurrent layer with a separate memory cell and three gates that decide what to keep, write and read.
- RecurrentGRUA lighter gated recurrent layer: two gates and no separate cell, often as good as an LSTM.
- RecurrentSimple RNNThe plain recurrent layer: the new state is a squashed mix of the input and the previous state.
- Live demoAttentionAttentionEach position builds its output as a weighted average of other positions, weighted by how well they match.
- Live demoAttentionMulti-head attentionRuns several attention patterns in parallel on projected slices of the input, then merges them.
- EmbeddingEmbeddingLooks up a learned vector for each token id: how words, notes or categories become numbers.
- EmbeddingPositional encodingAdds a position-dependent vector to each token so attention can tell first from last.
- CombineResidual connectionAdds a block’s input back to its output, so the block only has to learn a correction.
- CombineConcatenationJoins tensors side by side along one axis, keeping every input intact for the next layer to combine.
- CombineGating multiplyMultiplies two tensors element by element, letting one signal switch another on or off.
- ResampleUpsampleEnlarges a feature map by interpolation, with nothing to learn.
- ResamplePixel shuffleRearranges groups of channels into larger blocks of pixels: upsampling by reshuffling, not interpolating.
- Live demoRegularizationDropoutDuring training, zeroes a random fraction of values so the network cannot rely on any single unit.
- ReshapeReshape and transposeChanges how values are arranged into axes without changing the values themselves.
- QuantizationQuantizationStores numbers as 8-bit integers with a scale, cutting model size by about four times.
Basics
7- Live demoBasic conceptWeightA number on a connection: the value coming in is multiplied by it before the unit adds everything up.
- Live demoBasic conceptBiasA number added to a unit’s total whatever the inputs are: it moves the point where the unit switches on.
- Live demoBasic conceptUnitOne number-maker inside a network: it multiplies its inputs by weights, adds them up with a bias and passes the total through an activation function.
- Live demoBasic conceptActivationThe number a unit outputs for one particular input: the same weights give different activations for different inputs.
- Live demoBasic conceptLogitA classifier’s raw score for one class, before softmax turns the scores into percentages.
- Live demoBasic conceptLayerOne stage of a network: it takes the previous stage’s numbers and turns them into new ones, all units at once.
- Live demoBasic conceptHeld-out setExamples kept aside and not looked at while building or editing a model, so they can test whether a change works beyond the cases it was made for.
Lenses
13- Live demoWeightsHinton diagramA grid of squares, one per weight: the area of each square shows how large the weight is, its colour shows the sign.
- Live demoWeightsNetwork diagramUnits as circles and weights as lines between them: line width shows how large a weight is, colour its sign, and lit units show one input passing through.
- Live demoActivationsFeature mapThe output of one convolution channel drawn as an image: bright where its filter found its pattern, dark where it did not.
- Live demoAttributionOcclusion testHide one part of the input, run the model again and measure how far its score drops: the drop is how much the answer relied on that part.
- Live demoOutputsWeight mapPick two weights, try every pair of values on a grid and colour each point by what the model does there: a map of weight space, not of the network.
- Live demoOutputsClass scoresOne bar per possible answer: the raw scores (logits) of the last layer, usually turned into percentages with softmax.
- Live demoOutputsSame-input comparisonRun the original and the edited model on the same inputs and count what changed, group by group: the check that an edit did what was asked and nothing else.
- Live demoOutputsConfusion matrixA table of right and wrong answers: one row per true class, one column per predicted class, each cell counting the examples that landed there.
- Live demoAttributionGradient saliencyA map of how sensitive one output score is to each input pixel: the gradient of the score with respect to the input, drawn as an image.
- Live demoActivationsAttention mapA grid for one attention head: rows are the tokens doing the looking, columns the tokens being looked at, each cell how much weight one gives the other.
- Live demoWeightsWeight histogramA bar chart of how a layer’s weights are spread: how many are near zero, how many are large, and whether they lean positive or negative.
- Live demoActivationsEmbedding projectionA scatter plot of the vectors a network computes for many inputs, squeezed from hundreds of dimensions down to two so similar inputs land near each other.
- Live demoOutputsLoss landscapeA map of the training loss over two weights (or two directions in weight space): low ground is where the model fits its examples best.
Models
71- Multilayer perceptronSpot unusual sensor readingsTime-series anomaly detectionTry
- Multilayer perceptronEstimate a vintage car’s fuel economyTabular regressionTry
- Multilayer perceptronForecast a time seriesTime-series forecastingTry
- Multilayer perceptronSupport ticket routerTicket routingTry
- Multilayer perceptronHome occupancyRoom occupancy from sensorsTry
- Multilayer perceptronGas turbine monitorEquipment health and alertsTry
- Convolutional networkFind video shot changesShot boundary detectionTry
- Convolutional networkFind rows and cells in a tableTable structure recognitionTry
- Convolutional networkClean noise from a photoPhoto denoisingTry
- Convolutional networkGenerate a frame between two photosVideo frame interpolationTry
How it connects
- Weights
- Activation
- Normalization
- Sequence
- Pooling and resampling
- Combine and reshape