Next Article in Journal
DLSTM-Based Successive Cancellation Flipping Decoder for Short Polar Codes
Previous Article in Journal
The Electrochemical Stability of Starch Carbon as an Important Property in the Construction of a Lithium-Ion Cell
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Information Flows of Diverse Autoencoders

1
Department of Physics and Astronomy, Seoul National University, Seoul 08826, Korea
2
Department of Physics Education and Center for Theoretical Physics and Artificial Intelligence Institute, Seoul National University, Seoul 08826, Korea
3
School of Computational Sciences, Korea Institute for Advanced Study, Seoul 02455, Korea
*
Authors to whom correspondence should be addressed.
Entropy 2021, 23(7), 862; https://doi.org/10.3390/e23070862
Submission received: 4 June 2021 / Revised: 1 July 2021 / Accepted: 1 July 2021 / Published: 5 July 2021

Abstract

:
Deep learning methods have had outstanding performances in various fields. A fundamental query is why they are so effective. Information theory provides a potential answer by interpreting the learning process as the information transmission and compression of data. The information flows can be visualized on the information plane of the mutual information among the input, hidden, and output layers. In this study, we examine how the information flows are shaped by the network parameters, such as depth, sparsity, weight constraints, and hidden representations. Here, we adopt autoencoders as models of deep learning, because (i) they have clear guidelines for their information flows, and (ii) they have various species, such as vanilla, sparse, tied, variational, and label autoencoders. We measured their information flows using Rényi’s matrix-based α -order entropy functional. As learning progresses, they show a typical fitting phase where the amounts of input-to-hidden and hidden-to-output mutual information both increase. In the last stage of learning, however, some autoencoders show a simplifying phase, previously called the “compression phase”, where input-to-hidden mutual information diminishes. In particular, the sparsity regularization of hidden activities amplifies the simplifying phase. However, tied, variational, and label autoencoders do not have a simplifying phase. Nevertheless, all autoencoders have similar reconstruction errors for training and test data. Thus, the simplifying phase does not seem to be necessary for the generalization of learning.

1. Introduction

Since the development of information theory as a theory of communication by Shannon [1,2], it has played a crucial role in various domains of engineering and science, including physics [3], biology [4], and machine learning [5]. The information bottleneck (IB) theory interprets the learning process of neural networks as the transmission and compression of information [6]. Neural networks encode input X into internal representation Z; then, they decode Z to predict the desired output Y. The IB theory is a rate-distortion theory that compresses irrelevant information in X for predicting Y to the maximum extent. The objective function of this theory can be mathematically described as minimizing the mutual information I ( X ; Z ) between X and Z, given a required transmission I r e q of the mutual information I ( Z ; Y ) between Z and Y:
min p ( Z | X ) I ( X ; Z ) β I ( Z ; Y ) I r e q ,
where β is a trade-off coefficient that balances the information compression and transmission. The numerical method for solving this optimization problem, so called Blahut–Arimoto algorithm [7,8], has been extensively studied using various problems [9,10]. Theoretical aspects of IB theory and its applications are well summarized in [11].
Here, it is important to note that machine learning models, including ours in this study, do not take Equation (1) as the loss function, although new deep variational IB models directly adopt it as the loss function [12]. The IB theory provides a nice interpretation of learning process, but it does not work for the optimization of neural networks in general. The mutual information provides a potent tool for visualizing the learning processes by displaying a trajectory on the two-dimensional plane of I ( X ; Z ) and I ( Z ; Y ) , called the information plane (IP). Through IP analyses, Shwartz-Ziv and Tishby found that the training dynamics of neural networks demonstrate a transition between two distinct phases: fitting and compression [13,14]. Supervised learning experiences a short fitting phase in which the training error is significantly reduced. This first phase is characterized by increases in I ( X ; Z ) and I ( Z ; Y ) . Then, in the learning process, a large amount of time is spent on finding the efficient internal representation Z of input X when the fitting phase secures a small training error. During this second phase of compression, I ( X ; Z ) decreases while I ( Z ; Y ) remains constant. To avoid unnecessary confusion with the usual data compression or dimensionality reduction, henceforth, we denote the second phase as “simplifying phase” instead of the original name of “compression phase”.
The simplifying phase has been argued to be associated with the generalization ability of machine learning by compressing irrelevant information of training data to prevent overfitting [14]. The non-trivial simplifying phase and its association with generalization have been further observed in other studies using different network models with different data; however, the universality of the simplifying phase remains debatable [15,16,17]. The debates can be partly attributed to the sensitivity toward the architecture of neural networks, activation functions, and estimation schemes of information measures.
In this study, we investigate how the information flows are shaped by the network designs, such as depth, sparsity, weight constraints, and hidden representations, by using autoencoders (AEs) as specific models of machine learning. AEs are neural networks that encode input X into internal representation Z and reproduce X by decoding Z. This representation learning can be interpreted as self supervised learning where a label is input as itself, such as Y = X . To examine the IP analyses of representation learning, we considered AEs because (i) they have a concrete guide ( Y = X ) for checking the validity of I ( X ; Z ) and I ( Z ; Y ) on the IP, (ii) they have various species to fully explore trajectories on the IP, and (iii) they are closely related to unsupervised learning.
The remainder of this paper is organized as follows. We introduce various types of AEs in Section 2 and explain our matrix-based kernel method for estimating mutual information in Section 3. Then, we examine the IP trajectories of information transmission and compression of the AEs in Section 4. Finally, we summarize and discuss our findings in Section 5.

2. Representation Learning in Autoencoders

2.1. Information Plane of Autoencoders

