Deep learning · Animation

See what neural networks can learn from images, sequences and feedback. Start with four core ideas, try eight small experiments, then compare when each method is useful.

Questions about deep learning

Start here if you are new to neural networks.

What does “deep” mean?

It refers to the layers a signal passes through. An image network can combine simple edges into shapes and then use those shapes to recognize objects.

Four ideas to start with

Neural networks can be shallow or deep. Deep learning uses neural networks with many layers: each layer takes the previous layer’s output and can combine simple cues into more complex representations. Depth counts successive transformations; width counts units within a layer.

Representation
A way to describe something with numbers the network can work with. An image starts as pixel values; a later layer might describe where it sees strokes or loops.
Weight
A number the network learns during training. It controls how strongly, and in which direction, one input changes a unit’s score.
Activation function
A rule that turns a unit’s score into the value it passes on. One common rule passes positive scores through and turns negative ones into zero. Any stack of layers that only mix inputs with weights and add offsets is equivalent to a single weighted sum and offset. A nonlinear rule like this one lets the stack learn more complex relationships.
Loss
A number that measures how far a prediction misses the training objective. When the network assigns a low probability to the correct digit, the loss can be high. Training uses that signal to work out how to adjust the weights.

Architecture shapes where a network looks for clues

Architectures shape how features are learned: they determine which inputs can interact first and how they can be combined. Training learns which features are useful.

  • A CNN slides the same small window across an image to look for local clues such as edges or scratches, then combines them into larger shapes.
  • An RNN reads in order. Each step combines the current input with the previous state, learning which earlier clues are worth retaining.
  • A Transformer uses attention to share clues directly between positions, learning which positions are relevant in the current context.

Try eight methods

