Leveraging Continuously Differentiable Activation Functions for Learning in Quantized Noisy Environments
Vivswan Shah, Nathan Youngblood
TL;DR
The paper addresses learning in real-world analog and noisy hardware, where quantization and noise disrupt gradient propagation. It argues that continuously differentiable activations like GELU and SiLU offer more stable gradient flow than ReLU, and formalizes this with EP, RP, and GSD metrics, plus an interpolation framework between ReLU and differentiable activations. Across CNNs (ConvNet, VGG-A, ResNet-18) and Vision Transformers, it demonstrates that GELU/SiLU improve convergence and accuracy under quantized noise, with larger gains as model depth increases. The findings provide practical hardware-guidance for activation selection in photonic and other analog accelerators, enabling more reliable, high-performance low-precision AI systems.
Abstract
Real-world analog systems intrinsically suffer from noise that can impede model convergence and accuracy on a variety of deep learning models. We demonstrate that differentiable activations like GELU and SiLU enable robust propagation of gradients which help to mitigate analog quantization error that is ubiquitous to all analog systems. We perform analysis and training of convolutional, linear, and transformer networks in the presence of quantized noise. Here, we are able to demonstrate that continuously differentiable activation functions are significantly more noise resilient over conventional rectified activations. As in the case of ReLU, the error in gradients are 100x higher than those in GELU near zero. Our findings provide guidance for selecting appropriate activations to realize performant and reliable hardware implementations across several machine learning domains such as computer vision, signal processing, and beyond. Code available at: \href{https://github.com/Vivswan/GeLUReLUInterpolation}{https://github.com/Vivswan/GeLUReLUInterpolation}.}
