Efficient CORDIC-Based Activation Functions for RNN Acceleration on FPGAs
- 7 October 2024
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Artificial Intelligence
- Vol. 6 (1) , 199-210
Abstract
Recurrent Neural Networks (RNNs), particularly Long Short-Term Memory (LSTM) networks, have emerged as standard tools for tackling a wide range of time series applications, such as natural language processing. However, deploying these models on edge devices presents great challenges due to limited computational resources. Additionally, the implementation of RNN activation functions on low-end hardware devices significantly impacts the overall network performance, as activations constitute the dominant part of execution time. In this work, we propose an efficient approach for implementing commonly used RNN activations, leveraging an optimized Coordinate Rotation Digital Computer algorithm (CORDIC). Moreover, we propose a unified hardware architecture for mapping the CORDIC-based method onto Field-Programmable Gate Arrays (FPGAs), which can be configured to implement multiple non-linear activation functions. Our architecture reduces the computational time with fewer iterations in CORDIC compared to existing methods, rendering it particularly suitable for resource-constrained edge devices. Our design is implemented on a Xilinx Zynq-7000 device and evaluated across three RNNs and benchmark datasets. Experimental results demonstrate that our design achieves up to a 2× speedup while maintaining model accuracy compared to the state-of-the-art designs.Keywords
Funding Information
- National Natural Science Foundation of China (62001165)
- Scientific Research Foundation of Hunan Provincial Education Department (23A0087)
- Hunan province college students research learning and innovative experiment project (S202410542211)
This publication has 37 references indexed in Scilit:
- Radix-4 CORDIC algorithm based low-latency and hardware efficient VLSI architecture for Nth root and Nth power computationsScientific Reports, 2023
- Resource efficient activation functions for neural network acceleratorsNeurocomputing, 2022
- Deep learning through LSTM classification and regression for transmission line fault detection, diagnosis and location in large-scale multi-machine power systemsMeasurement, 2021
- PTB-XL, a large publicly available electrocardiography datasetScientific Data, 2020
- Image Classification Using Convolutional Neural Network (CNN) and Recurrent Neural Network (RNN): A Review2020
- Speech Recognition Using Deep Neural Networks: A Systematic ReviewIEEE Access, 2019
- An Efficient Hardware Architecture for a Neural Network Activation Function Generator2006
- A framework for the greedy algorithmDiscrete Applied Mathematics, 2002
- An angle recoding method for CORDIC algorithm implementationIEEE Transactions on Computers, 1993
- An array architecture for fast computation of discrete Hartley transformIEEE Transactions on Circuits and Systems, 1991