An Accurate and Compact Hyperbolic Tangent and Sigmoid Computation Based Stochastic Logic

  • Van Tinh Nguyen
  • , Tieu Khanh Luong
  • , Emanuel Popovici
  • , Quang Kien Trinh
  • , Renyuan Zhang
  • , Yasuhiko Nakashima

Research output: Chapter in Book/Report/Conference proceedingsChapterpeer-review

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.

Original languageEnglish
Title of host publication2021 IEEE International Midwest Symposium on Circuits and Systems, MWSCAS 2021 - Proceedings
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages386-390
Number of pages5
ISBN (Electronic)9781665424615
DOIs
Publication statusPublished - 9 Aug 2021
Event2021 IEEE International Midwest Symposium on Circuits and Systems, MWSCAS 2021 - Virtual, East Lansing, United States
Duration: 9 Aug 202111 Aug 2021

Publication series

NameMidwest Symposium on Circuits and Systems
Volume2021-August
ISSN (Print)1548-3746

Conference

Conference2021 IEEE International Midwest Symposium on Circuits and Systems, MWSCAS 2021
Country/TerritoryUnited States
CityVirtual, East Lansing
Period9/08/2111/08/21

Keywords

  • Bernstein polynomial
  • Bipolar format
  • Sigmoid function
  • Stochastic logic
  • Tangent hyperbolic
  • Unipolar format

Fingerprint

Dive into the research topics of 'An Accurate and Compact Hyperbolic Tangent and Sigmoid Computation Based Stochastic Logic'. Together they form a unique fingerprint.

Cite this