Next Article in Journal
Assessing Digital Transformation in Universities
Previous Article in Journal
A Sign of Things to Come: Predicting the Perception of Above-the-Fold Time in Web Browsing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Interpretable Variational Graph Autoencoder with Noninformative Prior

1
College of Software, Jilin University, Changchun 130012, China
2
Key Laboratory of Symbolic Computation and Knowledge Engineer (Jilin University), Ministry of Education, Changchun 130012, China
3
College of Computer Science and Technology, Jilin University, Changchun 130012, China
*
Author to whom correspondence should be addressed.
Future Internet 2021, 13(2), 51; https://doi.org/10.3390/fi13020051
Submission received: 15 January 2021 / Revised: 7 February 2021 / Accepted: 9 February 2021 / Published: 18 February 2021
(This article belongs to the Section Big Data and Augmented Intelligence)

Abstract

:
Variational graph autoencoder, which can encode structural information and attribute information in the graph into low-dimensional representations, has become a powerful method for studying graph-structured data. However, most existing methods based on variational (graph) autoencoder assume that the prior of latent variables obeys the standard normal distribution which encourages all nodes to gather around 0. That leads to the inability to fully utilize the latent space. Therefore, it becomes a challenge on how to choose a suitable prior without incorporating additional expert knowledge. Given this, we propose a novel noninformative prior-based interpretable variational graph autoencoder (NPIVGAE). Specifically, we exploit the noninformative prior as the prior distribution of latent variables. This prior enables the posterior distribution parameters to be almost learned from the sample data. Furthermore, we regard each dimension of a latent variable as the probability that the node belongs to each block, thereby improving the interpretability of the model. The correlation within and between blocks is described by a block–block correlation matrix. We compare our model with state-of-the-art methods on three real datasets, verifying its effectiveness and superiority.

1. Introduction

Many complex systems in real life, such as social networks (e.g., Facebook) and coauthor networks, can be abstracted into graph-structured data for analysis. The analysis results can be leveraged to guide practical applications, such as link prediction and personalized recommendation. The variational graph autoencoder (VGAE) proposed by Kipf and Welling [1], which extended the variational autoencoder (VAE) [2] from the field of Euclidean structure data (e.g., image) to that of non-Euclidean data (e.g., graph-structured data), is one of the commonly utilized methods for studying graph-structured data. It could capture the distribution of the samples through a two-layer graph convolutional network (GCN) [3] and reconstruct the graph structure through a decoder. In recent years, the variations of VAE and VGAE [4,5,6,7] have emerged in an endless stream, further improving the performance of the variational (graph) autoencoder on traditional machine learning tasks such as link prediction. Although VGAE has been widely applied and promoted, there are two urgent challenges to be solved:
How to set a reasonable prior without additional expert knowledge. VGAE and its variants assumed that the prior distribution of latent variables obeyed a simple standard normal distribution. Under this assumption, the Kullback–Leibler (KL) term in the objective function usually caused the posterior distribution to overfit the shape and parameters of the prior and encouraged samples to focus on the origin. Therefore, the phenomenon of Posterior Collapse [8] will occur. Two types of methods are proposed to handle the issue. The first is to improve the loss function of the variational (graph) autoencoder [9,10,11,12]. However, most of the methods were designed for Euclidean structure data based on the variational autoencoder. These methods are difficult to extend to graph-structured data since they are not arranged neatly, making it difficult to define the same convolution operation as image data. The second is to assume the latent variables follow a more complex prior or posterior distribution [13,14,15,16,17]. Unfortunately, these methods applied a more complex distribution as the prior for latent variables. In general, a more complex prior means more expert experience is involved. Thus, it is an arduous task to determine a suitable prior when we lack prior knowledge.
How to improve the interpretability of VGAE. Graph neural networks (GNNs) have achieved great success in processing graph-structured data in recent years. However, this type of methods is often a black box, which makes the learned low-dimensional representations unexplainable. For example, we cannot explain the meanings of the neural networks’ parameters when we want to convince people of the prediction results in the neural networks. Existing methods improved the interpretability of GNNs by analyzing and explaining the prediction results of the algorithms [18] or constructing an interpretable model [19]. However, the above methods made the node embeddings still black boxes because they did not point out the meanings of embeddings themselves, i.e., they could not explain the meaning of each dimension of the learned representations.
To cope with the above challenges, we propose a noninformative prior [20] based interpretable variational graph autoencoder called NPIVGAE, which utilizes the noninformative prior distribution as the prior of the latent variables. Such a prior is more reasonable, especially when we lack prior knowledge. It no longer forces the posterior distribution to tend to the standard normal distribution, so that almost all the posterior distribution parameters are learned from the sample data. In addition, we leverage a new perspective to understand the node representations to improve the interpretability of the model. Specifically, each dimension of the latent variables is regarded as the soft assignment probability that the node belongs to each community (also called block in the stochastic blockmodel). Meanwhile, the correlation within and between the blocks to which the nodes belong is described by a block–block correlation matrix. When reconstructing the link between two nodes in the graph, the representations of these two nodes and the correlation between the blocks to which two nodes belong are taken into account.
Our main contributions can be summarized as follows:
  • We propose a novel noninformative prior-based variational graph autoencoder, giving the prior distribution of latent variables when we lack prior knowledge. Then we analyze the influence of the noninformative prior on the posterior and confirm that the posterior distribution is affected by the data itself instead of the prior knowledge, when we use noninformative prior.
  • We improve the interpretability of the model by regarding each dimension of the node representations as the probability of which the node belongs to each block. When reconstructing the graph, we also consider the correlation within and between the blocks, which is described by a block–block correlation matrix.
  • Substantial experiments performed on three real datasets verify the effectiveness of our model. Experimental results show that the proposed model significantly outperforms the graph autoencoder model and its variants.

