Neuron

In AI, a neuron is the basic unit of a neural network: it multiplies each input by a weight, adds them up with a bias, and passes the total through an activation function.

An artificial neuron is a small calculation. It takes several input numbers, multiplies each by a weight, adds them together, adds a bias, and passes the total through an activation function. Google's machine learning glossary describes it this way, adding that neurons in the first hidden layer take their inputs from the data, while later ones take inputs from the layer before.

A worked example: inputs of 2 and 3, weights of 0.5 and minus 1, and a bias of 1 give 1 minus 3 plus 1, or minus 1. A common activation function, the rectifier or ReLU, outputs the larger of zero and its input, so this neuron outputs 0. Training is the process of nudging every weight and bias so that the network's final answers improve. A network's parameters are mostly these weights and biases; AlexNet, the 2012 image recogniser, had about 650,000 neurons and 60 million parameters.

The idea dates to 1943, when Warren McCulloch and Walter Pitts proposed a threshold logic unit with on-or-off inputs and outputs. Frank Rosenblatt's perceptron in the late 1950s added weights that could be learned, and Bernard Widrow introduced the bias term in 1960. The ReLU activation goes back to Alston Householder in 1941 and was used by Kunihiko Fukushima for image features in 1969, and in 2011 it was shown to help train deeper networks.

The name invites a comparison with the brain that should be taken loosely. Biological neurons fire in discrete pulses, while artificial ones output continuous numbers, and simple models such as McCulloch and Pitts' are described as caricatures of real neurons. When a company says its system works like the brain because it has neurons, it is describing arithmetic loosely inspired by biology, not a model of how brains work.

Common questions

What is a neuron in a neural network?

It is the basic unit of computation. Each neuron takes a weighted sum of its inputs, adds a bias and applies an activation function, then passes the result to neurons in the next layer.

Are artificial neurons like brain neurons?

Only loosely. They were inspired by biological neurons, but they are simple mathematical functions. Real neurons communicate in discrete electrical pulses and are far more complex, and there is a large performance gap between biological and artificial networks.

What does an activation function do?

It decides what a neuron outputs given its weighted sum. Without a non-linear activation function, a stack of layers would collapse into one straight-line calculation, so activation functions such as ReLU and sigmoid are what let networks learn complex patterns.

How many neurons does an AI model have?

It varies enormously with the model. AlexNet, a landmark image model from 2012, had about 650,000 neurons. Model size is more often quoted in parameters, the weights and biases connecting neurons, which run to billions in large language models.

Finding more

Search for "artificial neuron", "weighted sum and activation function" or "McCulloch Pitts neuron" for how the unit works and where it came from. Reliable sources include introductory machine learning courses, such as Google's, deep learning textbooks and the original papers. Be wary of articles that treat artificial neurons as a model of the human brain; they are far simpler than biological neurons.

  • Machine Learning Glossary: neuronReferenceGoogle's definition of a neuron as a weighted sum passed through an activation function.
  • Artificial neuronReferenceThe history from McCulloch and Pitts to ReLU, and the limits of the biological analogy.
  • AlexNetReferenceNeuron and parameter counts for a landmark 2012 network.
  • Rectified linear unitReferenceThe history of the ReLU activation, from Householder and Fukushima to its use in deep networks from 2011.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.