Balanced Learnable Activation Function (BLAF): Enhancing Classification Accuracy in Deep Neural Networks
Activation functions significantly influence classification accuracy in both training and testing. The most prevalent choice is Relu. However, Relu is non-negative and has a zero gradient for negative inputs. This can lead to inactive outputs due to a lack of weight updates. Additionally, the vanishing gradients problem can slow down learning when a constant zero gradient is encountered, slowing convergence. In response to these challenges, we present a pioneering solution: the Balanced Learnable Activation Function (BLAF), featuring learnable hyperparameters <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"> <mml:mi>α</mml:mi> </mml:math> and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"> <mml:mi>γ</mml:mi> </mml:math> . In contrast to Relu, BLAF incorporates negative values, shifting activation means toward zero. Mean activations closer to zero facilitate faster learning by aligning the gradient closer to the natural gradient, thus improving convergence and accuracy. To maintain input magnitudes during training and accelerate convergence in the modified deep neural networks, we propose to utilize appropriate initial values for <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"> <mml:mi>α</mml:mi> </mml:math> and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"> <mml:mi>γ</mml:mi> </mml:math> . The learnable hyperparameters <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"> <mml:mi>α</mml:mi> </mml:math> and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"> <mml:mi>γ</mml:mi> </mml:math> control the saturation point for negative inputs. When BLAF reaches this point, the small derivative reduces variation and information propagation to the next layer. Consequently, producing simpler, faster representations. To avoid repetitive iterations in activation functions with fixed hyperparameters, BLAF automatically adjusts <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"> <mml:mi>α</mml:mi> </mml:math> and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"> <mml:mi>γ</mml:mi> </mml:math> during training. This adaptation enhances BLAF’s classification adaptability by efficiently capturing complex data patterns and improving learning and generalization across diverse datasets. Unlike conventional approaches that rely on pre-designed architectures with default activation functions, we reconstruct well-known networks InceptionV3 and ResNet50 from scratch. We train these networks with BLAF and other activation functions to ensure an impartial evaluation.
Authors
- Jiang Jian-sheng
- Majjed Al-Qatf
- Ali Abdullah Yahya (ORCID: https://orcid.org/0000-0002-7805-1225)
Institutions
- Ollscoil na Gaillimhe – University of Galway (IE)
- Anqing Normal University (CN)
Publication Details
- Journal
- Journal of Intelligent & Fuzzy Systems
- Published
- 2025-05-22
- DOI
- https://doi.org/10.1177/18758967251343172
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00