Content deleted Content added
Citation bot (talk | contribs) Alter: pages. Add: volume. Formatted dashes. | Use this bot. Report bugs. | Suggested by SemperIocundus | #UCB_webform |
No edit summary |
||
(15 intermediate revisions by 9 users not shown) | |||
Line 1:
{{Short description|Computing using random bit streams}}
'''Stochastic computing''' is a collection of techniques that represent continuous values by streams of random bits. Complex computations can then be computed by simple bit-wise operations on the streams. Stochastic computing is distinct from the study of [[randomized algorithm]]s.
== Motivation and a simple example ==
Suppose that <math>p,q \in [0,1]</math> is given, and we wish to compute <math>p \times q</math>. Stochastic computing performs this operation using probability instead of arithmetic.
Specifically, suppose that there are two random, independent bit streams called ''stochastic number''s (i.e. [[Bernoulli process]]es), where the probability of a
{| class="wikitable" style="text-align:left;"
Line 17:
| 1 || 0 || 0 || 1 || 0 || 0 || ...
|}
The probability of a
The operation above converts a fairly complicated computation (multiplication of <math>p</math> and <math>q</math>) into a series of very simple operations (evaluation of <math>a_i \land b_i</math>) on random bits.
To put in another perspective, assuming the truth table of an AND gate. Conventional interpretation is that the output is true if and only if input A and B are true. However, if the table is interpreted vertically, (0011) AND (0101) is (0001), i.e., 1/2 x 1/2 = 1/4, which is exactly an arithmetic multiplication. As the information is presented in probability distribution, probability multiplication is literally an AND operation.
{| class="wikitable"
|+
!A
!B
!Out
|-
|0
|0
|0
|-
|0
|1
|0
|-
|1
|0
|0
|-
|1
|1
|1
More generally speaking, stochastic computing represents numbers as streams of random bits and reconstructs numbers by calculating frequencies. The computations are performed on the streams and translate complicated operations on <math>p</math> and <math>q</math> into simple operations on their stream representations. (Because of the method of reconstruction, devices that perform these operations are sometimes called stochastic averaging processors.) In modern terms, stochastic computing can be viewed as an interpretation of calculations in probabilistic terms, which are then evaluated with a [[Gibbs sampling|Gibbs sampler]]. It can also be interpreted as a hybrid [[Analog computer|analog]]/[[Computer|digital]] computer.
Line 34 ⟶ 56:
|year = 1963
|isbn = 978-0-393-05169-8
}}</ref> However, the
theory could not be fully developed until advances in computing of the 1960s,<ref>{{cite conference
Line 48 ⟶ 69:
}}</ref>
mostly through a series of simultaneous and parallel efforts in the US<ref>
{{cite
| last1=Poppelbaum
| first1=W.
Line 55 ⟶ 76:
| last3=Esch
| first3=J.
| title=Proceedings of the November 14-16, 1967, fall joint computer conference on - AFIPS '67 (Fall)
|
| volume=31
| pages=635–644 |doi=10.1145/1465611.1465696 |isbn=9781450378963
Line 63 ⟶ 84:
}}</ref>
and the UK.<ref>
{{cite
| last=Gaines
| first=B.
| title=Proceedings of the April 18-20, 1967, spring joint computer conference on - AFIPS '67 (Spring)
|
| year=1967
| volume=30
Line 124 ⟶ 145:
</ref>
<ref>
{{cite
|first1=M. |last1=van Daalen |first2=P. |last2=Jeavons |first3=J. |last3=Shawe-Taylor |title=[1993] Proceedings IEEE Workshop on FPGAs for Custom Computing Machines |chapter=A stochastic neural architecture that exploits dynamically reconfigurable FPGAs | year=1993 |isbn=0-8186-3890-7 |pages=202–211 |doi=10.1109/FPGA.1993.279462▼
|s2cid=14929278 }}
▲|first1=M. |last1=van Daalen |first2=P. |last2=Jeavons |first3=J. |last3=Shawe-Taylor | year=1993 |isbn=0-8186-3890-7 |pages=202–211 |doi=10.1109/FPGA.1993.279462
▲}}
</ref>
Somewhat recently, interest has turned towards stochastic
Line 148 ⟶ 167:
}}
</ref> More recently, stochastic circuits have been successfully used in [[image processing]] tasks such as [[edge detection]]
<ref>{{Cite book | last1 = Alaghi | first1 = A. | last2 = Li | first2 = C. | last3 = Hayes | first3 = J. P. | doi = 10.1145/2463209.2488901 | chapter = Stochastic circuits for real-time image-processing applications | title = Proceedings of the 50th Annual Design Automation Conference on - DAC '13 | pages = 1 | year = 2013 | isbn = 9781450320719 | s2cid = 18174415 }}</ref> and [[Thresholding (image processing)|image thresholding]].<ref>{{Cite
== Strengths and weaknesses ==
Line 170 ⟶ 189:
computer only requires an [[And gate|AND gate]]. Additionally,
a digital multiplier would naively require <math>2n</math> input wires,
whereas a stochastic multiplier would only require
(If the digital multiplier serialized its output, however, it would also
require only
Additionally, stochastic computing is robust against noise; if a few
Line 181 ⟶ 200:
Circuits work properly even when the inputs are misaligned temporally. As a result, stochastic
systems can be designed to work with inexpensive locally generated clocks instead of using a global clock and
an expensive clock distribution network.<ref>{{Cite book | last1 = Najafi | first1 = M. H. | last2 = Lilja | first2 = D. J. | last3 = Riedel| first3 = M. D. | last4 = Bazargan | first4 = K.
Finally, stochastic computing provides an estimate of the solution
Line 229 ⟶ 248:
''latching'', where feedback between different components can achieve
a deadlocked state.<ref>
{{cite
| last1=Winstead
| first1=C.
Line 238 ⟶ 257:
| last4=Schlegel
| first4=C.
|
▲| journal=IEEE International Symposium on Information Theory
| ___location=Adelaide Australia
|date=September 2005
Line 317 ⟶ 336:
== Deterministic Methods to Stochastic Computing ==
Deterministic methods of SC has been developed to perform completely accurate computation with SC circuits.<ref>{{Cite journal|last1=Najafi|first1=M. Hassan|last2=Jenson|first2=Devon|last3=Lilja|first3=David J.|last4=Riedel|first4=Marc D.|date=December 2019|title=Performing Stochastic Computation Deterministically|journal=IEEE Transactions on Very Large Scale Integration (VLSI) Systems|volume=27|issue=12|pages=2925–2938|doi=10.1109/tvlsi.2019.2929354|s2cid=201888463|issn=1063-8210|doi-access=free}}</ref> The essential principle of these methods is that every bit of one bit-streams interacts with every bit of the other bit-streams exactly once. To produce completely accurate result with these methods, the operation must run for the product of the length of input bit-streams. Deterministic methods are developed based on unary bit-streams,<ref>{{Cite
== Variants of stochastic computing ==
Line 348 ⟶ 367:
solution). Additionally, it retains the linear precision of bundle
and ergodic processing.
==See also==
* [[Unconventional computing]]
==References==
|