IEEE Circuits and Systems Magazine - Q3 2020 - 29
Using a stochastic integrator, DSC is well suited for implementing
accumulation-based iterative algorithms such as numerical
integration and gradient descent.
w
x
o = f(wx)
...
Hidden
Layers
...
Inputs
Outputs
(b)
wl+1
...
δl+1
V. Error Reduction and Assessment
One major issue in SC is the loss of accuracy [58]. Independent RNGs have been used to avoid correlation and
improve the accuracy of components such as stochastic
multipliers. This method inevitably increases the hardware overhead. However, in a stochastic integrator, the
sharing of RNGs for generating the two input sequences
0.5
Cross Entropy
0.4
0.3
0.2
0.1
0
0
5
10
Epoch
(a)
15
20
0
5
10
Epoch
(b)
15
20
98
96
94
92
90
88
Signed DSC
Bipolar DSC
Fixed-Point
...
o
wl
security-critical data on mobile devices if data are sensitive and cannot be uploaded to a cloud computer.
Testing Accuracy (%)
- onnecting layer l and l + 1, and d l + 1 is the local gradic
ent vector of the neurons in layer l + 1. Then, the gradient of a weight at layer l is computed by multiplying the
local gradient with the recorded output of the designated neuron, i.e., dF (w l) = - od l .
In [56], it is found that the local gradient can be decomposed into two parts d = d + - d -, where d + is contributed by the desired output of the NN and d - by the actual
output of the NN. So the gradient for weight w can be rewritten as dF (w) = - o ( d + - d - ). Similar to the implementation of (10), the DSC circuit in Fig. 22 can be used to implement the GD algorithm to perform the online training
(one sample at a time) of the fully connected NN with the
input signals d +, o and d -. However, a backpropagation,
i.e., d = f l(v) w l + 1 d l + 1 , is still computed by using a conventional method (e.g., a fixed-point arithmetic circuit) to
obtain the local gradients. Otherwise, the accuracy loss
would be too much for the algorithm to converge.
Fig. 25 shows the convergence of cross entropy (as
a cost function) and testing accuracy for the training of
a 784-128-128-10 NN with the MNIST handwritten digit dataset. As can be seen, the testing accuracy of the
NN trained by the DSC circuit using the sign-magnitude
representation is similar to the one produced by the
fixed-point implementation (around 97%). However, the
accuracy of the DSC implementation using the bipolar
representation is relatively low.
The proposed circuitry can be useful for online learning where real-time interaction with the environment is
required with an energy constraint [57]. It can also be
used to train a machine learning model using private or
(a)
(c)
Figure 24. (a) A fully connected NN, in which the neurons
are organized layer by layer. (b) The computation during the
forward propagation. (c) The local gradient for wl is computed
by using the backward propagation. The output o from previous neuron is required to compute the gradient.
THIRD QUARTER 2020
Figure 25. (a) Convergence of cross entropy and (b) testing
accuracy of MNIST hand-written digit recognition dataset.
Cross entropy is the cost function to be minimized during the
training of an NN. The weights of the NN are updated by the
DSC circuits. The DSC circuits using the sign-magnitude and
bipolar representations and the fixed-point implementation
are considered for comparison.
IEEE CIRCUITS AND SYSTEMS MAGAZINE
29
IEEE Circuits and Systems Magazine - Q3 2020
Table of Contents for the Digital Edition of IEEE Circuits and Systems Magazine - Q3 2020
Contents
IEEE Circuits and Systems Magazine - Q3 2020 - Cover1
IEEE Circuits and Systems Magazine - Q3 2020 - Cover2
IEEE Circuits and Systems Magazine - Q3 2020 - Contents
IEEE Circuits and Systems Magazine - Q3 2020 - 2
IEEE Circuits and Systems Magazine - Q3 2020 - 3
IEEE Circuits and Systems Magazine - Q3 2020 - 4
IEEE Circuits and Systems Magazine - Q3 2020 - 5
IEEE Circuits and Systems Magazine - Q3 2020 - 6
IEEE Circuits and Systems Magazine - Q3 2020 - 7
IEEE Circuits and Systems Magazine - Q3 2020 - 8
IEEE Circuits and Systems Magazine - Q3 2020 - 9
IEEE Circuits and Systems Magazine - Q3 2020 - 10
IEEE Circuits and Systems Magazine - Q3 2020 - 11
IEEE Circuits and Systems Magazine - Q3 2020 - 12
IEEE Circuits and Systems Magazine - Q3 2020 - 13
IEEE Circuits and Systems Magazine - Q3 2020 - 14
IEEE Circuits and Systems Magazine - Q3 2020 - 15
IEEE Circuits and Systems Magazine - Q3 2020 - 16
IEEE Circuits and Systems Magazine - Q3 2020 - 17
IEEE Circuits and Systems Magazine - Q3 2020 - 18
IEEE Circuits and Systems Magazine - Q3 2020 - 19
IEEE Circuits and Systems Magazine - Q3 2020 - 20
IEEE Circuits and Systems Magazine - Q3 2020 - 21
IEEE Circuits and Systems Magazine - Q3 2020 - 22
IEEE Circuits and Systems Magazine - Q3 2020 - 23
IEEE Circuits and Systems Magazine - Q3 2020 - 24
IEEE Circuits and Systems Magazine - Q3 2020 - 25
IEEE Circuits and Systems Magazine - Q3 2020 - 26
IEEE Circuits and Systems Magazine - Q3 2020 - 27
IEEE Circuits and Systems Magazine - Q3 2020 - 28
IEEE Circuits and Systems Magazine - Q3 2020 - 29
IEEE Circuits and Systems Magazine - Q3 2020 - 30
IEEE Circuits and Systems Magazine - Q3 2020 - 31
IEEE Circuits and Systems Magazine - Q3 2020 - 32
IEEE Circuits and Systems Magazine - Q3 2020 - 33
IEEE Circuits and Systems Magazine - Q3 2020 - 34
IEEE Circuits and Systems Magazine - Q3 2020 - 35
IEEE Circuits and Systems Magazine - Q3 2020 - 36
IEEE Circuits and Systems Magazine - Q3 2020 - 37
IEEE Circuits and Systems Magazine - Q3 2020 - 38
IEEE Circuits and Systems Magazine - Q3 2020 - 39
IEEE Circuits and Systems Magazine - Q3 2020 - 40
IEEE Circuits and Systems Magazine - Q3 2020 - 41
IEEE Circuits and Systems Magazine - Q3 2020 - 42
IEEE Circuits and Systems Magazine - Q3 2020 - 43
IEEE Circuits and Systems Magazine - Q3 2020 - 44
IEEE Circuits and Systems Magazine - Q3 2020 - 45
IEEE Circuits and Systems Magazine - Q3 2020 - 46
IEEE Circuits and Systems Magazine - Q3 2020 - 47
IEEE Circuits and Systems Magazine - Q3 2020 - 48
IEEE Circuits and Systems Magazine - Q3 2020 - 49
IEEE Circuits and Systems Magazine - Q3 2020 - 50
IEEE Circuits and Systems Magazine - Q3 2020 - 51
IEEE Circuits and Systems Magazine - Q3 2020 - 52
IEEE Circuits and Systems Magazine - Q3 2020 - 53
IEEE Circuits and Systems Magazine - Q3 2020 - 54
IEEE Circuits and Systems Magazine - Q3 2020 - 55
IEEE Circuits and Systems Magazine - Q3 2020 - 56
IEEE Circuits and Systems Magazine - Q3 2020 - 57
IEEE Circuits and Systems Magazine - Q3 2020 - 58
IEEE Circuits and Systems Magazine - Q3 2020 - 59
IEEE Circuits and Systems Magazine - Q3 2020 - 60
IEEE Circuits and Systems Magazine - Q3 2020 - 61
IEEE Circuits and Systems Magazine - Q3 2020 - 62
IEEE Circuits and Systems Magazine - Q3 2020 - 63
IEEE Circuits and Systems Magazine - Q3 2020 - 64
IEEE Circuits and Systems Magazine - Q3 2020 - 65
IEEE Circuits and Systems Magazine - Q3 2020 - 66
IEEE Circuits and Systems Magazine - Q3 2020 - 67
IEEE Circuits and Systems Magazine - Q3 2020 - 68
IEEE Circuits and Systems Magazine - Q3 2020 - Cover3
IEEE Circuits and Systems Magazine - Q3 2020 - Cover4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021Q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q1
https://www.nxtbookmedia.com