Zero-mean 'bug' in ReLU/SiLU/GeLU found to cause loss spikes; fixing it boosts LLMs and ViTs

ZimingLiu11 · x · 2026-10-31

Ziming Liu points out a shared "bug" in common activation functions (ReLU/SiLU/GeLU): post-activation means are not zero. Even tiny, this bias causes training pathologies such as loss spikes and representation overshooting. Removing it improves performance on both LLMs and ViTs.

Related event: Ziming Liu: Popular activations have non-zero mean; negative shift stabilizes training(8 posts)→

Original post →

More from Research

Research channel →