2. Related Work

In this section, we summarize the variants of the variational (graph) autoencoder and methods to improve the interpretability of graph neural networks.

2.1. Extended Variational (Graph) Autoencoders

The variational (graph) autoencoder assumes that the latent variables’ prior is a standard normal distribution, which easily causes the posterior to collapse to the prior. Recently, many methods have been proposed to study the problem of posterior collapse. Some methods solve the problem by adding additional loss. For example, Yeung et al. [9] and Khan et al. [10] analyzed the activity of the hidden layer units and divided these units into multiple groups. In addition, they introduced a hidden variable to specify the group corresponding to each sample. Dieng et al. [11] introduced mutual information between a sample and a hidden variable in the loss function. Some others employ a more complex distribution to construct the prior of variational (graph) autoencoder. For instance, Abiri and Ohlsson [13] replaced the prior and posterior of latent variables with the multivariate Student’s t-distribution, which was regarded as weak information. Joo et al. [14] and Li et al. [15] applied a Dirichlet distribution as the prior. Tomczak and Welling [16] utilized pseudo-input to learn an approximate mixed posterior and utilize the posterior to construct a more flexible prior. Guo et al. [17] utilized Gaussian mixture distribution to construct a more complex prior and posterior distribution, for the reason that they were convinced the latent space might be multi-peak.
There are also some works with the idea of the noninformative prior distribution. Freitas et al. [21] were the first to apply the noninformative prior to neural networks and analyzed the advantage of this prior. Choong et al. [22] expanded [23] and proposed a variational graph autoencoder based on the community discovery task. They generalized the generation process of VGAE to the mixed Gaussian distribution by introducing a community assignment parameter. Moreover, they assumed that the noninformative prior of the community assignment parameter was a uniform distribution, i.e., the probability that a node belonged to each community was the same initially. Although the model improved community division performance, it could be utilized only for the community division task.

2.2. Interpretable Graph Neural Networks

Methods to improve the interpretability of GNNs can be roughly divided into two categories. The first is to analyze and explain the prediction results of the algorithm. For instance, Ying et al. [18] improved the explanation of GNNs by performing subsequent interpretations of the prediction results of node classification and graph classification tasks. Specifically, this method could identify a compact subgraph structure that played a vital role and a small part of the node features that played a crucial role in prediction. The second is to improve the interpretability of the model itself. Ma et al. [19] insisted that the formation of a node’s neighbors often depended on many factors, so they tried to identify and separate these potential factors. They performed convolution operations in different subspaces and then concatenated the results of each channel as node representations. The method that is similar to ours is the Deep Generative Latent Feature Relational Model (DGLFRM) proposed by Mehta et al. [24]. They combined the stochastic blockmodel [25] and GNNs to improve the efficiency of the model and the interpretability of latent variables. However, this model sets too many prior distributions to expand to large-scale networks.

3. Preliminaries

3.1. Noninformative Prior

Prior knowledge is usually acquired through historical laws or expert experience. In some probabilistic inference problems using Bayes methods, we may have some prior knowledge that can be easily expressed through prior distribution. In many practical cases, however, we may not know what form of prior should be adopted, or it is not easy to obtain prior distribution. For example, in the coin toss problem, we would generally judge that the probability of heads or tails is 50% before tossing. Nevertheless, when the coin material is not uniform, it is hard to obtain the prior probability distribution of heads.
In this case, we can use the noninformative prior [20] for inference and analysis. Frankly, the so-called noninformative prior does not mean that there is no information at all, but the information currently contained in the prior distribution is negligible for the sample data. This form of the prior distribution is designed to minimize the impact of prior on the posterior distribution [26], that is, the mean and variance of the posterior distribution are almost all learned from the input data. We will discuss this effect in detail in Section 4.6.
The Jeffrey’s prior mentioned in [27] can be used to determine the noninformative prior distribution of variables. This prior can ensure that the form of the prior does not change with the change of the parameter form (i.e., invariance). Jeffrey’s prior was generalized to the case of multidimensional parameters by using the square root of the Fisher information matrix determinant as the variables’ noninformative prior. The following is to derive the noninformative prior distribution when the variables follow a normal distribution.
Let x = ( x 1 , x 2 , . . . , x n ) be a sample from the population X that obeys the normal distribution N ( μ , σ ) , and its log likelihood function is:
l ( μ , σ ) = 1 2 ln ( 2 π ) n ln σ 1 2 σ 2 i = 1 n ( x i μ ) 2 .
Its Fisher information matrix is:
I ( μ , σ ) = E 2 l μ 2 E 2 l μ σ E 2 l μ σ E 2 l σ 2 = n n σ 2 σ 2 0 0 2 n n σ 2 σ 2 .
det I ( μ , σ ) = 2 n 2 σ 4 .
Hence, the noninformative prior of the normal distribution parameters ( μ , σ ) is h ( μ , σ ) 1 1 σ 2 σ 2 .

4. The Proposed NPIVGAE

In this section, we first describe the framework of NPIVGAE and then introduce the model in details. Finally, we analyze the influence of the noninformative prior distribution on the posterior distribution.

4.1. Notations and Problem Formulation

An undirected attribute network G with n nodes can be denoted by an n × n adjacency matrix A and an n × m attribute matrix X . Concerning A , if there is an edge (also called a link) between node v i and node v j , a i j = 1 , otherwise a i j = 0 . Set the diagonal elements of A to 1, namely, each node has an edge to itself. The attribute information of all nodes is contained in the attribute matrix X , of which x i is the attribute of v i and m denotes the number of the features observed.
Given an attribute graph G , we aim to learn a latent variable z i for node v i , and z i can be explained. Specifically, we define the node representations as an n × d latent variables matrix Z , where z i stands for the embedding of node v i and d is dimensions of latent variables. d is also the number of blocks in the attribute network G . Each dimension of the embedding z i is regarded as the probability that the node v i belongs to each block. We also introduce a block–block correlation matrix Π = ( π m n ) d × d , where π k l affects the link between node v i and node v j belonging to block k and block l, respectively.

