What is Rectified linear unit?
In Turkish: ReLU · Topic: Models and training
A simple activation function that turns negative inputs into zero and passes positive inputs through unchanged. It is widely used in the hidden layers of deep neural networks.
How does it work?
ReLU applies a very plain rule: if the input is below zero the output is zero, otherwise the output is the input itself. Its graph looks like a line that runs flat until zero and then rises upward. It is very cheap to compute, which speeds up training. Because its slope stays constant for positive values, it suffers less from the problem seen with functions like sigmoid, where the learning signal fades as it moves through the layers. Some neurons can get stuck outputting zero and 'die', which is why variants such as leaky ReLU were developed.
Why does it matter?
ReLU helped make deep networks easier and faster to train, so it became one of the most common components of modern deep learning. Its simplicity keeps computing costs low in large models. Even as newer functions appear, ReLU is often still the default starting point.
Example
If a neuron's weighted sum comes out as minus 3, ReLU turns it into 0; if it comes out as 2, ReLU leaves it as 2.
FAQ
What does ReLU stand for?
It stands for 'rectified linear unit'.
What is the difference between ReLU and sigmoid?
Sigmoid squeezes the output into a range between 0 and 1, while ReLU zeroes out negatives and passes positives through. ReLU is usually easier to train in deep networks.