ReLU

ReLU is an activation function that outputs zero for negative inputs and the input itself for positive inputs.
Also known as
Rectified Linear Unit

Intuition

ReLU keeps positive signals and shuts off negative ones, which makes it simple and efficient for deep networks.

Technical definition

ReLU computes f(x) = max(0, x), introducing a piecewise linear nonlinearity with sparse activations.

Example

A hidden layer may apply ReLU after a matrix multiplication before passing values to the next layer.

Common misunderstandings

  • ReLU can suffer from dead units when neurons stop activating.
  • ReLU is common but not the only useful activation.

Need this inside a product?

The studio builds the systems these terms describe. Tell us what you are working on.