AEs are neural networks specialized for dimensional reduction and representation learning in an unsupervised manner. A deep AE consists of a symmetric structure with encoders and decoders as follows:
X E 1 E L Z D 1 D L X .
where E i and D i denote the i-th encoder and decoder layer, respectively, and Z is the bottleneck representation with the smallest dimension. The deep AE trains an identity function to reproduce input X from output X . During the training process, the AE extracts relevant features for reproducing X while compressing the high-dimensional input X into an internal representation Z on a low-dimensional bottleneck layer. The encoder and decoder layers form Markov chains that should satisfy the data processing inequality (DPI), analogously to supervised learning [18]:
Forward DPI : M M M I ( X ; E 1 ) I ( X ; E L ) I ( X ; Z ) ,
Backward DPI : M M I ( Z ; X ) I ( D 1 ; X ) I ( D L ; X ) .
The forward DPI represents information compression as input X is processed into the bottleneck layer, whereas the backward DPI represents information expansion as the compressed representation Z is transformed into output X . It is noteworthy that the usual AEs have physical dimensions, narrowing toward the bottleneck and expanding away from the bottleneck, which are consistent with the DPI.
The desired output of this AE is identical to the input ( X = X ). This identity constrains the input and output mutual information to be located on a straight line I ( X ; T ) = I ( T ; X ) for arbitrary internal representations, T { E 1 , , E L , Z , D 1 , , D L } . Here, if the desired output X in I ( T ; X ) is replaced with the predicted output X of the AE, the learning dynamics of the AE on the IP can be analyzed [18]. Then, the two sets of mutual information for representing information compression and transmission correspond to
I ( X ; T ) = H ( T ) H ( T | X )
I ( T ; X ) = H ( T ) H ( T | X ) ,
where H ( T ) represents the Shannon entropy of T, and H ( T | X ) and H ( T | X ) are the conditional entropies of T given X and X , respectively. The forward process of the AE realizes the deterministic mapping of T = T ( X ) and X = X ( T ) . Then, one-to-one correspondence of X T implies no uncertainty for H ( T ( X ) | X ) = 0 , whereas the possibly many-to-one correspondence of T X implies some uncertainty for H ( T | X ( T ) ) 0 . Therefore, the inequality of I ( X ; T ) I ( T ; X ) is evident because H ( T ) H ( T ) H ( T | X ) , where the conditional entropy H ( T | X ) is non-negative. Based on this inequality, the learning trajectory of I ( X ; T ) and I ( T ; X ) on the two-dimensional IP ( x , y ) can be expected to stay below the diagonal line y = x . Once the learning process of the AE is complete with X = X , the two sets of mutual information become equal to I ( X ; T ) = I ( T ; X = X ) , and the learning trajectory ends up on the diagonal line.

2.2. Various Types of Autoencoders

To investigate information flows of machine learning, we adopted AEs because their theoretical bounds of IP trajectories could guide our IP analysis. IP analysis has been used to visualize the information process in AEs [18,19]. Their IP trajectories satisfied the theoretical boundary of I ( X ; T ) I ( T ; X ) . Previous studies examined IP trajectories according to the size of the given bottleneck layers, but they did not investigate the associations between the simplifying phases and generalizations of AEs. Another important advantage of adopting AEs is their diverse variants that enable us to fully explore IP trajectories depending on the network designs, such as depth, sparsity, weight constraints, and hidden representations. In particular, because a certain AE model is directly linked to unsupervised learning, the model can be used to understand the information process of unsupervised learning. Now, we briefly introduce diverse species of AEs used in our experiments.
The simplest structure of AE, called shallow AE, consists of a single bottleneck layer between the input and output layers. In the shallow AE ( X Z X ), the forward propagation of input X is defined as
Z = f E ( W E X + b E )
X = f D ( W D Z + b D ) ,
where W and b represent the weights and biases, respectively, and f ( s ) is a corresponding activation function. Here, the subscripts E and D denote the encoder and decoder, respectively. The shallow AE is trained to minimize the reconstruction errors usually measured by the mean squared error (MSE) between output X and desired output X. It has been analytically proven that a shallow AE with linear activation ( f ( s ) = s ) spans the same subspace as that spanned by principal component analysis (PCA) [20,21]. Deep AEs stack hidden layers in the encoder and decoder symmetrically; moreover, it is well known that deep AEs yield better compression than shallow AEs.
Right up till recently, a myriad of variants and techniques have been proposed to improve the performance of AEs via richer representations, such as sparse AE (SAE) [22], tied AE (TAE) [23], variational AE (VAE) [24], and label AE (LAE) [25,26].
  • SAE was proposed to avoid overfitting by imposing sparsity in the latent space. The sparsity penalty is considered a regularization term of the Kullback–Leibler (KL) divergence between the activity of bottleneck layer Z and sparsity parameter ρ , a small value close to zero.
  • TAE shares the weights for the encoder and decoder part ( W E = W D T ), where superscript T depicts the transpose of a matrix. This model is widely used to reduce the number of model parameters while maintaining the training performance. Owing to its symmetrical structure, it can be interpreted as a deterministic version of restricted Boltzmann machines (RBMs), a representative generative model for unsupervised learning; consequently, the duality between TAE and RBM has been identified [27]. Compared to the vanilla AE, SAE and TAE have regularizations for the degrees of freedom for nodes and weights, respectively. Later, we visually validate how these constraints lead to a difference in the information flow of IP trajectories.
  • The ultimate goal of AEs is to obtain richer expressions in the latent space. Therefore, an AE is not a mere replica model, but a generative model that designs a tangible latent representation to faithfully reproduce the input data as output. VAE is one of the most representative generative models with a similar network structure to AE; however, its mathematical formulation is fundamentally different. The detailed derivation of the learning algorithm of VAE is beyond the scope of this study, and thus it will be omitted [24]. In brief, the encoder network of VAE realizes an approximate posterior distribution q ϕ ( Z | X ) for variational inference, whereas the decoder network realizes a distribution p θ ( X | Z ) for generation. The loss of VAE, known as the evidence lower bound (ELBO), is decomposed into a reconstruction error given by the binary cross entropy (BCE) between the desired output X and predicted output X , and the regularization of KL divergence between the approximate posterior distribution q ϕ ( Z | X ) and prior distribution p ( Z ) . As tangible Gaussian distributions are usually adopted as the approximate posterior and prior distributions of q ϕ ( Z | X ) and p ( Z ) , respectively, VAE has a special manifold of the latent variable Z.
  • AEs do not use data labels. Instead, inputs work as self labels for supervised learning. Here, to design the latent space using label guides, we consider another AE, called label AE (LAE). LAE forces the input data to be mapped into the latent space with the corresponding label classifications. Then, the label-based internal representation is decoded to reproduce input data. Although the concept of regularization using labels has been proposed [25,26], LAE has not been considered as a generative model. Unlike vanilla AEs that use a sigmoid activation function, LAE uses a softmax activation function, f ( Z i ) = exp ( Z i ) / j exp ( Z j ) , to impose the regularization of the internal representation Z to follow the true label Y as the cross entropy (CE) between Y and Z. Once LAE is trained, it can generate learned data or images using its decoder, starting from one-hot vector Z of labels with the addition of noise. Additional details of LAE are provided in Appendix B. Later, we compare the IP trajectories of VAE and LAE with those of vanilla AE in a deep structure to examine how the information flow varies depending on the latent space of generative models.
Table 1 summarizes the loss function, constraints, and activation function of the bottleneck layer for each aforementioned AE model.

3. Estimation of Mutual Information

