The 60-second answer
Activation functions add nonlinearity; without them, stacked linear layers collapse to one linear transformation. ReLU is simple and efficient but can create dead units; GELU is common in Transformers because it provides a smooth gating effect.
Build the answer in this order
Activation functions add nonlinearity; without them, stacked linear layers collapse to one linear transformation.
ReLU is simple and efficient but can create dead units; GELU is common in Transformers because it provides a smooth gating effect.
Sigmoid and tanh saturate, which can produce small gradients in deep networks.
Choose activations together with initialization, normalization, and task architecture.
A useful interview mental model
This is the shape of a strong answer—not a script to memorize.
Senior-level signal
- Relate the activation to gradient flow and numerical precision under mixed-precision training.
- In serving, fused activation kernels can materially affect latency at large scale.
What the interviewer is really testing
Likely follow-up questions
Common weak-answer patterns
- Reciting a definition without mechanism or assumptions.
- Claiming one technique is always better without a data regime.
- Stopping before failure modes, validation, or deployment implications.