🏛️ Issues and Advocacy Training
Courses › How AI Works: The Kinds of AI and What They Are For

Lesson 4 of 9 · about 16 minutes

Neural Networks and Deep Learning in Plain Words

You'll be able to

  • Calculate the output of one artificial neuron from its inputs, weights and bias
  • Explain what layers do and why depth helps
  • Describe gradient descent and backpropagation without equations
  • Explain what a parameter count tells you and what it doesn't

A neural network borrows a loose idea from the brain: lots of simple units, each passing a signal to the next, with the strength of each connection adjustable. The resemblance to a real brain is thin. A real neuron is a living cell with chemistry nobody fully understands. An artificial neuron is a line of multiplication. But stack enough of them and train them well, and they recognize faces, transcribe speech and write essays.

One neuron, by hand

An artificial neuron works in steps:

  1. Multiplies each input by its weight (how much that input matters).
  2. Adds those up, plus one extra number called the bias (a baseline nudge).
  3. Passes the total through a squashing function, so the output lands in a useful range.

Example: a one-neuron spam detector

Three features for an incoming email:

  • Number of links: 3 (weight 0.6)
  • Words in ALL CAPS: 2 (weight 0.5)
  • Sender is in your contacts: 1 for yes, 0 for no (weight minus 2.0)
  • Bias: minus 1.0

Sender is a contact: (3 x 0.6) + (2 x 0.5) + (1 x minus 2.0) + (minus 1.0) = 1.8 + 1.0 minus 2.0 minus 1.0 = minus 0.2.

Squash it with a sigmoid function, which turns any number into something between 0 and 1. Minus 0.2 becomes about 0.45. Read that as a 45 percent spam score. Probably lets it through.

Same email from a stranger: the contact term drops to zero and the total is 1.8. Sigmoid of 1.8 is about 0.86. An 86 percent spam score. Off to the junk folder.

Notice the negative weight on "in your contacts." Nobody had to type a rule saying "trust contacts." If training found that emails from contacts were rarely spam, it would push that weight negative on its own.

Layers: neurons feeding neurons

One neuron can only draw one straight dividing line through the data. The trick is to wire many together in layers. The first layer takes the raw inputs. Each later layer takes the outputs of the layer before as its inputs. The last layer gives the answer.

Inputslinks, caps, contact Hidden layerspatterns of patterns Outputspam score
Each line is one weight. This small network has 41 parameters. Large language models have billions.

Count the parameters in the picture. Three inputs to four neurons: 12 weights plus 4 biases. Four to four: 16 weights plus 4 biases. Four to one: 4 weights plus 1 bias. Total 41 numbers. The 2012 AlexNet image model had 60 million. OpenAI's GPT-3 had 175 billion. Meta's open Llama 4 Maverick, released in April 2025, has 400 billion in total, of which 17 billion are used for any one word (a design called mixture of experts, where only part of the network wakes up each time).

Why depth helps

Researchers who peer inside image networks find a rough division of labor. Early layers respond to edges and color patches. Middle layers combine edges into textures and shapes: an eye, a wheel, fur. Late layers combine those into whole things: a face, a car, a cat. Nobody assigned those jobs. They emerge from training because they help lower the loss. That stacking of simple patterns into complex ones is why many layers (deep learning) beat a few.

How it learns: gradient descent

Training a network is the same loop as lesson 3: guess, measure the loss, nudge the weights, repeat. The question is which way to nudge each of billions of weights.

Picture yourself on a foggy hillside at night, trying to reach the lowest point in the valley. You can't see the valley. You can feel the slope under your boots. So you take a small step downhill, feel again, step again. That is gradient descent. The height is the loss. Your position is the current set of weights. The slope under your feet is the gradient: for every weight, which way is downhill and how steep.

Worked example: gradient descent on the turnout model

Back to the Pine Hollow turnout line from lesson 3: predicted people = slope x hundreds of flyers + 12. Start at slope 15, where the loss was 115.