4.2. Framework

Figure 1 shows the overall framework of NPIVGAE, which mainly includes two parts: encoder and decoder. Firstly, we input the adjacency matrix A and the attribute matrix X to the encoder to obtain the mean and variance of the latent variables’ posterior and then sample to get Z . Unlike VGAE, we introduce the noninformative prior probability as the prior of Z and leverage node embeddings as well as block–block correlation matrix to reconstruct the adjacency matrix. Finally, the loss function is calculated to update the parameters in reverse. Details of each section are described below.

4.3. Encoder

We leverage a two-layer GCN as the encoder to generate the parameters μ and σ of the normal distribution:
μ = G C N μ ( X , A ) ,
log σ = G C N σ ( X , A ) .
Here μ is the matrix corresponding to μ i (the mean vector of node v i ’s embedding z i ), and similarly, log σ is the matrix corresponding to σ i (the standard deviation vector of node v i ’s embedding z i ). The two-layer GCN is defined as G C N ( X , A ) = A ^ ReLU ( A ^ X W 0 ) W 1 , ReLU ( · ) represents the Relu activation function, A ^ = D 1 / 2 A D 1 / 2 is the symmetric normalized matrix of the adjacency matrix A . G C N μ ( X , A ) and G C N σ ( X , A ) share the weights W 0 of the first layer. The second layer weights of G C N μ ( X , A ) and G C N σ ( X , A ) are W 1 and W 2 respectively. Then the latent variables are obtained by sampling N ( μ , σ ) . The specific process is as follows:
q Z | A , X = i = 1 n q ( z i | A , X ) ,
q ( z i | A , X ) = N ( z i | μ i , d i a g ( σ i 2 ) ) .

4.4. Decoder

We regard each dimension of the latent representation z i as the probability that the node belongs to each block. We allow each node to belong to overlapping blocks (communities), making each dimension of z i interpretable. Then we introduce the block–block correlation matrix Π to describe the relevance within and between blocks.
We reconstruct the adjacency matrix by considering the node embeddings and the correlation between the block to which node v i belongs and the block to which node v j belongs by the following equations:
p ( A | Z ) = i = 1 n j = 1 n p a i j | z i , z j ,
p a i j = 1 | z i , z j , Π = ϕ z i T Π z j .
where ϕ · represents the activation function. In (9), each value π m n in the block–block correlation matrix affects the probability of the link between node v i and node v j , where node v i and node v j belong to block m and block n, respectively.

4.5. Loss Function

The proposed NPIVGAE takes the noninformative prior as the prior distribution of the latent variables Z to minimize the influence of the prior on the posterior. Since we still assume that the variational posterior q ( Z | X , A ) is a normal distribution N ( μ , σ ) , the corresponding noninformative prior is p ( Z ) 1 σ 2 (i.e., uniform distribution, which is regarded as noninformative) according to Section 3.1.
By minimizing the negative evidence lower bound (ELBO), we define the loss function of the noninformative prior-based interpretable variational graph autoencoder:
L = E Z q ( Z | X , A ) [ log q ( Z | X , A ) p ( Z ) ] E Z q ( Z | X , A ) [ log p ( A | Z ) ] .
After deduction (please refer to Appendix A for the detailed derivation), we can get the final objective function:
L = i = 1 n j = 1 d ( log 1 2 π + log σ i j 1 2 ) i = 1 n j = 1 n E Z q ( Z | X , A ) [ log p ( a i j | z i , z j , Π ) ] .
Our model exploits stochastic gradient descent to minimize the objective function and optimize the parameters. Like VGAE, the reparameterization trick is also leveraged for training in this paper to achieve the gradient update of the mean and variance.

4.6. The Influence of the Noninformative Prior on the Posterior

In Section 3.1, we mentioned that our purpose of designing the noninformative prior was to reduce the influence of the prior on the posterior. We take a single Gaussian variable s N ( α , β ) as an example to analyze this effect. Assuming that the variance β 2 is known, we desire to get the solution of the mean α based on a set of t sample data S = { s 1 , s 2 , s t } and set the conjugate prior distribution p ( α ) = N ( α 0 , β 0 2 ) . According to [20], the posterior probability of α is p ( α | S ) = N ( α | α t , β t 2 ) , of which α t = β 2 t β 0 2 + β 2 α 0 + t β 0 2 t β 0 2 + β 2 α L and 1 β t 2 = 1 β 0 2 + t β 2 . The α L represents the maximum likelihood estimate of α , and α L = 1 t k = 1 t s k is given by the sample data.
When β 0 2 in the prior distribution tends to infinity, the prior distribution p ( α ) becomes a uniform distribution, also regarded as a noninformative prior. At this time, the posterior mean is given by the maximum likelihood α t α L , and the variance is β t 2 = β 2 t , i.e., α t and β t have nothing to do with the prior parameters α 0 and β 0 . Thus, we can conclude that when the prior of the Gaussian distribution is selected as the noninformative prior, the prior can have the smallest impact on the posterior distribution, and the posterior parameters can be learned almost all from the sample data.

4.7. Algorithm and Complexity Analysis

