Manuscript Offprint
arXiv:2610.25686A Theoretical Perspective on Link Prediction Heuristics
Abstract
In network analysis, nodes with different degrees are usually weighted differently in tasks such as link prediction. For example, two individuals connected to the same high-degree node (e.g., a celebrity) are often considered less likely to know each other than if they share a low-degree connection. In this paper, we theoretically justify the reasoning behind this heuristic using a graph generation model. In this model, nodes are embedded in a latent metric space, and edges are more likely to form between nearby nodes. We analytically derive degree-based weighting schemes for commonly used link prediction and similarity measures. In particular, we identify the optimal weighting scheme for the Common Neighbors index and extend our analysis to other popular heuristics, including the graph distance. Our theoretical findings align with previous empirical observations, and we further validate them through experiments on both synthetic and real-world networks.
1 INTRODUCTION
Link prediction is an important problem in the fields of network science and graph analysis. Given a graph without extra node features, the key for prediction is to assess the similarity of pairs, which quantifies the resemblance between two nodes. Many heuristic measures have been suggested to measure similarity, such as common neighbors [Newman, 2001], preferential attachment [Barabási et al., 2002], and the Katz index [Katz, 1953].
The number of common neighbors of two nodes, defined as the number of nodes connected to both, has frequently served as a historical benchmark for link prediction, as well as a similarity measure. Empirical findings indicate that assigning lower weights to common nodes with higher degrees brings better link prediction results [Adamic and Adar, 2003, Zhou et al., 2009]. Recent studies also applied different weight schemes to other similarity indices such as the number of l-hop paths [Kovács et al., 2019] and the Katz index [Aziz et al., 2020]. This raises fundamental questions:
Why degree weighting matters in link prediction? And how should we weighting them?
While many link prediction heuristics are well-supported by empirical evidence, there is far less theoretical understanding of their effectiveness. In particular, the role of degree-based weighting remains heuristic in nature. This paper provides a principled justification for such techniques through analysis in a latent space model.
Geometry has demonstrated the potential to help understand complex networks. Latent space models, particularly in Euclidean space, have been used to model network structures, as Sarkar et al. [Sarkar et al., 2011], for example, derived error bounds for some popular link prediction indices within the Euclidean random graph model. However, the Euclidean graph models fail to capture key features of real networks, such as the small world phenomenon, scale-freeness, and power law degree distributions, and also does not explain why some of the link prediction methods outperform others. Krioukov et al. [Krioukov et al., 2010] introduced a hyperbolic random graph (HRG) that can replicate the majority of the aforementioned properties, utilizing a relatively straightforward approach in hyperbolic space. Further studies on hyperbolic random graphs have also found properties that largely align with empirical findings on real-world networks, such as the existence of a giant component [Bode et al., 2013], diameter [Kiwi and Mitsche, 2014, Friedrich and Krohmer, 2018], average distance [Abdullah et al., 2015], separators and treewidth [Bläsius et al., 2016], clique number [Friedrich and Krohmer, 2015], etc. These findings motivate the use of hyperbolic models for analyzing complex networks, as they reflect the structural patterns commonly observed in practice.
• We show how the number of common neighbors relates to latent distance in hyperbolic space. We demonstrate that, by carefully weighting common neighbors based on their degrees, they can be more effectively used to estimate latent similarities.
• We extend our analysis to include some global indices such as the number of l-hop neighbors, yielding a weighted version of the l-hop indices and the Katz index.
• A modified similarity index is proposed based on the shortest path: HGD (hyperbolic graph distance), which provides more accurate estimation of long-range similarities than standard graph distance.
Organization of this paper:
As a preliminary, we introduce the hyperbolic graph model and basic properties in Section 3. Section 4 analyzes local similarity indices based on common neighbors and derives the optimal weighting. Section 5 extends the degree-weighting heuristic to global indices—including graph distance and the number of l-hop paths—and shows that these indices also benefit from appropriate weighting. Section 6 presents empirical validation and discusses potential applications.
2 RELATED WORK
The concept of using similarity to estimate the likelihood of a link can be traced back to McPherson et al. [McPherson et al., 2001], who proposed “Similarity breeds connection”. Over the years, many indices have been developed to measure the similarity between pairs of nodes in a network and thence used for link prediction. These include the Shortest Path [Liben-Nowell and Kleinberg, 2003], which also can be called graph distance; the Number of Common Neighbors, first proposed by Newman [Newman, 2001] when studying the edges of co-authorship networks; the Adamic & Adar index [Adamic and Adar, 2003], a weighted version of the common neighbor index; and the Preferential Attachment index [Barabási et al., 2002], from a model generating growing scale-free networks. More recently, variants of these indices keep emerging to improve link prediction performance: Kovács et al. [Kovács et al., 2019] weighted 3-hop paths by the square root of the product of the intermediate nodes’ degrees when predicting protein-protein interactions; and Aziz et al. [Aziz et al., 2020] proposed global and quasi-local extensions of some commonly used local similarity indices. And besides similarity based methods, there are other approaches to link prediction, such as random walk-based methods [Tong et al., 2006], embedding-based methods [Belkin and Niyogi, 2001, Tenenbaum et al., 2000, Kitsak et al., 2020], etc.
In the analysis of networks, homophily is one of the most important assumptions. Hoff et al. [Hoff et al., 2002] proposed a model where nodes are distributed in a d-dimensional Euclidean space, where the probability of forming a link is high if two nodes are close in latent space. Under this setup, we are able to quantify similarities within the network through distances between nodes in a low-dimensional Euclidean space. From a practical perspective, the coordinates can be seen as a embedding of nodes within a latent feature space.
Besides homophily, popularity has also been considered a factor contributed to connection. For example, the preferential attachment principle [Barabási et al., 2002], known as “rich get richer”, was proposed to explain the scale-free property observed in many networks. While the latent space models are limited to Euclidean space in past decades, Krioukov et al. [Krioukov et al., 2010] took a different approach by assuming a hyperbolic geometry underlying the network. Papadopoulos et al. [Papadopoulos et al., 2012] highlights that the hyperbolic model reveals additional factors influencing link formation in social networks beyond mere similarity, specifically popularity. The hyperbolic distance between nodes can be seen as a unified metric that encapsulates both popularity and similarity. The networks generated in this setting turned out to reproduce not only inhomogeneous degree distributions but also the strong clustering and small-worldness observed in many real-world networks. Some properties of hyperbolic random graphs have been derived rigorously [Gugelmann et al., 2012, Friedrich and Krohmer, 2018].
To our knowledge, this is the first theoretical analysis of popular link prediction heuristics using hyperbolic random graphs. Our results provide a unified explanation for several empirical phenomena commonly observed in real-world networks studies.
3 PRELIMINARIES
3.1 HYPERBOLIC GEOMETRY
Hyperbolic geometry is a negatively curved geometry that differs from Euclidean geometry. There are several ways to model a hyperbolic space, including the hyperboloid model, the Beltrami-Klein model, and the Poincaré ball model. Among these models, we will use the Poincaré ball, as it imposes a relatively simple constraint on the representations and is convenient to visualize.
To characterize a two-dimensional Poincaré disk, we adopt the notation introduced in [Krioukov et al., 2010]. In this notation, the polar coordinates specify the position of a node , with radial coordinate representing the hyperbolic distance of from the origin. Assuming the curvature where , the hyperbolic distance between two points with coordinates and is given by the hyperbolic law of cosines:
where . There is an approximation that simplifies calculations involving the hyperbolic distance:
The approximation is close for sufficient large , , and . Theoretical derivation and error bounds for this approximation are provided in [Gugelmann et al., 2012]. Empirical results from Krioukov et al. [2010] demonstrate that it is reasonably accurate in practice, and it has been widely adopted in studies involving hyperbolic distance [Bläsius et al., 2018a, Krioukov et al., 2010, Bläsius et al., 2018b]. This formulation makes it evident that three key factors influence the distance: the centrality of node , centrality of node , and the angular similarity between them.
3.2 HYPERBOLIC RANDOM GRAPHS
The hyperbolic random graphs described in [Krioukov et al., 2010] is a model that consists of a quasi-uniform distribution of N points into a 2-dimensional Poincaré disk of radius R around the origin, where the curvature is fixed to be -1. Two points are connected if and only if their hyperbolic distance is no greater than R. More precisely, the angular distribution is uniform: , and the radial probability density function is:
where . When , the node density is exactly uniform. The connection function is: The model generates a graph with a power-law degree distribution, demonstrating that network heterogeneity emerges naturally in latent hyperbolic space.
In this model, nodes closer to the origin are more likely to connect with others. A natural interpretation is that node popularity is represented by radial position, while similarity is captured by angular proximity. Hyperbolic distance thus combines these two attributes—radial popularity and angular similarity (homophily)—into a single unified metric [Papadopoulos et al., 2012]. This formulation allows the model to replicate many key properties of real-world networks, making it an ideal framework for studying their structure and mechanisms. Within this setting, we analyze how link prediction indices reflect latent distances, thereby influencing the probability of edge formation.
Additionally, a more general model was proposed in the paper [Krioukov et al., 2010], using a probabilistic connection. In this paper we will focus on the simplest model where the connection function is deterministic.
3.3 PARAMETER ESTIMATION
Given a hyperbolic random graph, we only have information about connections. In order to study the latent geometry, we can start with estimating the parameters controlling the graph. Good analytical estimates have been derived in the previous work [Boguná et al., 2010].
Estimating and R
The parameter governs the power-law exponent in the degree distribution through the relationship . As R controls the average degree, we can have the estimation of R from the average degree as follows:
Estimating r from the degree
Given the degree of node , all nodes connected to lie in a -disk centered around , denoted by , within the Poincaré disk. We use for convenience to represent the portion of within the Poincaré -disk. Let denote the set of neighbors of node ; then the expectation of is:
if , and otherwise, where is defined as follows: suppose there is a point on the boundary of the disk , then is the angular difference between and , as shown in Figure 1(a).
According to approximation (1), for large , , and we have . So by substituting it into the integral and keeping the leading terms we have:
Note that is nearly a Poisson random variable when N is large. So the maximum likelihood estimation for given the degree , is
4 LOCAL SIMILARITY INDICES
Most local similarity indices leverage information on the number of common neighbors and their degrees. Here are