Calculus gives the slope of the hill at that spot: the gradient is minus 66. Negative means "increasing the slope lowers the loss." Pick a step size (the learning rate) of 0.05. New slope = 15 minus (0.05 x minus 66) = 15 + 3.3 = 18.3.

StepSlopeLossGradientNext slope
015.0115.0minus 66.018.3
118.317.06.617.97
217.9716.01minus 0.6618.003
318.00316.000.07about 18.0

Step 1 overshot a little (gradient flipped positive), step 2 came back, and by step 3 it has settled at 18, the best value, with loss 16. A real network does this for every weight at once, millions of times.

The step size matters. Set it to 0.5 instead of 0.05 and the first step would jump the slope from 15 to 48, far past the bottom, with a much bigger loss than where it started. Too small, like 0.0001, and you'd need tens of thousands of steps. Engineers spend real time tuning this.

Backpropagation

With one adjustable number, finding the gradient is easy. With billions spread across dozens of layers, you need bookkeeping. Backpropagation, popularized by the 1986 Rumelhart, Hinton and Williams paper, works backward from the error. The output was too high by this much; this last-layer weight contributed this share; the neuron feeding it got this share of blame; and so on back to the first layer. Each weight gets its own nudge in one backward sweep. Modern chips called GPUs are good at the huge piles of multiplication this needs, which is why the 2012 result used graphics cards and why AI companies now buy them by the hundred thousand.

A trained network's knowledge lives in its weights: billions of plain numbers. There is no row in there that says "Boise is in Idaho." The fact is smeared across many weights, which is part of why models can mix up facts.

Reporting angle

When an agency or company says its product runs on a neural network or "deep learning," ask what it was trained on, how many parameters it has, who trained it (the vendor or in-house), and how it was tested. Request the vendor's technical documentation, the procurement record and the test results. Ask whether anyone can explain why it gave a particular answer, since interpretability is far from solved and a promise to explain every decision needs paper behind it. Check size claims against the lesson's numbers: Llama 4 Maverick has 400 billion parameters in total but uses 17 billion for any one word. And a bigger number is not proof of better: raters preferred the 1.3 billion parameter InstructGPT model over the 175 billion parameter GPT-3.

Research angle

Common mix-ups

  • Claim: Neural networks work like the human brain. What the evidence shows: The idea was inspired by neurons, but artificial neurons are simple arithmetic, trained by a method (backpropagation) brains are not known to use.
  • Claim: Bigger always means better. What the evidence shows: In OpenAI's 2022 InstructGPT paper, raters preferred a 1.3 billion parameter model tuned with human feedback over the raw 175 billion parameter GPT-3. Training method and data matter as much as size.
  • Claim: Engineers know exactly why a network gives each answer. What the evidence shows: They know the math. Explaining which internal features drove a particular answer is a research field of its own (called interpretability) and is far from solved.

Check yourself

1. An artificial neuron has inputs 2 and 1, weights 0.5 and 3, and a bias of minus 1. What is its total before the squashing step?

2. In gradient descent, what does the gradient tell the model?

3. Why is too large a learning rate (step size) a problem?

4. What does the "deep" in deep learning refer to?

5. A network has 3 inputs, one hidden layer of 4 neurons and 1 output. Every neuron connects to every neuron in the next layer and has a bias. How many parameters does it have?

6. Which statement about a model with more parameters is most accurate?

Terms in this lesson

Neuron (artificial)
A tiny calculation: multiply each input by a weight, add them up with a bias, then pass the total through a simple squashing function.
Weight
An adjustable number that sets how much one input counts. Training changes the weights.
Layer
A row of neurons that all take the same inputs and pass their outputs to the next row.
Gradient descent
The training method that nudges every weight a small step in the direction that lowers the loss, over and over.
Backpropagation
The bookkeeping that works out how much each weight in every layer contributed to the error, so each can be nudged the right way.
Parameter
Any number the model learns: weights plus biases. Model sizes are quoted in parameters, such as 70 billion.

Full glossary

Sources