The flow of our algorithm is demonstrated in Algorithm 1. First, we initialize the network parameters and the block–block correlation matrix Π . For each iteration, the mean and variance of the latent variables Z are obtained through step 4, and the noninformative prior of Z is obtained according to p ( Z ) 1 σ 2 . Then sample Z according to (7). Finally, we calculate the objective function and use gradient descent to update the parameters μ , σ , and Π .
In the following, we analyzed the time complexity of our model. In each iteration, it takes O ( d n ) to calculate the d-dimensional vectors μ , σ , and Z , so the total time complexity is O ( E d n ) , where d n and E represents the number of iterations.
Algorithm 1 NPIVGAE.
Input:
  The adjacency matrix A and the attribute matrix X .
  Hyperparameters: Number of iterations E, latent dimension d.
Output:
  Latent variables Z .
 1: Initialize neural networks’ parameters and Π .
 2: for e = 1 to E do
 3: for i = 1 to n do
 4:  Obtain the mean μ i and variance σ i according to (4) and (5), respectively.
 5:  Get the noninformative prior of z i using p ( z i ) 1 σ i 2 .
 6:  Sample to get the latent variable z i through (7).
 7: end for
 8: Calculate the loss function L according to (11).
 9: Update parameters μ , σ , and Π with back propagation.
 10: end for
 11: return Z .

5. Experimental Results and Analysis

In this section, we assess the effectiveness of our model (NPIVGAE) on two classic downstream tasks: (i) link prediction and (ii) node classification. The processor used in the experiments is Intel(R) Core(TM) i5-9400 CPU @ 2.90 GHZ. The memory is 8G and the Windows version is WIN10. Our experiments are implemented with Python’s Tensorflow, and the version of Tensorflow is 1.12.0. The weights W 0 , W 1 , and W 2 of the two-layer GCN are initialized to be uniform distribution using the random_uniform function in Tensorflow, and the weights are updated in the back propagation process. In order to show the effectiveness of using the noninformative prior, we design a variant of our model, namely NPVGAE. It employs p ( Z ) σ 2 as the noninformative prior of the hidden variables Z without introducing block–block correlation matrix Π .

5.1. Datasets

In this paper, we adopt three real datasets—Cora, Citeseer, and Pubmed [28]—for testing the performance of the proposed NPIVGAE and its variant. They all belong to citation networks. The statistics of the three datasets are depicted in Table 1. A more detailed description is as follows:
Cora: The nodes in this dataset represent papers in the field of machine learning, the edges are the citation relationships of the papers, and the attributes represent the words contained in the paper. The labels indicate the classification of the papers, such as Neural_Networks and Rule_Learning.
Citeseer: In the Citeseer dataset, the meanings of nodes, edges, and attributes are the same as those in Cora. The labels are also the categories of the papers, such as agents and machine learning.
Pubmed: This dataset is made up of 19,717 papers related to diabetes, all of which are from the Pubmed database. Nodes represent papers, edges denote citation relationships, and attributes are words in the paper. All the papers are divided into 3 categories, namely (1) Diabetes Mellitus, Experimental, (2) Diabetes Mellitus Type I, and (3) Diabetes Mellitus Type II.

5.2. Baselines

We compare NPIVGAE and its variant NPVGAE with several state-of-the-art methods, including using a standard normal distribution as the prior and solving the posterior collapse problem.
  • GAE [1] is a non-probabilistic graph autoencoder model, which reconstructs the adjacency matrix through the inner product of the node representations. It minimizes the reconstruction error to learn the parameters in the neural networks.
  • VGAE [1] assumes that the latent variables follow a normal distribution. The mean and variance of latent variables are encoded by a two-layer GCN, and the structure is reconstructed by a decoder.
  • ARGE [29] introduces an adversarially regularized term into the graph autoencoder. The adversarial module aims to discriminate whether the node embeddings come from the prior distribution or the graph encoder.
  • ARVGE [29] realizes regularization and promotion of node embeddings by drawing an adversarial module into the variational graph autoencoder.
  • EVGAE [10] divides the dimensions of the latent variables into multiple groups, called epitomes, and only penalizes one group each time. This method alleviates the posterior collapse problem by increasing the activity of the hidden units.

5.3. Link Prediction

5.3.1. Experimental Setup

Link prediction is one of the most common downstream tasks in network representation learning. It can recover missing links or predict possible links in the future by analyzing the given network structure. Consistent with VGAE, we also make use of 5% and 10% links as the validation set and test set, respectively, and randomly generate the same number of non-existent links. The purpose of using the validation set is to adjust the hyperparameters, and the remaining 85% of the links are employed for the training set. In the training process, we add Π as a neural network parameter to the objective function and update it through backpropagation. Due to the relatively small scale of Cora and Citeseer datasets, we set weight_decay = 0.01 to prevent overfitting. We iterate 800 times to train sufficiently for the large scale of the Pubmed dataset. The number of hidden layer units and iteration times of three datasets of our model are described in Table 2. We take advantage of Adam optimizer to optimize the parameters with a learning rate of 0.01.
We take the same experimental setup as our model for GAE and VGAE. As for ARGE, ARVGE, and EVGAE, we adopt the same setting as the original papers. We exploit the area under the ROC curve (AUC) and average precision (AP) to evaluate the performance of our model and other baselines. These are two evaluation indexes commonly employed in the link prediction task. The more the values of AUC and AP approach 1, the better the experimental results are. We ran each dataset five times and reported the average value to ensure the accuracy of the algorithm.

5.3.2. Results and Discussion

