Stochastic Circuits for Computing Weighted Ratio With Applications to Multiclass Bayesian Inference Machine
- 7 November 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. 73 (2) , 621-630
Abstract
Bayesian inference is one method of statistical inference in machine learning. It predicts the probability that a given test belongs to a certain class and is widely used in various applications such as medical diagnosis, spam classification and fraud detection. The conventional binary architecture of computing the posterior probability is inefficient in practical implementation, which is involved in multiplication, addition and division operations. Recently, it has been shown that simple Muller C-elements, the asynchronous logic units, can perform stochastic Bayesian inference motivated by its truth table when the data is encoded as the bit-stream. The Bayesian inference machine is therefore implemented with low hardware cost. However, such an architecture is employed to compute the posterior probability of two classes only. This brief presents two stochastic circuit designs for computing the weighted ratio with multiple weights for generalized multi-class Bayesian machines. The first design is mainly based on the JK flip flop and multiplexers. The second approach is to construct the finite state machine (FSM) by manipulating the correlation between the input bit-streams. The FSM-based design requires fewer random number sources (RNSs) as compared to the JK flip flop-based implementation. These facts lead to a reduction of hardware area and energy. Simulation results show that the accuracy of the proposed JK flip flop-based and FSM-based designs is almost the same in the tested data sets. As compared to the traditional binary design, the circuit area of the proposed stochastic design is improved by 96% at least in the cases of three and four classes. The consumed energy per operation is reduced by 58.1% at least in the cases of three and four classes.Keywords
This publication has 36 references indexed in Scilit:
- Highly accurate division and square root circuits by exploiting signal correlation in stochastic computingInternational Journal of Circuit Theory and Applications, 2022
- SciPy 1.0: fundamental algorithms for scientific computing in PythonNature Methods, 2020
- A 3.01 mm2 65.38Gb/s Stochastic LDPC Decoder for IEEE 802.3an in 65 nm2019
- Bayesian inference using stochastic logic: A study of buffering schemes for mitigating autocorrelationInternational Journal of Approximate Reasoning, 2019
- A Bayesian Stochastic Machine for Sound Source Localization2017
- Taking advantage of correlation in stochastic computing2017
- Bayesian inference implemented on FPGA with stochastic bitstreams for an autonomous robot2016
- Stochastic neural computation. I. Computational elementsIEEE Transactions on Computers, 2001
- Bayesian classification with Gaussian processesIEEE Transactions on Pattern Analysis and Machine Intelligence, 1998
- Stochastic Computing Systems1969