Activation Function

An activation function is a nonlinear operation applied inside a neural network layer.
Also known as
nonlinearity

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.

Need this inside a product?

The studio builds the systems these terms describe. Tell us what you are working on.