After preparing various species of AE models to explore diverse learning paths on the IP, we need to estimate the mutual information for IP analyses:
I ( X ; Z ) = x , z p ( x , z ) log p ( x , z ) p ( x ) p ( z ) .
In reality, we have samples of data, { x ( t ) , z ( t ) } t = 1 N , instead of their probabilities, p ( x ) , p ( z ) , and p ( x , z ) . Using N samples of data, we may estimate the probabilities. Here, if X and Z are continuous variables, it is inevitable to first discretize them. Then, we can count the discretized samples for each bin and estimate the probabilities. The estimation of mutual information based on this binning method has some limitations. First, its accuracy depends on the resolution of discretization. Second, large samples are required to properly estimate the probability distributions. Suppose that X is an n-dimensional vector. Despite considering the most naive discretization with binarized activities, the total number of configurations for the binarized X is already 2 n . Thus it becomes impracticable for N finite samples to cover the full range of configurations, e.g., 2 20 10 6 configurations for n = 20 . Therefore, other schemes, such as kernel density estimation [28], k-nearest neighbors, and matrix-based kernel estimators [29,30], exist to estimate the entropy and mutual information. The description of each scheme and the corresponding IP results were presented in a pedagogical review [31]. Among these various methods, we adopted a matrix-based kernel estimator, which is mathematically well defined and computationally efficient for large networks. It estimates the Rényi’s α -order entropy using the eigenspectrum of covariance matrix of X as follows:
S α ( A ) = 1 1 α log 2 tr ( A α ) = 1 1 α log 2 i = 1 N λ i ( A ) α ,
where A is an N × N normalized Gram matrix of random variable X with size N and λ i ( A ) is the i-th eigenvalue of A. Note that tr denotes the trace of a matrix. In the limit of α 1 , Equation (10) is reduced to an entropy-like measure that resembles the Shannon entropy of H ( X ) . If we assume that B is a normalized Gram matrix from another random variable Z, the joint entropy between X and Z is defined as
S α ( A , B ) = S α A B tr ( A B ) ,
where A B denotes the Hadamard product, i.e., the element-wise product of two matrices. From Equations (10) and (11), the mutual information can be defined as
I α ( X ; Z ) = S α ( A ) + S α ( B ) S α ( A , B ) ,
which is analogous to the standard mutual information in the new space called reproducing kernel Hilbert space (RKHS). Although I α ( X ; Z ) is mathematically different from I ( X ; Z ) in Equation (9), this quantity satisfies the mathematical requirements as Rényi’s entropy [29]. Furthermore, it has a great computational merit in that its computation is not affected much by the dimensiosn n of X, unlike the standard binning method for estimating the mutual information. In a simple setup where an exact computation of I ( X ; Z ) is possible, we confirmed that the matrix-based I α ( X ; Z ) gives an accurate estimation of I ( X ; Z ) (see Appendix A). Compared to the matrix-based estimator, the binning method gives less accurate results that are violently affected by the resolution of discretization and sample size. Using this estimator, Yu and Principe visualized the IP trajectories of AEs and suggested the optimal design of AEs based on IP patterns [18].
The kernel estimator contains a hyperparameter that defines a kernel function of distances between samples. As the estimator depends on the dimension and scale of variables for samples, the hyperparameter should be carefully determined [19]. Despite careful determination, the matrix-based kernel estimator seems unstable because it is sensitive to the training setup of neural networks. Moreover, once the information process of deep neural networks is quantified by this estimator, it sometimes violates the DPI, which is a necessary condition for interpreting layer stacks as Markov chains. We found that the raw activities of neural networks can result in inaccurate entropy estimations irrespective of the estimation schemes when they have different dimensions and scales depending on layers. Large activities tend to overestimate their entropies, whereas low activities tend to underestimate their entropies. In particular, the use of a linear activation function or rectified linear unit (ReLU) often results in the violation of DPI (see Figures 6 and 9 in [19]). To address this issue, we unified to use a bounded activation function, i.e., sigmoid function ( f ( s ) = 1 / ( 1 + exp ( s ) ) ) , except for VAE and LAE, whose bottleneck layers used Gaussian sampling and a softmax function, respectively; and this setup eliminated the DPI violation.
Saxe et al. argued that using double-sided saturating activation functions such as f ( s ) = tanh ( s ) trivially induces the simplifying phase on the IP, and it is not related to the generalization of machine learning [15]. They showed that the mutual information, estimated by the binning method, first increases and then decreases as the weight parameters of neural networks get larger. The second decreasing phase of mutual information causes the simplifying phase. We performed the same task with various activation functions, including sigmoid and ReLU, but we estimated the mutual information using the aforementioned matrix-based kernel method. Then, we confirmed that the second decreasing phase did not occur by merely increasing the weight parameters, suggesting that the existence of the simplifying phase does not depend on the selection of activation functions in our matrix-based kernel method. Further details on this experiment are provided in Appendix A. For those who are interested in using IP analysis, we have provided the complete source code and documentation on GitHub [32].

4. Results

In this section, we examine the MI of various AE models using the method introduced in the previous section, and visualize it on IP. Our main concern is whether the phase transition in IP can be observed in representation learning. Furthermore, by comparing the IPs of different AEs, we investigate how the various techniques we adopted for efficient training of neural networks modified the information flow in latent space.

4.1. Information Flows of Autoencoders

In this study, we investigated the information process of representation learning for real image datasets (Figure 1a): MNIST [33], Fashion-MNIST [34], and EMNIST [35]. MNIST has 60,000 training and 10,000 testing images of 28 × 28 pixels of 10 hand-written digits (0–9). Fashion-MNIST has the same data size as MNIST for 10 different fashion products, such as dresses and shirts. Finally, EMNIST is an extension of MNIST; it contains 10 digits and 26 uppercase (A–Z) and lowercase letters (a–z). In this paper, we focused on the results of MNIST because the results of Fashion-MNIST and EMNIST are basically the same (refer [32]).
For representation learning of MNIST, we first considered a shallow AE ( X Z X ) that included a single hidden or bottleneck layer (Figure 1b). The input, hidden, and output layers had n X = 28 × 28 = 784 , n Z = 50 , and n X = 784 nodes, respectively. We considered a fully-connected network between layers with the loss functions listed in Table 1. For the optimization of network weights, we used the stochastic gradient descent method with Adam optimization, given a batch size of 100 for a total of 50 epochs. With each learning iteration, the MSE ( X , X ) kept decreasing (Figure 1c). This implies that the output X of AE successfully reproduced the input image X of training data. To measure the generalization ability of the AE, we examined the reproduction ability of the AE for test images that were not used in the learning process. We confirmed that the test error was as small as the training error. Given the faithful reproduction of input images, the indifferent error between training and test images defines successful generalization as usual. The IP trajectory of the AE during the learning process is presented in Figure 1d. As expected, the trajectory satisfies the inequality of I α ( X ; Z ) I α ( Z ; X ) , and ended up on their equality line because of X X at the end of training. As observed by Shwartz and Ziv [14], the IP trajectory showed two distinct phases of fitting and simplifying. In the initial fitting phase, the input mutual information I α ( X ; Z ) between X and Z increased. Then, during the second simplifying phase, I α ( X ; Z ) decreased. Note that this representation learning showed a simultaneous decrease in the output mutual information, whereas general supervised learning maintained the output mutual information as constant during the simplifying phase.
Next, we considered a deep AE ( X E 1 E 2 Z D 1 D 2 X ) with two additional encoder layers before the bottleneck layer and two decoder layers after the bottleneck layer (Figure 2a). The corresponding node numbers for the inner layers were n E 1 = 256 , n E 2 = 128 , n Z = 50 , n D 1 = 128 , and n D 2 = 256 . The deep AE exhibited similar learning accuracy and generalization ability to the shallow AE (Figure 2b). During the learning process, we measured the mutual information using the matrix-based kernel estimator and confirmed that the learning process of the deep AE satisfied the DPI (Figure 2c). We observed the simplifying phase in the inner layers of E 2 , Z , and D 1 (Figure 2d). However, the simplifying phase was not evident in the outer layers of E 1 and D 2 that had relatively large dimensions with high information capacity.
Subsequently, we explored whether the simplifying phase appeared even with a small amount of training data. Unless sufficient training data are provided, machine learning can easily overfit a small amount of training data and fail to generalize the test data. We conducted a learning experiment with the deep AE using 10% of the total training data. The training error kept decreasing, similarly to the training error given the full training data. However, the test error was significantly larger than the training error (Figure 2e). This demonstrates that the deep AE failed to generalize. After confirming the satisfaction of DPI (Figure 2f), we examined the IP trajectories. Unlike the results of full training data, we did not observe the simplifying phase from any layers (Figure 2g). Thus, this difference suggests that the simplifying phase seems to be associated with generalization by removing irrelevant details.

