IEEE Circuits and Systems Magazine - Q4 2019 - 29
is that the latent space for generation may not be continuous and easily interpolated. This makes it difficult
to build a generative model and produce variations in
the input image, caused by a discontinuous region from
the latent space.
Compared to the standard autoencoders, VAEs are
able to generate new outputs which are similar to the
training data in a desired direction. The latent spaces of
VAEs are continuous to allow random sampling and interpolation by design. To achieve this unique property,
the output of the encoder (i.e. the latent variables) is
transformed to two vectors as shown in Fig. 11: one for
the means μ and another for the standard deviations v.
These statistical parameters form a vector of random
variables X, of which the probability distribution of all
elements X i is normally distributed. The length of this
random variable vector is the same as the encoding vector in standard autoencoders. The ith element of μ and
v are the mean and standard deviation of the ith random variable X i . After sampling, a real-value vector is
obtained and passed forward to the decoder for generation. Intuitively, the latent representation of an input is
controlled by the mean and standard deviation vector.
Consequently, new samples can be created by the decoder with a slightly varied latent encoding.
To achieve ideal latent variables, which are as close
as possible to each other while still being distinct, the
Kullback-Leibler (KL) divergence is introduced into the
loss function. KL divergence is used to measure by how
much two probability distributions diverge from each
other. A lower KL divergence means the probability
distribution of the generated samples are closer to the
target distribution. For VAEs, the KL loss in a Gaussian
case, as given in (4),
D KL ^Q < P h = 1 / ^v 2i + n 2i - log ^v 2i h - 1 h
2 i=1
n
of simple restricted Boltzmann machines (RBMs). The
edges between layers of a DBN are both directed and undirected. Hidden units are connected to those of other
layers but not with units belonging to the same layers.
To understand DBNs, the definition of RBMs is introduced first. As their name implies, RBMs are derived
from Boltzmann machines, which are stochastic recurrent neural networks. The difference is that in an RBM all
the neurons are paired from two groups of units: visible
and hidden units. In addition, there are no connections
between neurons within a group. This is for a more efficient training algorithm, in particular the gradient-based
algorithm. Fig. 12 shows an example of an RBM. It is
noted that the connections between the visible layer and
the hidden layer are bidirectional. The contrastive divergence (CD) algorithm is most often used to train an RBM
by optimizing the weight matrix [87]. After training, the
hidden layer can perform an exact feature representation of the visible layer and reconstruct the visible layer.
Returning back to the DBN, which is a combination
of multiple RBMs, this composition leads to a fast, layerby-layer unsupervised training procedure. The network
architecture of a DBN is shown in Fig. 13. When the first
RBM is trained by the CD algorithm, another RBM is
stacked, taking the outputs from the hidden layer of the
Input Layer
Encoder
(4)
is the sum of all the KL divergences between the approximate posterior Q and the standard normal distribution P [40]. Obviously, the minima will be reached
when n i = 0 and v i = 1. Besides the KL loss, the reconstruction loss (such as the mean square error) is
also adopted to maintain the similarity of nearby latent variables.
A VAE can also be extended for supervised learning,
namely as the Conditional VAE (CVAE). The CVAE models latent variables and data, both conditioned on some
random variables, which allows producing data with
specific attributes. More details can be found in [86].
μµi
σii
Xi
X
Decoder
Output Layer
2) Deep Belief Network
The deep belief network (DBN) is a type of generative
graphical model and is usually considered as a stack
FOURTH QUARTER 2019
Figure 11. An example VAE configuration.
IEEE CIRCUITS AND SYSTEMS MAGAZINE
29
IEEE Circuits and Systems Magazine - Q4 2019
Table of Contents for the Digital Edition of IEEE Circuits and Systems Magazine - Q4 2019
Contents
IEEE Circuits and Systems Magazine - Q4 2019 - Cover1
IEEE Circuits and Systems Magazine - Q4 2019 - Cover2
IEEE Circuits and Systems Magazine - Q4 2019 - 1
IEEE Circuits and Systems Magazine - Q4 2019 - Contents
IEEE Circuits and Systems Magazine - Q4 2019 - 3
IEEE Circuits and Systems Magazine - Q4 2019 - 4
IEEE Circuits and Systems Magazine - Q4 2019 - 5
IEEE Circuits and Systems Magazine - Q4 2019 - 6
IEEE Circuits and Systems Magazine - Q4 2019 - 7
IEEE Circuits and Systems Magazine - Q4 2019 - 8
IEEE Circuits and Systems Magazine - Q4 2019 - 9
IEEE Circuits and Systems Magazine - Q4 2019 - 10
IEEE Circuits and Systems Magazine - Q4 2019 - 11
IEEE Circuits and Systems Magazine - Q4 2019 - 12
IEEE Circuits and Systems Magazine - Q4 2019 - 13
IEEE Circuits and Systems Magazine - Q4 2019 - 14
IEEE Circuits and Systems Magazine - Q4 2019 - 15
IEEE Circuits and Systems Magazine - Q4 2019 - 16
IEEE Circuits and Systems Magazine - Q4 2019 - 17
IEEE Circuits and Systems Magazine - Q4 2019 - 18
IEEE Circuits and Systems Magazine - Q4 2019 - 19
IEEE Circuits and Systems Magazine - Q4 2019 - 20
IEEE Circuits and Systems Magazine - Q4 2019 - 21
IEEE Circuits and Systems Magazine - Q4 2019 - 22
IEEE Circuits and Systems Magazine - Q4 2019 - 23
IEEE Circuits and Systems Magazine - Q4 2019 - 24
IEEE Circuits and Systems Magazine - Q4 2019 - 25
IEEE Circuits and Systems Magazine - Q4 2019 - 26
IEEE Circuits and Systems Magazine - Q4 2019 - 27
IEEE Circuits and Systems Magazine - Q4 2019 - 28
IEEE Circuits and Systems Magazine - Q4 2019 - 29
IEEE Circuits and Systems Magazine - Q4 2019 - 30
IEEE Circuits and Systems Magazine - Q4 2019 - 31
IEEE Circuits and Systems Magazine - Q4 2019 - 32
IEEE Circuits and Systems Magazine - Q4 2019 - 33
IEEE Circuits and Systems Magazine - Q4 2019 - 34
IEEE Circuits and Systems Magazine - Q4 2019 - 35
IEEE Circuits and Systems Magazine - Q4 2019 - 36
IEEE Circuits and Systems Magazine - Q4 2019 - 37
IEEE Circuits and Systems Magazine - Q4 2019 - 38
IEEE Circuits and Systems Magazine - Q4 2019 - 39
IEEE Circuits and Systems Magazine - Q4 2019 - 40
IEEE Circuits and Systems Magazine - Q4 2019 - 41
IEEE Circuits and Systems Magazine - Q4 2019 - 42
IEEE Circuits and Systems Magazine - Q4 2019 - 43
IEEE Circuits and Systems Magazine - Q4 2019 - 44
IEEE Circuits and Systems Magazine - Q4 2019 - 45
IEEE Circuits and Systems Magazine - Q4 2019 - 46
IEEE Circuits and Systems Magazine - Q4 2019 - 47
IEEE Circuits and Systems Magazine - Q4 2019 - 48
IEEE Circuits and Systems Magazine - Q4 2019 - 49
IEEE Circuits and Systems Magazine - Q4 2019 - 50
IEEE Circuits and Systems Magazine - Q4 2019 - 51
IEEE Circuits and Systems Magazine - Q4 2019 - 52
IEEE Circuits and Systems Magazine - Q4 2019 - 53
IEEE Circuits and Systems Magazine - Q4 2019 - 54
IEEE Circuits and Systems Magazine - Q4 2019 - 55
IEEE Circuits and Systems Magazine - Q4 2019 - 56
IEEE Circuits and Systems Magazine - Q4 2019 - 57
IEEE Circuits and Systems Magazine - Q4 2019 - 58
IEEE Circuits and Systems Magazine - Q4 2019 - 59
IEEE Circuits and Systems Magazine - Q4 2019 - 60
IEEE Circuits and Systems Magazine - Q4 2019 - 61
IEEE Circuits and Systems Magazine - Q4 2019 - 62
IEEE Circuits and Systems Magazine - Q4 2019 - 63
IEEE Circuits and Systems Magazine - Q4 2019 - 64
IEEE Circuits and Systems Magazine - Q4 2019 - 65
IEEE Circuits and Systems Magazine - Q4 2019 - 66
IEEE Circuits and Systems Magazine - Q4 2019 - 67
IEEE Circuits and Systems Magazine - Q4 2019 - 68
IEEE Circuits and Systems Magazine - Q4 2019 - Cover3
IEEE Circuits and Systems Magazine - Q4 2019 - 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