乙状窦函数
MNIST数据库
现场可编程门阵列
分段
分段线性函数
计算机科学
延迟(音频)
人工神经网络
算法
曲率
卷积神经网络
激活函数
数学
人工智能
计算机硬件
数学分析
电信
几何学
作者
Zerun Li,Yang Zhang,Bingcai Sui,Zuocheng Xing,Qinglin Wang
出处
期刊:Electronics
[Multidisciplinary Digital Publishing Institute]
日期:2022-04-25
卷期号:11 (9): 1365-1365
被引量:11
标识
DOI:10.3390/electronics11091365
摘要
The sigmoid activation function is popular in neural networks, but its complexity limits the hardware implementation and speed. In this paper, we use curvature values to divide the sigmoid function into different segments and employ the least squares method to solve the expressions of the piecewise linear fitting function in each segment. We then adopt an optimization method with maximum absolute errors and average absolute errors to select an appropriate function expression with a specified number of segments. Finally, we implement the sigmoid function on the field-programmable gate array (FPGA) development platform and apply parallel operations of arithmetic (multiplying and adding) and range selection at the same time. The FPGA implementation results show that the clock frequency of our design is up to 208.3 MHz, while the end-to-end latency is just 9.6 ns. Our piecewise linear fitting method based on curvature analysis (PWLC) achieves recognition accuracy on the MNIST dataset of 97.51% with a deep neural network (DNN) and 98.65% with a convolutional neural network (CNN). Experimental results demonstrate that our FPGA design of sigmoid function can obtain the lowest latency, reduce absolute errors, and achieve high recognition accuracies, while the hardware cost is acceptable in practical applications.
科研通智能强力驱动
Strongly Powered by AbleSci AI