The experimental results are illustrated in Table 3, and the best results are shown in bold. It can be concluded from the experimental results that the proposed NPIVGAE and its variant NPVGAE achieve the best results on almost all datasets. For example, AUC exceeds 93% and AP reaches 94% on the Citeseer dataset, while ARVGE only reaches 92% and 93%, respectively. The reason may be that ARVGE employs a discriminator to make the latent variables more inclined to the prior given manually. This prior may be unreasonable so that ARVGE cannot learn the characteristics of the sample data well. Our variant NPVGAE performs better than other baselines on the Cora’s AP as well as Pubmed’s AUC and AP, proving that the noninformative prior we introduced plays a critical role. We do not give a strong prior assumption to the model so that almost all parameters of the posterior distribution are learned from the sample data. NPIVGAE achieves better results than NPVGAE on the Citeseer dataset. That proves the effectiveness of combining the block–block correlation matrix. To sum up, the two components of the noninformative prior and the block–block correlation matrix can help improve the performance of the model. The noninformative prior module contributes most to the performance of the overall model NPIVGAE.

5.4. Semi-Supervised Node Classification

We evaluate the effectiveness of our model on the semi-supervised node classification task. Let y i = { y 1 , y 2 , y l } denote the true label vector of node v i , where l is the number of categories. The learned embeddings are concatenated into a fully connected layer. The outputs of this layer are employed as the predicted label vectors y i (the length of the outputs is the number of categories l). We apply the cross-entropy loss function in (12) to calculate the loss between the predicted label and the true label of each node and optimize it through the Adam optimizer.
L ( y i , y i ) = d ( y i log y i + ( 1 y i ) log ( 1 y i ) ) .

5.4.1. Experimental Setup

Following [28], we randomly selected 5, 10, and 20 labels per class to train. For the Cora dataset, for example, there are 7 classes, and we select 5 labels randomly for each class. Hence, there are 35 labels for semi-supervised training in all. We randomly divide the dataset into training, validation, and test sets at each iteration. It can provide more robust performance when the dataset is randomly divided. In the experiment, the encoder of our model (NPIVGAE) contains a two-layer GCN with 32 and 16 hidden units in the first and second layers, respectively, and so does that of NPVGAE. The NPIVGAE and NPVGAE, together with other baselines, are trained 50 iterations, and the learning rate is set to 0.01. We took the average results of 10 runs as a report.

5.4.2. Experimental Results and Analysis

The classification results on the Cora, Citeseer, and Pubmed datasets are shown in Table 4, Table 5, Table 6, respectively. When the number of labels applied for training is relatively small (e.g., each class can only obtain 5 or 10 labels), the effect of promotion is particularly obvious. In comparison with the baselines, NPIVGAE and its variant has achieved excellent results on all datasets. The prediction accuracy of NPIVGAE on the Cora dataset has reached more than 81%, as depicted in Table 4. The indicators of NPIVGAE on the Citeseer dataset also exceed 69%, while the results of other baselines are relatively poor, as displayed in Table 5. It demonstrates that the NPIVGAE we proposed can learn the information in the graph so effectively that it achieves better performance.

5.5. Efficiency Evaluation

In this section, we analyze the running time of our model to prove the efficiency of the neural network-based model. Then we graphically demonstrated the learning process of NPIVGAE to prove that there is no overfitting.
We selected two methods that did not use neural networks (i.e., LINE (Large-scale Information Network Embedding) [30] and TADW (text-associated DeepWalk) [31]) for comparison. LINE embeds a large-scale information network into a low-dimensional vector space while retaining the first-order and second-order similarities. TADW is a matrix factorization method that combines network structure and text features to obtain a better network representation. We conducted experiments on the semi-supervised node classification task with the Cora and Citeseer datasets as examples. To be fair, both TADW and our model NPIVGAE were iterated 50 times. We report the running time in Figure 2. From Figure 2, we know that NPIVGAE and TADW are significantly faster than LINE, and NPIVGAE is slightly faster than TADW. In addition, our model was compared with LINE and TADW on time complexity. LINE and TADW have relatively high time complexity, as shown in Table 7. TADW requires expensive matrix operations, such as SVD decomposition, which limits the ability of TADW to process large-scale data. In contrast, our model NPIVGAE has higher efficiency while guaranteeing accuracy.
Figure 3 shows the learning process of our model in the link prediction task. Our model was iterated 200 times, and the AUC and AP of the training and validation sets are displayed in Figure 3. The horizontal axis is the number of iterations, and the vertical axis is the accuracy of AUC and AP. We can see that the training and validation accuracy of the model rose sharply in the first 20 iterations, and then gradually slowed down and converged. As mentioned in Section 5.3.1, we set the weight decay parameter to 0.01 in the experiment since the Cora and Citeseer datasets are relatively small. NPIVGAE performed well on training, validation, and test sets, proving that the strategy we adopted successfully prevented overfitting.

5.6. Visualization

For the purpose of displaying the experimental results more intuitively, t-SNE [32] is applied to visualize the embeddings of the nodes. We paint nodes according to their true labels, and the nodes belonging to the same category will be painted in the same color. From the second row of Figure 4a, we can clearly see that the classic VGAE (i.e., assuming that the prior is a standard normal distribution) cannot distinguish different categories of nodes in the latent space. This is because the standard normal distribution prior will encourage the centers of all categories to approach the origin, resulting in the inability to make full use of the latent space. Similar problems also exist in EVGAE and ARVGE, the second row of Figure 4b,c is more obvious. However, the ideal prior should have as little impact as possible on the posterior distribution and encourage the posterior distribution to learn parameters from the input data. The NPIVGAE we put forward can make full use of the latent space to learn the node representations while distinguishing categories relatively well as shown in Figure 4d.

6. Discussion

We propose a general variational graph autoencoder framework based on noninformative prior to address the posterior collapse issue, and it can learn a more realistic posterior through sample data. In the meantime, we show the latent variables of our model can be understood as block memberships, which improves interpretability. A block–block correlation matrix is introduced to describe the relevance within and between blocks. We consider the node embeddings and the relevance between the communities to which the nodes belong to reconstruct the links in the graph. We tested the proposed model (NPIVGAE) on link prediction and semi-supervised node classification tasks, and it achieves better results than other baselines. Our model also has certain limitations. When learning the node representations in a complex network, it does not consider the node importance, which is usually measured by node degree (the number of edges connected to a node). According to previous studies [33], a high-degree node tends to impact network structure and function significantly. A possible promotion in the future is to consider the importance of each node and introduce degree correction [34] to further improve the efficiency of the model.

