Module 1: Foundations · 3 min read
Neural Networks and Deep Learning, Without the Math
What an artificial neuron is, what the layers do, and how a network learns to recognize faces or write text.
Almost every AI breakthrough since 2012, from face recognition to ChatGPT, relies on neural networks. The name comes from the brain, but the comparison is loose. In practice it's a mathematical structure made of many simple parts.
The artificial neuron
An artificial neuron does one thing: it receives a few numbers, gives each one a weight that sets how important it is, adds them up, and passes on a result.
An example: a neuron that has to decide whether to go to the beach. The inputs: is it sunny, is there time, is there someone to go with. If the sun matters to you more than anything else, its weight will be high. A single neuron can only make simple decisions like this.
The power is in the layers
The magic starts when thousands of neurons are connected in layers, and the output of each layer becomes the input of the next.
In image recognition, for example:
- The first layers learn to detect simple things: lines, edges, color differences.
- The middle layers combine them into shapes: an eye, an ear, a wheel.
- The last layers combine shapes into concepts: a face, a cat, a car.
Nobody programs these stages by hand. The network arrives at them on its own during training. Deep learning is simply a network with many layers. "Deep" refers to the number of layers, not depth of understanding.
How a network learns
At the start of training all the weights are random and the network guesses nonsense. Then a cycle begins that repeats millions of times:
- Show the network an example, and it gives an answer.
- Calculate how far the answer is from the correct one.
- Change all the weights slightly in the direction that reduces the error. The method is called gradient descent, and the algorithm that calculates which weight to change and by how much is called backpropagation.
Picture a hiker in fog trying to reach the bottom of a valley. He can't see the goal, but he feels which way the ground slopes and takes a small step that way. Again and again.
What "parameters" are
When people say a model has "70 billion parameters," they mainly mean the number of weights in the network. More parameters let a network learn more complex patterns, but also require more data, more electricity and more money to train and run. A bigger model isn't necessarily better for your task. Sometimes a small, fast model is perfectly enough, which we'll discuss in the lesson on open and closed models.
The downside: a black box
With a model of billions of weights, it's very hard to explain why it reached a particular answer. The field trying to crack this is called interpretability, and it's still in its early days. It's one reason fields such as medicine, credit and law require special care.
Bottom line: A neural network is many simple calculations arranged in layers. Training tunes their weights until the network succeeds. In the next lesson we'll see how the same principle, at enormous scale, becomes a large language model.