Flex-SFU: Accelerating DNN Activation Functions by Non-Uniform Piecewise Approximation
Authors:
- 9 July 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-6
Abstract
Modern DNN workloads increasingly rely on activation functions consisting of computationally complex operations. This poses a challenge to current accelerators optimized for convolutions and matrix-matrix multiplications. This work presents Flex-SFU, a lightweight hardware accelerator for activation functions implementing non-uniform piecewise interpolation supporting multiple data formats. Non-Uniform segments and floating-point numbers are enabled by implementing a binary-tree comparison within the address decoding unit. An SGD-based optimization algorithm with heuristics is proposed to find the interpolation function reducing the mean squared error. Thanks to non-uniform interpolation and floating-point support, Flex-SFU achieves on average 22.3x better mean squared error compared to previous piecewise linear interpolation approaches. The evaluation with more than 700 computer vision and natural language processing models shows that Flex-SFU can, on average, improve the end-to-end performance of state-of-the-art AI hardware accelerators by 35.7%, achieving up to 3.3x speedup with negligible impact in the models’ accuracy when using 32 segments, and only introducing an area and power overhead of 5.9% and 0.8% relative to the baseline vector processing unit.Keywords
All Related Versions
This publication has 22 references indexed in Scilit:
- In-Datacenter Performance Analysis of a Tensor Processing Unit2017
- ImageNet classification with deep convolutional neural networksCommunications of the ACM, 2017
- Deep Residual Learning for Image Recognition2016
- Hardware implementation of the exponential function using Taylor series2014
- Efficient VLSI Implementation of Neural Networks With Hyperbolic Tangent Activation FunctionIEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2013
- Design of Hardware Function Evaluators Using Low-Overhead Nonuniform Segmentation With Address RemappingIEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2012
- An optimized lookup-table for the evaluation of sigmoid function for artificial neural networks2010
- A new non-uniform segmentation and addressing remapping strategy for hardware-oriented function evaluators based on polynomial approximation2010
- High Speed VLSI Implementation of the Hyperbolic Tangent Sigmoid Function2008
- An Efficient Hardware Architecture for a Neural Network Activation Function Generator2006