TL;DR
GLEE introduces a novel geometric approach to graph embedding that leverages simplex geometry, outperforming spectral methods like Laplacian Eigenmaps in reconstruction and link prediction tasks.
Contribution
The paper proposes GLEE, a new graph embedding method based on geometric properties rather than spectral assumptions, improving performance in key graph tasks.
Findings
GLEE outperforms Laplacian Eigenmaps in graph reconstruction.
GLEE achieves better link prediction accuracy.
The geometric approach provides more meaningful embeddings.
Abstract
Graph embedding seeks to build a low-dimensional representation of a graph G. This low-dimensional representation is then used for various downstream tasks. One popular approach is Laplacian Eigenmaps, which constructs a graph embedding based on the spectral properties of the Laplacian matrix of G. The intuition behind it, and many other embedding techniques, is that the embedding of a graph must respect node similarity: similar nodes must have embeddings that are close to one another. Here, we dispose of this distance-minimization assumption. Instead, we use the Laplacian matrix to find an embedding with geometric properties instead of spectral ones, by leveraging the so-called simplex geometry of G. We introduce a new approach, Geometric Laplacian Eigenmap Embedding (or GLEE for short), and demonstrate that it outperforms various other techniques (including Laplacian Eigenmaps) in theâŚ
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
GLEE: Geometric Laplacian Eigenmap Embedding
Leo Torres
Network Science Institute
Northeastern UniversityBostonMA02115
,Â
Kevin S. Chan
U.S. Army Research LabAdelphiMD20783
 andÂ
