Regularized Flexible Activation Function Combinations for Deep Neural Networks

Renlong Jie, Junbin Gao, Andrey Vasnev, Minh-Ngoc Tran

Introduction

In the landscape of deep learning, activation functions serve as the critical non-linear components that allow neural networks to learn complex patterns. Traditionally, these functions—such as ReLU for hidden layers or Sigmoid for LSTM gates—are fixed before training begins. However, a single fixed shape may not be optimal across diverse datasets and architectures. This paper proposes a framework for learning flexible activation functions by combining multiple basic components into a trainable unit, supported by novel regularization techniques to ensure stability and performance.

Design Philosophy for Flexible Activations

The core methodology involves defining an activation $o(z)$ as a linear combination of $K$ basic functions: $$o_i(z, \alpha^i, \beta^i) = \sum_{k=1}^{K} \alpha_{ik} f_k(z, \beta_{ik})$$ where $\alpha$ represents combination weights and $\beta$ denotes internal parameters of the component functions. To ensure these combinations are effective and non-redundant, the authors propose three guiding principles:

  1. Same Domain: Components must operate on the same input space.
  2. Same Range: Components should produce outputs within the same scale.
  3. Expressive Independence: One component cannot be a simple linear transformation of another, preventing parameter redundancy.

Bounded and Unbounded Families

The research introduces two primary families of flexible activations:

  • P-E2-ReLU: Designed for CNNs, this family combines ReLU with two ELU-family functions, providing a smooth, highly adaptable non-linearity for hidden layers.
  • P-Sig-Ramp: Tailored for LSTMs, this family merges the standard Sigmoid with a "Ramp" function. This allows the network to learn gate behaviors ranging from purely linear to sharp step-like transitions, addressing the rigidity of standard gates.
Figure 2: Visualizing the flexibility of the P-Sig-Ramp activation family under different parameter settings.

Layer-wise Regularization

Introducing trainable parameters for every neuron's activation function risks overfitting. To mitigate this, the authors introduce two regularization terms:

  • Towards-mean: This encourages neurons within the same layer to converge toward a similar activation shape, promoting a collective "consensus" on feature processing.
  • Towards-default: This acts as a structural prior, keeping the learned activation close to a standard baseline (like ReLU or Sigmoid) unless the training data provides strong evidence for a more complex shape.

Experimental Evaluation

The framework was tested on two distinct tasks: time-series forecasting (using LSTMs on stock market data) and image compression (using Convolutional Autoencoders on benchmarks like CIFAR10 and SVHN).

Key Results

In time-series forecasting, LSTMs equipped with P-Sig-Ramp consistently achieved lower Mean Squared Error (MSE) and faster convergence than fixed-activation baselines. For image tasks, the P-E2-ReLU family outperformed standard activations like ReLU, ELU, and GeLU. Notably, the regularized versions of these flexible activations showed superior stability and lower reconstruction errors.

Figure 6: Validation MSE comparison across different time-step configurations, showing the performance gains of regularized flexible activations over fixed baselines.

The computational overhead of these additions is minimal, typically increasing the total parameter count by only 5% to 10%, with negligible impact on training time due to the element-wise nature of the operations.

Conclusion and Future Directions

By moving from fixed to learned activation functions, this work demonstrates significant performance improvements in both recurrent and convolutional architectures. The introduction of "expressive independence" and layer-wise regularization provides a robust foundation for training these flexible units. Future research may explore the use of Neural Architecture Search (NAS) to automatically discover optimal component combinations or test these flexible activations within large-scale models like Transformers.

Summary updated

BibTeX
@inproceedings{jie2020regularized,
  author = {Renlong Jie and Junbin Gao and Andrey Vasnev and Minh-Ngoc Tran},
  title = {{Regularized Flexible Activation Function Combinations for Deep Neural Networks}},
  booktitle = {ICPR},
  year = {2020},
  url = {https://openreview.net/forum?id=zm_Ix8QM9v0},
}
Figure