Intuition
Without nonlinear activations, many stacked layers would collapse into something no more expressive than a single linear transformation.
Technical definition
Activation functions transform intermediate layer outputs elementwise or channelwise, enabling neural networks to approximate nonlinear functions.
Example
ReLU sets negative values to zero and leaves positive values unchanged.
Common misunderstandings
- Activation functions are not just cosmetic; they define what functions the network can learn.
- Different activations affect optimization and gradient flow.