Skip to content
ReEnvision
← Unit 3: How models learn

Neural networks, without the math

What the technology behind most modern AI actually is: many simple units, connected, with adjustable strengths.

Lesson 3.3 50 minNo coding required

Objectives

By the end of this lesson, you will be able to:

  • Describe a neural network as layers of simple connected units
  • Explain what weights are and why they matter
  • Explain why neural networks are powerful and why they are hard to interpret

Key terms

Neural network
A model made of layers of simple units, each passing numbers to the next, loosely inspired by the brain.
Weight
A number that sets how strongly one unit influences another. Training adjusts the weights.
Layer
A group of units that work at the same stage of a neural network.
Deep learning
Machine learning that uses neural networks with many layers.

Reading

Many simple parts

A neural network is built from simple units, sometimes called neurons. Each unit does one small thing: it receives numbers, combines them, and passes a number on. One unit alone can do almost nothing interesting.

The power comes from connecting very many of them in layers. The first layer receives the input, such as the numbers describing an image. Each following layer receives the output of the layer before. The last layer produces the answer.

The name comes from a loose comparison to brain cells. The comparison is only loose. A neural network is arithmetic, and it does not work the way a brain does.

Weights are what the network knows

Every connection between two units has a weight: a number that says how much the first unit's output should count. A large weight means "pay close attention to this." A weight near zero means "mostly ignore this."

Everything a network has learned is stored in its weights. A network with random weights produces nonsense. Training is the process of nudging the weights, a little at a time, until the outputs are good. Large modern networks have billions of weights.

Layers build up from simple to complex

In an image network, early layers tend to respond to simple things such as edges and patches of color. Middle layers combine those into shapes and textures. Later layers combine shapes into things like eyes, wheels or leaves. Nobody programs this arrangement. It emerges from training.

This layering is why neural networks handle messy inputs like photos, speech and language so well. It is also why they are hard to interpret. The knowledge is spread across millions or billions of numbers, with no branch you can read. Researchers are working on tools to see inside, but for now we mostly judge these models by testing their behavior.

Try it · Interactive lab

Tune a single neuron

This is one unit of a neural network. Switch its inputs on and off, change the weights, and see when it fires.

1×2 + 0×1 + 1×1 = 3

3 ≥ 3

Output

Take the bus

Try this: set the weights so the neuron says "take the bus" only when it is raining and the stop is close. Then give one input a negative weight and see what that does. Training a real network is this same adjusting, done automatically across millions of weights.

Group activity 25 min

The human neural network

You will need

  • Simple black-and-white 3x3 grid images of two shapes (for example, a vertical line and a horizontal line)
  • Role cards for input units, middle units and one output unit
  • Counters or tokens
  1. 1

    Nine learners are input units, each watching one square of the grid. If your square is filled, hold up a token.

  2. 2

    Three learners are middle units. Each is told which inputs to watch and how much each counts (their weights). Add up what you see; if the total passes your threshold, stand up.

  3. 3

    One learner is the output unit, who watches the middle units and announces "vertical" or "horizontal" based on who is standing.

  4. 4

    Run several images. Then change one middle unit's weights and watch the answers change. Discuss: where is the network's knowledge stored?

Discuss

  1. Q1

    No single person in the activity knew what shape was shown, yet the group got the answer. What does that tell you about neural networks?

  2. Q2

    When we changed the weights, the behavior changed. How is that different from rewriting a rule in a program?

  3. Q3

    Why is it harder to explain a decision made by a neural network than one made by a decision tree?

Write your answer to one of the questions. Saved only on this device.

Quick check

Choose an answer to see whether you were right, and why.

  1. 1Where is a neural network's learned knowledge stored?

  2. 2Why are neural networks hard to interpret?

  3. 3In an image network, what do early layers usually respond to?

Key takeaways

  • A neural network is many simple units connected in layers.
  • What it knows is stored in its weights, which training adjusts.
  • Layers build from simple features to complex ones, which makes these models powerful and hard to read.