N-ReLU: Zero-Mean Stochastic Extension of ReLU

Md. Motaleb Hossen Manik, Md. Zabirul Islam, Ge WangarXiv 2025 · DOI

Abstract

N-ReLU (Noise-ReLU) is a minimalist, stochastic evolution of the classic ReLU activation function that replaces the "dead" zero-output region with zero-mean Gaussian noise. By keeping the expected output identical to ReLU while ensuring gradients never truly hit a dead end, N-ReLU prevents neuron death and provides a built-in "annealing" effect that improves optimization and generalization.

Introduction

The Rectified Linear Unit (ReLU) is the workhorse of modern deep learning, but it has a notorious Achilles' heel: the "dying ReLU" problem. Because ReLU outputs exactly zero for any negative input, the gradient in that region is also zero. If a neuron’s weights are updated such that it always receives negative inputs, it becomes permanently inactive—a "dead" neuron that contributes nothing to the network's representational power.

While variants like LeakyReLU (fixed negative slope) or PReLU (learnable slope) exist, they often introduce new hyperparameters or deterministic biases. The authors of N-ReLU sought a way to keep neurons "alive" and improve exploration during training without fundamentally changing the expected behavior of the network or adding significant complexity.

Methodology

The core idea of N-ReLU is elegantly simple. Instead of the standard ReLU formula $f(x) = \max(0, x)$, N-ReLU introduces a stochastic component for negative inputs:

$$f(x) = \begin{cases} x, & x > 0 \\ \epsilon, & x \le 0, \text{ where } \epsilon \sim \mathcal{N}(0, \sigma^2) \end{cases}$$

Key Technical Features

  • Expectation Alignment: Because the noise ($\epsilon$) is zero-mean, the mathematical expectation $E[f(x)]$ remains exactly the same as a standard ReLU. This means the network "looks" like a ReLU network on average but behaves stochastically during training.
  • Gradient Flow: Even when a neuron is in the "negative" zone, the random noise ensures there is a non-zero probability of a signal passing through, allowing gradients to propagate and "rescue" neurons from inactivity.
  • Annealing Schedule: The authors experimented with a cosine decay for the noise magnitude ($\sigma$), starting with higher noise to encourage exploration of the loss landscape and gradually reducing it to zero for stability as training concludes.
  • Implementation: It is a "drop-in" replacement requiring only one extra hyperparameter ($\sigma$) and a single line of code in frameworks like PyTorch.

Experimental Results

The researchers evaluated N-ReLU using the MNIST handwritten digit dataset across two primary architectures: a Multilayer Perceptron (MLP) and a Convolutional Neural Network (CNN).

Validation performance and dead neuron ratio across architectures.

As shown in the results table, N-ReLU consistently maintains a dead-neuron ratio of zero across all configurations, confirming the method's primary goal of maintaining network health. On the MLP architecture, N-ReLU ($\sigma=0.05$) achieved a validation accuracy of 98.02%, slightly outperforming standard ReLU (97.91%) and matching or exceeding more complex activations like GELU and PReLU.

Accuracy curves for CNN models on MNIST showing training stability.

For CNNs, N-ReLU tracked closely with the performance of state-of-the-art smooth activations. Despite the randomness, the loss and accuracy curves remained smooth and monotonic. The stochasticity didn't cause the "jitter" one might expect, likely because the noise is confined only to the inactive regions.

Discussion and Conclusion

N-ReLU acts as a "stochastic relaxation" of the hard discontinuity at $x=0$. This smoothing of the optimization landscape helps the model escape local minima early in training. Much like Dropout, the injection of noise at the activation level acts as a regularizer, discouraging neurons from co-adapting too closely and helping the model generalize better to unseen data.

The study found that "moderate" noise ($\sigma = 0.05$ to $0.10$) is the sweet spot. While an annealing schedule worked well, a constant low-level noise ($\sigma \approx 0.05$) was often sufficient to reap most of the benefits. Future research will focus on validating these results on larger benchmarks like ImageNet and more complex models like Transformers and ResNets.

Summary updated

BibTeX
@misc{manik2025n,
  author = {Md. Motaleb Hossen Manik and Md. Zabirul Islam and Ge Wang},
  title = {{N-ReLU: Zero-Mean Stochastic Extension of ReLU}},
  year = {2025},
  eprint = {2511.07559},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.07559},
}
Figure