Abstract
Standard artificial neural networks typically employ static activation functions, a stark contrast to the adaptive nature of biological neurons. This paper explores a novel, two-parameter activation function ($\gamma$) that allows Recurrent Neural Networks (RNNs) to dynamically tune their gain and saturation. By making these parameters trainable, RNNs achieve faster convergence, improved performance on long-sequence tasks, and a unique capacity for weight-free transfer learning.
Introduction
In deep learning, the choice of activation function (e.g., ReLU, Sigmoid) is usually a fixed architectural decision. However, biological "input-frequency response curves" (IF-curves) are highly plastic, adapting to input statistics to maintain stability and efficiency. Geadah et al. propose bridging this gap by introducing trainable activation functions that interpolate between common nonlinearities, allowing the network to optimize its own signal propagation.
Methodology: The $\gamma$ Activation Function
The authors introduce a parametric family of activation functions defined by: $$\gamma(x; n, s) = (1 - s) \frac{\log(1 + e^{nx})}{n} + s \frac{e^{nx}}{1 + e^{nx}}$$ where $s$ (saturation) controls the transition from Softplus ($s=0$) to Sigmoid ($s=1$), and $n$ (gain) adjusts the sharpness of the response. This allows a single functional form to smoothly transition between common activation shapes used in modern architectures.
The study evaluates three adaptation regimes: static (fixed parameters), homogeneous (shared parameters across all neurons), and heterogeneous (per-neuron parameters).
Dynamical Analysis and the "Edge of Chaos"
To understand the impact of these parameters, the researchers employed tools from dynamical systems. The Mean Jacobian norm (Figure 1D) identifies regions of vanishing and exploding gradients, while the Maximal Lyapunov Exponent (MLE) (Figure 1E) measures the system's sensitivity to initial conditions. For memory-intensive tasks like the Copy task, the network's parameters naturally migrated toward the "edge of chaos" (MLE $\approx$ 0), optimizing the preservation of information over long time scales.
Experimental Results
The adaptive RNNs were tested on sequential benchmarks including psMNIST, Penn Tree Bank (PTB), and a synthetic Copy task.
Learning Efficiency and Performance
- Convergence Speed: Homogeneous adaptation reached 85% of peak performance 85% faster than static models on psMNIST and 29% faster on PTB.
- Accuracy: Heterogeneous adaptation achieved state-of-the-art results for vanilla RNNs on the PTB character-level language modeling task (1.518 BPC).
- Information Compression: In language modeling, adaptation appeared to minimize the Mutual Information between inputs and hidden states, suggesting the network acts as an efficient encoder by filtering out noise.
Weight-Free Transfer Learning
A significant finding was the network's ability to adapt to task shifts without weight updates. When a model trained on MNIST was tested on rotated images (45°), accuracy dropped from 94% to 42%. By retraining only the activation parameters $(n, s)$ while keeping synaptic weights frozen, the model recovered to 56% accuracy—reclaiming over a quarter of the lost performance without modifying a single weight.
Conclusion
Integrating biologically-inspired adaptation into RNNs offers a powerful mechanism for improving training dynamics and flexibility. By allowing neurons to tune their own nonlinearities, models can navigate the trade-offs between stability and expressivity more effectively than those with static architectures. Future work may extend these principles to more complex architectures like Transformers or explore real-time adaptation during inference.
Summary updated