4.2. Sparse Activity and Constrained Weights

To examine the effect of regularization on the information flows, we considered different species of AEs that can modify the learning phases. SAE and TAE have additional regularization phases for node activities and weight parameters, respectively, in comparison to vanilla AE (Table 1). First, we examined SAE, which has the same structure as a shallow AE. SAE showed perfect learning and generalization (Figure 3a). It is of particular interest that the simplifying phase is markedly exaggerated in SAE (Figure 3b). The sparsity penalty of SAE turns off unnecessary activities of hidden nodes, which can accelerate the simplifying phase.
Second, we examined TAE, which also has the same structure as shallow AE and SAE, but has a weight constraint of W E = W D T . Similarly to shallow AE and SAE, TAE showed perfect learning and generalization; however, its learning accuracy was slightly lower under the weight constraint (Figure 3c). However, TAE did not exhibit the simplifying phase (Figure 3d). This implies that the simplifying phase is not necessary for generalization. Given the weight constraint, TAE seems to have less potential capacity to remove irrelevant information than vanilla AE.

4.3. Constrained Latent Space

Now, we survey another species of AEs that more actively modify the latent space of the bottleneck layer, and further investigate the information flows in the learning process.
VAE is a generative model that maps input data X into a Gaussian distribution q ϕ ( Z | X ) for the latent variable Z. We considered a deep VAE that had the same structure ( X E 1 E 2 Z D 1 D 2 X ) as deep AE, and confirmed that the VAE can learn the training data of MNIST and generalize to reproduce the test data (Figure 4a). However, because VAE had a special constraint for the bottleneck layer, the information process from the input layer into the bottleneck layer did not satisfy the DPI (Figure 4b). The mutual information I α ( X ; Z ) between X and Z did not change during the training process. Indeed, the fixed value was close to the maximum entropy of X given its batch size of 100 samples, I α ( X ; Z ) log 2 ( 100 ) 6.6 , which was independent of dimension n Z of Z (data not shown). It is noteworthy that the mutual information between X and Z did not change for the learning process, although the mapping X Z kept reorganizing to distinguish the feature differences of X. This shows a limitation of the information measure I α ( X ; Z ) , which failed to capture the content-dependent representation of Z. Besides the bottleneck layer, other layers still satisfied the DPI. Next, we displayed the IP trajectories of VAE for each layer (Figure 4c). We did not observe the simplifying phase in any layer in the VAE. Therefore, VAE can generalize without the simplifying phase, similarly to TAE.
LAE is another generative model that maps X into Z, where Z corresponds to label Y of X. Thus, unlike other AE models, LAE uses label information to shape its latent space. We used the same deep network structure as the deep AE and VAE for LAE. The deep LAE could also learn the training data of MNIST and generalize to reproduce the test data as well (Figure 4d). LAE satisfied the DPI (Figure 4e), and its IP trajectories also satisfied the ineqaulity of I α ( X ; T ) I α ( T ; X ) (Figure 4f). It is interesting that LAE has orthogonal learning phases. LAE first increased the input mutual information I α ( X ; T ) for the encoding part. Once LAE arrived at a certain maximal I α ( X ; T ) , the output mutual information I α ( T ; X ) started to increase. This shows that LAE first extracts information from the input data relevant for the label classification, and then transfers information to output for reproducing input images. We found that the LAE did not exhibit the simplifying phase, even though it successfully generalized.

5. Discussion

We studied the information flows in the internal representations of AEs using a matrix-based kernel estimator. AEs are perfect models to investigate how the information flows are shaped during the learning process depending on the network designs, since they have diverse species with various depths, sparsities, weight constraints, and hidden representations. When we used sufficient training data, shallow and deep AEs demonstrated the simplifying phase, following the fitting phase, along with the generalization ability to reproduce test data, thereby confirming the original proposal by Shwartz-Ziv and Tishby [14]. However, when we used a small amount of training data to induce overfitting, the AEs did not exhibit a simplifying phase and generalization, suggesting that the simplifying phase is associated with generalization. When a sparsity constraint was imposed in the hidden activities of SAE, regularization amplified the simplifying phase and provided more efficient representations for generalization. However, the constraining weight parameters ( W E = W D T ) of TAE showed perfect generalization in the absence of the simplifying phase. Furthermore, VAE and LAE, shaping the latent space with a variational distribution and label information, also achieved generalization without the simplifying phase. These counterexamples of TAE, VAE, and LAE clearly demonstrate that the simplifying phase is not necessary for the generalization of models.
It is noteworthy that the absence of the simplifying phase does not mean that compression does not occur in representation learning. When the encoder part has a narrowing architecture, information compression is inevitable, as demonstrated by the DPI. Then, the removal of irrelevant information from data may contribute to the generalization of models. After the completion of representation learning, AEs obtain a certain amount of mutual information I α ( X ; Z ) = I f i n a l between the input data X and its internal representation Z. The paths that obtain I f i n a l seem different between AEs. In TAE, VAE, and LAE, I α ( X ; Z ) monotonically increases to I f i n a l . However, in vanilla AE and SAE, I α ( X ; Z ) first increases beyond I f i n a l , and then decreases back to I f i n a l . The backward process is called the simplifying phase. As the loss function of representation learning never includes any instruction for the path of I α ( X ; Z ) , it is not surprising that the existence of the simplifying phase is not universal. In summary, in the basic structure of AE, we found that the simplifying phase is related to the generalization of the model, and confirmed that learning dynamics of neural network can be interpreted with IB theory. However, for several variants of AE, no simplifying phase was observed, suggesting that all types of deep learning do not follow a universal learning dynamics.
Although observations and physical meanings of the phase transition in IP were contradictory in previous studies, it is still manifest that IP analysis is an excellent tool to monitor information transmission and compression inside the “black box” of neural networks. For IP analysis, accurate information estimation is a prerequisite. In general, it is difficult to calculate the entropies of high-dimensional variables, but we could solve this problem by estimating the physical quantities corresponding to the entropies in a kernel space. When we applied the estimator to the representation learning, we found that it is critical to use bounded activation functions. When we used ReLU as an activation function, the DPI was easily violated, although we observed the simplifying phase in this setting. Thus, it can be problematic to estimate the mutual information from unbounded variables with different scales for different layers. In this study, we provided concrete grounds to further explore the theoretical understanding of information processing in deep learning.

