Jargonautica
How the Machinery Works

Activation Function

Also called: ReLU

The small non-linear step applied inside each unit of a neural network. It sounds like a detail and it is not: without it, stacking layers achieves nothing at all, because a chain of straight-line operations is just another straight line. This single component is what allows a network to represent curves, interactions and anything more interesting than a weighted average.

Technical view

The rectified linear unit (‘ReLU’), which passes positive values through and outputs zero otherwise, is the default in hidden layers because it is cheap and avoids the saturation that made sigmoid and tanh slow to train in deep networks. Variants such as leaky ReLU, GELU and SwiGLU address dying units and are standard in transformers. Output layers differ by task: softmax for multi-class classification, sigmoid for binary or multi-label, and no activation at all for regression.


Part of AI Terminology Index, section: How the Machinery Works.

How it connects

Activation Function links to 7 other terms. The faint lines are links between those terms. See it in the full graph.

Neural NetworkNeural NetworkDeep LearningDeep LearningLayersLayersUniversal Approximation TheoremUniversal Approxima…PerceptronPerceptronLogits and SoftmaxLogits and SoftmaxVanishing and Exploding GradientsVanishing and Explo…Activation Function