[Paper Review] A Probabilistic Framework for Nonlinearities in Stochastic Neural Networks
This paper proposes TruG, a probabilistic framework that unifies ReLU, sigmoid, and tanh nonlinearities using doubly truncated Gaussian distributions, enabling end-to-end learning of nonlinearities alongside model weights in stochastic neural networks. The framework improves performance across RBM, temporal RBM, and TGGM models by allowing flexible, data-driven nonlinearity adaptation.
We present a probabilistic framework for nonlinearities, based on doubly truncated Gaussian distributions. By setting the truncation points appropriately, we are able to generate various types of nonlinearities within a unified framework, including sigmoid, tanh and ReLU, the most commonly used nonlinearities in neural networks. The framework readily integrates into existing stochastic neural networks (with hidden units characterized as random variables), allowing one for the first time to learn the nonlinearities alongside model weights in these networks. Extensive experiments demonstrate the performance improvements brought about by the proposed framework when integrated with the restricted Boltzmann machine (RBM), temporal RBM and the truncated Gaussian graphical model (TGGM).
Motivation & Objective
- To unify commonly used nonlinearities (ReLU, sigmoid, tanh) within a single probabilistic framework for stochastic neural networks.
- To enable end-to-end learning of nonlinearities alongside model weights, rather than fixing them during network design.
- To extend the applicability of stochastic neural networks—such as Boltzmann machines and belief networks—to learn nonlinearity parameters from data.
- To provide a unified, flexible, and probabilistically grounded alternative to deterministic activation functions in generative and discriminative models.
Proposed method
- Model hidden units as truncated Gaussian random variables: $ p(h|z,\bm{\xi}) = \mathcal{N}_{[\xi_1,\xi_2]}(h|z,\sigma^2) $, where $ z $ is the net input and $ \bm{\xi} = (\xi_1, \xi_2) $ are learnable truncation points.
- Use the conditional expectation $ \mathbb{E}[h|z,\bm{\xi}] $ to derive a deterministic activation function that approximates ReLU, sigmoid, and tanh under appropriate $ \bm{\xi} $ settings.
- Integrate TruG into existing stochastic models: TruG-RBM, temporal TruG-RBM, and TruG-TGGM, by replacing standard nonlinearities with the TruG unit.
- Train the model by maximizing the likelihood of $ \bm{\xi} $, allowing both unit-level and model-level nonlinearity learning with minimal changes to optimization updates.
- Perform variational inference with 10 VB cycles for parameter estimation, using RMSprop with adaptive learning rates and mini-batch training.
- Evaluate both fixed and learned truncation points, including separate (unit-level) and shared (model-level) parameter learning strategies.
Experimental results
Research questions
- RQ1Can a unified probabilistic framework represent common nonlinearities like ReLU, sigmoid, and tanh using truncated Gaussian distributions?
- RQ2Can nonlinearities be jointly learned with model weights in stochastic neural networks such as RBMs and TGGMs?
- RQ3Does learning the nonlinearity parameters (truncation points) improve performance over fixed nonlinearities in both generative and discriminative models?
- RQ4How do different truncation point settings (e.g., [0,1], [-1,1], [0,∞)) affect model performance across diverse datasets?
- RQ5Can the TruG framework be seamlessly integrated into existing stochastic models with minimal architectural or algorithmic changes?
Key findings
- The TruG framework successfully unifies ReLU, sigmoid, and tanh as special cases of doubly truncated Gaussians by adjusting truncation points $ \xi_1 $ and $ \xi_2 $.
- In the temporal RBM, TruG-RBM with learned truncation points achieved 7.3% error for walking and 5.9% for running, outperforming the original TRBM (9.6% and 6.8%) and c-Learn (6.7% and 5.5%).
- For the TruG-TGGM on the Boston Housing dataset, the model with learned truncation points (s-Learn) achieved 3.401 ± 0.375 RMSE, outperforming the ReLU-based MLP (3.228 ± 0.195) and other TruG variants.
- On the K8nm dataset, TruG-TGGM with learned truncation points (s-Learn) achieved 0.073 ± 0.002 RMSE, significantly better than the ReLU-based MLP (0.091 ± 0.002).
- The TruG-TGGM with separate learning of truncation points (s-Learn) outperformed common learning (c-Learn) on most datasets, including Protein Structure (4.206 ± 0.071 vs. 4.209 ± 0.073 RMSE).
- The framework enables interchangeable use of nonlinearities within the same model structure, allowing seamless replacement of ReLU with sigmoid or tanh without architectural changes.
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.