Tina Eliassi-Rad
Network Science Institute
Khoury College of Computer Sciences
Northeastern UniversityBostonMA02115
Abstract.
Graph embedding seeks to build a low-dimensional representation of a graph . This low-dimensional representation is then used for various downstream tasks. One popular approach is Laplacian Eigenmaps, which constructs a graph embedding based on the spectral properties of the Laplacian matrix of . The intuition behind it, and many other embedding techniques, is that the embedding of a graph must respect node similarity: similar nodes must have embeddings that are close to one another. Here, we dispose of this distance-minimization assumption. Instead, we use the Laplacian matrix to find an embedding with geometric properties instead of spectral ones, by leveraging the so-called simplex geometry of . We introduce a new approach, Geometric Laplacian Eigenmap Embedding (or GLEE for short), and demonstrate that it outperforms various other techniques (including Laplacian Eigenmaps) in the tasks of graph reconstruction and link prediction. Graph embedding, graph Laplacian, simplex geometry.
Graph embedding, graph Laplacian, simplex geometry.
1. Introduction
Graphs are ubiquitous in real-world systems from the internet to the world wide web to social media to the human brain. The application of machine learning to graphs is a popular and active research area. One way to apply known machine learning methods to graphs is by transforming the graph into a representation that can be directly fed to a general machine learning pipeline. For this purpose, the task of graph representation learning, or graph embedding, seeks to build a vector representation of a graph by assigning to each node a feature vector that can then be fed into any machine learning algorithm.
Popular graph embedding techniques seek an embedding where the distance between the latent representations of two nodes represents their similarity. For example, Chen et al. (2018) calls this the âcommunity awareâ property (nodes in a community are considered similar, and thus their representations must be close to one another), while Chen et al. (2017) calls it a âsymmetryâ between the node domain and the embedding domain. Others call methods based on this property with various names such as âpositionalâ embeddings (Srinivasan and Ribeiro, 2019) or âproximity-basedâ embeddings (Jin et al., 2019). Consequently, many of these approaches are formulated in such a way that the distance (in the embedding space) between nodes that are similar (in the original data domain) is small. Here, we present a different approach. Instead of focusing on minimizing the distance between similar nodes, we seek an embedding that preserves the most basic structural property of the graph, namely adjacency; the works (Srinivasan and Ribeiro, 2019; Jin et al., 2019) call this approach âstructuralâ node embeddings. Concretely, if the nodes and are neighbors in the graph with nodes, we seek -dimensional vectors and such that the adjacency between and is encoded in the geometric properties of and , for some . Examples of geometric properties are the dot product of two vectors (which is a measure of the angle between them), the length (or area or volume) of a line segment (or polygon or polyhedron), the center of mass or the convex hull of a set of vectors, among others. In Section 3 we propose one such geometric embedding technique, called Geometric Laplacian Eigenmap Embedding (GLEE), that is based on the properties of the Laplacian matrix of , and we then proceed to compare it to the original formulation of Laplacian Eigenmaps as well as other popular embedding techniques.
GLEE has deep connections with the so-called simplex geometry of the Laplacian (Devriendt and Van Mieghem, 2019; Fiedler, 2011). Fiedler (2011) first made this observation, which highlights the bijective correspondence between the Laplacian matrix of an undirected, weighted graph and a geometric object known as a simplex. Using this relationship, we find a graph embedding such that the representations of two non-adjacent nodes and are always orthogonal, , thus achieving a geometric encoding of adjacency. Note that this does not satisfy the âcommunity awareâ property of (Chen et al., 2018). For example, the geometric embedding of node will be orthogonal to each non-neighboring node, including those in its community. Thus, is not close to other nodes in its community, whether we define closeness in terms of Euclidean distance or cosine similarity. However, we show that this embedding â based on the simplex geometry â contains desirable information, and that it outperforms the original, distance-minimizing, formulation of Laplacian Eigenmaps (LE) on the tasks of graph reconstruction and link prediction in certain cases.
The contributions of this work are as follows.
- (1)
We present a geometric framework for graph embedding that departs from the tradition of looking for representations that minimize the distance between similar nodes by highlighting the intrinsic geometric properties of the Laplacian matrix. 2. (2)
The proposed method, Geometric Laplacian Eigenmap Embedding (GLEE), while closely related to the Laplacian Eigenmaps (LE) method, outperforms LE in the tasks of link prediction and graph reconstruction. Moreover, a common critique of LE is that it only considers first-order adjacency in the graph. We show that GLEE takes into account higher order connections (see Section 3.2). 3. (3)
The performance of existing graph embedding methods (which minimize distance between similar nodes) suffers when the graphâs average clustering coefficient is low. This is not the case for GLEE.
In Section 2 we recall the original formulation of LE, in order to define the Geometric Laplacian Eigenmap Embedding (GLEE) in Section 3 and discuss its geometric properties. We mention related work in Section 4 and present experimental studies of GLEE in Section 5. We finish with concluding remarks in Section 6.
2. Background on Laplacian Eigenmaps
Belkin and Niyogi (Belkin and Niyogi, 2002, 2003) introduced Laplacian Eigenmaps as a general-purpose method for embedding and clustering an arbitrary data set. Given a data set , a proximity graph is constructed with node set and edge weights . The edge weights are built using one of many heuristics that determine which nodes are close to each other and can be binary or real-valued. Some examples are nearest neighbors, -neighborhoods, heat kernels, etc. To perform the embedding, one considers the Laplacian matrix of , defined as , where is the diagonal matrix whose entries are the degrees of each node. One of the defining properties of is the value of the quadratic form:
[TABLE]
The vector that minimizes the value of (1) will be such that the total weighted distance between all pairs of nodes is minimized. Here, can be thought of as the one-dimensional embedding of node . One can then extend this procedure to arbitrary -dimensional node embeddings by noting that , where and is the th row of . The objective function in this case is
[TABLE]
Importantly, the quantity has a global minimum at . Therefore, a restriction is necessary to guarantee a non-trivial solution. Belkin and Niyogi (Belkin and Niyogi, 2002, 2003) choose , though others are possible. Applying the method of Lagrange multipliers, one can see that the solution of (2) is achieved at the matrix whose rows are the solutions to the eigenvalue problem
[TABLE]
When the graph contains no isolated nodes, is then an eigenvector of the matrix , also known as the normalized Laplacian matrix. The embedding of a node is then the vector whose entries are the th elements of the eigenvectors .
3. Proposed Approach: Geometric Laplacian Eigenmaps
We first give our definition and then proceed to discuss both the algebraic and geometric motivations behind it.
Definition 3.1 (GLEE).
Given a graph , consider its Laplacian matrix . Using singular value decomposition we may write for a unique matrix . Define as the matrix of the first columns of . If is a node of , define its -dimensional Geometric Laplacian Eigenmap Embedding (GLEE) as the th row of , denoted by . If the dimension is unambiguous, we will just write .
Algebraic motivation
In the case of positive semidefinite matrices, such as the Laplacian, the singular values coincide with the eigenvalues. Moreover, it is well known that is the matrix of rank that is closest to in Frobenius norm, i.e., for all matrices of rank . Because of this, we expect to achieve better performance in the graph reconstruction task than any other -dimensional embedding (see Section 5.1).
As can be seen from Equation (1), the original formulation of Laplacian Eigenmaps is due to the fact that the distance between the embeddings of neighboring nodes is minimized, under the restriction . We can also formulate GLEE in terms of the distance between neighboring nodes. Perhaps counterintuitively, GLEE solves a distance maximization problem, as follows. The proof follows from a routinary application of Lagrange multipliers and is omitted.
Theorem 3.2.
Let be the diagonal matrix whose entries are the eigenvalues of . Consider the optimization problem
[TABLE]
Its solution is the matrix whose columns are the eigenvectors corresponding to the largest eigenvalues of . If then . â
The importance of Theorem 3.2 is to highlight the fact that distance-minimization may be misleading when it comes to exploiting the properties of the embedding space. Indeed, the original formulation of Laplacian Eigenmaps, while well established in Equation 2, yields as result the eigenvectors corresponding to the lowest eigenvalues of . However, standard results in linear algebra tell us that the best low rank approximation of is given by the eigenvectors corresponding to the largest eigenvalues. Therefore, these are the ones used in the definition of GLEE.
Geometric motivation
The geometric reasons underlying Definition 3.1 are perhaps more interesting than the algebraic ones. A recent review paper (Devriendt and Van Mieghem, 2019) highlights the work of Fiedler (2011), who discovered a bijective correspondence between the Laplacian matrix of a graph and a higher-dimensional geometric object called a simplex.
Definition 3.3.
Given a set of -dimensional points , if they are affinely independent (i.e., if the set of points is linearly independent), then their convex hull is called a simplex.
A simplex is a high-dimensional polyhedron that is the generalization of a 2-dimensional triangle or a 3-dimensional tetrahedron. To see the connection between the Laplacian matrix of a graph and simplex geometry we invoke the following result. The interested reader will find the proof in (Devriendt and Van Mieghem, 2019; Fiedler, 2011).
Theorem 3.4.
Let be a positive semidefinite matrix. There exists a matrix such that . The rows of lie at the vertices of a simplex if and only if the rank of is . â
Corollary 3.5.
Let be a connected graph with nodes. Its Laplacian matrix is positive semidefinite, has rank , and has eigendecomposition . Write . Then, and the rows of are the vertices of a -dimensional simplex called the simplex of . â
Corollary 3.5 is central to the approach in (Devriendt and Van Mieghem, 2019), providing a correspondence between graphs and simplices. Corollary 3.5 also shines a new light on GLEE: the matrix from Definition 3.1 corresponds to the first dimensions of the simplex of . In other words, computing the GLEE embeddings of a graph is equivalent to computing the simplex of and projecting it down to dimensions. We proceed to explore the geometric properties of this simplex that can aid in the interpretation of GLEE embeddings. We can find in (Devriendt and Van Mieghem, 2019) the following result.
Corollary 3.6.
Let be the th row of in Corollary 3.5. is the simplex vertex corresponding to node , and satisfies , and , where is the degree of . In particular, is orthogonal to the embedding of any non-neighboring node . â
Corollary 3.6 highlights some of the basic geometric properties of the simplex (such as lengths and dot products) that can be interpreted in graph theoretical terms (resp., degrees and adjacency). In Figure 1 we show examples of these properties. It is worth noting that other common matrix representations of graphs do not present a spectral decomposition that yields a simplex. For example, the adjacency matrix is not in general positive semidefinite, and the normalized Laplacian (used by LE) is not symmetric. Therefore, Theorem 3.4 does not apply to them. We now proceed to show how to take advantage of the geometry of GLEE embeddings, which can all be thought of as coming from the simplex, in order to perform common graph mining tasks. In the following we focus on unweighted, undirected graphs.
3.1. Graph Reconstruction
For a graph with nodes, consider its -dimensional GLEE embedding . When , in light of Corollary 3.6, the dot product between any two embeddings can only take the values or [math] and one can reconstruct the graph perfectly from its simplex. However, if , the distribution of dot products will take on real values around and [math] with varying amounts of noise; the larger the dimension , the less noise we find around the two modes. It is important to distinguish which nodes have embeddings whose dot product belongs to the mode at [math] or to the mode at , for this determines whether or not the nodes are neighbors in the graph. One possibility is to simply âsplit the differenceâ and consider and as neighbors whenever . More generally, given a graph and its embedding , define to be the estimated Laplacian matrix using the above heuristic with threshold , that is
[TABLE]
Then, we seek the value of , call it , that minimizes the loss
[TABLE]
If all we have access to is the embedding, but not the original graph, we cannot optimize Equation (6) directly. Thus, we have to estimate heuristically. As explained above, one simple estimator is the constant . We develop two other estimators: , obtained by applying Kernel Density Estimation and Gaussian Mixture Models, respectively. We do so in Appendix A as their development has little to do with the geometry of GLEE embeddings. Our experiments show that different thresholds , , and produce excellent results on different data sets; see Appendix A for discussion.
3.2. Link Prediction
Since the objective of GLEE is to directly encode graph structure in a geometric way, rather than solve any one particular task, we are able to use it in two different ways to perform link prediction. These are useful in different kinds of networks.
3.2.1. Number of Common Neighbors
It is well known that heuristics such as number of common neighbors (CN) or Jacard similarity (JS) between neighborhoods are highly effective for the task of link prediction in networks with a strong tendency for triadic closure (Sarkar et al., 2011). Here, we show that we can use the geometric properties of GLEE in order to approximately compute CN. For the purpose of exposition, we assume unless stated otherwise in this section.
Given an arbitrary subset of nodes in the graph , we denote by its number of elements. We further define the centroid of , denoted by , as the centroid of the simplex vertices that correspond to its nodes, i.e., . The following lemma, which can be found in (Devriendt and Van Mieghem, 2019), highlights the graph-theoretical interpretation of the geometric object .
Lemma 3.7 (From (Devriendt and
Van Mieghem, 2019)).
Given a graph and its GLEE embedding , consider two disjoint node sets and . Then, the number of edges with one endpoint in and one endpoint in , is given by
[TABLE]
Proof.
By linearity of the dot product, we have
[TABLE]
The expression on the right is precisely the required quantity. â
Lemma 3.7 says that we can use the dot product between the centroids of two node sets to count the number of edges that are shared by them. Thus, we now reformulate the problem of finding the number of common neighbors between two nodes in terms of centroids of node sets. In the following, we use to denote the neighborhood of node , that is, the set of nodes connected to it.
Lemma 3.8.
Let be non-neighbors. Then, the number of common neighbors of and , denoted by , is given by
[TABLE]
Proof.
Apply Lemma 3.7 to the node sets and , or, equivalently, to and . â
Now assume we have the -dimensional GLEE of . We approximate by estimating both and . First, we know from Corollary 3.6 that . Second, we define the approximate neighbor set of as , where is any of the estimators from Section 3.1. We can now write
[TABLE]
The higher the value of this expression, the more confident is our prediction that the link exists.
3.2.2. Number of Paths of Length 3
A common critique of the original Laplacian Eigenmaps algorithm is that it only takes into account first order connections, which were considered in Section 3.2.1. Furthermore, Kovåcs et al. (2018) point out that the application of link prediction heuristics CN and JS does not have a solid theoretical grounding for certain types of biological networks such as protein-protein interaction networks. They further propose to use the (normalized) number of paths of length three (L3) between two nodes to perform link prediction. We next present a way to approximate L3 using GLEE. This achieves good performance in those networks where CN and JS are invalid, and show that GLEE can take into account higher-order connectivity of the graph.
Lemma 3.9.
Assume is the GLEE of a graph of dimension . Then, the number of paths of length three between two distinct nodes and is
[TABLE]
Proof.
The number of paths of length three between and is , where is the adjacency matrix of . We have
[TABLE]
where the last expression follows by the linearity of the dot product, and is equivalent to (11). â
When , we can estimate by and by as before, with the help of an estimator from Section 3.1.
3.3. Runtime analysis
On a graph with nodes, finding the largest eigenvalues and eigenvectors of the Laplacian takes time, if one uses algorithms for fast approximate singular value decomposition (Trefethen and Bau III, 1997; Halko et al., 2011). Given a -dimensional embedding matrix , reconstructing the graph is as fast as computing the product and applying the threshold to each entry, thus it takes , where is the exponent of matrix multiplication. Approximating the number of common neighbors between nodes and depends only on the dot products between embeddings corresponding to their neighbors, thus it takes , while approximating the number of paths of length 3 takes .
4. Related Work
Spectral analyses of the Laplacian matrix have multiple applications in graph theory, network science, and graph mining (Newman, 2018; Spielman, 2017; Van Mieghem, 2010). Indeed, the eigendecomposition of the Laplacian has been used for sparsification (Spielman and Srivastava, 2011), clustering (von Luxburg, 2007), dynamics (Van Mieghemy et al., 2014; Prakash et al., 2014), robustness (Jamakovic and Van Mieghem, 2008; Shahrivar et al., 2015), etc. We here discuss those applications that are related to the general topic of this work, namely, dimensionality reduction of graphs.
One popular application is the use of Laplacian eigenvectors for graph drawing (Pisanski and Shawe-Taylor, 2000; Koren, 2005), which can be thought of as graph embedding for the specific objective of visualization. In (Pisanski and Shawe-Taylor, 2000) one such method is outlined, which, similarly to GLEE, assigns a vector, or higher-dimensional position, to each node in a graph using the eigenvectors of its Laplacian matrix, in such a way that the resulting vectors have certain desirable geometric properties. However, in the case of (Pisanski and Shawe-Taylor, 2000), those geometric properties are externally enforced as constraints in an optimization problem, whereas GLEE uses the intrinsic geometry already present in a particular decomposition of the Laplacian. Furthermore, their method focuses on the eigenvectors corresponding to the smallest eigenvalues of the Laplacian, while GLEE uses those corresponding to the largest eigenvalues, i.e. to the best approximation to the Laplacian through singular value decomposition.
On another front, many graph embedding algorithms have been proposed, see for example (Goyal and Ferrara, 2018; Hamilton et al., 2017) for extensive reviews. Most of these methods fall in one of the following categories: matrix factorization, random walks, or deep architectures. Of special importance to us are methods that rely on matrix factorization. Among many advantages, we have at our disposal the full toolbox of spectral linear algebra to study them (Levin et al., 2018; Charisopoulos et al., 2019; Chen and Tong, 2015, 2017). Examples in this category are the aforementioned Laplacian Eigenmaps (LE) (Belkin and Niyogi, 2002, 2003) and Graph Factorization (GF) (Ahmed et al., 2013). One important difference between GLEE and LE is that LE uses the small eigenvalues of the normalized Laplacian , while GLEE uses the large eigenvalues of . Furthermore, LE does not present the rich geometry of the simplex. Graph Factorization (GF) finds a decomposition of the weighted adjacency matrix with a regularization term. Their objective is to find embeddings such that , whereas in our case we try to reconstruct . This means that the embeddings found by Graph Factorization will present different geometric properties. There are many other methods of dimensionality reduction on graphs that depend on matrix factorization (Kuang et al., 2012; Cai et al., 2011; Wang et al., 2017). However, even if some parameterization, or special case, of any of these methods results in a method resembling the singular value decomposition of the Laplacian (thus imitating GLEE), to the authorsâ knowledge none of these methods make direct use of its intrinsic geometry.
Among the methods based on random walks we find DeepWalk (Perozzi et al., 2014) and node2vec (Grover and Leskovec, 2016), both of which adapt the framework of word embeddings (Mikolov et al., 2013) to graphs by using random walks and optimize a shallow architecture. It is also worth mentioning NetMF (Qiu et al., 2018) which unifies several methods in a single algorithm that depends on matrix factorization and thus unifies the two previous categories.
Among the methods using deep architectures, we have the deep autoencoder Structural Deep Network Embedding (SDNE) (Wang et al., 2016). It penalizes representations of similar nodes that are far from each other using the same objective as LE. Thus, SDNE is also based on the distance-minimization approach. There is also (Cao et al., 2016) which obtains a non-linear mapping between the probabilistic mutual information matrix (PMI) of a sampled network and the embedding space. This is akin to applying the distance-minimization assumption not to the graph directly but to the PMI matrix.
Others have used geometric approaches to embedding. For example, (Estrada et al., 2014) and (Pereda and Estrada, 2019) find embeddings on the surface of a sphere, while (Papadopoulos et al., 2012) and (Nickel and Kiela, 2018) use the hyperbolic plane. These methods are generally developed under the assumption that the embedding space is used to generate the network itself. They are therefore aimed at recovering the generating coordinates, and not, as in GLEEâs case, at finding a general representation suitable for downstream tasks.
5. Experiments
We put into practice the procedures detailed in Sections 3.1 and 3.2 to showcase GLEEâs performance in the tasks of link prediction and graph reconstruction. Code to compute the GLEE embeddings of networks and related computations is publicly available at (Torres, 2019). For our experiments, we use the following baselines: GF because it is a direct factorization of the adjacency matrix, node2vec because it is regarded as a reference point among those methods based on random walks, SDNE because it aims to recover the adjacency matrix of a graph (a task GLEE excels at), NetMF because it generalizes several other well-known techniques, and LE because it is the method that most directly resembles our own. In this way we cover all of the categories explained in Section 4 and use either methods that resemble GLEE closely or methods that have been found to generalize other techniques. For node2vec and SDNE we use default parameters. For NetMF we use the spectral approximation with rank . The data sets we use are outlined in Table 1. Beside comparing GLEE to the other algorithms, we are interested in how the graphâs structure affects performance of each method. This is why we have chosen data sets have similar number of nodes and edges, but different values of average clustering coefficient. Accordingly, we report our results with respect to the average clustering coefficient of each data set and the number of dimensions of the embedding (the only parameter of GLEE). In Appendix B we compare the performance of each estimator explained in Section 3.1. In the following experiments we use as our estimator for .
5.1. Graph Reconstruction
Given a GLEE matrix , how well can we reconstruct the original graph? This is the task of graph reconstruction. We use as performance metric the precision at measure, defined as the precision of the first reconstructed edges. Note that precision at k must always decrease when grows large, as there will be few correct edges left to reconstruct.
Following Section 3.1, we reconstruct the edge if . The further the dot product is from [math] (the ideal value for non-edges), the more confident we are in the existence of this edge. For LE, we reconstruct the edge according to how small the distance between their embeddings is. For both GF, node2vec and NetMF, we reconstruct edges based on how high their dot product is. SDNE is a deep autoencoder and thus its very architecture involves a mechanism to reconstruct the adjacency matrix of the input graph.
We show results in Figure 2, where we have ordered data sets from left to right in ascending order of clustering coefficient, and from bottom up in ascending order of embedding dimension. GF results omitted from this Figure as it scored close to [math] for all values of and . On CA-GrQc, for low embedding dimension , SDNE performs best among all methods, followed by node2vec and LE. However, as increases, GLEE substantially outperforms all others, reaching an almost perfect precision score at the first 10,000 reconstructed edges. Interestingly, other methods do not substantially improve performance as increases. This analysis is also valid for CA-HepTh, another data set with high clustering coefficient. However, on PPI, our data set with lowest clustering coefficient, GLEE drastically outperforms all other methods for all values of . Interestingly, LE and node2vec perform well compared to other methods in data sets with high clustering, but their performance drops to near zero on PPI. We hypothesize that this is due to the fact that LE and node2vec depend on the âcommunity-awareâ assumption, thereby assuming that two proteins in the same cluster would interact with each other. This is the exact point that (KovĂĄcs et al., 2018) refutes. On the other hand, GLEE directly encodes graph structure, making no assumptions about the original graph, and its performance depends more directly on the embedding dimension than on the clustering coefficient, or on any other assumption about graph structure. GLEEâs performance on data sets PPI, Wiki-Vote, and caida point to the excellent potential of our method in the case of low clustering coefficient.
5.2. Link Prediction
Given the embedding of a large subgraph of some graph , can we identify which edges are missing? The experimental setup is as follows. Given a graph with nodes, node set and edge set , we randomly split its edges into train and test sets and . We use , and we make sure that the subgraph induced by , denoted by , is connected and contains every node of . We then proceed to compute the GLEE of and test on . We report AUC metric for this task. We use both techniques described in Sections 3.2.1 and 3.2.2, which we label GLEE and GLEE-L3 respectively
Figure 3 shows that node2vec repeats the behavior seen in graph reconstruction of increased performance as clustering coefficient increases, though again it is fairly constant with respect to embedding dimension. This observation is also true for NetMF. On the high clustering data sets, LE and GLEE have comparable performance to each other. However, either GLEE or GLEE-L3 perform better than all others on the low clustering data sets PPI, Wiki-Vote, as expected. Also as expected, the performance of GLEE-L3 decreases as average clustering increases. Note that GLEE and LE generally improve performance when increases, whereas node2vec and SDNE do not improve. (GF and SDNE not shown in Figure 3 for clarity. They scored close to and in all data sets independently of .) The reason why none of the methods studied here perform better than AUC in the caida data set is an open question left for future research. We conclude that the hybrid approach of NetMF is ideal for high clustering coefficient, whereas GLEE is a viable option in the case of low clustering coefficient as evidenced by the results on PPI, Wiki-Vote, and caida.
6. Conclusions
In this work we have presented the Geometric Laplacian Eigenmap Embedding (GLEE), a geometric approach to graph embedding that exploits the intrinsic geometry of the Laplacian. When compared to other methods, we find that GLEE performs the best when the underlying graph has low clustering coefficient, while still performing comparably to other state-of-the-art methods when the clustering coefficient is high. We hypothesize that this is due to the fact that the large eigenvalues of the Laplacian correspond to the small eigenvalues of the adjacency matrix and thus represent the structure of the graph at a micro level. Furthermore, we find that GLEEâs performance increases as the embedding dimension increases, something we do not see in other methods. In contrast to techniques based on neural networks, which have many hyperparameters and costly training phases, GLEE has only one parameter other than the embedding dimension, the threshold , and we have provided three different ways of optimizing for it. Indeed, GLEE only depends on the SVD of the Laplacian matrix.
We attribute these desirable properties of GLEE to the fact that it departs from the traditional literature of graph embedding by replacing the âcommunity awareâ notion (similar nodesâ embeddings must be similar) with the notion of directly encoding graph structure using the geometry of the embedding space. In all, we find that GLEE is a promising alternative for graph embedding due to its simplicity in both theoretical background and computational implementation, especially in the case of low clustering coefficient. By taking a direct geometric encoding of graph structure using the simplex geometry, GLEE covers the gap left open by the âcommunity awareâ assumption of other embedding techniques, which requires high clustering. Future lines of work will explore what other geometric properties of the embedding space can yield interesting insight, as well as what are the important structural properties of graphs, such as clustering coefficient, that affect the performance of these methods.
Funding
This work was supported by the National Science Foundation [IIS-1741197]; and by the Combat Capabilities Development Command Army Research Laboratory and was accomplished under Cooperative Agreement Number W911NF-13-2-0045 (U.S. Army Research Lab Cyber Security CRA). The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Combat Capabilities Development Command Army Research Laboratory or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes not withstanding any copyright notation here on.
Appendix A Threshold Estimators
We present two other estimators of to accompany the heuristic mentioned in Section 3.1.
A.1. Kernel Density Estimation
As can be seen in Figure 4, the problem of finding a value of that sufficiently separates the peaks corresponding to edges (around the peak centered at ) and non-edges (around the peak centered at [math]) can be stated in terms of density estimation. That is, given the histogram of values of for all , we can approximate the density of this empirical distribution by some density function . A good heuristic estimator of is the value that minimizes between the peaks near and [math]. For this purpose, we use Kernel Density Estimation over the distribution of and a box kernel (a.k.a. âtop hatâ kernel) function to define
[TABLE]
We then use gradient descent to find the minimal value of between the values of and [math]. We call this value . We have found experimentally that a value of gives excellent results, achieving near zero error in the reconstruction task (Figure 4, middle row).
A.2. Gaussian Mixture Models
Here we use a Gaussian Mixture Model (GMM) over the distribution of . The model will find the two peaks near and [math] and fit each to a Gaussian distribution. Once the densities of said Gaussians have been found, say and , we define the estimator as that point at which the densities are equal (see Figure 4, bottom row).
However, we found that a direct application of this method yields poor results due to the sparsity of network data sets. High sparsity implies that the peak at [math] is orders of magnitude higher than the one at . Thus, the left peak will usually be hidden by the tail of the right one so that the GMM cannot detect it. To solve this issue we take two steps. First, we use a Bayesian version of GMM that accepts priors for the Gaussian means and other parameters. This guides the GMM optimization algorithm to find the right peaks at the right places. Second, we sub-sample the distribution of dot products in order to minimize the difference between the peaks, and then to fix it back after the fit. Concretely, put . That is, is the number of dot products less than the constant . Instead of fitting the GMM to all the observed dot products, we fit it to the set of all dot products less than plus a random sample of dot products larger than . This temporarily fixes the class imbalance, which we recover after the model has been fit as follows. The GMM fit will yield a density for the sub-sample as , where is the density of the th Gaussian, and are the mixture weights, for . Since we sub-sampled the distribution, we will get , but we need the weights to reflect the original class imbalance. For this purpose, we define and , where is an estimate for the number of edges in the graph. (This can be estimated in a number of ways, for example one may put , or .) Finally, we define the estimator as the value that satisfies
[TABLE]
under the constraint that . Since and are known Gaussian densities, Equation 16 can be solved analytically.
In this case, due to sparsity, the problem of optimizing the GMM is one of non-parametric density estimation with extreme class imbalance. We solve it by utilizing priors for the optimization algorithm, as well as sub-sampling the distribution of dot products, according to some of its known features (i.e., the fact that the peaks will be found near and [math]), and we account for the class imbalance by estimating graph sparsity separately. Finally, we define the estimator according to Equation 16. Algorithm 1 gives an overview of this procedure. For a comparison between the effectiveness of the three different estimators , see Appendix B.
Appendix B Estimator Comparison
In Section 3.1 and Appendix A we outlined three different schemes to estimate which resulted in . Which one is the best? We test each each of these estimators on three random graph models: ErdÜs-RÊnyi (ER) (ErdÜs and RÊnyi, 1960), Barabåsi-Albert (BA) (Barabåsi and Albert, 1999), and Hyperbolic Graphs (HG) (Krioukov et al., 2010). For each random graph with adjacency matrix , we compute the Frobenius norm of the difference between the reconstructed adjacency matrix using each of the three estimators. In Figure 5 we show our results. We see that and achieve similar performance across data sets, while outperforms the other two for ER at , though it has high variability in the other models. From these results we conclude that at low dimensions , too much information has been lost and thus there is no hope to learn a value of that outperforms the heuristic . However, at larger dimensions, the estimators and perform better, with different degrees of variability. We conclude also that no single heuristic for is best for all types of graphs. In the rest of our experiments we use as our estimator for . We highlight that even though is better than in some data sets, it might be costly to compute, while incurs no additional costs.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1)
- 2Ahmed et al . (2013) Amr Ahmed, Nino Shervashidze, Shravan M. Narayanamurthy, Vanja Josifovski, and Alexander J. Smola. 2013. Distributed large-scale natural graph factorization. In WWW . 37â48.
- 3BarabĂĄsi and Albert (1999) Albert-LĂĄszlĂł BarabĂĄsi and RĂŠka Albert. 1999. Emergence of Scaling in Random Networks. Science 286, 5439 (1999), 509â512.
- 4Belkin and Niyogi (2002) Mikhail Belkin and Partha Niyogi. 2002. Laplacian Eigenmaps and Spectral Techniques for Embedding and Clustering. In NIPS 14 . 585â591.
- 5Belkin and Niyogi (2003) Mikhail Belkin and Partha Niyogi. 2003. Laplacian Eigenmaps for Dimensionality Reduction and Data Representation. Neural Computation 15, 6 (2003), 1373â1396.
- 6Cai et al . (2011) Deng Cai, Xiaofei He, Jiawei Han, and Thomas S. Huang. 2011. Graph Regularized Nonnegative Matrix Factorization for Data Representation. IEEE Trans. Pattern Anal. Mach. Intell. 33, 8 (2011), 1548â1560.
- 7Cao et al . (2016) Shaosheng Cao, Wei Lu, and Qiongkai Xu. 2016. Deep Neural Networks for Learning Graph Representations. In AAAI . AAAI Press, 1145â1152.
- 8Charisopoulos et al . (2019) Vasileios Charisopoulos, Austin R. Benson, and Anil Damle. 2019. Incrementally Updated Spectral Embeddings. Co RR abs/1909.01188 (2019). ar Xiv:1909.01188 http://arxiv.org/abs/1909.01188