Author Contributions

Conceptualization, S.L. and J.J.; formal analysis, S.L.; investigation, S.L. and J.J.; writing—original draft preparation, S.L.; writing—review and editing, J.J.; visualization, S.L.; supervision, J.J. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the National Research Foundation of Korea (NRF) grant (grant number 2018R1A2B6004914) (S.L.), the New Faculty Startup Fund from Seoul National University, and the NRF grant funded by the Korea government (MSIT) (grant number 2019R1F1A1052916) (J.J.).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data that support the findings of this study are openly available: http://yann.lecun.com/exdb/mnist/ (accessed on 5 July 2021).

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AEAutoencoder
BCEBinary Cross Entropy
CECross Entropy
DPIData Processing Inequality
ELBOEvidence Lower Bound
IBInformation Bottleneck
IPInformation Plane
KLKullback–Leibler
LAELabel Autoencoder
MSEMean Squared Error
PCAPrincipal Component Analysis
RBMsRestricted Boltzmann Machines
ReLURectified Linear Unit
RKHSReproducing Kernel Hilbert Space
SAESparse Autoencoder
TAETied Autoencoder
VAEVariational Autoencoder

Appendix A. Matrix-Based Kernel Estimator of Mutual Information

The matrix-based kernel method [29] estimates Rényi’s α -entropy for a random variable X by
H α ( X ) = 1 1 α x X f X α ( x ) d x .
Let X = x 1 , x 2 , . . . , x N denote N data points and κ : X × X R be a real valued positive definite kernel that defines a Gram matrix K R N × N as K i j = κ ( x i , x j ) . The normalized Gram matrix is defined as
A i j = 1 N K i j K i i K j j .
Then, the matrix-based Rényi’s α -order entropy is given by
S α ( A ) = 1 1 α log 2 tr ( A α ) = 1 1 α log 2 i = 1 N λ i ( A ) α ,
where λ i ( A ) denotes the i-th eigenvalue of A. In the limit of α 1 , Equation (A3) is reduced to the Shannon entropy-like object
lim α 1 S α ( A ) = i = 1 N λ i ( A ) log 2 λ i ( A ) .
We used α = 1.01 in this study. The joint entropy of two random variables X and Z can be defined as
S α ( A , B ) = S α A B tr ( A B ) ,
where A and B are Gram matrices of X and Z, respectively, and A B denotes the Hadamard product. From Equations (A3) and (A5), the mutual information in the kernel space is defined as
I α ( X ; Z ) = S α ( A ) + S α ( B ) S α ( A , B ) .
The Gaussian kernel is commonly used:
κ σ ( x i , x j ) = exp | | x i x j | | F 2 2 σ 2 ,
where | | · | | F denotes the Frobenius norm. There are crucial factors that affect the estimation performance, such as the Gaussian kernel bandwidth σ and the scale and dimension of kernel input. The asymptotic behavior of entropy by varying σ can be denoted by
lim σ 0 S α ( A ) = log N
lim σ S α ( A ) = 0 .
Large-scale and high-dimensional features of input have the same effect as a small σ —the overestimation of entropy. In contrast, small-scale and low-dimensional features of input give the same effect as large σ , which results in the underestimation of entropy. Therefore, proper hyperparameter tuning is required for σ to avoid excessively high or low saturation of entropy during training. Scott’s rule [36], a simplified version of Silverman’s rule [37], is commonly used for selecting the width of Gaussian kernels:
σ = γ N 1 / ( 4 + n ) ,
where γ is an empirically determined constant. As Equation (A10) is a monotonically increasing function with respect to feature dimension n, it compensates for higher feature dimension. We used γ = 2 for our experiments.
To validate the matrix-based kernel method, we consider a bivariate normal distribution as a simple example. Let us assume that two variables X 1 and X 2 follow a bivariate normal distribution:
X 1 X 2 N μ 1 μ 2 , Σ , Σ = σ 1 2 ρ σ 1 σ 2 ρ σ 1 σ 2 σ 2 2 ,
where μ i and σ i are mean and standard deviation of the variable X i ( i = 1 , 2 ) , respectively, and ρ denotes their correlation strength. The entropy of each variable and their joint entropy are given as follows:
H ( X i ) = 1 2 log ( 2 π e σ i 2 ) ,
H ( X 1 , X 2 ) = 1 2 log ( ( 2 π e ) 2 | Σ | ) = log ( 2 π e σ 1 σ 2 ) + 1 2 log ( 1 ρ 2 ) .
Then, the mutual information between X 1 and X 2 can be exactly computed as
I ( X 1 ; X 2 ) = H ( X 1 ) + H ( X 2 ) H ( X 1 , X 2 ) = 1 2 log ( 1 ρ 2 ) .
Now, we estimated I ( X 1 ; X 2 ) numerically using a binning method and the matrix-based kernel method with 1000 samples generated from the bivariate normal distribution of mean 0 and variance 1. Figure A1a shows ( X 1 , X 2 ) distributions under different correlation strengths. As shown in Figure A1b, the theoretical value of I ( X 1 ; X 2 ) is consistent with the estimated values of the binning method with a proper quantizer (Bin = 20) and the matrix-based kernal method with a proper hyperparameter ( γ = 2 ). Note that Bin represents the level of discretization for the continuous activity of X i . For the binning method, Figure A1c,d show that its estimate of mutual information largely varies depending on the binning level and sample size. However, the matrix-based kernel method gives a robust estimate relatively less sensitive to the sample size.
Figure A1. Estimation of mutual information by binning and matrix-based kernel methods. (a) Distributions of two variables ( X 1 , X 2 ) following bivariate normal distributions with various correlation strengths of ρ . (b) Exact mutual information (Theory) and its optimal estimation by the binning method (Bin) and the matrix-based kernel method (Kernel). (c) Mutual information estimated by the binning method with various binning levels (Bin) of discretization for the continuous variables X 1 and X 2 . Mutual information estimation with various sample sizes (p, percentage of the sample size to the entire data) of (d) the binning method and (e) the matrix-based kernel method.
Figure A1. Estimation of mutual information by binning and matrix-based kernel methods. (a) Distributions of two variables ( X 1 , X 2 ) following bivariate normal distributions with various correlation strengths of ρ . (b) Exact mutual information (Theory) and its optimal estimation by the binning method (Bin) and the matrix-based kernel method (Kernel). (c) Mutual information estimated by the binning method with various binning levels (Bin) of discretization for the continuous variables X 1 and X 2 . Mutual information estimation with various sample sizes (p, percentage of the sample size to the entire data) of (d) the binning method and (e) the matrix-based kernel method.
Entropy 23 00862 g0a1
Saxe et al. observed that information estimation depends on the activation functions in a simple setup of a three neuron model ( x z y ) [15]. They sampled a scalar input x from a standard normal distribution of N ( 0 , 1 ) and multiplied it by a constant weight w; subsequently, they determined the hidden activity z = f ( w x ) using a nonlinear activation function f ( s ) . Then, they discretized z and estimated the input mutual information I ( x ; z ) using a binning method. When the unbounded activation function of f ( s ) = ReLU ( s ) was used, I ( x ; z ) continued to increase with w. However, when the bounded activation function of f ( s ) = tanh ( s ) was used, I ( x ; z ) first increased with w, and then decreased as w increased. This is a natural result when the binning method is used to estimate the mutual information because large activities are saturated with large w (Figure 2 in [15]). We analyzed the same task with the matrix-based kernel method (Figure A2a). When the activation function is a sigmoid function of f ( s ) = 1 / ( 1 + exp ( s ) ) , I ( x ; z ) does not decrease at large w; however, the absolute value looks different from the unbounded activation functions of linear ( f ( s ) = s ) and ReLU ( f ( s ) = ReLU ( s ) ). We also considered a more complex network with 100-dimensional input X sampled from N ( 0 , 1 ) . In this case, weight W was represented by a 50 × 100 matrix whose elements were sampled from a uniform distribution of U ( 0 , 1 ) ; then, the hidden activity Z becomes a 50-dimensional vector, i.e., Z = f ( W X ) . We then observed I α ( X ; Z ) while increasing the standard deviation of weight W (Figure A2b). We confirmed that I α ( X ; Z ) at large W does not decrease when a sigmoid activation function is used, like the unbounded activation functions of linear and ReLU. Therefore, this experiment demonstrated that the matrix-based kernel method is a robust estimation technique for bounded activation function and the simplifying phase cannot be attributed to the selected activation function.
Figure A2. Mutual information obtained by matrix-based kernel estimation. (a) Input mutual information in a three-neuron network ( x z y ). Input x was sampled from a standard normal distribution and the hidden activity was computed by z = f ( w x ) , where w is the weight and f ( s ) is an activation function. Three different activation functions (linear, ReLU, and sigmoid) were used. (b) Input mutual information for a general setup with 100-dimensional input vector X and 50-dimensional hidden vector Z = f ( W X ) . In this setup, weight W was a 50 × 100 matrix whose elements were sampled from a uniform distribution.
Figure A2. Mutual information obtained by matrix-based kernel estimation. (a) Input mutual information in a three-neuron network ( x z y ). Input x was sampled from a standard normal distribution and the hidden activity was computed by z = f ( w x ) , where w is the weight and f ( s ) is an activation function. Three different activation functions (linear, ReLU, and sigmoid) were used. (b) Input mutual information for a general setup with 100-dimensional input vector X and 50-dimensional hidden vector Z = f ( W X ) . In this setup, weight W was a 50 × 100 matrix whose elements were sampled from a uniform distribution.
Entropy 23 00862 g0a2

