← Latest papers
🤖 machine learning

SG-Blend: Learning an Interpolation Between Improved Swish and GELU for Robust Neural Representations

The paper introduces SG-Blend, a per-layer adaptive activation function that learns an optimal interpolation between a novel bias-corrected Swish variant (SSwish) and GELU, demonstrating reduced training variance and superior performance across natural language processing and computer vision tasks compared to standard fixed activations.

Original authors: Gaurav Sarkar, Syed Affan Daimi, Jay Gala, Subarna Tripathi

Published 2026-09-11
📖 6 min read🧠 Deep dive

Original authors: Gaurav Sarkar, Syed Affan Daimi, Jay Gala, Subarna Tripathi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Deep learning, the technology behind modern artificial intelligence, relies on vast networks of mathematical pathways that process information layer by layer. To function, these networks need special switches called activation functions. These switches decide how much information passes from one layer to the next, shaping the network's ability to learn complex patterns. For years, researchers have relied on a few standard switches, such as Swish and GELU, which act as the default settings for almost every modern AI model. However, these standard switches are rigid; they apply the exact same shape and behavior to every single layer of a network, regardless of whether that layer is at the beginning, middle, or end of the process. This one-size-fits-all approach creates a problem: while the network might work well on average, its performance can swing wildly depending on how it was randomly initialized, making it difficult to trust or reproduce results consistently.

A team of researchers has proposed a new solution called SG-Blend, a flexible switch that allows each layer of a neural network to find its own perfect balance between two different behaviors. Instead of forcing every layer to use the same rigid setting, this new method lets each layer learn how much it prefers one type of switch over another. The researchers found that by giving each layer this small amount of freedom, the entire network becomes significantly more stable. In tests on language models, this approach reduced the unpredictability of results by forty-two percent compared to the standard method, while also achieving the highest accuracy scores. The key discovery is that the best performance comes not from picking a single perfect switch, but from allowing the network to smoothly interpolate, or blend, between two well-known options, letting the early layers behave differently from the deep layers.

The core idea behind this work is that the rigid nature of current activation functions creates a mismatch with how modern neural networks are built. In older networks, a different type of normalization helped smooth out the flow of information, masking the flaws of these fixed switches. But in the newer, deeper architectures used for language and vision, that smoothing effect is gone. Without it, the fixed switches cause the flow of information to become unstable as it travels through the many layers of the network. The researchers observed that this instability leads to high variance, meaning that if you run the same training experiment twice with slightly different random starting points, you might get two very different results. One run might produce a highly accurate model, while the next might fail to learn effectively, simply because the fixed switches could not adapt to the specific needs of each layer.

To solve this, the team introduced a new mechanism that combines a corrected version of the Swish switch with the GELU switch. They did not simply mix them randomly; instead, they created a system where every single layer in the network has its own small set of adjustable knobs. One knob controls how much the layer leans toward the Swish style, another controls the sharpness of the transition, and a third adjusts the baseline level of the signal. During training, the network learns to set these knobs automatically. The researchers discovered that the network naturally settles into a state where most layers choose a middle ground, blending the two styles roughly equally. This suggests that neither pure Swish nor pure GELU is the perfect answer for every part of the network; rather, the optimal state is a custom blend that varies slightly from layer to layer.

The results of this approach were measured across several different tasks. In a study involving sentiment analysis on movie reviews, the new method matched the peak accuracy of the best existing models but did so with far greater consistency. While the standard method showed a wide gap between its best and worst results across different random starts, the new method kept the results tightly clustered. This consistency is crucial for practical applications, as it means a developer can train a model once and be confident it will perform well, rather than having to run dozens of experiments to find a lucky starting point. Furthermore, when tested on a large-scale language model trained to predict the next word in a sentence, the new method achieved the lowest error rate among all the models tested, proving that the benefits extend beyond simple classification tasks to complex generative models.

The researchers also investigated why this blending works so well by looking at how the network's internal signals flowed. They found that the new method maintained a steady and uniform flow of information from the first layer to the last, avoiding the spikes and drops that often occur with fixed switches. This stability was confirmed by observing that the new method's behavior sat neatly between the behaviors of its two components, effectively borrowing the strengths of both without introducing new weaknesses. Interestingly, the network also learned to adjust the baseline level of the signal differently for early layers compared to later ones, a nuance that fixed switches cannot achieve. This ability to adapt the internal state of each layer individually appears to be the secret to the improved stability and performance.

However, this flexibility comes with a cost. Because the new method requires the network to calculate two different switch behaviors for every layer and then blend them, it takes more time to train. The researchers measured this overhead and found that training a model with this new method took about thirty-three percent longer than using the standard GELU switch on the same hardware. While the network learns more reliably and produces better results, the extra time required is a significant factor for those who need to train models quickly or on limited computing resources. The team acknowledges this trade-off, noting that the benefit of reduced variance and higher accuracy must be weighed against the increased time and computational power needed to reach those results.

Despite the extra time required, the findings suggest a shift in how we think about neural network design. The success of SG-Blend indicates that the rigid, one-size-fits-all approach to activation functions may be a limitation of the past. By allowing the network to learn its own internal settings, researchers can build models that are not only more accurate but also more robust and predictable. The study demonstrates that the path to better artificial intelligence may not lie in finding a single, perfect mathematical formula, but in creating systems flexible enough to adapt their own internal mechanics to the specific demands of the task at hand. This approach offers a promising direction for future research, particularly for the large, complex models that drive modern language and vision technologies.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →