{"title":"Hardware-Optimized Regression Tree-Based Sigmoid and Tanh Functions for Machine Learning Applications","authors":"Akash Dev Roshan;Prithwijit Guha;Gaurav Trivedi","doi":"10.1109/TCSII.2024.3485493","DOIUrl":null,"url":null,"abstract":"The sigmoid and \n<inline-formula> <tex-math>$hyperbolic\\ tangent~(tanh)$ </tex-math></inline-formula>\n functions are widely recognized as the most commonly employed nonlinear activation functions in artificial neural networks. These functions incorporate exponential terms to introduce nonlinearity, which imposes significant challenges when realized on hardware. This brief presents a novel approach for the hardware implementation of sigmoid and tanh functions, leveraging a regression tree and linear regression. The proposed method divides their nonlinear region into small segments using a regression tree. These segments are further approximated using a linear regression technique, the line of best fit. Experimental results demonstrate the average errors of \n<inline-formula> <tex-math>$4\\times 10^{-4}$ </tex-math></inline-formula>\n and \n<inline-formula> <tex-math>$9\\times 10^{-4}$ </tex-math></inline-formula>\n of sigmoid and tanh functions compared to exact functions. The above functions produce 24.52% and 35.71% less average error than the best contemporary method when implemented on the hardware. Additionally, the hardware implementations of sigmoid and tanh functions are more area, power and delay efficient, showcasing the effectiveness of this method compared to other state-of-the-art designs.","PeriodicalId":13101,"journal":{"name":"IEEE Transactions on Circuits and Systems II: Express Briefs","volume":"72 1","pages":"283-287"},"PeriodicalIF":4.0000,"publicationDate":"2024-10-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Circuits and Systems II: Express Briefs","FirstCategoryId":"5","ListUrlMain":"https://ieeexplore.ieee.org/document/10730799/","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"ENGINEERING, ELECTRICAL & ELECTRONIC","Score":null,"Total":0}
引用次数: 0
Abstract
The sigmoid and
$hyperbolic\ tangent~(tanh)$
functions are widely recognized as the most commonly employed nonlinear activation functions in artificial neural networks. These functions incorporate exponential terms to introduce nonlinearity, which imposes significant challenges when realized on hardware. This brief presents a novel approach for the hardware implementation of sigmoid and tanh functions, leveraging a regression tree and linear regression. The proposed method divides their nonlinear region into small segments using a regression tree. These segments are further approximated using a linear regression technique, the line of best fit. Experimental results demonstrate the average errors of
$4\times 10^{-4}$
and
$9\times 10^{-4}$
of sigmoid and tanh functions compared to exact functions. The above functions produce 24.52% and 35.71% less average error than the best contemporary method when implemented on the hardware. Additionally, the hardware implementations of sigmoid and tanh functions are more area, power and delay efficient, showcasing the effectiveness of this method compared to other state-of-the-art designs.
期刊介绍:
TCAS II publishes brief papers in the field specified by the theory, analysis, design, and practical implementations of circuits, and the application of circuit techniques to systems and to signal processing. Included is the whole spectrum from basic scientific theory to industrial applications. The field of interest covered includes:
Circuits: Analog, Digital and Mixed Signal Circuits and Systems
Nonlinear Circuits and Systems, Integrated Sensors, MEMS and Systems on Chip, Nanoscale Circuits and Systems, Optoelectronic
Circuits and Systems, Power Electronics and Systems
Software for Analog-and-Logic Circuits and Systems
Control aspects of Circuits and Systems.