[Paper Review] ProbAct: A Probabilistic Activation Function for Deep Neural Networks
This paper introduces ProbAct, a novel stochastic, trainable activation function that samples outputs from a Gaussian distribution defined by learnable mean and variance. By injecting stochasticity during forward passes, ProbAct acts as a regularizer, improving generalization and uncertainty estimation, achieving 2–3% higher accuracy than ReLU on image datasets and 1–2% on text datasets, even under data reduction and noisy inputs.
Activation functions play an important role in training artificial neural networks. The majority of currently used activation functions are deterministic in nature, with their fixed input-output relationship. In this work, we propose a novel probabilistic activation function, called ProbAct. ProbAct is decomposed into a mean and variance and the output value is sampled from the formed distribution, making ProbAct a stochastic activation function. The values of mean and variances can be fixed using known functions or trained for each element. In the trainable ProbAct, the mean and the variance of the activation distribution is trained within the back-propagation framework alongside other parameters. We show that the stochastic perturbation induced through ProbAct acts as a viable generalization technique for feature augmentation. In our experiments, we compare ProbAct with well-known activation functions on classification tasks on different modalities: Images(CIFAR-10, CIFAR-100, and STL-10) and Text (Large Movie Review). We show that ProbAct increases the classification accuracy by +2-3% compared to ReLU or other conventional activation functions on both original datasets and when datasets are reduced to 50% and 25% of the original size. Finally, we show that ProbAct learns an ensemble of models by itself that can be used to estimate the uncertainties associated with the prediction and provides robustness to noisy inputs.
Motivation & Objective
- To address the limitations of deterministic activation functions in deep neural networks by introducing stochasticity inspired by biological neural noise.
- To improve model generalization and robustness to overfitting, especially in low-data regimes and under noisy inputs.
- To enable uncertainty estimation and implicit model ensemble learning through stochastic activation outputs.
- To design a differentiable, back-propagatable activation function that integrates trainable parameters for mean and variance.
- To evaluate ProbAct across diverse modalities—images and text—on standard benchmarks under varying data and noise conditions.
Proposed method
- ProbAct defines a stochastic activation by sampling from a Gaussian distribution with a learnable mean and variance per neuron.
- The mean and variance are either fixed using known functions or trained end-to-end via back-propagation alongside network weights.
- Stochastic sampling is applied to the pre-activation value, introducing noise that acts as a form of feature augmentation.
- The method enables implicit model ensemble learning, where multiple stochastic forward passes yield diverse predictions for uncertainty estimation.
- The gradient of the stochastic output is computed via reparameterization, allowing back-propagation through the sampling process.
- Different configurations are evaluated: single, channel-wise, and element-wise learnable mean and variance, with trade-offs in convergence and parameter efficiency.
Experimental results
Research questions
- RQ1Can a stochastic, trainable activation function improve generalization in deep neural networks compared to deterministic counterparts?
- RQ2Does the stochasticity introduced by ProbAct act as an effective regularizer, particularly under data scarcity or noise?
- RQ3Can ProbAct enable uncertainty estimation and robustness to adversarial or noisy inputs without additional architectural changes?
- RQ4How do different parameterization strategies (e.g., element-wise vs. single mean/variance) affect convergence and performance?
- RQ5To what extent does ProbAct outperform ReLU and other standard activation functions across vision and NLP benchmarks?
Key findings
- ProbAct improves classification accuracy by 2–3% over ReLU and other conventional activation functions on CIFAR-10, CIFAR-100, and STL-10 datasets.
- On the Large Movie Review dataset, ProbAct achieves a 1–2% accuracy gain compared to ReLU, demonstrating effectiveness in NLP tasks.
- Even with only 25% of the training data, ProbAct maintains superior performance, indicating strong generalization under data scarcity.
- The stochastic perturbation from ProbAct acts as a form of data augmentation (augmentation-by-activation), reducing overfitting and improving robustness.
- ProbAct enables implicit model ensemble learning, allowing uncertainty estimation through multiple forward passes with different samples.
- With a fixed variance of 2, ProbAct achieves test accuracy comparable to ReLU with dropout, and further gains are observed when both are combined.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.