Skip to content
// ai glossary

What is a neural network? Simple guide

A type of machine-learning model made of many connected layers of simple maths units, loosely inspired by the brain.

Last reviewed

In plain English

A neural network is a type of machine-learning model made of many small units connected in layers. Each unit does a tiny bit of arithmetic and passes its result on. Together, the layers can learn very complicated patterns, such as recognising a face or continuing a sentence.

The name is inspired by the brain, but a neural network is much simpler than a real brain. It is best thought of as a very large mathematical function that can be adjusted.

How it learns

  1. The network starts with random settings.
  2. It is shown an example and makes a guess.
  3. A measure of how wrong the guess was is calculated.
  4. The connection strengths, called weights or parameters, are nudged slightly to make that kind of guess a little better.
  5. This is repeated millions of times across many examples.

Nobody writes the rules. The training algorithm makes the adjustments, and the rules emerge from them.

A simple example

Take recognising handwritten digits. The first layer sees tiny pieces of the picture, such as light and dark pixels. Later layers combine those into strokes, then shapes, then a decision: "that is a seven". Each layer builds on the one before.

Deep learning

When a network has many layers, it is called a deep neural network, and training one is called deep learning. Modern language models, image generators and speech tools are all built from large deep neural networks.

Why it matters

Neural networks are why AI can handle messy things like language and images. Their weakness is that they are hard to explain. You usually cannot point to a reason for one particular answer, which is one more reason to check important outputs.

Common mix-ups

  • A neural network does not work like a brain. The comparison is a loose inspiration, not a description.
  • It is not conscious or aware. It performs calculations.
  • Not all AI uses one. Simpler machine-learning methods still do a lot of useful work.
  • Machine learningBuilding software that learns patterns from data instead of following only hand-written rules.
  • ParametersThe internal numbers a model learns during training. More parameters usually means a bigger, more capable (and more expensive) model.
  • ModelThe trained AI 'brain' that produces outputs. Companies release different models with different strengths and prices.

Keep reading