Play with a card to see results, or use the full list to find a method.

  1. Feedforward neural network

    Apple or pear: can size and sweetness help you tell?

    Input
    One fruit’s size and sweetness readings.
    Output
    A fruit guess and a visible calculation using both readings.
    A way to picture it
    Like a sorter combining two clues: first size, then sweetness. Fixed settings illustrate how one neuron makes a guess.
    Where it can help
    • Learn nonlinear patterns with networks of multiple neurons.
    • Predict numeric outcomes from several input features.

    Try this Lower both readings, then raise them gradually. Watch the new fruit move and see where the guess changes.

    Preparing controls
    Size readingSweetness readingAppleAppleApplePearPearPearNew fruit
    Drag the diamond directly, or use the sliders to change size and sweetness.
    Size reading0.5Sweetness reading0.65Combined score0.45SigmoidPear0.611
    Both readings feed the score; Sigmoid turns it into a pear estimate.

    Pear · Pear estimate = 0.611

    Decision cutoff: 0.5. This is a model estimate, not validated confidence.

  2. Convolutional neural network (CNN)

    Which parts of this X have the most filled pixels?

    Input
    A 5 × 5 pixel X and a 3 × 3 counting window.
    Output
    A feature map: one count for each window position.
    A way to picture it
    Like sliding a small stencil over a pixel image. At each position, the same filter computes a response and writes it into the feature map.
    Where it can help
    • Detect visual patterns for image classification.
    • Find local features in inspection images.

    Try this Advance the scan and match the highlighted window to its feature-map cell. The same filter is reused at every position.

    Preparing controls

    Slide the same 3 × 3 window across the image. Count the filled pixels at each stop.

    ImageFeature map→3········

    Feature map, row 1, column 1: 3 filled pixels.

  3. Recurrent neural network (RNN)

    How can a café carry yesterday’s summary into today?

    Input
    Four daily order counts: 2, 4, 3, 5.
    Output
    One running summary after each day’s orders.
    A way to picture it
    Like keeping a running note while reading café demand day by day. Each new value updates the note; here the update simply averages the previous state and current input.
    Where it can help
    • Model time-ordered sensor readings.
    • Process sequences for tasks such as speech recognition.

    Try this Advance one day and follow the old state into the new one. This fixed rule illustrates recurrence, not a trained forecast.

    Preparing controls

    Start at zero, then average each day’s count with the previous summary.

    021h14·h23·h35·h4

    Today’s order count: 2. Average it with the previous summary (0) → 1.

  4. Transformer

    In “Mia gave Ana her cup,” what clues does “her” get?

    Input
    The five words in the sentence, with “her” selected.
    Output
    An illustrated context summary. Both names remain possible.
    A way to picture it
    Like drawing reference threads across a sentence instead of passing one note word by word. The illustrated attention links show which words are consulted for “her”; they are not learned weights.
    Where it can help
    • Generate or summarize text using context.
    • Model relationships among tokens in a sequence.

    Try this Step through the links, then inspect the unresolved Mia/Ana choice. Attention alone does not settle every ambiguous reference.

    Preparing controls

    Thicker lines show stronger weights assigned for this illustration.

    MiagaveAnahercup

    Read the five tokens. Head 1 weighted context = 2.105 using fixed toy token-index values.

  5. Generative adversarial network (GAN)

    How could a pattern maker improve with feedback from a judge?

    Input
    A reference pattern and a noise input.
    Output
    An example sample, plus a diagram of which network real training would update.
    A way to picture it
    Like a forger and an inspector practicing together: one proposes a sample, the other compares it with real examples. The feedback helps the generator adjust its next attempt.
    Where it can help
    • Generate synthetic images from a learned data distribution.
    • Explore image-to-image translation.

    Try this Follow the feedback arrow back to the generator. These fixed steps explain the roles, not a live training run.

    Preparing controls

    Dots mark preset sample positions. The chart highlights which network an actual training step would update.

    Reference

    Start with a reference pattern.

  6. Diffusion model

    What would it look like for an X to emerge from noise?

    Input
    A fixed 5 × 5 noise grid and a given X pattern.
    Output
    A series of blends ending at the given X.
    A way to picture it
    Like gradually clearing static from a tiny picture. This slider blends fixed noise toward a known target so you can see the direction of denoising; it is not a trained sampler.
    Where it can help
    • Generate images through learned denoising steps.
    • Edit or fill image regions with a conditioned model.

    Try this Move from noise toward the final image and track a few pixels. The shown endpoint is predefined, not newly generated.

    Preparing controls

    Watch a fixed blend shift from noise toward a supplied X to illustrate gradual denoising.

    0% X pattern in the blend; the rest is fixed noise.

  7. Reinforcement learning

    When does the robot earn a reward for getting around the wall?

    Input
    A 4 × 4 grid with a start, a wall and a goal.
    Output
    The path taken and the reward at each step.
    A way to picture it
    Like a robot learning from the consequences of its moves rather than a label on each square. Here you follow a preset route around a wall to a rewarded goal.
    Where it can help
    • Learn control policies in simulated environments.
    • Study sequential decisions with delayed rewards.

    Try this Trace the route to the reward. The slider replays one path; it does not explore alternatives or train a policy.

    Preparing controls

    Follow the robot along a preset route and see when it earns a reward.

    ★

    At the starting cell: 0 moves, 0 reward.

  8. Autoencoder

    What gets lost when four values must fit into one?

    Compress an input through a smaller code, then reconstruct the input from that code.

    Input
    Four pixel values: [1, 0, 1, 0].
    Output
    A smaller code, four reconstructed values, and their mean squared error.

    Try one dimension, then two. Does a larger bottleneck always need to improve this input?

    Preparing controlsxzx̂101010.50.50.50.5
    Original input
    [1, 0, 1, 0]
    Compressed code
    [1]
    Reconstruction
    [0.5, 0.5, 0.5, 0.5]
    Mean squared reconstruction error
    0.25

    Encode: z = Uₖᵀx. Decode: x̂ = Uₖz. Error: mean((x̂ − x)²).

    This demonstration uses a fixed orthonormal linear projection with no fitting, gradients, or optimizer. It is not fitted PCA or a trained neural autoencoder. A real autoencoder learns encoder and decoder weights from reconstruction loss; a linear model relates to PCA only under additional conditions. Two dimensions reconstruct this particular input exactly; that does not imply exact reconstruction of arbitrary inputs.

How models learn

Fit the same six observations with y = wx + b: each optimizer changes the slope and intercept to reduce squared error.

Use all six observations to compute the gradient for each update.

Loss contours and parameter path
Full-data loss: 0.0346Full-data loss: 0.1246Full-data loss: 0.4046Full-data loss: 1.0046Full-data loss: 2.0046Full-data loss: 4.0046Parameter pathMinimumCurrent parameters-244-1Slope wIntercept b
Current parametersMinimumDownhill direction at the previous point (updated coordinates)
Observations and fitted line
Fitted lineObservation 1: x=0, y=0.91Observation 2: x=0.4, y=1.262Observation 3: x=0.8, y=2.023Observation 4: x=1.2, y=2.384Observation 5: x=1.6, y=3.145Observation 6: x=2, y=3.560240xy
ObservationUsed in this updateFitted line
Full-data loss
1.321
Current parameters
w = -1, b = 3
Update gradient (w, b)
No update yet
Observations used for this update
No update yet