Appendix B. LAE: Label Autoencoder

LAE is a generative model that shapes its latent space using label classification. The explicit form of the LAE loss function is given as follows:
L LAE = 1 N i = 1 N | | X i X i | | 2 λ N i = 1 N j = 1 n Z Y i , j log Z i , j ,
where N is the batch size and n Z is the feature dimensionality of the label. Z i , j is the softmax output of encoder that predicts the j-th class of the i-th sample and Y i , j is the corresponding true label. The first term is a reconstruction error (MSE) and the second term is a regularization given by the classification error of the encoder. The regularization coefficient λ is set to 0.01 . Figure A3 shows the manifold learning of LAE when the one-hot vector corresponding to zero is changed to other digits as an input of the decoder. It is a two-dimensional submanifold embeded in a ten-dimensional label latent space.
Figure A3. Manifold learning in LAE. This represents the interpolation image when one-hot vector corresponding to zero; i.e., Z 0 = [ 1 , 0 , 0 , , 0 ] , is transformed to other digits as an input of the LAE decoder part. For instance, the first row represents the reproduction X decoded from Z = a Z 0 + ( 1 a ) Z 1 by decreasing a from 1 to 0.
Figure A3. Manifold learning in LAE. This represents the interpolation image when one-hot vector corresponding to zero; i.e., Z 0 = [ 1 , 0 , 0 , , 0 ] , is transformed to other digits as an input of the LAE decoder part. For instance, the first row represents the reproduction X decoded from Z = a Z 0 + ( 1 a ) Z 1 by decreasing a from 1 to 0.
Entropy 23 00862 g0a3

