How LLMs Work
What Is a Neural Network? A Simple Guide
Neural networks are the layered number machines behind modern AI. Learn the idea with a team-of-voters analogy.
A neural network is a computer design loosely inspired by the brain. It is made of many small units called neurons that pass numbers to each other.
A tiny neural network with an input layer, two hidden layers and an output layer.
The voting team
Imagine a team deciding "is this a cat?" Each member looks at one clue: pointy ears, whiskers, tail. Each gives a score. A manager adds them up. Many teams in layers, each building on the one before, make a neural network.
One common kind
NIST's glossary (quoting its report AI 100-2e2025) describes feedforward neural networks as artificial neural networks in which the connections between nodes go from one layer to the next and do not form a cycle. Many simple pictures of a network, including the one on this page, show this kind.
Learning means adjusting
At first the scores are random. When the network guesses wrong, small adjustments make the helpful clues count more. After many examples, it gets good.
Why it matters for LLMs
A large language model is a very large neural network that works on tokens. The billions of parameters are the adjustable numbers inside.
A careful note
The comparison to a brain is loose. A neural network is maths, not a copy of a human mind.