(a)

(b)

(c)
Figure 1: (a) depicts a disk with radius R around node i, denoted by . (b) shows the intersection of two disks, and . The gray area is the area we want to integrate over, where is the angular section at radius r. (c) shows the area considered in the proof of Theorem 5.1.
three representative examples:
Common Neighbors (CN):
This is one of the simplest techniques and has been widely used for link prediction and similarity measurement. The index counts the number of nodes connected to both i and j. Adamic/Adar Index (AA):
where is the degree of a node x. We can see that greater weight is assigned to common neighbors having smaller degrees. This is intuitive in the sense that two individuals are more likely to know each other if they both know a normal person rather than a celebrity.
Resource Allocation (RA):
This index is very similar to the AA index, but it down weights the high degree-nodes even more. Lü and Zhou [Lü and Zhou, 2011] systematically compared various local similarity indices in real networks; their results show that the RA index has the best overall performance. Pan et al. [Pan et al., 2010] carried out a comparison of local indices within a similarity-based community detection algorithm; their experimental findings also indicated superior performance by the RA index.
In this section, we theoretically analyze how different weights affect link prediction performance.
4.1 NUMBER OF COMMON NEIGHBORS
Consider two nodes and with . Denoting the set of their common neighbors by , the expectation of depends on the area of the intersection between two disks with a radius of within the Poincaré disk, centered at and , respectively. Note that the boundaries of the disks and intersect at two distinct points, just as the circles do in Euclidean space. We denote these two intersection points by and , and assume ; see Figure 1(b).
The two intersection points should satisfy , and . Combining with the approximation (1), we have:
In the same way, the angular section at radius that surrounded by the intersection shown in Figure 1(b) can be calculated as for . And for , the angular section is just , defined in Section 3.3. Then the expectation of the number of common neighbors can be computed by:
where .
Note that when , this expression becomes
which is exactly same as the expression for (equation 2). This corresponds to the situation where nodes and are very close so that the -disk around is completely surrounded by . We will mainly consider the more general case where is small compared with .
4.2 ESTIMATING THE ANGULAR DIFFERENCE WITH LOWER VARIANCE
To estimate the latent distance of node pairs, we need to know , , and . Since the values of and can be estimated based on the degree (see equation 3), our goal is to infer the angular difference of the pair based on the number of common neighbors.
In general, the common neighbor based indices can be written in the form of where and is a function of the node degree . If and are known, the expectation of can be calculated as follows:
where the propagator is the conditional probability that a node with hidden variable has degree . In a sparse network we assume that is Poissonian [Boguná and Pastor-Satorras, 2003]: , where is the expected degree of a node with radius , from equation (2). Using these approximations, the integral becomes:
where is the upper incomplete-gamma function, and indicates a function of and . The evaluation of the integral can be found in Appendix D.
Since , the expression above can be broken down into two cases depending on the value of . Assume , then there is a linear relationship between and :
Solving this equation for gives , which is an unbiased estimator of because of the linearity; here represents a function that depends on , , and .
Also note that can be taken to be a Poisson random variable, so the variance of can be calculated as:
When N is large, the should be approximately independent. Then the variance of is:
To minimize the variance of the unbiased estimator , we set , and by solving this equation (the detailed calculation is in Appendix D.), we get:
as , which is identical to the weight in the RA index.
An alternative way to interpret the argument above is as follows: if we consider each value of individually, we can think of each as an unbiased estimator for the same parameter but with different variances. Under the assumption that is large, these estimators are nearly uncorrelated. In this context, it is possible to obtain a combined estimator with reduced variance by assigning optimal weights to each estimator.
We also found that the latent distance can be approximated as a monotonically decreasing function of the RA index (See Appendix A.). In practical situations, obtaining a precise measurement of the latent distance isn’t always essential. Often, the goal is to evaluate similarities for comparative purposes. In such instances, it is convenient to utilize RA directly to perform tasks like link prediction.
In our analysis, we have justified that the RA index exhibits the least variance when estimating the distance between nodes. Additionally, in situations where we lack common neighbor information about two nodes, a naive approximation can be made by ignoring the term. When doing so, we can approximate the distance between nodes as , which can be combined with Equation (3) to show that the distance has a negative correlation with —an expression that is equivalent to the preferential attachment index.
5 GLOBAL SIMILARITY INDICES
5.1 THE SHORTEST PATH INDEX
The shortest path index of node pair is the minimum length of a path connecting them. Besides being used as a similarity index, it is also widely used in tasks such as graph drawing, community detection, and graph embedding.
In case, a similar result is shown in the Appendix D.
The regular shortest-path-index
For Euclidean random graphs with connection threshold R, we define the graph distance as , where l is the length of the shortest path. It is clear that the true latent distance from the definition of the connection function. An upper error bound of graph distance has been derived by Arias-Castro et al. [Arias-Castro et al., 2021], giving:
when , where , indicating how dense is the points layout, and is the convex hull of all nodes. It is noteworthy that the upper error bound can not be reduced below , even in the infinitely dense setting, as .
The last error term seems acceptable in the Euclidean graph models, where the connectivity radius can be chosen to be considerably smaller than the latent space diameter. This is not necessarily the case in hyperbolic models. In HRG, however, the connectivity radius is fixed to be , the radius of the Poincaré -disk, which would make the upper error bound large compared with the true latent distance. In fact, since for any node pair , using the standard shortest path approximation not only preserves the irreducible error term, but also introduces heavy discretization, making the index unsuitable for tasks such as link prediction. This explains the poor behavior of the shortest path index observed by Liben-Nowell & Kleinberg [Liben-Nowell and Kleinberg, 2003].
A modified shortest-path -index (HGD)
In the hyperbolic model, given two nodes and , the radius of any third node connecting them is constrained within a specific range depending on the values of , , and . Conversely, the radius of the intermediate node can provide bound on , given knowledge of and .
Assume we have information about the radii of all nodes. Suppose two nodes are connected through a path consisting of . Instead of directly bounding by , we can first bound the angular difference between and . From equation (1) we have as they are connected; the bound for can be found in the same way. We can then bound the difference in angle between and since , and consecutively bound the angular difference until we obtain a bound on the difference in angle between and by simply summing up these bounds. We can then use this bound on angle difference to determine that the distance between and is no greater than . According to this process we can define:
where , if there exists a path connecting and : . The hyperbolic graph distance (HGD) can be defined as:
The following theorem states that for long-range distance the HGD achieves better error bounds with increasing node density.
Theorem 5.1. Given nodes i and j, and knowing , we have:
with probability , where .
The above is the probability that a point falls in the area depicted in Figure 1(c). Full proof of the theorem can be found in Appendix B. This theorem shows the consistency of HGD for estimating distance when is relatively large. In the case when , causing , a similar derivation gives us an upper bound of . Although we now have an extra term , this term would be small compared to as long as is not too big, i.e., and are not too close.
Algorithms to calculate HGD
Given a graph, we can estimate the latent radius of node i based on its degree according to equation (3). After plugging in, the HGD index can be written neatly as:
We can see that in addition to the path length, HGD assigns weights according to the degree of nodes along the path. This adjustment not only makes the index less discrete but also accounts for the relative importance of nodes based on their connectivity.
Many algorithms, such as Dijkstra's, have been proposed for calculating the shortest path between nodes, both for unweighted and weighted networks. To compute the hyperbolic graph distance, a simple modification can be applied to transform the problem into finding the shortest weighted paths between node pairs: Initially, for every node pair we assign the edge weight to be . Then, by treating the network as a weighted network, we can determine the shortest weighted path between i and j. Dividing this value by yields the hyperbolic graph distance between node i and j.
5.2 THE NUMBER OF l-HOP PATHS AND THE KATZ INDEX
There is usually more than one path between node i and j. That is to say, by using the shortest path as the link prediction index, we omit some other information about the similarity. An index that tries to capture this information is the number of l-hop paths between two nodes, where an l-hop path consists of l edges between two nodes:
Inspired by previous discussion, we can define a weighted variant of the number of l-hop paths:
where means that the path is weighted according to the degrees of the nodes connecting node and node . We assume the weight is . Through an analysis similar to the one in Section 4, it can be shown that choosing to be leads to a smaller error bound when estimating the angular difference (analyzed in Appendix C). This modification can be also extended to Katz index [Katz, 1953], which is a ensemble of -hop paths indices. For detailed definitions of Katz and its variants, refer to Appendix E.
6 EXPERIMENTAL ANALYSIS
6.1 NUMERICAL EXPERIMENTS ON HRG
In this section, we verify our analysis by running experiments on HRGs. We generated 6 hyperbolic random graphs with different choices of N, and R. We randomly sample 10000 pairs of nodes, and for each index calculate the Spearman's correlation coefficient with respect to the true latent distance as an evaluation metric. For link prediction, we following the standard routine: we randomly remove 10% of the total links and use indices on the remaining graph to predict missing links. The performance is measured by average precision. In Appendix F we provide experiment details and more tests on different configurations of HRG. Appendix H explains the evaluation metrics used in these experiments.
Results Analysis
Table 1 presents the results. Among the three local indices (CN, AA, and RA), RA shows the strongest correlation with latent distances, consistent with both our theoretical analysis and prior empirical findings [Lü and Zhou, 2011]. For global indices, the weighted versions consistently outperform their unweighted counterparts across all networks. Notably, the HGD index performs exceptionally well, demonstrating a strong correlation with the true latent distances.
The right part of table 1 displays the precision scores for link prediction. Much like the correlation test, the weighted version of each index outperforms the unweighted version. Notice that the standard graph distance proves to be nearly useless in this task, yielding scores close to 0. Sensitivity to missing links also impacts the HGD index, causing the latter to no longer be the best-performing index in this task. It still performs considerably better, however, than the standard graph distance (GD). This also confirms that the shortest path indices might be a good choice for a similarity measure, but a poor choice for link prediction.
6.2 APPLICATIONS
In the previous section, we analyzed similarity heuristics in synthetic networks. In principle, these modified heuristics can serve as direct substitutes in real-world network tasks where node similarity needs to be assessed. Here, we briefly discuss a few illustrative use cases.
Link Prediction
As machine learning evolves, more sophisticated link prediction methods are proposed. However, research [Zhang et al., 2021] shows that simple heuristics like CN and RA can sometimes outperform advanced methods like Graph Autoencoders or Message Passing Neural Networks by large margins. In table 2 and appendix G we test the link prediction heuristics we have discussed on real networks to compare their performance.
The results in Table 2 demonstrate that the behavior of these indices on real networks is consistent with what we observe in synthetic hyperbolic graphs: weighted versions consistently outperform their unweighted counterparts and are often among the top-performing methods. As in the synthetic case, shortest-path-based indices such as GD and HGD are sensitive to missing links, which affects their predictive accuracy. We therefore recommend HGD primarily as a similarity measure for tasks such as clustering and embedding—particularly in settings where the full graph is preserved—since in such cases, HGD can provide more informative estimates of similarity than standard graph distance.
Graph Embedding using HGD
In representation learning on graphs, the goal is to embed nodes as low-dimensional vectors. Hyperbolic space has shown strong potential for representing hierarchical or tree-structured data [Nickel and Kiela, 2017, Sala et al., 2018], and many existing methods rely on estimating pairwise node similarities. Hyperbolic embedding approaches such as hyperbolic ordinal embedding [Suzuki et al., 2019] and h-MDS [Sala et al., 2018] are typically based on pairwise distances, which are often approximated using graph distance. We propose using Hyperbolic Graph Distance (HGD) as a more accurate substitute for graph distance when estimating latent distances for embedding. Table 3 demonstrates that a simple substitution of graph distance with HGD leads to reduced embedding distortion. Appendix I provides further details on the methodology and evaluation metrics.
7 CONCLUSION
In this paper, we analyze popular link heuristics in the context of the hyperbolic graph model. We provide a theoreti-
| Correlation | Link Prediction Precision | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 1 | 2 | 3 | 4 | 5 | 6 | |
| CN | -0.8996 | -0.5340 | -0.8043 | -0.4279 | -0.7079 | -0.3329 | 0.5430 | 0.3413 | 0.4950 | 0.2907 | 0.6286 | 0.4077 |
| AA | -0.9070 | -0.5358 | -0.8172 | -0.4286 | -0.7124 | -0.3331 | 0.6897 | 0.5273 | 0.6679 | 0.4818 | 0.7461 | 0.5774 |
| RA | -0.9098 | -0.5360 | -0.8217 | -0.4286 | -0.7137 | -0.3331 | 0.8041 | 0.5879 | 0.7596 | 0.5108 | 0.8141 | 0.6331 |
| GD | 0.6990 | 0.5865 | 0.7010 | 0.5741 | 0.6957 | 0.4608 | 0.0092 | 0.0162 | 0.0058 | 0.0189 | 0.0056 | 0.0210 |
| HGD | 0.9704 | 0.8396 | 0.9533 | 0.7959 | 0.9553 | 0.8102 | 0.6463 | 0.3652 | 0.5346 | 0.3053 | 0.4435 | 0.2914 |
| 3-hop | -0.9058 | -0.6054 | -0.8644 | -0.5405 | -0.8267 | -0.4814 | 0.3334 | 0.1779 | 0.2514 | 0.1442 | 0.2940 | 0.1823 |
| 3-hop* | -0.9580 | -0.6481 | -0.9263 | -0.5614 | -0.8736 | -0.4891 | 0.7186 | 0.4739 | 0.6922 | 0.3923 | 0.7312 | 0.5046 |
| Katz-3 | -0.9252 | -0.6094 | -0.8723 | -0.5421 | -0.8267 | -0.4815 | 0.5498 | 0.3508 | 0.5038 | 0.3031 | 0.6364 | 0.4110 |
| Katz*-3 | -0.9492 | -0.6455 | -0.9098 | -0.5619 | -0.8678 | -0.4890 | 0.8068 | 0.5902 | 0.7632 | 0.5143 | 0.8141 | 0.6334 |
| Katz | -0.9246 | -0.6137 | -0.8672 | -0.5806 | -0.8241 | -0.4776 | 0.5491 | 0.3511 | 0.5036 | 0.3036 | 0.6361 | 0.4111 |
| Katz* | -0.9586 | -0.6976 | -0.9288 | -0.6442 | -0.8922 | -0.5362 | 0.8065 | 0.5896 | 0.7619 | 0.5139 | 0.8141 | 0.6334 |
Table 1: Spearman's correlation and link prediction precision in HRGs. Indices weighted by 1/k are marked with an asterisk (*). The Katz-3 index represents a localized version of the Katz index, considering paths of up to 3 hops.
| Karate | USair97 | C.elegans | Harvard | Cora | |
|---|---|---|---|---|---|
| CN | 0.1122 | 0.3363 | 0.0663 | 0.1111 | 0.0131 |
| AA | 0.1349 | 0.3728 | 0.1312 | 0.1227 | 0.0229 |
| RA | 0.1317 | 0.4244 | 0.1756 | 0.1552 | 0.0216 |
| GD | 0.0209 | 0.0109 | 0.0052 | 0.0087 | 0.0037 |
| HGD | 0.1269 | 0.3225 | 0.0655 | 0.0267 | 0.0028 |
| 3-hop | 0.0883 | 0.3287 | 0.0821 | 0.0559 | 0.0082 |
| 3-hop* | 0.1643 | 0.4164 | 0.1243 | 0.0837 | 0.0248 |
| Katz-3 | 0.1583 | 0.3476 | 0.0869 | 0.1069 | 0.0185 |
| Katz*-3 | 0.1523 | 0.4460 | 0.1774 | 0.1551 | 0.0273 |
| Katz | 0.1513 | 0.3470 | 0.0782 | 0.1058 | 0.0185 |
| Katz* | 0.1514 | 0.4363 | 0.1766 | 0.1551 | 0.0285 |
Table 2: Link prediction precision on selected real-world networks. Results on more datasets can be found in Appendix G.
| Dimension = | h-MDS | h-MDS* | ||
|---|---|---|---|---|
| 2 | 10 | 2 | 10 | |
| Bal. Tree | 0.2362 | 0.6055 | 0.2534 | 0.6368 |
| Phy. Tree | 0.1186 | 0.1283 | 0.5395 | 0.6458 |
| CS PhDs | 0.1921 | 0.2586 | 0.2374 | 0.3789 |
| WordNet | 0.2255 | 0.2969 | 0.2353 | 0.3333 |
Table 3: The MAP (mean average precision) of h-MDS, where h-MDS* implies using HGD instead of graph distance.
cal justification for the effectiveness of weighting common neighbors based on their degrees. Our analysis further extends to global similarity measures, such as the number of l-hop paths, yielding similar insights. Additionally, we introduce the Hyperbolic Graph Distance (HGD), a modified version of the shortest path index, which demonstrates lower error in both theoretical analysis and empirical evaluations.
We believe that hyperbolic latent space models offer valuable insights into the structure of complex networks, as they provide a principled explanation for many empirical phenomena. However, real-world networks often go beyond simple graphs, highlighting the need to incorporate further factors in future studies.
A ESTIMATION OF THE LATENT DISTANCE WITH WEIGHTED COMMON NEIGHBORS
Subject to some approximations, we know that selecting the weight gives a lower variance in terms of estimating the angle difference. Now we can establish a relationship between the latent distance and the index . Different treatment is required for the cases where and in our analysis. This is due to the fact that the change in the upper bound of the integration leads to different expressions for these two scenarios.
Case 1:
Note that implies that . While it is hard to compute the expectation exactly, obtaining an approximation is relatively straightforward:
By taking inverse of above expression we have an estimation for in term of , plugging which into equation(1) in the main paper gives the estimation of distance:
Note that in the unweighted case, by taking the inverse of the given expectation, we obtain a maximum likelihood estimator (MLE) because the number of common neighbors can be considered as a Poisson random variable. It is known that the MLE for the parameter of a Poisson random variable is the expectation itself. However, in the weighted common neighbor case, the estimator we get is not guaranteed to be MLE.
Another observation is that we can effectively treat the second term involving as a constant, thus the approximation simplifies into a single-variable function . This simplification is reasonable because of the assumption that , and the characteristics of the radius distribution, which indicate that is likely to be close to , and the variance of should be small.
Case 2:
Combined with the assumption , we have the inequality:
Since is the bigger radius, close to R, this implies that lies in a small interval around . By plugging into , we know that in this case is very close to .
By computing the expectation as follows:
We can then simplify the expression by the first order Taylor's expansion of and around R. Then the above expression can be written as:
By taking inverse of the function we have the estimator:
To further simplify, we can also treat the second term as a constant considering the relatively small coefficients and the radial distribution. Consequently, we have a negative correlation between the latent distance d and :
B PROOF OF THEOREM 5.1
Proof. From the definition we can directly have . Next we look at the other side of the inequality.
From the expression of (equation 3), we know that the condition implies a restriction on , namely . Let's consider the region defined as the intersection of , , and . In simpler terms, this region represents the overlapping area between two disks, with their radii falling within the specific interval . The probability of any given node falling into this region can be expressed as:
Thus probability that there exist at least one node in this region is . Any node landing within this region must satisfy and . Then
with the same probability.
C THE WEIGHTED NUMBER OF l-HOP PATHS
The simplest case of the number of l-hop paths would be the number of 3-hop paths, since the number of 2-hop paths is equivalent to the number of common neighbors, which has been discussed in section 4.
C.1 A WEIGHTED SCHEME OF THE 3-HOP PATHS
Consider a weighted variant of the number of 3-hop paths:
Here, paths signifies that the path is weighted according to the degrees of the nodes connecting node and node . In other words, if there is a 3-hop path that connects node and node , that is, , then paths . The function relies on the degree of node , and we may represent this notation more concisely as .
Computing the exact expectation of such index analytically is quite intricate and can make the analysis of this index difficult. In section 4 and appendix D.2, we discuss that, for sufficiently large k, there exists an approximately linear relationship between and . In order to streamline our analysis, we focus on the cases where k is large. Specifically, we define to be the sum of weighted 3-hop paths, where the degree of intermediate nodes is no less than .
For the expectation, consider the form , where
, and indicate the
weighted number of common neighbors between and .
In the following process we only consider the nodes with
degree no less than . The expectation of is:
Similar to section 4, under the case where is big, the last integral can be approximated as:
Then the expectation becomes:
where is a imaginary node lies in according to the intermediate value theorem; indicate functions depend on , and respectively, which we can ignore later. Note that does not depend on , so as we did in section 4, we can construct an unbiased estimator of , in terms of :
(C.1.1)
Then the variance of the estimator is:
Now we look at the variance of . Denote as the weighted number of neighbors of node . we have the upper bound as shown in C.1.3 (presented in table 1). In the equation C.1.3, at (1) we assume that and are independent. And at (2) we only keep the last two terms of (1) which dominant the expression when is big.
Plugging above expression into (C.1.2) we have the upper bound of .
Minimizing the bound in terms of gives us the optimal weight .
The variance of the estimator can not be compute explicitly and hence hard to optimize. As a relaxation, we instead minimize the upper bound of the estimator to obtain a more tight error bound for the new estimator. While constitutes a portion to the index , empirical results in section 6 show that the weight scheme improves the overall performance of the total estimator .
(1)
(2)
Table 4: The Equation of C.1.3
C.2 NUMBER OF l-HOP PATHS
weighted version can be considered as:
In the same way we can extend the analysis to l-hop cases. Define a weighted variant of the number of l-hop paths:
As before, means that the path is weighed according to the degrees of the nodes connecting node and node . We assume the weight is unknown and denote as .
Here we also use the notation to denote the case where the degree of intermediate nodes is no less than . Then the expectation of the weighted number of l-hop paths given nodes and is the expression shown in Table 2, equation C.2.1.
Where , for , and . Note that all the integral areas, except the last one, are symmetric around node in angle. Also note that the last integral can be approximated as a linear function with respect to when is big. Consequently, the entire integral can be approximated as a linear function of as shown in equation C.2.2 in table 2. Where 's are imaginary nodes independent with .
Looking at the variance, We first consider the bound for the number of weighted 4-hop paths. Recall that the unweighted number of 4-hop paths has form of , then the variance of the
In step (1), the indicate the number of nodes in with degree k. In step (2), the is a imaginary point in .
By induction the variance of can be bounded by:
where
for and .
Note that the product of variance
. The leading terms of this expression have form of
.
By rearranging the linear equation (C.2.2), the unbiased estimator for has form of equation C.2.3 in table 2.
Subsequently, we have the upper bound of the variance of the estimator as shown in C.2.4 in table 2.
To calculate the and , define as
(C.2.2)
(1)
(2)
(3)
(C.2.5)
Table 5: Formulas used in section C.2 the number of nodes in with degree k, then:
Thus, we have , and
as we assume each nearly independent. Finally, the bound of variance can be derived in C.2.5 in table 2. Note that from step (1) to (2), the denominator terms in (1) are reduced to and the numerator terms are magnified to since for any . This allows the first term in the numerator and denominator to cancel out to a constant in (3).
Following this simplification, we are able to minimize the variance bound and find that the optimal weight minimizing this variance bound should also be proportional to .
D SUPPLEMENTAL MATERIALS FOR SECTION 4.2
D.1 CALCULATION OF THE INTEGRAL IN SECTION 4.2
The calculation is shown as equation D.1.1 in table 3, where is the upper incomplete-gamma function, and indicates a function of and . In (1) we change the variable of the integral using equation(2) in section 3.3:
And in (2) we ignore the non-leading terms after integration.
D.2 THE CASE WHERE IN SECTION 4.2
Assume :
In this case the association between the angle and is no longer linear, as the term contains , which depends on . Consequently, we are unable to derive an explicit expression for in terms of . For sufficiently large values of , however, the incomplete upper gamma function becomes close to the complete gamma function . This approximation results in a linear relationship between and once again. Therefore, we can use the same reasoning as if . This is equivalent to finding an optimal weight for an estimator for sufficiently large . In this case, we can obtain the same weight .
D.3 OPTIMIZING THE VARIANCE IN SECTION 4.2
The variance of is:
To minimize the variance of the unbiased estimator, we set , and get:
By solving this equation we get:
E THE KATZ INDEX
Closely related to the indices depending on the l-hops paths, the Katz index depends on the set of all paths between nodes i and j. It can be thought of as a linear combination of the l-hop paths indices:
where is a damping factor. Naturally, we can also define a weighted version of this:
The weighted Katz index
Consider a weighted variant of the Katz index:
We choose the degree weight to be as before. In practice, the index could be expensive to calculate for a large network since it involves the calculation of a matrix inverse. A common approach is to localize the index Zhou et al. [2009], Lü et al. [2009]:
The localized weighted Katz index
(1)
(2)
Table 6: The Equation of D.1.1
F CORRELATIONS AND LINK PREDICTION EXPERIMENTS ON HRGS
F.1 CORRELATION TEST
For synthetic graphs, we supplement the main paper's experiments by including 6 additional HRGs (indices 7-12; 1-6 are used in main paper). The parameters used are shown in table 4. For each index, we calculate Spearman's correlation coefficient (detailed in Appendix H) relative to the true latent distance as an evaluation metric.
The following indices are included in the experiments: CN: Number of common neighbors; AA: The Adamic/Adar index; RA: The Resource Allocation index; GD: The Graph distance; HGD: The Hyperbolic Graph distance; l-hop: Number of l-hop paths, where l-hop* means it is weighted by ; Katz: The Katz index (E.1), where Katz* means it is weighted by (E.2); Katz-t: The Localized Katz index, where Katz*-t means it is weighted by and contains at most t-hop paths (E.3). For the Katz index, we let the damping factor, , range from 0.001 to 0.5, and then record the best result. For each experiment, we independently run 10 times and report the average score.
Table 5 shows results consistent with previous observations: the weighted version outperforms the unweighted version in HRG, and HGD excels in estimating latent distances. This reinforces the effectiveness of the weighted approach and HGD's superior performance in these settings, and verifies our theoretical analysis.
F.2 LINK PREDICTION
The evaluation of link prediction performance follows a widely adopted approach. Given a graph , we partition the edge set into two sets: the training set , and the probe set , which consists of the missing links. Only the information contained in is utilized to predict the missing links in . In our experiment, we remove 10% of the total edges. To measure how well these indices can predict the missing links, we choose average precision among numerous metrics (Appendix H explains why choosing average precision over other metrics). The results in Table 6 are consistent with those presented in the main paper.
G LINK PREDICTION EXPERIMENTS ON REAL WORLD GRAPHS
In this section, we conduct extensive experiments on real networks to evaluate the performance of the link prediction indices. In selecting network datasets for these experiments, we ensured to cover a wide range of fields:
Karate: A friendship network comprising 34 members of a Karate club; Dolphin: A social network representing the interactions among 62 bottlenose dolphins; USAir97: An airline network depicting connections between US airports in 1997; Netscience: A coauthorship network of 379 researchers in the field of network theory; C.elegans: A network involving biochemical reactions occurring within the cells of the model organism Caenorhabditis elegans (C.elegans); Harvard: A social friendship network extracted from Facebook, consisting of 1446 people affiliated with Harvard, with edges indicating friendship ties. NS: A collaboration network of researchers in network science with 1,589 nodes and 2,742 edges which is a bigger dataset than Netscience dataset. PB: A network of US political blogs with 1222 nodes and 16714 edges. Yeast: A protein-protein interaction network in yeast with 1458 nodes and 1948 edges. Cora: A dataset consists of 2708 scientific publications classified into one of seven classes. The citation network consists of 5278 links. Citeseer: A dataset contains 3264 scientific publications grouped into one of six categories consisting of 4536 links.
The basic statistics of these networks are provided in Table 7. In Table 8, additional experiments show that the weighted schemes generally outperform their unweighted counter-
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| N | 500 | 500 | 1000 | 1000 | 2000 | 2000 | 500 | 500 | 1000 | 1000 | 2000 | 2000 |
| R | 8 | 10 | 10 | 12 | 10 | 12 | 10 | 8 | 12 | 10 | 12 | 10 |
| α | 0.8 | 1 | 0.8 | 1 | 1 | 1.2 | 0.8 | 1 | 0.8 | 1 | 1 | 1.2 |
Table 7: Synthetic networks generated by HRG with different parameters.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CN | -0.8996 | -0.5340 | -0.8043 | -0.4279 | -0.7079 | -0.3329 | -0.6933 | -0.7930 | -0.5553 | -0.5922 | -0.4346 | -0.5463 |
| AA | -0.9070 | -0.5358 | -0.8172 | -0.4286 | -0.7124 | -0.3331 | -0.7036 | -0.8060 | -0.5587 | -0.5977 | -0.4357 | -0.5473 |
| RA | -0.9098 | -0.5360 | -0.8217 | -0.4286 | -0.7137 | -0.3331 | -0.7057 | -0.8121 | -0.5588 | -0.5985 | -0.4357 | -0.5474 |
| GD | 0.6990 | 0.5865 | 0.7010 | 0.5741 | 0.6957 | 0.4608 | 0.6089 | 0.6588 | 0.5670 | 0.5919 | 0.5136 | 0.6136 |
| HGD | 0.9704 | 0.8396 | 0.9533 | 0.7959 | 0.9553 | 0.8102 | 0.9001 | 0.9517 | 0.8717 | 0.9240 | 0.8703 | 0.9426 |
| 3-hop | -0.9058 | -0.6054 | -0.8644 | -0.5405 | -0.8267 | -0.4814 | -0.7425 | -0.8562 | -0.6612 | -0.6729 | -0.5526 | -0.6919 |
| 3-hop* | -0.9580 | -0.6481 | -0.9263 | -0.5614 | -0.8736 | -0.4891 | -0.8446 | -0.9178 | -0.7321 | -0.7435 | -0.5881 | -0.7291 |
| 4-hop | -0.8403 | -0.6046 | -0.8118 | -0.5668 | -0.8110 | -0.5024 | -0.6827 | -0.7989 | -0.6274 | -0.6552 | -0.5567 | -0.7006 |
| 4-hop* | -0.9618 | -0.6899 | -0.9383 | -0.6093 | -0.8946 | -0.5266 | -0.8686 | -0.9308 | -0.7837 | -0.7788 | -0.6306 | -0.7655 |
| katz-3 | -0.9252 | -0.6094 | -0.8723 | -0.5421 | -0.8267 | -0.4815 | -0.7558 | -0.8581 | -0.6632 | -0.6745 | -0.5530 | -0.6919 |
| katz*-3 | -0.9492 | -0.6455 | -0.9098 | -0.5619 | -0.8678 | -0.4890 | -0.8295 | -0.8993 | -0.7257 | -0.7369 | -0.5875 | -0.7286 |
| katz-4 | -0.9247 | -0.6200 | -0.8675 | -0.5718 | -0.8249 | -0.5027 | -0.7522 | -0.8539 | -0.6590 | -0.6769 | -0.5639 | -0.7029 |
| katz*-4 | -0.9540 | -0.6785 | -0.9194 | -0.6058 | -0.8805 | -0.5231 | -0.8452 | -0.9087 | -0.7571 | -0.7581 | -0.6217 | -0.7575 |
| katz | -0.9246 | -0.6137 | -0.8672 | -0.5806 | -0.8241 | -0.4776 | -0.7520 | -0.8538 | -0.6578 | -0.6763 | -0.5581 | -0.7017 |
| katz* | -0.9586 | -0.6976 | -0.9288 | -0.6442 | -0.8922 | -0.5362 | -0.8584 | -0.9181 | -0.7791 | -0.7757 | -0.6420 | -0.7716 |
Table 8: Spearman's correlation coefficient of indices in synthetic networks
parts, with a few exceptions. Notably, HGD consistently outperforms standard graph distance in most cases, except for the Cora dataset and the Citeseer dataset, where performance is nearly identical. These results support the effectiveness of our analysis and proposed modifications on real-world networks. Furthermore, we observe that incorporating longer-hop paths does not significantly enhance link prediction performance.
H EVALUATION METRICS: THE SPEARMAN CORRELATION COEFFICIENT AND AVERAGE PRECISION
H.1 SPEARMAN CORRELATION COEFFICIENT
As previously discussed, the link prediction task does not require an accurate estimation of the latent distance. Instead, a weaker ordinal relationship is sufficient for effective link prediction. To assess whether an index reflects the ordinal relation between distances, we can utilize the Spearman correlation coefficient. The Spearman correlation coefficient measures how well the relationship between two variables can be described using a monotonic function. It ranges from -1 to 1, with higher values indicating a stronger correlation. Intuitively, a high Spearman correlation suggests that the index and the true distance have a similar rank (a perfect rank match has correlation of 1), indicating that the index is well-suited for the link prediction task.
H.2 AVERAGE PRECISION
ROC curve (receiver operating characteristic curve) and PR curve (Precision-recall curve) are two widely common used metric for classification task. The ROC curve is typically used in balanced classification tasks, where the class distribution is relatively equal. However, in link prediction, the number of positive samples (missing edges) are far less than the number of negative samples(non-connected edges), resulting in a heavily imbalanced dataset. In contrast, the PR curve, which focuses on the trade-off between precision (the fraction of correctly predicted positive examples) and recall (the fraction of actual positive examples predicted correctly), provides a more accurate representation of the model's performance in this skewed scenario. precision-recall curve is a graph showing the performance of a classification model at all classification thresholds. This curve plots two parameters:
Precision
Recall
AUPR is a single number used to quantify the quality of a Precision-Recall curve. The area under precision-recall
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CN | 0.5430 | 0.3413 | 0.4950 | 0.2907 | 0.6286 | 0.4077 | 0.3578 | 0.5731 | 0.2914 | 0.4905 | 0.4149 | 0.6337 |
| AA | 0.6897 | 0.5273 | 0.6679 | 0.4818 | 0.7461 | 0.5774 | 0.5398 | 0.7003 | 0.5064 | 0.6471 | 0.5914 | 0.7442 |
| RA | 0.8041 | 0.5879 | 0.7596 | 0.5108 | 0.8141 | 0.6331 | 0.6303 | 0.7662 | 0.5611 | 0.7286 | 0.6528 | 0.8091 |
| GD | 0.0092 | 0.0162 | 0.0058 | 0.0189 | 0.0056 | 0.0210 | 0.0074 | 0.0133 | 0.0061 | 0.0123 | 0.0135 | 0.0067 |
| HGD | 0.6463 | 0.3652 | 0.5346 | 0.3053 | 0.4435 | 0.2914 | 0.4570 | 0.4659 | 0.3930 | 0.3846 | 0.3411 | 0.3627 |
| 3-hop | 0.3334 | 0.1779 | 0.2514 | 0.1442 | 0.2940 | 0.1823 | 0.1901 | 0.3128 | 0.1555 | 0.2479 | 0.1885 | 0.3056 |
| 3-hop* | 0.7186 | 0.4739 | 0.6922 | 0.3923 | 0.7312 | 0.5046 | 0.5441 | 0.6775 | 0.5072 | 0.6302 | 0.5494 | 0.7043 |
| 4-hop | 0.2507 | 0.1622 | 0.1681 | 0.1049 | 0.1643 | 0.1140 | 0.1410 | 0.2075 | 0.1188 | 0.1582 | 0.1113 | 0.1646 |
| 4-hop* | 0.6122 | 0.4869 | 0.6178 | 0.4215 | 0.6525 | 0.5034 | 0.5209 | 0.6138 | 0.4967 | 0.5887 | 0.5244 | 0.6279 |
| katz-3 | 0.5498 | 0.3508 | 0.5038 | 0.3031 | 0.6364 | 0.4110 | 0.3716 | 0.5842 | 0.3081 | 0.5007 | 0.4244 | 0.6404 |
| katz*-3 | 0.8068 | 0.5902 | 0.7632 | 0.5143 | 0.8141 | 0.6334 | 0.6334 | 0.7665 | 0.5732 | 0.7290 | 0.6532 | 0.8090 |
| katz-4 | 0.5492 | 0.3511 | 0.5036 | 0.3036 | 0.6361 | 0.4111 | 0.3716 | 0.5841 | 0.3080 | 0.5007 | 0.4245 | 0.6404 |
| katz*-4 | 0.8065 | 0.5896 | 0.7624 | 0.5139 | 0.8141 | 0.6334 | 0.6326 | 0.7665 | 0.5714 | 0.7290 | 0.6531 | 0.8090 |
| katz | 0.5491 | 0.3511 | 0.5036 | 0.3036 | 0.6361 | 0.4111 | 0.3716 | 0.5841 | 0.3080 | 0.5007 | 0.4245 | 0.6404 |
| katz* | 0.8065 | 0.5896 | 0.7619 | 0.5139 | 0.8141 | 0.6334 | 0.6322 | 0.7665 | 0.5709 | 0.7290 | 0.6531 | 0.8090 |
Table 9: AP (average precision) score of indices in synthetic networks.
| |V| | E | k | C | D | |
|---|---|---|---|---|---|
| Karate | 34 | 78 | 4.588 | 0.571 | 2.408 |
| Dolphin | 62 | 159 | 5.129 | 0.259 | 3.357 |
| USair97 | 332 | 2126 | 12.807 | 0.625 | 2.738 |
| Netscience | 379 | 914 | 4.823 | 0.741 | 6.042 |
| C.elegans | 454 | 2040 | 8.986 | 0.645 | 2.660 |
| Harvard | 1446 | 59589 | 82.419 | 0.323 | 2.228 |
| PB | 1222 | 16717 | 27.360 | 0.3202 | 2.737 |
| NS | 1589 | 2742 | 3.451 | 0.6377 | 6.042 |
| Yeast | 1458 | 1948 | 2.672 | 0.0708 | 6.812 |
| Cora | 2708 | 5278 | 3.898 | 0.240 | 6.311 |
| Citeseer | 3264 | 4536 | 2.779 | 0.144 | 9.310 |
Table 10: Properties of the real networks. |V| and |E| are the total numbers of nodes and edges of the networks. represents the average degree, C, the clustering coefficient, and D, the average path length.
curve (AUPR) is then:
There are multiply ways to approximate AUPR. J.Davis and M.Goadrich [Davis and Goadrich, 2006] pointed out that using trapezoid rule to approximate AUPR may cause overly optimistic result, a more reasonable approximation is to calculate average precision :
where and are the precision and recall at the th threshold. The average precision can be think as a weighted mean of the precisions achieved at each threshold. AP ranges between 0 and 1, with a higher value indicating better performance of the predictor.
I GRAPH EMBEDDING WITH H-MDS
In this section, we take h-MDS, a hyperbolic variant of multidimensional scaling, as an example, replacing its graph distance with HGD to demonstrate improved mean average precision (MAP) on tree-structured datasets.
I.1 BACKGROUND
The hyperboloid model, commonly known as the Minkowski model, is isometric to the Poincaré model. In this model, -dimensional points are mapped onto the two-sheeted hyperboloid in -dimensional Minkowski space. This model embeds hyperbolic space isometrically into Minkowski space, allowing the hyperbolic distance to be derived from the underlying Minkowski space. This is analogous to deriving spherical distances from Euclidean distances in the case of an -sphere embedded in -dimensional Euclidean space.
Let and be two vectors in , then the Minkowski bilinear form is defined as:
Sometimes the above bilinear form is called Lorenz inner product. Note that unlike Euclidean dot product, the bilinear form is not positive definite, i.e. there exist a vector , such that . Actually, the -dimensional hyperboloid is defined as a collection of such points:
The distance between two points on the hyperboloid can be calculated by:
| Karate | Dolphin | USair97 | Netscience | C.elegans | Harvard | PB | NS | Yeast | Cora | Citeseer | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| CN | 0.1122 | 0.0949 | 0.3363 | 0.3218 | 0.0663 | 0.1111 | 0.0931 | 0.4257 | 0.0039 | 0.0131 | 0.0086 |
| AA | 0.1349 | 0.1170 | 0.3728 | 0.5641 | 0.1312 | 0.1227 | 0.0920 | 0.6761 | 0.0059 | 0.0229 | 0.0137 |
| RA | 0.1317 | 0.1011 | 0.4244 | 0.5905 | 0.1756 | 0.0754 | 0.6978 | 0.0055 | 0.0216 | 0.0128 | |
| GD | 0.0209 | 0.0238 | 0.0109 | 0.0310 | 0.0052 | 0.0087 | 0.0060 | 0.0591 | 0.0008 | 0.0037 | 0.0046 |
| HGD | 0.1269 | 0.0355 | 0.3225 | 0.0865 | 0.0655 | 0.0267 | 0.0325 | 0.1001 | 0.0011 | 0.0028 | 0.0045 |
| 3-hop | 0.0883 | 0.0397 | 0.3287 | 0.1279 | 0.0821 | 0.0559 | 0.2611 | 0.0059 | 0.0082 | 0.0162 | |
| 3-hop* | 0.0582 | 0.4164 | 0.3624 | 0.1243 | 0.0837 | 0.1020 | 0.4990 | 0.0248 | |||
| 4-hop | 0.1129 | 0.0697 | 0.3071 | 0.1054 | 0.0577 | 0.0442 | 0.0944 | 0.2164 | 0.0021 | 0.0074 | 0.0062 |
| 4-hop* | 0.1444 | 0.1126 | 0.3836 | 0.5135 | 0.1200 | 0.0617 | 0.0743 | 0.6444 | 0.0050 | 0.0243 | 0.0145 |
| katz-3 | 0.1583 | 0.1143 | 0.3476 | 0.3288 | 0.0869 | 0.1069 | 0.4293 | 0.0070 | 0.0185 | 0.0177 | |
| katz*-3 | 0.1523 | 0.1092 | 0.5980 | 0.0844 | 0.7049 | 0.0076 | 0.0273 | 0.0185 | |||
| katz-4 | 0.1513 | 0.3470 | 0.3287 | 0.0786 | 0.1060 | 0.1007 | 0.4276 | 0.0070 | 0.0184 | 0.0128 | |
| katz*-4 | 0.1541 | 0.1105 | 0.4412 | 0.1767 | 0.0837 | 0.7066 | 0.0072 | 0.0276 | 0.0185 | ||
| katz | 0.1513 | 0.3470 | 0.3287 | 0.0782 | 0.1058 | 0.0993 | 0.4275 | 0.0070 | 0.0185 | 0.0139 | |
| katz* | 0.1514 | 0.1143 | 0.4363 | 0.1766 | 0.0836 | 0.0074 | 0.0194 |
Table 11: AP (average precision) score of indices in real networks
for any .
Suppose there are points . We can compute the scaled distance matrix such as:
where . Define and . Then we can write in matrix form as
Without loss of generality, we can suppose that , which is defined as pseudo-Euclidean mean in [Sala et al., 2018].
This implies that is an eigenvector of with positive eigenvalue, and the rest of 's eigenvalues are negative whose corresponding eigenvectors is . Therefore by eigendecomposition of we can recover up to rotation; See algorithm 1 for details. Note that the original algorithm uses standard graph distance to calculate the distance matrix.
Algorithm 1 h-MDS
1: Input: Distance matrix and rank 2: Compute scaled distance matrix 3: Eigenvalue decomposition 4: Project from hyperboloid model to Poincaré model: 5: If desired, center at a different mean 6: Return
I.2 METRIC AND EXPERIMENTS
We use a widely used metric, mean average precision (MAP) to measure the performance of embedding, in terms of preserving local similarity. For a graph , let have neighborhood . In the embedding , consider the points closest to , and define to be the smallest set of such points that contains ( is the smallest set of nearest points required to include the th neighbor of in ). Then the MAP is defined as:
The tree-structured datasets used include: a small and fully-balanced tree consisting of 40 nodes; a phylogenetic tree consisting of 344 nodes[Sanderson et al., 1994][Hofbauer et al., 2016]; a CS-PhD graph of the relations between advisors and PhD students consisting of 1025 nodes[Nooy et al., 2011]; A transitive closure of the WordNet mammals subset, consisting of 2250 nodes.
Table 3 in the main paper shows that incorporating HGD into graph embedding methods can improve the performance of embedding representations in hierarchical datasets.
References
MA Abdullah, M Bode, and N Fountoulakis. Typical distances in a geometric model for complex networks. Preprint. ArXiv version: https://arxiv.org/abs/1506.7811, 2015.
Lada A Adamic and Eytan Adar. Friends and neighbors on the web. Social networks, 25(3):211–230, 2003.
Ery Arias-Castro, Antoine Channarond, Bruno Pelletier, and Nicolas Verzelen. On the estimation of latent distances using graph distances. Electronic Journal of Statistics, 15(1), 2021.
Furqan Aziz, Haji Gul, Irfan Uddin, and Georgios V Gkoutos. Path-based extensions of local link prediction methods for complex networks. Scientific reports, 10(1): 19848, 2020.
Albert-Laszlo Barabási, Hawoong Jeong, Zoltan Néda, Erzsebet Ravasz, Andras Schubert, and Tamas Vicsek. Evolution of the social network of scientific collaborations. Physica A: Statistical mechanics and its applications, 311(3-4):590–614, 2002.
Mikhail Belkin and Partha Niyogi. Laplacian eigenmaps and spectral techniques for embedding and clustering. Advances in neural information processing systems, 14, 2001.
Thomas Bläsius, Tobias Friedrich, and Anton Krohmer. Hyperbolic random graphs: Separators and treewidth. In 24th Annual European Symposium on Algorithms (ESA 2016). Schloss-Dagstuhl-Leibniz Zentrum für Informatik, 2016.
Thomas Bläsius, Cedric Freiberger, Tobias Friedrich, Maximilian Katzmann, Felix Montenegro-Retana, and Marianne Thieffry. Efficient shortest paths in scale-free networks with underlying hyperbolic geometry. arXiv preprint arXiv:1805.03253, 2018a.
Thomas Bläsius, Tobias Friedrich, Anton Krohmer, and Sören Laue. Efficient embedding of scale-free graphs in the hyperbolic plane. IEEE/ACM transactions on Networking, 26(2):920–933, 2018b.
Michel Bode, Nikolaos Fountoulakis, and Tobias Müller. On the giant component of random hyperbolic graphs. In The Seventh European Conference on Combinatorics, Graph Theory and Applications: EuroComb 2013, pages 425–429. Springer, 2013.
Marián Boguná and Romualdo Pastor-Satorras. Class of correlated random networks with hidden variables. Physical Review E, 68(3):036112, 2003.
Marián Boguná, Fragkiskos Papadopoulos, and Dmitri Krioukov. Sustaining the internet with hyperbolic mapping. Nature communications, 1:62, 2010.
Jesse Davis and Mark Goadrich. The relationship between precision-recall and roc curves. In Proceedings of the 23rd international conference on Machine learning, pages 233–240, 2006.
Tobias Friedrich and Anton Krohmer. Cliques in hyperbolic random graphs. In 2015 IEEE Conference on Computer Communications (INFOCOM), pages 1544–1552. IEEE, 2015.
Tobias Friedrich and Anton Krohmer. On the diameter of hyperbolic random graphs. SIAM Journal on Discrete Mathematics, 32(2):1314–1334, 2018.
Luca Gugelmann, Konstantinos Panagiotou, and Ueli Peter. Random hyperbolic graphs: degree sequence and clustering. In Automata, Languages, and Programming: 39th International Colloquium, ICALP 2012, Warwick, UK, July 9-13, 2012, Proceedings, Part II 39, pages 573–585. Springer, 2012.
Wolfgang Karl Hofbauer, Laura Lowe Forrest, Peter M Hollingsworth, and Michelle L Hart. Preliminary insights from dna barcoding into the diversity of mosses colonising modern building surfaces. Bryophyte Diversity and Evolution, 38(1):1–22, 2016.
Peter D Hoff, Adrian E Raftery, and Mark S Handcock. Latent space approaches to social network analysis. Journal of the American Statistical Association, 97(460):1090–1098, 2002.
Leo Katz. A new status index derived from sociometric analysis. Psychometrika, 18(1):39–43, 1953.
Maksim Kitsak, Ivan Voitalov, and Dmitri Krioukov. Link prediction with hyperbolic geometry. Physical Review Research, 2(4):043113, 2020.
Marcos Kiwi and Dieter Mitsche. A bound for the diameter of random hyperbolic graphs. In 2015 Proceedings of the Twelfth Workshop on Analytic Algorithms and Combinatorics (ANALCO), pages 26–39. SIAM, 2014.
István A Kovács, Katja Luck, Kerstin Spirohn, Yang Wang, Carl Pollis, Sadie Schlabach, Wenting Bian, Dae-Kyum Kim, Nishka Kishore, Tong Hao, et al. Network-based prediction of protein interactions. Nature communications, 10(1):1240, 2019.
Dmitri Krioukov, Fragkiskos Papadopoulos, Maksim Kitsak, Amin Vahdat, and Marián Boguná. Hyperbolic geometry of complex networks. Physical Review E, 82(3):036106, 2010.
David Liben-Nowell and Jon Kleinberg. The link prediction problem for social networks. In Proceedings of the twelfth international conference on Information and knowledge management, pages 556–559, 2003.
Linyuan Lü and Tao Zhou. Link prediction in complex networks: A survey. Physica A: statistical mechanics and its applications, 390(6):1150–1170, 2011.
Linyuan Lü, Ci-Hang Jin, and Tao Zhou. Similarity index based on local paths for link prediction of complex networks. Physical Review E, 80(4):046122, 2009.
Miller McPherson, Lynn Smith-Lovin, and James M Cook. Birds of a feather: Homophily in social networks. Annual review of sociology, 27(1):415–444, 2001.
Mark EJ Newman. Clustering and preferential attachment in growing networks. Physical review E, 64(2):025102, 2001.
Maximillian Nickel and Douwe Kiela. Poincaré embeddings for learning hierarchical representations. In Advances in neural information processing systems, pages 6338–6347, 2017.
Wouter de Nooy, Andrej Mrvar, and Vladimir Batagelj. Exploratory social network analysis with Pajek. Cambridge University Press, 2011.
Ying Pan, De-Hua Li, Jian-Guo Liu, and Jing-Zhang Liang. Detecting community structure in complex networks via node similarity. Physica A: Statistical Mechanics and its Applications, 389(14):2849–2857, 2010.
Fragkiskos Papadopoulos, Maksim Kitsak, M Ángeles Serrano, Marián Boguná, and Dmitri Krioukov. Popularity versus similarity in growing networks. Nature, 489(7417): 537, 2012.
Frederic Sala, Chris De Sa, Albert Gu, and Christopher Ré. Representation tradeoffs for hyperbolic embeddings. In International conference on machine learning, pages 4460–4469. PMLR, 2018.
Michael J Sanderson, Michael J Donoghue, W Piel, and Torsten Eriksson. Treebase: a prototype database of phylogenetic analyses and an interactive tool for browsing the phylogeny of life. American Journal of Botany, 81(6):183, 1994.
Purnamrita Sarkar, Deepayan Chakrabarti, and Andrew W Moore. Theoretical justification of popular link prediction heuristics. In IJCAI proceedings-international joint conference on artificial intelligence, volume 22, page 2722, 2011.
Atsushi Suzuki, Jing Wang, Feng Tian, Atsushi Nitanda, and Kenji Yamanishi. Hyperbolic ordinal embedding. In Asian Conference on Machine Learning, pages 1065–1080. PMLR, 2019.
Joshua B Tenenbaum, Vin de Silva, and John C Langford. A global geometric framework for nonlinear dimensionality reduction. science, 290(5500):2319–2323, 2000.
Hanghang Tong, Christos Faloutsos, and Jia-Yu Pan. Fast random walk with restart and its applications. In Sixth international conference on data mining (ICDM'06), pages 613–622. IEEE, 2006.
Muhan Zhang, Pan Li, Yinglong Xia, Kai Wang, and Long Jin. Labeling trick: A theory of using graph neural networks for multi-node representation learning. Advances in Neural Information Processing Systems, 34: 9061–9073, 2021.
Tao Zhou, Linyuan Lü, and Yi-Cheng Zhang. Predicting missing links via local information. The European Physical Journal B, 71:623–630, 2009.