References

  1. Shannon, C.E. A mathematical theory of communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef] [Green Version]
  2. Cover, T.M. Elements of Information Theory; John Wiley & Sons: Hoboken, NJ, USA, 1999. [Google Scholar]
  3. Jaynes, E.T. Information theory and statistical mechanics. Phys. Rev. 1957, 106, 620. [Google Scholar] [CrossRef]
  4. Yockey, H.P. Information Theory, Evolution, and the Origin of Life; Cambridge University Press: Cambridge, UK, 2005. [Google Scholar]
  5. MacKay, D.J.; Mac Kay, D.J. Information Theory, Inference and Learning Algorithms; Cambridge University Press: Cambridge, UK, 2003. [Google Scholar]
  6. Tishby, N.; Pereira, F.C.; Bialek, W. The information bottleneck method. arXiv 2000, arXiv:0004057. [Google Scholar]
  7. Arimoto, S. An algorithm for computing the capacity of arbitrary discrete memoryless channels. IEEE Trans. Inf. Theory 1972, 18, 14–20. [Google Scholar] [CrossRef] [Green Version]
  8. Blahut, R. Computation of channel capacity and rate-distortion functions. IEEE Trans. Inf. Theory 1972, 18, 460–473. [Google Scholar] [CrossRef] [Green Version]
  9. Aguerri, I.E.; Zaidi, A. Distributed variational representation learning. IEEE Trans. Pattern Anal. Mach. Intell. 2019, 43, 120–138. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  10. Uğur, Y.; Aguerri, I.E.; Zaidi, A. Vector Gaussian CEO problem under logarithmic loss and applications. IEEE Trans. Inf. Theory 2020, 66, 4183–4202. [Google Scholar]
  11. Zaidi, A.; Estella-Aguerri, I. On the information bottleneck problems: Models, connections, applications and information theoretic views. Entropy 2020, 22, 151. [Google Scholar] [CrossRef] [Green Version]
  12. Alemi, A.A.; Fischer, I.; Dillon, J.V.; Murphy, K. Deep variational information bottleneck. In Proceedings of the International Conference on Learning Representations (ICLR), Toulon, France, 24–26 April 2017. [Google Scholar]
  13. Tishby, N.; Zaslavsky, N. Deep learning and information bottleneck principle. In Proceedings of the IEEE Information Theory Workshowp (ITX), Jeju Island, Korea, 11–16 October 2015; pp. 1–5. [Google Scholar]
  14. Shwartz-Ziv, R.; Tishby, N. Opening the black box of deep neural networks via information. arXiv 2017, arXiv:1703.00810. [Google Scholar]
  15. Saxe, A.M.; Bansal, Y.; Dapello, J.; Advani, M.; Kolchinsky, A.; Tracey, B.D.; Cox, D.D. On the information bottleneck theory of deep learning. J. Stat. Mech. 2019, 2019, 124020. [Google Scholar] [CrossRef]
  16. Chelombiev, I.; Houghton, C.; O’Donnell, C. Adaptive estimators show information compression in deep neural networks. arXiv 2019, arXiv:1902.09037. [Google Scholar]
  17. Wickstrøm, K.; Løkse, S.; Kampffmeyer, M.; Yu, S.; Principe, J.; Jenssen, R. Information plane analysis of deep neural networks via matrix-based Renyi’s entropy and tensor kernels. arXiv 2019, arXiv:1909.11396. [Google Scholar]
  18. Yu, S.; Principe, J.C. Understanding autoencoders with information theoretic concepts. Neural Netw. 2019, 117, 104–123. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  19. Tapia, N.I.; Estévez, P.A. On the Information Plane of autoencoders. In Proceedings of the International Joint Conference on Neural Networks, Glasgow, UK, 19–24 July 2020. [Google Scholar]
  20. Bourlard, H.; Kamp, Y. Auto-association by multilayer perceptrons and singular value decomposition. Biol. Cybern. 1988, 59, 291–294. [Google Scholar] [CrossRef]
  21. Baldi, P.; Hornik, K. Neural networks and principal component analysis: Learning from examples without local minima. Neural Netw. 1989, 2.1, 53–58. [Google Scholar] [CrossRef]
  22. Ng, A. Sparse Autoencoder. CS294A Lecture Notes. 2011. Available online: https://web.stanford.edu/class/cs294a/sparseAutoencoder.pdf (accessed on 5 July 2021).
  23. Vincent, P.; Larochelle, H.; Lajoie, I.; Bengio, Y.; Manzagol, P.A. Stacked denoising autoencoders: Learning a useful representations in a deep network with a local denoising criterion. J. Mach. Learn. Res. 2010. [Google Scholar] [CrossRef]
  24. Kingma, D.P.; Welling, M. Auto-encoding variational bayes. arXiv 2013, arXiv:1312.6114. [Google Scholar]
  25. Kodirov, E.; Xiang, T.; Gong, S. Semantic autoencoder for zero-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 3174–3183. [Google Scholar]
  26. Le, L.; Patterson, A.; White, M. Supervised autoencoders: Improving generalization performance with unsupervised regularizers. Adv. Neural Inf. Process. Syst. 2018, 31, 107–117. [Google Scholar]
  27. Kamyshanska, H.; Memisevic, R. The potential energy of an autoencoder. IEEE Trans. Pattern Anal. Mach. Intell. 2014, 37, 1261–1273. [Google Scholar] [CrossRef] [Green Version]
  28. Kolchinsky, A.; Tracey, B.D. Estimating mixture entropy with pairwise distances. Entropy 2017, 19, 361. [Google Scholar] [CrossRef] [Green Version]
  29. Giraldo, L.G.S.; Rao, M.; Principe, J.C. Measures of entropy form data using infinitely divisible kernels. IEEE Trans. Inf. Theory 2014, 61, 535–548. [Google Scholar] [CrossRef] [Green Version]
  30. Yu, S.; Giraldo, L.G.S.; Jenssen, R.; Principe, J.C. Multivariate extension of matrix-based Rényi’s α-order entropy functional. IEEE Trans. Pattern Anal. Mach. Intell. 2019, 42, 2960. [Google Scholar] [CrossRef] [PubMed]
  31. Geiger, B.C. On information plane analyses of neural network classifiers—A review. arXiv 2020, arXiv:2003.09671. [Google Scholar]
  32. Lee, S.; Jo, J. 2021. Available online: https://github.com/Sungyeop/IPRL (accessed on 16 February 2021).
  33. LeCun, Y.; Bottou, L.; Bengio, Y.; Haffner, P. Gradient-based learning applied to document recognition. Proc. IEEE 1998, 86, 2278–2324. [Google Scholar] [CrossRef] [Green Version]
  34. Xiao, H.; Rasul, K.; Vollgraf, R. Fashion-mnist: A novel image dataset for benchmarking machine learning algorithms. arXiv 2017, arXiv:1708.07747. [Google Scholar]
  35. Cohen, G.; Afshar, S.; Tapson, J.; van Schaik, A. EMNIST: Extending MNIST to handwritten letters. In Proceedings of the International Joint Conference on Neural Networks, Anchorage, AK, USA, 14–19 May 2017. [Google Scholar]
  36. Scott, D.W. Multivariate Density Estimation: Theory, Practice, and Visualization; John Wiley & Sons: Hoboken, NJ, USA, 2015. [Google Scholar]
  37. Silverman, B.W. Density Estimation for Statistics and Data Analysis; 26; CRC Press: Boca Raton, FL, USA, 1986. [Google Scholar]
