This paper introduces a flexible approach to handling the mathematical transformations inside stochastic neural networks. Rather than forcing engineers to pick a fixed activation function (like ReLU or Sigmoid) prior to training, the authors propose a framework that allows the network to learn the optimal shape for its own nonlinearities directly from the data.
The Problem with Fixed Activations
In traditional deep learning, choosing an activation function is a manual design choice. While deterministic networks have seen success with "learned" nonlinearities (such as Maxout), stochastic neural networks—where hidden units act as random variables rather than fixed values—have lacked a unified, flexible framework.
Models like Restricted Boltzmann Machines (RBMs) typically rely on a specific, fixed distribution for their units. Switching from a sigmoid-like unit to a ReLU-like unit often requires altering the entire underlying model architecture. The authors sought a single mathematical "container" capable of representing all these shapes, allowing the model to discover the best fit during training.
The Truncated Gaussian (TruG) Framework
The core innovation of this paper is the Truncated Gaussian (TruG) unit, a probabilistic framework that unifies common nonlinearities.
Instead of a standard bell curve, the framework uses a Gaussian distribution truncated between two learnable points, $\xi_1$ and $\xi_2$. The "activation" or output of a unit is defined as its mathematical expectation. By simply sliding these truncation points, the expectation curve can perfectly mimic a ReLU (truncated at 0 and $\infty$), a sigmoid (truncated at 0 and 1), or a tanh (truncated at -1 and 1).
Because the truncation points $\xi_1$ and $\xi_2$ are parameters in the probability density function, the authors derived gradients for them. This allows the network to use backpropagation (or Contrastive Divergence) to "nudge" the truncation points, effectively reshaping its own activation functions based on the training data. To ensure numerical stability when calculating ratios of Gaussian PDFs and CDFs, the authors also introduced a clever approximation to prevent "divide-by-zero" errors when inputs fall far outside the normal range.
The researchers integrated TruG into three major architectures: TruG-RBM, Temporal TruG-RBM (for sequences), and TruG-TGGM (a feedforward generative model).
Key Insights and Results
The framework was evaluated across a diverse set of tasks, including static generative modeling (MNIST, Caltech101), temporal/sequential data (Bouncing Ball, CMU Motion Capture), and supervised regression (10 UCI repository datasets).
Nonlinearity is Data-Dependent
The experiments demonstrated that a "one-size-fits-all" activation function is suboptimal. Different datasets naturally favor different activation shapes. For instance, while ReLU-type units worked well for synthetic Bouncing Balls, they performed poorly on human motion data compared to the learned TruG units.
Unit-Level Granularity
The authors discovered that performance improves significantly when every single neuron in a layer is allowed to learn its own unique truncation points (a method they call s-Learn), rather than sharing one common shape for the whole layer (c-Learn).
As shown in the results above, the TruG-RBM achieved superior generative accuracy. On MNIST, the TruG-RBM utilizing s-Learn achieved a test log-probability of -82.5, significantly outperforming the standard RBM (-86.3). Similar improvements were seen on the Caltech101 dataset.
Beyond static images, the TruG framework also excelled in other domains:
- Sequence Prediction: In the CMU Motion Capture task, the TruG-TRBM achieved lower prediction errors for both walking and running motions compared to standard temporal models.
- Robust Regression: The feedforward TruG-TGGM outperformed or matched standard Multi-Layer Perceptrons (MLPs) using ReLU across almost all 10 tested UCI datasets.
Limitations and Future Work
While powerful, the TruG framework does introduce optimization complexity. Learning truncation points adds another layer of hyperparameters; the authors noted that these points often require smaller learning rates and "annealing" to converge properly. Additionally, while the expectations are closed-form, the framework requires more complex sampling and variational inference steps than simple deterministic networks.
Future work may explore extending this probabilistic framework to deeper architectures and potentially utilizing more complex distributions beyond the Gaussian to capture even more intricate nonlinearities.
Summary updated