Author Contributions

Conceptualization, L.S.; methodology, L.S. and X.L.; software, L.S. and M.Z.; resources, B.Y.; data curation, L.S.; writing—original draft preparation, L.S. and M.Z.; writing—review and editing, X.L.; project administration, X.L. and B.Y.; funding acquisition, B.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China under grant number 61876069; Jilin Province Key Scientific and Technological Research and Development project under grant numbers 20180201067GX, 20180201044GX; Jilin Province Natural Science Foundation under grant No. 20200201036JC.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Detailed Derivation of the Objective Function

In this section, we derive the objective function in detail. We mark the first item on the right side of the equal sign in Equation (10) as L 1 and further derive
L 1 = q ( Z | X , A ) log q ( Z | X , A ) d z q ( Z | X , A ) log p ( Z ) d z = q ( Z | X , A ) log q ( Z | X , A ) d z log p ( Z ) = i = 1 n j = 1 d ( log 1 2 π + log σ i j 1 2 ) .
Putting (8) and (9) into Equation (10), we get the second term L 2 in (10)
L 2 = E Z q ( Z | X , A ) [ log p ( A | Z ) ] = i = 1 n j = 1 n E Z q ( Z | X , A ) [ log p a i j | z i , z j , Π ] .
Adding L 1 and L 2 , we can get Equation (11).

