Common activation functions share a nonzero-mean bug that causes loss spikes

samiramanabi · x · 2026-11-02

Ziming Liu (MIT) points out that widely used activation functions (ReLU/SiLU/GeLU etc.) share a "bug": the mean of post-activations is not zero. Though tiny, this leads to pathologies in training dynamics, including loss spikes and representation overshooting. Removing the bug improves performance in both LLMs and ViTs. Reposters quip that there may be no part of the deep learning algorithm stack that isn't riddled with bugs.

Related event: Ziming Liu flags non-zero mean bug in ReLU/SiLU/GeLU; a constant shift fixes it(9 posts)→

Original post →

More from Research

Research channel →