Neural networks
A neural network is a model built from layers of simple units that each weigh their inputs, add them up and bend the result, so that together they can learn curved, complex patterns.
A neural network is a machine learning model made of layers. The first layer holds the input features, the last layer holds the prediction, and one or more hidden layers sit in between. Each unit in a hidden layer is called a neuron.
A neuron does very little on its own. It multiplies each of its inputs by a weight, adds the results and a bias, and passes the total through an activation function. That last step is what matters: without it, stacking layers would still give a straight-line model. With it, each layer can bend the data a little, and many layers together can follow very complicated patterns.
Nobody sets the weights by hand. Training shows the network many examples, measures how wrong each prediction is, and adjusts every weight and bias to make the next prediction a little better. The standard method for doing this, back-propagation, was popularised for neural networks by a 1986 paper, after earlier versions had been published and reinvented several times. Its key result was that hidden neurons learn useful features of the task by themselves. The name comes from a loose analogy with brain cells, but the working parts are ordinary arithmetic.
A single weighted sum can only draw straight lines.
Follow one number through one neuron.
- 1 · inputsThe neuron receives numbers, either the raw features or the outputs of the layer before it.
- 2 · weighIt multiplies each input by its own weight, a number learned during training.
- 3 · addIt adds those products together, plus one extra learned number called the bias.
- 4 · bendIt passes the total through an activation function, such as ReLU, which turns negative values into zero.
- 5 · passIn a dense, fully connected layer like this example, the result goes to every neuron in the next layer; the final layer produces the prediction.
Without the bend in step 4, any number of layers would collapse into one straight-line model.
| Who | What they ask | What it works with |
|---|---|---|
| Photo app | “Is there a face in this picture?” | Pixel values of the image |
| Speech system | “Which words are in this recording?” | The audio signal as numbers |
| Text tool | “What is the next likely word in this sentence?” | The words that came before |
| Pricing team | “What will this house sell for?” | Size, rooms, location and other features |
- It finds curved, non-linear patterns without anyone designing combinations of inputs by hand.
- The same building block, repeated in layers, can model very complicated relationships.
- Standard software libraries handle the training maths, so the structure is easy to build on.
- It is not always better than a simpler model with well-chosen input combinations.
- Its learned weights are hard to interpret, unlike those of a linear model.
- It can memorise its training data and then fail on new data.
- Deep networks can be slow or unstable to train when the signal passed back through the layers shrinks or grows too much.
Sources used
This explainer is written in original language. The links below support its factual claims.
- docsMachine Learning Glossary, Google for Developers · read 27 Sept 2026
- docsNeural networks (Machine Learning Crash Course), Google for Developers · read 27 Sept 2026
- docsNeural networks: Nodes and hidden layers (Machine Learning Crash Course), Google for Developers · read 27 Sept 2026
- docsNeural networks: Activation functions (Machine Learning Crash Course), Google for Developers · read 27 Sept 2026
- docsNeural networks: Training using backpropagation (Machine Learning Crash Course), Google for Developers · read 27 Sept 2026
- paperDeep learning, Nature (LeCun, Bengio and Hinton, 2015) · read 27 Sept 2026
- paperLearning representations by back-propagating errors, Nature (Rumelhart, Hinton and Williams, 1986) · read 27 Sept 2026
- docstorch.nn.Linear, PyTorch · read 27 Sept 2026
- docstorch.nn.ReLU, PyTorch · read 27 Sept 2026
- officialFathers of the Deep Learning Revolution Receive ACM A.M. Turing Award, ACM · read 27 Sept 2026
- paperAutomatic differentiation in machine learning: a survey, Baydin, Pearlmutter, Radul, and Siskind (arXiv; JMLR) · read 27 Sept 2026