Van-Tinh Nguyen, Tieu-Khanh Luong, E. Popovici, Quang-Kien Trinh, Renyuan Zhang, Y. Nakashima
{"title":"基于随机逻辑的精确紧凑双曲正切和s型计算","authors":"Van-Tinh Nguyen, Tieu-Khanh Luong, E. Popovici, Quang-Kien Trinh, Renyuan Zhang, Y. Nakashima","doi":"10.1109/MWSCAS47672.2021.9531838","DOIUrl":null,"url":null,"abstract":"In this paper, a proof-of-concept implementation of hyperbolic tanh(ax) and sigmoid(2ax) functions for high-precision as well as compact computational hardware based on stochastic logic is presented. Nonlinear activation introducing the non-linearity in the learning process is one of the critical building blocks of artificial neural networks. Hyperbolic tangent and sigmoid are the most commonly used nonlinear activation functions in machine-learning system such as neural networks. This work demonstrates the stochastic computation of tanh(ax) and sigmoid(2ax) functions-based Bernstein polynomial using a bipolar format. The format conversion from bipolar to unipolar format is involved in our implementation. One achievement is that our proposed implementation is more accurate than the state-of-the-arts including FSM based method, JK-FF and general unipolar division. On average, 90% of improvement of this work in terms of mean square error (MAE) has been achieved while the hardware cost and power consumption are comparable to the previous approaches.","PeriodicalId":6792,"journal":{"name":"2021 IEEE International Midwest Symposium on Circuits and Systems (MWSCAS)","volume":"17 1","pages":"386-390"},"PeriodicalIF":0.0000,"publicationDate":"2021-08-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"An Accurate and Compact Hyperbolic Tangent and Sigmoid Computation Based Stochastic Logic\",\"authors\":\"Van-Tinh Nguyen, Tieu-Khanh Luong, E. Popovici, Quang-Kien Trinh, Renyuan Zhang, Y. Nakashima\",\"doi\":\"10.1109/MWSCAS47672.2021.9531838\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"In this paper, a proof-of-concept implementation of hyperbolic tanh(ax) and sigmoid(2ax) functions for high-precision as well as compact computational hardware based on stochastic logic is presented. Nonlinear activation introducing the non-linearity in the learning process is one of the critical building blocks of artificial neural networks. Hyperbolic tangent and sigmoid are the most commonly used nonlinear activation functions in machine-learning system such as neural networks. This work demonstrates the stochastic computation of tanh(ax) and sigmoid(2ax) functions-based Bernstein polynomial using a bipolar format. The format conversion from bipolar to unipolar format is involved in our implementation. One achievement is that our proposed implementation is more accurate than the state-of-the-arts including FSM based method, JK-FF and general unipolar division. On average, 90% of improvement of this work in terms of mean square error (MAE) has been achieved while the hardware cost and power consumption are comparable to the previous approaches.\",\"PeriodicalId\":6792,\"journal\":{\"name\":\"2021 IEEE International Midwest Symposium on Circuits and Systems (MWSCAS)\",\"volume\":\"17 1\",\"pages\":\"386-390\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-08-09\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2021 IEEE International Midwest Symposium on Circuits and Systems (MWSCAS)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/MWSCAS47672.2021.9531838\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE International Midwest Symposium on Circuits and Systems (MWSCAS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/MWSCAS47672.2021.9531838","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
An Accurate and Compact Hyperbolic Tangent and Sigmoid Computation Based Stochastic Logic
In this paper, a proof-of-concept implementation of hyperbolic tanh(ax) and sigmoid(2ax) functions for high-precision as well as compact computational hardware based on stochastic logic is presented. Nonlinear activation introducing the non-linearity in the learning process is one of the critical building blocks of artificial neural networks. Hyperbolic tangent and sigmoid are the most commonly used nonlinear activation functions in machine-learning system such as neural networks. This work demonstrates the stochastic computation of tanh(ax) and sigmoid(2ax) functions-based Bernstein polynomial using a bipolar format. The format conversion from bipolar to unipolar format is involved in our implementation. One achievement is that our proposed implementation is more accurate than the state-of-the-arts including FSM based method, JK-FF and general unipolar division. On average, 90% of improvement of this work in terms of mean square error (MAE) has been achieved while the hardware cost and power consumption are comparable to the previous approaches.