DOE OSTI · 3002015
Simplifying activations with linear approximations in neural networks
Abstract
A key step in Neural Networks is activation. Among the different types of activation functions, sigmoid, tanh, and others involve the usage of exponents for calculation. From a hardware perspective, exponential implementation implies the usage of Taylor series or repeated methods involving many addition, multiplication, and division steps, and as a result are power-hungry and consume many clock cycles. We implement a piecewise linear approximation of the sigmoid function as a replacement for standard sigmoid activation libraries. This approach provides a practical alternative by leveraging piecewise segmentation, which simplifies hardware implementation and improves computational efficiency. In this paper, we detail piecewise functions that can be implemented using linear approximations and their implications for overall model accuracy and performance gain. Our results show that for the DenseNet, ResNet, and GoogLeNet architectures, the piecewise linear approximation of the sigmoid function provides faster execution times compared to the standard TensorFlow sigmoid implementation while maintaining comparable accuracy. Specifically, for MNIST with DenseNet, accuracy reaches 99.91% (Piecewise) vs. 99.97% (Base) with up to 1.31x speedup in execution time. For CIFAR-10 with DenseNet, accuracy improves to 98.97% (Piecewise) vs. 99.40% (Base) while achieving 1.24x faster execution. Similarly, for CIFAR-100 with DenseNet, the accuracy is 97.93% (Piecewise) vs. 98.39% (Base), with a 1.18x execution time reduction. These results confirm the proposed method’s capability to efficiently process large-scale datasets and computationally demanding tasks, offering a practical means to accelerate deep learning models, including LSTMs, without compromising accuracy.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Sapireddy, Srinivas Rahul [Univ. of Missouri, Kansas City, MO (United States)] (ORCID:0009000469560652), Asifuzzaman, Kazi [Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)] (ORCID:0000000240044791), Mostafizur, Rahman [Univ. of Missouri, Kansas City, MO (United States)]. 2025-10-10. Simplifying activations with linear approximations in neural networks. https://doi.org/10.1016/j.memori.2025.100134
Cite the original work for its findings. Save a collection to share your selection of sources.