TL;DR
This paper introduces ProbAct, a novel probabilistic activation function for deep neural networks that injects stochasticity into the activation process. By sampling outputs from a learned distribution (mean and variance), ProbAct acts as a built-in regularizer and feature augmentation technique, leading to improved generalization and robustness, particularly on smaller or noisy datasets.
What Problem Does This Paper Address?
Traditional activation functions in neural networks, like ReLU, are deterministic, meaning they produce the exact same output for a given input every time. While effective, this determinism can sometimes lead to networks that overfit to training data and struggle to generalize to unseen examples. The paper addresses this by proposing a probabilistic activation function that introduces controlled randomness, inspired by the stochastic nature of biological neurons. This randomness aims to improve generalization, prevent overfitting, and provide a mechanism for estimating prediction uncertainty.
Methods
The core innovation is ProbAct, a probabilistic activation function defined as $f(x) = \mu(x) + z$, where $\mu(x)$ is a deterministic mean function (which can be fixed or learned) and $z = \sigma \epsilon$ is a perturbation term. Here, $\epsilon$ is a random sample from a standard normal distribution, and $\sigma$ is a learnable or fixed parameter controlling the magnitude of the stochastic perturbation.
Key aspects of the method include:
- Stochasticity: Unlike deterministic functions, ProbAct's output varies for the same input, emulating biological neuron behavior.
- Trainable Mean and Variance: Both the mean ($\mu$) and variance ($\sigma$) can be trained end-to-end via backpropagation, allowing the network to learn the optimal stochastic behavior.
- Initialization Strategies: For the mean, initialization with known functions like ReLU is proposed for faster convergence. For the variance ($\sigma$), both fixed values and trainable parameters (single or element-wise) are explored, with a sigmoid-based bounding mechanism to ensure stability.
- Augmentation-by-Activation: The stochastic perturbation is framed as a form of feature augmentation, acting as a regularizer to prevent overfitting.
- Ensemble Learning: The inherent stochasticity allows ProbAct to implicitly learn an ensemble of models, enabling uncertainty estimation.
Datasets
The paper evaluates ProbAct on the following datasets:
- Image Classification:
- CIFAR-10
- CIFAR-100
- STL-10
- Text Classification:
- Large Movie Review Dataset
Key Insights and Ideas
- Stochasticity as Regularization: Injecting controlled randomness directly into the activation function can act as a powerful regularization technique, similar to dropout but integrated at a more fundamental level.
- "Augmentation-by-Activation": ProbAct's stochastic nature effectively performs a form of data augmentation within the activation layer itself, improving generalization without explicit data augmentation pipelines.
- Implicit Ensemble Learning: The probabilistic nature of ProbAct allows a single trained network to behave like an ensemble of models, which is crucial for estimating predictive uncertainty.
- Robustness to Noise: The ability to learn a controlled stochastic output makes ProbAct more resilient to noisy inputs, preventing overconfident incorrect predictions.
- Efficiency: Despite introducing stochasticity and learnable parameters, ProbAct's overhead is minimal, making it a viable replacement for standard activation functions.
Key Results
- Accuracy Improvement: ProbAct, particularly with element-wise trainable bounded $\sigma$, achieved performance improvements of 2-3% on CIFAR-10/100/STL-10 and 1-2% on the Large Movie Review dataset compared to ReLU.
- Reduced Data Performance: On datasets reduced to 50% and 25% of their original size, ProbAct showed a significant average increase in test accuracy of 3% and 2.5% respectively, highlighting its effectiveness in low-data regimes.
- Generalization: ProbAct demonstrated better generalization, evidenced by a smaller gap between training and testing accuracy, especially when compared to ReLU with dropout.
- Uncertainty Estimation: ProbAct successfully provided estimates of predictive uncertainty, showing a decrease in uncertainty as the model gained confidence and preventing overconfident decisions on noisy inputs.
- Training Time: The training and testing times were comparable to ReLU, with only a small increase due to the few additional learnable $\sigma$ parameters.
Limitations and Future Work
- Hyperparameter Tuning for $\sigma$: While trainable $\sigma$ reduces the need for manual tuning, selecting optimal bounding parameters ($\alpha, \beta$) for the sigmoid-based bound still requires exploratory testing.
- Combined Training of $\mu$ and $\sigma$: The paper notes that training $\mu$ and $\sigma$ together did not yield further improvements beyond individual training, suggesting potential complexities or that their optimal learning dynamics might differ.
- Computational Cost of Element-wise $\sigma$: Training element-wise $\sigma$ can lead to a large number of parameters and increased convergence time, making it less preferable unless overfitting is a significant concern.
Future work could explore more sophisticated methods for training $\mu$ and $\sigma$ jointly, investigate the theoretical underpinnings of "augmentation-by-activation" more deeply, and apply ProbAct to a wider range of complex architectures and tasks.
Summary updated