Loosely inspired by brains
An artificial neural network is a mathematical model built from simple units, often called neurons, arranged in layers. Each unit receives numbers from the previous layer, multiplies each by a weight, adds them up and passes the result through a simple function before sending it on. The design was loosely inspired by biological neurons, which receive signals and fire when stimulated enough, but the resemblance is distant. Real brains are vastly more complex. What matters is that a network with enough units and layers can, in principle, represent extremely complicated relationships between inputs and outputs, such as from pixels to the word 'cat'.
Weights are the knowledge
At the start, a network's weights are set to random values, so its predictions are nonsense. Everything it eventually 'knows' is stored in those weights, which may number millions or, in the largest modern models, hundreds of billions. There are no explicit rules inside, no line saying 'cats have whiskers'. Instead, patterns are spread across the weights in ways that are often hard for people to interpret. Training is the process of finding a good set of weights. It requires examples, usually lots of them: images with labels, sentences with the next word, or sensor readings paired with outcomes. More data usually helps.
Walking downhill
To learn, the network needs a measure of how wrong it is, called the loss. Picture the loss as a landscape of hills and valleys, where each position corresponds to one setting of all the weights. Training aims to walk downhill towards a low valley. The method, gradient descent, calculates which direction is steepest downhill and takes a small step that way. The step size, called the learning rate, matters: too large and the network overshoots, too small and learning crawls. In practice the gradient is estimated from small random batches of examples, which is faster and helps avoid getting stuck.
Backpropagation
With millions of weights, how do you know which to adjust, and by how much? Backpropagation answers this. After a prediction, the error is passed backwards through the network, layer by layer, using the chain rule from calculus to calculate each weight's share of the blame. Every weight is then nudged slightly. The method was known earlier, but a 1986 paper by Rumelhart, Hinton and Williams demonstrated its power for multi-layer networks and popularised it. Widespread success came only later, once large datasets and graphics processors made it practical to train deep networks with many layers on millions of examples.
Memorising versus learning
A network can become very good at the examples it has seen while failing on new ones, rather like a student who memorises past exam answers without understanding them. This is called overfitting. To guard against it, developers hold back a separate set of test data the network never trains on, and use techniques that discourage overly specific solutions. Even well-trained networks can fail unpredictably on inputs unlike their training data, and they can absorb biases present in that data. A medical-image model trained mostly on one population, for example, may be less accurate for others, which is why careful testing matters.
Where this leads
The same basic recipe of layers, a loss and gradient descent underlies image recognition, speech transcription, translation and large language models, though architectures differ. Training the largest models consumes enormous computing resources, while using a trained model, called inference, is much cheaper per request and can often run on a phone. Researchers continue to work on making networks more efficient, more reliable and easier to interpret, so people can understand why a model reached a decision. For everyday users, the key lesson is that these systems learn statistical patterns from data. They can be impressively capable, but their answers should be checked where it matters.
Sources & further reading
Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.