References

  1. Kipf, T.N.; Welling, M. Variational Graph Auto-Encoders. arXiv 2016, arXiv:1611.07308. [Google Scholar]
  2. Kingma, D.P.; Welling, M. Auto-encoding variational bayes. In Proceedings of the 2nd International Conference on Learning Representations, Banff, AB, Canada, 14–16 April 2014. [Google Scholar]
  3. Kipf, T.N.; Welling, M. Semi-supervised classification with graph convolutional networks. arXiv 2016, arXiv:1609.02907. [Google Scholar]
  4. Im, D.J.; Ahn, S.; Memisevic, R.; Bengio, Y. Denoising criterion for variational auto-encoding framework. In Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, San Francisco, CA, USA, 4–9 February 2017; pp. 2059–2065. [Google Scholar]
  5. Pan, W.; Li, J.; Li, X. Portfolio Learning Based on Deep Learning. Future Internet 2020, 12, 202. [Google Scholar] [CrossRef]
  6. Salha, G.; Hennequin, R.; Vazirgiannis, M. Keep it simple: Graph autoencoders without graph convolutional networks. arXiv 2019, arXiv:1910.00942. [Google Scholar]
  7. Jing, B.; Chi, E.A.; Tang, J. Sgvae: Sequential Graph Variational Autoencoder. arXiv 2019, arXiv:1912.07800. [Google Scholar]
  8. Lucas, J.; Tucker, G.; Grosse, R.; Norouzi, M. Understanding posterior collapse in generative latent variable models. In Proceedings of the Deep Generative Models for Highly Structured Data, ICLR 2019 Workshop, New Orleans, LA, USA, 6 May 2019. [Google Scholar]
  9. Yeung, S.; Kannan, A.; Dauphin, Y.; Fei-Fei, L. Epitomic Variational Autoencoders. Available online: http://ai.stanford.edu/~syyeung/resources/YeuKanDauLi16.pdf (accessed on 10 November 2020).
  10. Khan, R.A.; Kleinsteuber, M. Epitomic Variational Graph Autoencoder. arXiv 2020, arXiv:2004.01468. [Google Scholar]
  11. Dieng, A.B.; Kim, Y.; Rush, A.M.; Blei, D.M. Avoiding latent variable collapse with generative skip models. In Proceedings of the 22nd International Conference on Artificial Intelligence and Statistics, AISTATS 2019, Naha, Okinawa, Japan, 16–18 April 2019; pp. 2397–2405. [Google Scholar]
  12. Fu, H.; Li, C.; Liu, X.; Gao, J.; Celikyilmaz, A.; Carin, L. Cyclical Annealing Schedule: A simple Approach to Mitigating KL Vanishing. arXiv 2019, arXiv:1903.10145. [Google Scholar]
  13. Abiri, N.; Ohlsson, M. Variational auto-encoders with Student’s t-prior. In Proceedings of the 27th European Symposium on Artificial Neural Networks, ESANN 2019, Bruges, Belgium, 24–26 April 2019; pp. 415–420. [Google Scholar]
  14. Joo, W.; Lee, W.; Park, S.; Moon, I.-C. Dirichlet variational autoencoder. Pattern Recognit. 2020, 107, 107514. [Google Scholar] [CrossRef]
  15. Li, J.; Yu, J.; Li, J.; Zhang, H.; Zhao, K.; Rong, Y.; Cheng, H.; Huang, J. Dirichlet graph variational autoencoder. In Proceedings of the Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, Vancouver, BC, Canada, 6–12 December 2020. [Google Scholar]
  16. Tomczak, J.M.; Welling, M. VAE with a Vampprior. In Proceedings of the International Conference on Artificial Intelligence and Statistics, AISTATS 2018, Lanzarote, Spain, 9–11 April 2018; pp. 1214–1223. [Google Scholar]
  17. Guo, C.; Zhou, J.; Chen, H.; Ying, N.; Zhang, J.; Zhou, D. Variational Autoencoder With Optimizing Gaussian Mixture Model Priors. IEEE Access 2020, 8, 43992–44005. [Google Scholar] [CrossRef]
  18. Ying, Z.; Bourgeois, D.; You, J.; Zitnik, M.; Leskovec, J. Gnnexplainer: Generating explanations for graph neural networks. In Proceedings of the Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, Vancouver, BC, Canada, 8–14 December 2019; pp. 9244–9255. [Google Scholar]
  19. Ma, J.; Cui, P.; Kuang, K.; Wang, X.; Zhu, W. Disentangled graph convolutional networks. In Proceedings of the 36th International Conference on Machine Learning, ICML 2019, Long Beach, CA, USA, 9–15 June 2019; pp. 4212–4221. [Google Scholar]
  20. Bishop, C.M. Probability distributions. In Pattern Recognition and Machine Learning; Springer: Singapore, 2006; pp. 117–120. [Google Scholar]
  21. Lee, H.K.H. A Noninformative Prior for Neural Networks. Mach. Learn. 2003, 50, 197–212. [Google Scholar] [CrossRef] [Green Version]
  22. Choong, J.J.; Liu, X.; Murata, T. Optimizing Variational Graph Autoencoder for Community Detection. In Proceedings of the 2019 IEEE International Conference on Big Data (Big Data), Los Angeles, CA, USA, 9–12 December 2019; pp. 5353–5358. [Google Scholar]
  23. Choong, J.J.; Liu, X.; Murata, T. Learning community structure with variational autoencoder. In Proceedings of the IEEE International Conference on Data Mining, ICDM 2018, Singapore, 17–20 November 2018; pp. 69–78. [Google Scholar]
  24. Mehta, N.; Carin, L.; Rai, P. Stochastic blockmodels meet graph neural networks. arXiv 2019, arXiv:1905.05738. [Google Scholar]
  25. Liu, X.; Song, W.; Musial, K.; Zhao, X.; Zuo, W.; Yang, B. Semi-supervised stochastic blockmodel for structure analysis of signed networks. Knowl. Based Syst. 2020, 195, 105714. [Google Scholar] [CrossRef]
  26. Jeffreys, H. An Invariant Form for the Prior Probability in Estimation Problems. Available online: https://royalsocietypublishing.org/doi/abs/10.1098/rspa.1946.0056 (accessed on 20 November 2020).
  27. Syversveen, A.R. Noninformative bayesian priors. Interpretation and problems with construction and applications. Prepr. Stat. 1998, 3, 1–11. [Google Scholar]
  28. Zhang, Y.; Pal, S.; Coates, M.; Ustebay, D. Bayesian graph convolutional neural networks for semi-supervised classification. In Proceedings of the 33rd AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; pp. 5829–5836. [Google Scholar]
  29. Pan, S.; Hu, R.; Long, G.; Jiang, J.; Yao, L.; Zhang, C. Adversarially regularized graph autoencoder for graph embedding. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI 2018, Stockholm, Sweden, 13–19 July 2018; pp. 2609–2615. [Google Scholar]
  30. Tang, J.; Qu, M.; Wang, M.; Zhang, M.; Yan, J.; Mei, Q. Line: Large-scale information network embedding. In Proceedings of the 24th International Conference on World Wide Web, WWW 2015, Florence, Italy, 18–22 May 2015; pp. 1067–1077. [Google Scholar]
  31. Yang, C.; Liu, Z.; Zhao, D.; Sun, M.; Chang, E.Y. Network representation learning with rich text information. In Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence, IJCAI 2015, Buenos Aires, Argentina, 25–31 July 2015; pp. 2111–2117. [Google Scholar]
  32. Shen, X.; Zhu, X.; Jiang, X.; Gao, L.; He, T.; Hu, X. Visualization of non-metric relationships by adaptive learning multiple maps t-SNE regularization. In Proceedings of the 2017 IEEE International Conference on Big Data (Big Data), Boston, MA, USA, 11–14 December 2017; pp. 3882–3887. [Google Scholar]
  33. Fei, L.; Zhang, Q.; Deng, Y. Identifying influential nodes in complex networks based on the inverse-square law. Phys. A Stat. Mech. Its Appl. 2018, 512, 1044–1059. [Google Scholar] [CrossRef]
  34. Karrer, B.; Newman, M.E. Stochastic blockmodels and community structure in networks. Phys. Rev. E 2011, 83, 016107. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. The framework of our model noninformative prior-based interpretable variational graph autoencoder (NPIVGAE). The thick blue arrows denote inference, and the black dotted arrow denotes sampling. The pink ellipse represents the prior distribution of the latent variables Z . ϕ · indicates the activation function and * indicates matrix multiplication.
