Rectified Linear Unit (ReLU)
- is a type of activation function
- 𝑓(𝑧) = 𝑚𝑎𝑥(0, 𝑧)
ReLU Visual
---cognitive-computing---machine-intelligence/ai---subfields/machine-learning-(ml)---pattern-recognition/ml---models/artificial-neural-networks-(ann)/perceptrons-(artificial-neurons)/activation-functions-(af)/rectified-linear-unit-(relu)-activation-function/relu-graph.png)
ReLU Problem
The downside of being zero for all negative values is a problem called “dying ReLU.”
A ReLU neuron is “dead” if it’s stuck on the negative side and always outputs 0. Because the slope of ReLU in the negative range is also 0, once a neuron gets negative, it’s unlikely for it to recover. Such neurons are not playing any role in discriminating the input and are essentially useless. Over time you may end up with a large part of your network doing nothing
ReLU Variants
|
Variant |
Description |
Graph |
|---|---|---|
|
Rectified Linear Unit (ReLU) |
𝑓(𝑧) = 𝑚𝑎𝑥(𝑧, 0)
|
|
|
𝑓(𝑧) = 𝑚𝑎𝑥(𝑧, 𝛼𝑧)
|
| |
|
𝑓(𝑧) = 𝑚𝑎𝑥(𝑧, 𝛼𝑧) # is Leaky ReLU where 𝛼 is learned
| ||
|
|
| |
|
Exponential Linear Unit (ELU) |
Is SeLU where 𝛼 = 1 | |
|
Gaussian Error Linear Unit (GeLU) |
𝑓(𝑧) = 𝑧 ⨯ 𝛷(𝑧) where:
| |
|
SeLU |
TODO | |
|
Concatenated ReLU (CReLU) |
| |
|
ReLU-6 |
𝑓(𝑧) = 𝑚𝑎𝑥(𝑚𝑖𝑛(𝑧, 6), 0)
|
|
---cognitive-computing---machine-intelligence/ai---subfields/machine-learning-(ml)---pattern-recognition/ml---models/artificial-neural-networks-(ann)/perceptrons-(artificial-neurons)/activation-functions-(af)/rectified-linear-unit-(relu)-activation-function/leaky-relu-and-parametric-relu.png)
---cognitive-computing---machine-intelligence/ai---subfields/machine-learning-(ml)---pattern-recognition/ml---models/artificial-neural-networks-(ann)/perceptrons-(artificial-neurons)/activation-functions-(af)/rectified-linear-unit-(relu)-activation-function/exponential-line-unit.png)
---cognitive-computing---machine-intelligence/ai---subfields/machine-learning-(ml)---pattern-recognition/ml---models/artificial-neural-networks-(ann)/perceptrons-(artificial-neurons)/activation-functions-(af)/rectified-linear-unit-(relu)-activation-function/relu-6.png)