Concept · Chapter 4: Neural Networks
The Artificial Neuron
An artificial neuron computes a weighted sum of its inputs, adds a bias, and passes the result through a nonlinear activation function — a dot product plus a bend.
The problem
We need a simple, trainable building block that can be combined in large numbers to represent complicated functions.
The solution
Each unit computes z = w·x + b (how strongly the input matches the pattern stored in its weights) and outputs a = φ(z), where φ is a smooth nonlinearity so the unit can be trained by gradient descent.
The consequence
Millions to billions of these units, organized in layers, make up every neural network — and each one is just logistic regression with a different activation.
You should understand first
- Vectors
- Dot Product
- The Turing Test
- Symbolic AI
- Logic and Rules
- Expert Systems
- Knowledge Representation
- The Knowledge-Acquisition Bottleneck
- From Rules to Learning
- Supervised, Unsupervised and Self-Supervised Learning
- Features, Labels and Tasks
- Loss Functions
- Derivatives and Gradients
- Gradient Descent
- Linear Regression
- Probability and Distributions
- Entropy
- Softmax
- Cross-Entropy Loss
- Logistic Regression
- The Perceptron
- Activation Functions
- The Artificial Neuron
Tiny numeric example
Inputs and weights
x = [0.5, −1], w = [2, 1], b = 0.3.Weighted sum
z = 2·0.5 + 1·(−1) + 0.3 = 0.3Activation
ReLU: a = max(0, 0.3) = 0.3. Sigmoid: a = σ(0.3) ≈ 0.57.
The equation
Try it
Every circle in the lab's network diagram is one of these units. Click an edge to change a weight and watch the neuron's output — and the decision boundary — respond.
Try it · toy model
A real two-layer network you can train, edit and dissect: watch activations flow forward, the decision boundary bend, and backpropagation send each example's error back to every weight.
Why should I care?
As a researcher
Interpretability research asks what individual neurons (and directions made of many neurons) detect — the unit you'll analyse is this one.
As an engineer
Parameter counts, FLOPs and memory all follow from counting these weighted sums. A layer of n neurons over d inputs is a d×n matrix multiply.
Modern systems that depend on it
- Every neural-network layer
- Feed-forward sublayers in Transformers
- Neuron-level interpretability
Historical context
Before
The McCulloch–Pitts neuron (1943) and Rosenblatt's perceptron (1958), with hard threshold outputs.
After
Smooth activations enabled gradient-based training; units are now organized into huge matrix operations rather than considered one by one.
Used today
Every layer of every neural network is a vector of these units computed at once as a matrix multiply plus an activation.
What to remember
- z = w·x + b; a = φ(z).
- Weights: what pattern the neuron responds to. Bias: how easily it fires.
- The dot product measures how much the input matches the weights.
- A neuron with sigmoid φ is exactly logistic regression.
- A layer of neurons = one matrix multiplication + an activation.
Key papers
The perceptron: A probabilistic model for information storage and organization in the brain.
F. Rosenblatt · 1958 · Psychological Review
Introduced the perceptron — a neuron model that learns its weights from examples. Every neural network descends from it.
Watch
3Blue1Brown
But what is a neural network? | Deep learning chapter 1
The clearest visual introduction to what a neural network actually computes, layer by layer.