Figure 1. Information transmission and compression of autoencoders. (a) Image datasets X of MNIST (top row), Fashion-MNIST (middle), and EMNIST (bottom). (b) Network structure of a shallow autoencoder: input X, hidden Z, and output X . Note that node numbers are arbitrary for a schematic display. (c) Error (or loss) between desired output X and reconstructed output X for training (blue) and test (orange) data during learning iterations. Insets are snapshots of reconstructed training and test images of X at the final iteration. (d) Trajectory of mutual information ( I α ( X ; Z ) , I α ( Z ; X ) ) on the information plane. The color bar represents the number of iterations.
Figure 1. Information transmission and compression of autoencoders. (a) Image datasets X of MNIST (top row), Fashion-MNIST (middle), and EMNIST (bottom). (b) Network structure of a shallow autoencoder: input X, hidden Z, and output X . Note that node numbers are arbitrary for a schematic display. (c) Error (or loss) between desired output X and reconstructed output X for training (blue) and test (orange) data during learning iterations. Insets are snapshots of reconstructed training and test images of X at the final iteration. (d) Trajectory of mutual information ( I α ( X ; Z ) , I α ( Z ; X ) ) on the information plane. The color bar represents the number of iterations.
Entropy 23 00862 g001
Figure 2. The simplifying phase and generalization of representation learning. (a) A deep autoencoder with input X; two encoders, E 1 and E 2 ; bottleneck Z; two decoders, D 1 and D 2 ; and output X . (b) Learning errors for training (blue) and test (orange) data during iterations. Insets are snapshots of reconstructed training and test images of X at the final iteration. (c) Changes in input mutual information (upper) and output mutual information (lower) during iterations. (d) Learning trajectories on the information plane. The general variable T stands for E 1 , E 2 , Z , D 1 , or D 2 . (bd) Experiments with the full training set of 60,000 MNIST data. (eg) Experiments with the 10% training set of 6000 MNIST data.
Figure 2. The simplifying phase and generalization of representation learning. (a) A deep autoencoder with input X; two encoders, E 1 and E 2 ; bottleneck Z; two decoders, D 1 and D 2 ; and output X . (b) Learning errors for training (blue) and test (orange) data during iterations. Insets are snapshots of reconstructed training and test images of X at the final iteration. (c) Changes in input mutual information (upper) and output mutual information (lower) during iterations. (d) Learning trajectories on the information plane. The general variable T stands for E 1 , E 2 , Z , D 1 , or D 2 . (bd) Experiments with the full training set of 60,000 MNIST data. (eg) Experiments with the 10% training set of 6000 MNIST data.
Entropy 23 00862 g002
Figure 3. Information compression in constrained autoencoders. (a) Learning errors for training (blue) and test (orange) data during iterations. Insets are snapshots of reconstructed training and test images of X at the final iteration. (b) Learning trajectories on the information plane. (a,b) Results of sparse autoencoders (SAE). (c,d) Results of tied autoencoders (TAE). The network structure of SAE and TAE can be represented by X Z X .
Figure 3. Information compression in constrained autoencoders. (a) Learning errors for training (blue) and test (orange) data during iterations. Insets are snapshots of reconstructed training and test images of X at the final iteration. (b) Learning trajectories on the information plane. (a,b) Results of sparse autoencoders (SAE). (c,d) Results of tied autoencoders (TAE). The network structure of SAE and TAE can be represented by X Z X .
Entropy 23 00862 g003
Figure 4. Information trajectories of generative models. (a) Learning errors for training (blue) and test (orange) data during iterations. Insets are snapshots of reconstructed training and test images of X at the final iteration. (b) Changes in the input mutual information (upper) and output mutual information (lower) during iterations. (c) Learning trajectories on the information plane. (ac) Results of a variational autoencoder (VAE). (df) Results of a label autoencoder (LAE). VAE and LAE had a deep network structure with X E 1 E 2 Z D 1 D 2 X . The general variable T denotes E 1 , E 2 , Z , D 1 , or D 2 .
Figure 4. Information trajectories of generative models. (a) Learning errors for training (blue) and test (orange) data during iterations. Insets are snapshots of reconstructed training and test images of X at the final iteration. (b) Changes in the input mutual information (upper) and output mutual information (lower) during iterations. (c) Learning trajectories on the information plane. (ac) Results of a variational autoencoder (VAE). (df) Results of a label autoencoder (LAE). VAE and LAE had a deep network structure with X E 1 E 2 Z D 1 D 2 X . The general variable T denotes E 1 , E 2 , Z , D 1 , or D 2 .
Entropy 23 00862 g004
Table 1. Various species of autoencoder. Vanilla AE uses the mean squared error (MSE) loss. We used a sigmoid function as an activation function for the bottleneck layer, which helps in unifying the scales of different layers. Regularization of SAE is the KL-divergence between the hidden activity and sparsity parameter ρ . The only difference in TAE is that it shares the weight of encoder and decoder. The loss function of VAE, known as the evidence lower bound (ELBO), consists of the reconstruction error, binary cross entropy (BCE), and KL-divergence between the approximate posterior q ϕ ( Z | X ) and prior p ( Z ) ; moreover, the stochastic node activities of the bottleneck layer are sampled from Gaussian distributions. In LAE, the classification error, the cross entropy (CE) between the softmax hidden activity Z and true label Y, is used as a regularization term.
Table 1. Various species of autoencoder. Vanilla AE uses the mean squared error (MSE) loss. We used a sigmoid function as an activation function for the bottleneck layer, which helps in unifying the scales of different layers. Regularization of SAE is the KL-divergence between the hidden activity and sparsity parameter ρ . The only difference in TAE is that it shares the weight of encoder and decoder. The loss function of VAE, known as the evidence lower bound (ELBO), consists of the reconstruction error, binary cross entropy (BCE), and KL-divergence between the approximate posterior q ϕ ( Z | X ) and prior p ( Z ) ; moreover, the stochastic node activities of the bottleneck layer are sampled from Gaussian distributions. In LAE, the classification error, the cross entropy (CE) between the softmax hidden activity Z and true label Y, is used as a regularization term.
ModelMain LossConstraintBottleneck Activation
AEMSE ( X , X ) Nonesigmoid
SAEMSE ( X , X ) KL ( ρ | | Z ) sigmoid
TAEMSE ( X , X ) W E = W D T sigmoid
VAEBCE ( X , X ) KL ( q ϕ ( Z | X ) | | p ( Z ) ) Gaussian sampling
LAEMSE ( X , X ) CE ( Y , Z ) softmax
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Lee, S.; Jo, J. Information Flows of Diverse Autoencoders. Entropy 2021, 23, 862. https://doi.org/10.3390/e23070862

AMA Style

Lee S, Jo J. Information Flows of Diverse Autoencoders. Entropy. 2021; 23(7):862. https://doi.org/10.3390/e23070862

Chicago/Turabian Style

Lee, Sungyeop, and Junghyo Jo. 2021. "Information Flows of Diverse Autoencoders" Entropy 23, no. 7: 862. https://doi.org/10.3390/e23070862

APA Style

Lee, S., & Jo, J. (2021). Information Flows of Diverse Autoencoders. Entropy, 23(7), 862. https://doi.org/10.3390/e23070862

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop