TL;DR
Parametric ReLU, or PReLU, is a ReLU whose slope on the negative side is not fixed at zero. That slope is a parameter the network learns by gradient descent along with its weights. Positive inputs pass through unchanged, and negative inputs are scaled by a learned number , so a unit that would otherwise go silent can keep a small, trainable signal.
Where you'll see it: in image classification networks from the mid-2010s onward, where it was the activation that set a new ImageNet result in the paper that introduced it, and in many later architectures as one of the standard choices for the negative side of a ReLU.
Intuition
A ReLU with a dimmer switch
Recall that a ReLU is a gate: a positive input passes through and a negative input is cut to zero. Once a unit's pre-activation sits below zero for every input, it sends nothing forward and its gradient is zero, so it cannot recover. This is the dying ReLU problem.
A leaky ReLU fixes this by letting a small fraction of the negative input through, so the gradient is never exactly zero. PReLU goes one step further. Instead of choosing that fraction by hand, it treats the fraction as a knob the network tunes. If the data says the negative side should carry more signal, the knob turns up. If the negative side is best ignored, it turns toward zero, which is an ordinary ReLU.
Why does this help? A unit with a learned negative slope is never fully switched off, so the gradient can always find a path back. The cost is one extra number per channel or per layer, which is negligible next to the weights.
- ReLU (a = 0)
- PReLU with a = 0.25
The math
Definition
For a pre-activation and a slope ,
Here is a learned parameter. It can be shared by all units in a layer, or there can be one per channel of a convolutional layer.
Written compactly, . When this is ReLU, and when is a small fixed number such as 0.01 it is a leaky ReLU.
The gradient with respect to the input
The derivative with respect to the input is
Backpropagation uses this in the same way as for ReLU, but the blocked region now passes a scaled signal instead of nothing. This is the chain rule applied to a piecewise function.
The gradient with respect to the slope
The slope is trained, so we need its gradient. The output depends on only on the negative side:
For a layer where is shared across many positions, the loss gradient is the sum of this term over every position where it applies. Given an upstream gradient , the update for is
The sum is over the units that are active on the negative side, and each contributes times its own pre-activation .
Training step
For each batch, the forward pass computes and the backward pass computes both and . Then the parameters move by stochastic gradient descent as usual:
The learning rate is the same one used for the weights in the simplest version. The original paper initialises to 0.25.
Worked examples
Take a single PReLU unit with . Its pre-activation for one input is , so its output is .
Suppose the loss gradient at the output is . Then:
- The input gradient is , so the gradient sent back to the pre-activation is .
- The slope gradient is , so the contribution to is .
- With learning rate , the update is .
Interpretation: the gradient for is negative, so the update increases . With negative, a larger makes the output more negative. The upstream gradient says that a larger output raises the loss, so pushing the output down lowers it.
Consider a convolutional layer with 64 output channels, each producing a feature map with 56 by 56 positions. A shared slope has one parameter, , for all activations. A per-channel slope has 64 parameters, one for each channel.
For a shared slope, the gradient sums contributions from all 200,704 activations, so it can be large. Per-channel slopes give each channel its own dimmer and sum over only that channel's positions. The per-channel version has more freedom and costs only 64 extra numbers. In the paper's 14-layer ImageNet experiment the two variants performed comparably (32.64% versus 32.71% top-1 error, channel-wise slightly better), so the channel-shared version, with only one extra parameter per layer, is a perfectly reasonable cheap choice.
Suppose a unit has and all its pre-activations are negative. Then for every input and is not zero, so the slope receives a gradient and can move away from 0. A plain ReLU has no such escape: its gradient on the negative side is zero, and nothing ever changes. This is the main reason the learned slope helps with dead units.
Tradeoffs and failure modes
| Situation | Problem | Better choice |
|---|---|---|
| Deep network with many units going silent | Dead units with zero gradient | PReLU, or leaky ReLU with a fixed small slope |
| Small dataset with a large model | The extra slope parameters can overfit, though they are few | Shared slope, or a fixed leaky slope |
| Transformer feedforward blocks | Smooth activations such as GELU work better in practice | GELU or SiLU |
| Slope drifts to a bad value | A large makes the negative side look almost linear and can hurt | Clip to a range, or regularise it toward a small value |
| Need a bounded or smooth output | PReLU is piecewise linear with a corner at zero | Smooth activations |
Two practical notes. First, the slope is usually excluded from weight decay, because decaying it pulls the unit back toward a plain ReLU without any data telling it to. Second, the corner at zero is still there, so PReLU shares the same nonsmoothness that ReLU has at zero.
History
Rectified units were studied in neuroscience and early neural networks, but they became widely used in deep learning after about 2010, when networks trained with ReLUs were found to be easier to optimise than networks with sigmoid or tanh units.
Leaky ReLUs with a fixed small slope were proposed as a fix for dead units. In 2015 Kaiming He, Xiangyu Zhang, Shaoqing Ren and Jian Sun introduced PReLU in the paper Delving Deep into Rectifiers. In the same paper they proposed a matching initialisation for layers with ReLU-type activations, now called He initialisation. Replacing ReLU with PReLU in a 14-layer model lowered top-1 error on ImageNet by about 1.2 points, at the cost of a handful of extra parameters. Their multi-model ensemble of PReLU networks reached 4.94% top-5 test error, below the 5.1% estimated for a trained human annotator and better than the 6.66% of the ILSVRC 2014 winner, GoogLeNet.
The learned slopes were informative. In the first convolutional layer they were large (about 0.6 to 0.7), meaning negative filter responses were largely kept, while deeper layers tended to learn smaller slopes, so activations became more strongly rectified with depth. The paper also reports that learned slopes rarely exceeded 1 in magnitude.
Later architectures mostly moved to smooth alternatives such as GELU in transformers, but ReLU and its variants remain the baseline that new activations are compared against.
Check yourself
QuestionA PReLU unit has . What is its output for , and what is the gradient at that point?Show answer
The output is . Since , the derivative with respect to is . A plain ReLU would output 0 and have derivative 0 at the same point.
QuestionCompute for the input and for the input .Show answer
For the input is on the positive side, so does not depend on , and the derivative is 0. For the output is , so the derivative with respect to is .
QuestionWhy does a learned negative slope help a unit that has been silent for every input in a batch?Show answer
A silent unit with a plain ReLU has zero gradient on the negative side, so nothing changes its weights or bias. With PReLU the output on the negative side is , and its gradient with respect to is , which is nonzero whenever is nonzero. So the slope itself gets an update, and once is nonzero the input gradient is nonzero too, which gives the unit a route back to learning.
QuestionYou train a 40-layer convolutional network with PReLU and find that the learned slopes in the last layers drift toward values above 1. What might be happening, and what would you check?Show answer
A slope above 1 makes the negative side steeper than the positive side, so the function is no longer a simple rectifier and can amplify negative signals through depth. This can make training unstable. You would check the magnitude of the slopes over time, the activation scale in each layer, and whether initialisation or normalisation is poor. Clipping or switching to a fixed leaky slope are reasonable fixes.
Sources
- He, Zhang, Ren, Sun, Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification (2015): https://arxiv.org/abs/1502.01852
- Rectifier (neural networks) (Wikipedia): https://en.wikipedia.org/wiki/Rectifier_(neural_networks)
- Activation function (Wikipedia): https://en.wikipedia.org/wiki/Activation_function