Figure 1. The framework of our model noninformative prior-based interpretable variational graph autoencoder (NPIVGAE). The thick blue arrows denote inference, and the black dotted arrow denotes sampling. The pink ellipse represents the prior distribution of the latent variables Z . ϕ · indicates the activation function and * indicates matrix multiplication.
Futureinternet 13 00051 g001
Figure 2. Running time (in seconds) on LINE, TADW, and NPIVGAE.
Figure 2. Running time (in seconds) on LINE, TADW, and NPIVGAE.
Futureinternet 13 00051 g002
Figure 3. The area under the ROC curve (AUC) and average precision (AP) for each iteration in the link prediction task.
Figure 3. The area under the ROC curve (AUC) and average precision (AP) for each iteration in the link prediction task.
Futureinternet 13 00051 g003
Figure 4. Visualization on (a) variational graph autoencoder (VGAE); (b) epitomic variational graph autoencoder (EVGAE); (c) adversarially regularized variational graph autoencoder (ARVGE), (d) NPIVGAE. The first row and the second row are the visualization results on Cora and Citeseer datasets, respectively.
Figure 4. Visualization on (a) variational graph autoencoder (VGAE); (b) epitomic variational graph autoencoder (EVGAE); (c) adversarially regularized variational graph autoencoder (ARVGE), (d) NPIVGAE. The first row and the second row are the visualization results on Cora and Citeseer datasets, respectively.
Futureinternet 13 00051 g004
Table 1. Statistics of the datasets utilized in the experiments.
Table 1. Statistics of the datasets utilized in the experiments.
Datasets# Nodes# Links# Features# Lables
Cora2708542914337
Citeseer3327473237036
Pubmed19717443385003
Table 2. Experimental settings for training.
Table 2. Experimental settings for training.
DatasetsThe Number of Neurons per LayerThe Number of Iterations
Cora64-16200
Citeseer128-32200
Pubmed64-16800
Table 3. Experimental results on the link prediction task. (*: outperforms 2nd-best with p-value < 0.01).
Table 3. Experimental results on the link prediction task. (*: outperforms 2nd-best with p-value < 0.01).
MethodCoraCiteseerPubmed
AUCAPAUCAPAUCAP
GAE91.00 ± 0.0292.00 ± 0.0391.70 ± 0.1393.23 ± 0.1296.18 ± 0.0196.43 ± 0.02
VGAE91.40 ± 0.0192.60 ± 0.0191.37 ± 0.4492.77 ± 0.1796.61 ± 0.0296.88 ± 0.06
ARGE91.98 ± 0.0193.20 ± 0.0192.73 ± 0.0193.00 ± 0.0196.80 ± 0.0097.10 ± 0.00
ARVGE92.40 ± 0.0192.60 ± 0.0192.65 ± 0.0193.42 ± 0.0196.50 ± 0.0096.80 ± 0.00
EVGAE* 92.96 ± 0.0293.58 ± 0.0391.55 ± 0.0393.24 ± 0.0296.80 ± 0.0196.91 ± 0.02
NPVGAE92.45 ± 0.01* 93.73 ± 0.0592.15 ± 0.1694.15 ± 0.15* 96.92 ± 0.06* 97.16 ± 0.03
NPIVGAE91.46 ± 1.5891.08 ± 1.84* 93.66 ± 0.4794.31 ± 0.0896.79 ± 0.0397.11 ± 0.01
Table 4. The prediction accuracy (percentage of labels correctly predicted) on the Cora dataset. Asterisks indicate that the optimal algorithm outperforms 2nd-best with p-value < 0.01.
Table 4. The prediction accuracy (percentage of labels correctly predicted) on the Cora dataset. Asterisks indicate that the optimal algorithm outperforms 2nd-best with p-value < 0.01.
Method5 Labels10 Labels20 Labels
GAE77.679.679.2
VGAE77.979.081.6
ARGE70.771.972
ARVGE72.472.273.6
EVGAE60.562.466.3
NPVGAE79.279.982.2
NPIVGAE* 81.8* 82.083.1
Table 5. The prediction accuracy (percentage of labels correctly predicted) on the Citeseer dataset. Asterisks indicate that the optimal algorithm outperforms 2nd-best with p-value < 0.01.
Table 5. The prediction accuracy (percentage of labels correctly predicted) on the Citeseer dataset. Asterisks indicate that the optimal algorithm outperforms 2nd-best with p-value < 0.01.
Method5 Labels10 Labels20 Labels
GAE61.660.563.0
VGAE63.665.766.7
ARGE52.556.760.1
ARVGE5556.559.4
EVGAE33.235.445.1
NPVGAE67.865.567.1
NPIVGAE* 69.9* 69.3* 69.0
Table 6. The prediction accuracy (percentage of labels correctly predicted) on the Pubmed dataset. Asterisks indicate that the optimal algorithm outperforms 2nd-best with p-value < 0.01.
Table 6. The prediction accuracy (percentage of labels correctly predicted) on the Pubmed dataset. Asterisks indicate that the optimal algorithm outperforms 2nd-best with p-value < 0.01.
Method5 Labels10 Labels20 Labels
GAE79.680.080.5
VGAE79.479.880.4
ARGE73.47575.5
ARVGE74.175.973.4
EVGAE65.570.871.8
NPVGAE81.681.4* 82.6
NPIVGAE81.8* 82.681.9
Table 7. The time complexity of LINE, TADW, and NPIVGAE. K is the number of negative samples, C is the number of edges. N Z ( · ) indicates the number of non-zero items and M represents a certain relationship matrix.
Table 7. The time complexity of LINE, TADW, and NPIVGAE. K is the number of negative samples, C is the number of edges. N Z ( · ) indicates the number of non-zero items and M represents a certain relationship matrix.
LINETADWNPIVGAE
Time complexity O ( d K C ) O ( n 2 + N Z ( M ) d + n d 2 ) O ( E d n )
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Sun, L.; Liu, X.; Zhao, M.; Yang, B. Interpretable Variational Graph Autoencoder with Noninformative Prior. Future Internet 2021, 13, 51. https://doi.org/10.3390/fi13020051

AMA Style

Sun L, Liu X, Zhao M, Yang B. Interpretable Variational Graph Autoencoder with Noninformative Prior. Future Internet. 2021; 13(2):51. https://doi.org/10.3390/fi13020051

Chicago/Turabian Style

Sun, Lili, Xueyan Liu, Min Zhao, and Bo Yang. 2021. "Interpretable Variational Graph Autoencoder with Noninformative Prior" Future Internet 13, no. 2: 51. https://doi.org/10.3390/fi13020051

APA Style

Sun, L., Liu, X., Zhao, M., & Yang, B. (2021). Interpretable Variational Graph Autoencoder with Noninformative Prior. Future Internet, 13(2), 51. https://doi.org/10.3390/fi13020051

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