FFN Activation Functions › The Negative Dip: Feature or Bug?

Michael BrenndoerferUpdated June 14, 20253 min read
Language AI HandbookAll chapters
Part 15 of 67Transformer Blocks
Chapter 108FFN Activation Functions › The Negative Dip: Feature or Bug?
Reading section 7 of 15 · The Negative Dip: Feature or Bug? · 3 minSection 7 of 15 · 3 min

Book contents

Section 7 of 15 · 3 min read

FFN Activation Functions › The Negative Dip: Feature or Bug?One section · Sections in this chapter7 / 15 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

GELU and SiLU's negative regions deserve closer examination. For certain negative inputs, these activations produce negative outputs rather than zero. This seems counterintuitive: why would we want activations to sometimes invert their input's sign?

The negative dip is a form of implicit regularization. Consider what happens during training: inputs that land in the dip region (roughly −2<x<0-2 < x < 0 for GELU) get attenuated but not eliminated. This "soft gating" provides a richer gradient signal than ReLU's hard zero, potentially helping the network escape local minima.

Think of it this way: a neuron in a deep network exists among neighboring neurons, all contributing to the next layer's computation. If one neuron's activation is slightly negative, zeroing it (as ReLU does) eliminates any information that neuron might carry. Allowing it to pass a small negative value (as GELU and SiLU do) preserves that signal, even if attenuated. The downstream layer can then decide whether to amplify or further attenuate it.

The key insight is that the sign of a pre-activation carries information. A pre-activation of −0.3-0.3 is different from a pre-activation of −3.0-3.0 in a meaningful way: the first suggests the input is borderline, while the second suggests a strong mismatch with the learned pattern. GELU and SiLU preserve this distinction by scaling the output proportionally. ReLU treats both identically: output zero.

Out[19]:
Visualization
Zoomed plot of the negative dip region showing GELU and SiLU curves dipping below zero before asymptoting to zero for large negative inputs.
Detailed view of the negative dip region for GELU and SiLU across [-4, 1]. GELU reaches its minimum of approximately -0.17 at x = -0.52, while SiLU reaches its deeper minimum of approximately -0.28 at x = -1.28. The dashed zero line provides reference. These negative outputs preserve gradient signal for mildly negative inputs, enabling neurons to recover from transient negative phases during training.

The magnitude of the dip matters for training dynamics. A deeper dip (SiLU) means stronger negative signals for moderately negative inputs, which could either help or hurt depending on the task. Empirically, both work well, with the choice often coming down to which pairs better with other architectural decisions (like gated linear units).

There is also a connection between the negative dip and the activation's non-monotonicity. A monotonic function never decreases as its input increases: ReLU and the standard sigmoid are monotonic. GELU and SiLU are non-monotonic: they decrease slightly in the range around x≈−0.5x \approx -0.5 before increasing again. This non-monotonicity is unusual for activation functions and was initially viewed with some skepticism. The practical evidence, however, is that non-monotonic activations train comparably to or better than monotonic alternatives at large scale, suggesting that the strict monotonicity constraint imposed by ReLU and its variants was unnecessarily restrictive.