SiLU, and a derivative that exceeds one
symbolic▲▲△SiLU (also called Swish) is . Derive its derivative in terms of alone, show it can exceed , find its minimum, and compare with GELU’s .
Hint
Product rule, then use to eliminate the derivative.
Solution
The derivative. By the product rule and then I.3.1:
which can be tidied to
Written this way it costs one sigmoid evaluation and three arithmetic operations, and needs nothing but the value already computed in the forward pass — the same economy I.3.B02 noted for sigmoid itself.
It exceeds 1. At : , so
not yet. Try : ,
Greater than 1. Scanning, the maximum is about near .
Why that is notable. Every derivative met so far is at most : sigmoid , tanh , ReLU . SiLU can amplify a gradient. Over layers a factor above compounds upward rather than downward — the mirror image of I.3.B03’s problem, and one reason SiLU networks can be sensitive to learning rate in a way ReLU networks are not.
The minimum. Setting numerically gives , where
and the derivative there is about .
Comparison with GELU.
| most negative output | most negative derivative | at | |
|---|---|---|---|
| GELU | |||
| SiLU |
SiLU has the deeper output dip; GELU has the deeper derivative dip. They are different functions with the same qualitative shape — smooth, non-monotonic, ReLU-like in the tails — and the practical difference between them is small enough that the choice is usually made by what a codebase already uses.
The honest summary. Both were found by search rather than derived from a principle. SiLU came out of an automated activation search; GELU from a stochastic-regularisation argument that the final formula does not really depend on. The literature’s post-hoc explanations for why either works should be read with that history in mind.