What to explore next

See how real projects and papers use these methods. Look at the data, evaluation, and results to judge how well each project works.

Choose a learning path

Explore what people are building and researching

Browse frontier applications in open-source projects and follow new research in papers.

Reading guide and evidence

These eight entries include architectures, generative model families and a learning framework, not interchangeable algorithms. The animations isolate a calculation or explain a process; they do not train production models or demonstrate real-world performance.

For citation: OpenStarMap’s demonstrations illustrate selected computations on small examples or schematic processes. They are not benchmark results. The references explain the underlying methods; they do not certify this site’s implementation.

Method summaries and references
  1. Feedforward neural network

    Stack learned weighted combinations and nonlinear activations to map inputs to outputs. Choose a classification or regression output and objective to match the task.

    What the demonstration does: The small neuron lab computes forward outputs, loss and weight updates; it is not large-scale network training.

    References: scikit-learn: Multilayer perceptrons; Dive into Deep Learning: Multilayer Perceptrons

  2. Convolutional neural network (CNN)

    Apply learned filters across local regions, reusing their weights at different positions. Stacked layers combine local patterns into broader features; the output head determines the prediction task.

    What the demonstration does: Computes a small local filter response; a feature map is not a trained image classifier.

    References: Dive into Deep Learning: Convolutional Neural Networks

  3. Recurrent neural network (RNN)

    Process a sequence while updating a hidden state that carries information from earlier steps. LSTM and GRU variants use gates to help control what is retained.

    What the demonstration does: Shows a small recurrent-state calculation, not a trained LSTM/GRU or an evaluation of long-range memory.

    References: Dive into Deep Learning: Recurrent Neural Networks; Dive into Deep Learning: Modern Recurrent Neural Networks

  4. Transformer

    Use attention to combine information from relevant positions in a sequence, alongside feedforward layers. Encoder, decoder, and encoder–decoder designs support tasks such as classification, text generation, and translation.

    What the demonstration does: Normalizes fixed attention scores and combines fixed token-index values under a causal mask; it does not train attention or resolve the ambiguous reference.

    References: Vaswani et al.: Attention Is All You Need (2017); Dive into Deep Learning: The Transformer

  5. Generative adversarial network (GAN)

    Train a generator to produce samples and a discriminator to tell training examples from generated ones. The discriminator’s feedback guides improvements to the generator.

    What the demonstration does: Uses preset sample positions to explain alternating network updates; it does not optimize a generator and discriminator.

    References: Goodfellow et al.: Generative Adversarial Nets (2014)

  6. Diffusion model

    Learn to reverse a gradual noising process. Generation starts from noise and repeatedly applies learned denoising steps, optionally guided by a text prompt or other condition.

    What the demonstration does: Blends fixed noise with a supplied X pattern; it does not run a learned denoiser or generate a new image.

    References: Ho et al.: Denoising Diffusion Probabilistic Models (2020); Song et al.: Denoising Diffusion Implicit Models (2020); Ho & Salimans: Classifier-Free Diffusion Guidance (2022)

  7. Reinforcement learning

    Learn how to choose actions from feedback about rewards over time. Different algorithms use this framework to learn from rewards, including rewards that arrive long after an action.

    What the demonstration does: Illustrates choices and reward feedback in a small environment, not a trained deployment policy or a safety assessment.

    References: Sutton & Barto: Reinforcement Learning—An Introduction; Dive into Deep Learning: Reinforcement Learning

  8. Autoencoder

    Compress an input through a smaller code, then reconstruct the input from that code.

    What the demonstration does: Computes a fixed orthonormal projection, reconstruction and mean squared error; no encoder/decoder weights are trained, and it is not fitted PCA.

    References: Reducing the Dimensionality of Data with Neural Networks

Questions about this learning guide

Do these animations train a real AI model?

Some demonstrations fit small numerical models or compute individual updates. Others use fixed values or schematic animations. Each method summary states its scope; none is evidence of production training or real-world performance.

Can I use the displayed result as an accuracy benchmark?

No. The examples are designed to explain a mechanism, not compare accuracy. Evaluate a model on independent, representative data and check the assumptions of the task.

Can I read this guide without running the animations?

Yes. The summaries, demonstration boundaries, questions and source references are available as page text without JavaScript. Interactive controls and animated visuals require JavaScript.

Structured data helps describe this page; search visibility, AI citations and rich results are not guaranteed.

A small teaching example focused on how the method works.