A research team led by Patrick Kwabena Mensah has developed the Rational Additive Linear Unit, or RALU, an identity-preserving residual quasi-rational activation function designed to refine feature learning in deep neural networks. Activation functions represent fundamental building blocks in deep learning, providing the essential non-linear mathematical operations that allow artificial neural networks to approximate complex visual patterns and high-dimensional representations. While the traditional Rectified Linear Unit has served as the default standard across computer vision for more than a decade because of its computational simplicity and numerical efficiency, it suffers from an undifferentiable point at the origin and an identically zero derivative across negative values. Smooth rational activations can overcome these representational constraints through flexible approximation capabilities, but conventional formulations typically require learning multiple polynomial coefficients per layer, which increases architectural complexity. To balance functional smoothness and parameter parsimony, the researchers designed a compact formulation that augments a linear identity baseline with a single learnable curvature correction.
The mathematical formulation of RALU couples an explicit identity pathway directly with a pole-free quasi-rational term expressed as the square of the input divided by the sum of one and the absolute value of the input, scaled by a single real-valued parameter denoted as beta. In the proposed default constrained formulation, beta is restricted to the closed unit interval between zero and one. When beta equals zero, the rational correction vanishes completely, enabling the activation layer to recover the standard identity function exactly. As beta increases toward one, the non-negative correction introduces smooth, controlled curvature across both positive and negative values while strictly preserving twice continuous differentiability across the entire real number line. Unlike parametric variants of the rectified unit that only adjust a linear slope for negative inputs, the single scalar parameter in RALU modulates functional curvature symmetrically across both sides of the origin, establishing asymptotic slopes of one plus beta for positive inputs and one minus beta for negative inputs.
Theoretical analysis documented in the study confirmed that the constrained formulation exhibits strict monotonicity and maintains a strictly positive first derivative at every finite real input. Because the first derivative equals one at the origin for all parameter choices and the second derivative equals twice beta, the learned scalar acts as a direct, interpretable curvature controller. The mathematical proofs showed that strict monotonicity holds over the broader symmetric interval where the absolute value of beta is less than or equal to one. However, the narrower interval between zero and one was specifically selected for the proposed operational model to ensure that the rational correction remains non-negative while eliminating zero gradients across finite negative activations. This structural design ensures that the activation function itself does not extinguish gradient flow during backpropagation, resolving an analytical limitation inherent in fixed threshold functions without introducing the transcendental function calls required by units such as Swish, Mish, or standard Gaussian Error Linear Units.
To evaluate how effectively the new activation approximates traditional rectified linear behavior, the authors conducted analytical and numerical uniform approximation experiments using the Chebfun system in MATLAB over the closed interval from negative one to positive one. For a single unscaled activation unit over the positive half of the domain, the worst-case approximation error between RALU and a standard rectified unit was proven to reach an exact, tight closed-form bound of beta divided by two at the right endpoint. Over the negative half of the domain, the unscaled difference produces a larger deviation because the quasi-rational unit retains non-zero values and positive derivatives where the rectified unit is flat. When considering an optimal affine scaling constant across the full unit interval, the analytical derivation demonstrated that a constant factor of one-half represents the unique global minimizer for all admissible beta values, resulting in an equioscillating minimax error equal to two minus beta divided by four, which achieves its extreme deviations simultaneously at both endpoints.
The investigation further explored compositional approximation behavior by examining the repeated self-composition of RALU units to simulate multi-layer network depth under identical parameter settings. Using Chebfun to track the minimax approximation error across composition depths from one to eight, the authors identified parameter-dependent finite-depth windows during which repeated self-composition steadily decreased the uniform approximation error relative to a rectified linear target. For beta values of 0.25, 0.50, and 0.75, the error sequences within these initial stable windows exhibited predictable decay that was well described by a singly exponential regression model. In the case of beta equal to 0.50, the singly exponential fit achieved an R-squared value of 0.9535, substantially outperforming a competing doubly exponential model. Although subsequent depth increments beyond the stable windows produced error increases for beta values greater than or equal to 0.50, the empirical curve fits demonstrated that composition depth grows logarithmically with decreasing target approximation error within the measured decay ranges.
To assess practical image classification performance, the authors conducted benchmark experiments across three distinct vision datasets: the 100-class CIFAR-100 object recognition dataset, the 200-class TinyImageNet-200 benchmark, and a five-class Cashew crop pest and disease agricultural dataset comprising over 25,000 field images. The experimental design covered six diverse neural network architectures spanning a broad range of model complexity, including a lightweight Shallow CNN of roughly 130,000 parameters, DenseNet-201, ResNet-50, MobileNetV3-Large, EfficientNet-B0, and a vision transformer, ViT-B/16, containing approximately 86 million parameters. Competing baseline activations included standard ReLU, Leaky ReLU, Parametric ReLU, Mish, Swish, and GELU, with HardSwish evaluated specifically on MobileNetV3-Large as that network’s native activation function. Model optimization relied on matched training protocols, utilizing five-fold cross-validation with identical stratified fold assignments across all candidate functions to ensure rigorous comparative fairness.
The deep model evaluation operated under a matched maximum training budget protocol rather than training models to asymptotic convergence. CNN architectures were trained using stochastic gradient descent with momentum under a fixed 50-epoch ceiling, accompanied by validation-loss early stopping and cosine annealing learning rate schedules, while the Shallow CNN was evaluated under a 100-epoch cap. On the Shallow CNN baseline across CIFAR-100, TinyImageNet-200, and the Cashew dataset, RALU achieved the highest descriptive mean validation accuracy, external holdout accuracy, and macro-averaged F1 score among all evaluated activations. In deeper convolutional backbones, RALU produced its clearest descriptive mean advantages in DenseNet-201 and ResNet-50. Conversely, its observed gains were smaller or mixed when evaluated on MobileNetV3-Large and EfficientNet-B0, while performance differences among smooth activation functions narrowed considerably when tested within the ViT-B/16 vision transformer architecture.
To establish statistical rigor, the authors conducted formal hypothesis testing using the Nadeau-Bengio corrected paired t-test, which specifically accounts for the training data overlap inherent in K-fold cross-validation. Evaluating DenseNet-201 trained on CIFAR-100 across 24 distinct statistical tests spanning validation accuracy, test accuracy, validation area under the curve, and validation macro-F1 score, the analysis applied a family-wise Bonferroni-adjusted significance threshold of 0.00208. Under this strict criterion, RALU demonstrated statistically significant performance advantages over the traditional piecewise linear baselines, including ReLU, Leaky ReLU, and Parametric ReLU across all four evaluation metrics. Statistically significant improvements were also confirmed against GELU and Swish in several comparisons, whereas differences relative to Mish did not meet the corrected significance threshold, confirming that while RALU outperforms piecewise linear baselines, its margin relative to smooth non-linear alternatives varies by metric.
Component-level matched ablations and gradient sensitivity analyses revealed critical structural factors underpinning RALU’s performance. When decomposing the activation into its mathematical operations, forward evaluation requires exactly six primitive scalar operations per element—consisting of one absolute value, two additions, two multiplications, and one division—avoiding the transcendental functions required by Swish or GELU. Comparing weight-gradient norms across DenseNet-201 sections demonstrated that retaining the residual identity term generated the most decisive operational impact, producing residual-to-correction-only gradient norm ratios ranging from 1.3 to 9.3, particularly within the network stem and early dense blocks. When the identity pathway was present, gradient propagation exhibited low sensitivity to whether beta was fixed or trainable, or whether it was shared or layer-wise. However, in correction-only ablations lacking the identity term, gradient norms dropped significantly, highlighting that the residual linear pathway is essential for stable gradient backpropagation.
Tracking the learned parameter values during training provided additional empirical insight into the internal optimization dynamics of deep models. In constrained DenseNet-201 runs on TinyImageNet-200, the layer-wise beta parameters exhibited reproducible, depth-dependent specialization across distinct network stages, utilizing both interior solutions and boundary values within the permitted unit interval. Exploratory unconstrained experiments, in which beta was allowed to take arbitrary real values without theoretical bounds, showed that section-level means drifted between negative 0.676 and positive 8.905, demonstrating that unconstrained optimization explores wider parameter spaces at the expense of theoretical monotonicity guarantees. The researchers emphasized that the gradient measurements reflect optimization mechanics rather than direct counts of inactive neurons, and they cautioned that these findings characterize finite-budget performance rather than asymptotic behavior after complete convergence.
The study also delineated several clear structural and methodological boundaries that contextualize the findings. For EfficientNet-B0, the candidate activations were inserted exclusively into the classification head while the native SiLU functions within the MBConv feature extraction backbone were left intact, representing a controlled head-level compatibility test rather than full-backbone replacement. Furthermore, while stratified fold splits were strictly matched using a fixed seed, stochastic training components such as parameter initialization, sample shuffling, and data augmentation were not bitwise deterministic. The authors emphasized that RALU represents an architecture-dependent competitive alternative rather than an unconditionally superior replacement for every domain. Future research will explore closed-form solutions for repeated compositional mappings, test full backbone replacements across broader vision architectures, and evaluate the residual quasi-rational formulation in domains extending beyond visual image classification.
Subject of Research: Deep learning activation functions and convolutional neural network optimization for image classification
Article Title: RALU: a residual Quasi-rational activation function for image classification
Article References: Mensah, P. K., Ayidzoe, M. A., Nasiru, S., Bawah, F. U., Pokuaa, H. A., Adu, K., Nimbe, P., & Opoku, M. (2026). RALU: a residual Quasi-rational activation function for image classification. Discover Artificial Intelligence, 6(1), Article 1965. https://doi.org/10.1007/s44163-026-02705-y
Image Credits: AI Generated
DOI: 10.1007/s44163-026-02705-y
Keywords: activation functions, RALU, quasi-rational activation, image classification, deep neural networks, convolutional neural networks, ReLU alternative, parameter parsimony, gradient flow, DenseNet-201, ResNet-50, CIFAR-100, TinyImageNet-200, Cashew disease dataset, Chebfun analysis, Nadeau-Bengio test, machine learning optimization
News Source: Denise Maddox. (November 26, 2026). Residual Quasi-Rational Activation Function Improves Image Classification in Deep Convolutional Networks. Scienmag.



