{'fraction_non_alphanumeric': 0.04320024953212726, 'fraction_numerical': 0.012814514452069038, 'mean_word_length': 4.483608893956671, 'pattern_counts': {'":': 0, '<': 2, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 13, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Low-dimensional statistical manifold embedding of directed graphs

We propose a novel node embedding of directed graphs to statistical manifolds, which is based on a global minimization of pairwise relative entropy and graph geodesics in a non-linear way. Each node is encoded with a probability density function over a measurable space. Furthermore, we analyze the connection between the geometrical properties of such embedding and their efficient learning procedure. Extensive experiments show that our proposed embedding is better in preserving the global geodesic information of graphs, as well as outperforming existing embedding models on directed graphs in a variety of evaluation metrics, in an unsupervised setting.


INTRODUCTION
In this publication, we study the directed graph embedding problem in an unsupervised learning setting. A graph embedding problem is usually defined as a problem of finding a vector representation X ∈ R K for every node of a graph G = (V, E) through a mapping φ : V → X. On every graph G = (V, E), defined with set of nodes V and set of edges E, the distance d G : V × V → R + between two vertices is defined as the number of edges connecting them in the shortest path, also called a graph geodesic. In case that X is equipped with a distance metric function d X : X × X → R + , we can quantify the embedding distortion by measuring the ratio d X / d G between pairs of corresponding embedded points and nodes. Alternatively, one can measure the quality of the mapping by using a similarity function between points. In contrast to distance, the similarity is usually a bounded value [0, 1] and is in some ad-hoc way connected to a notion of distance e.g. inverse of the distance. Usually, we are interested in a low-dimensional (K n) embedding of graphs with n nodes as it is always possible to find an embedding [32] with L ∞ norm with no distortion in an n-dimensional Euclidean space. Bourgain theorem (1985) [6] proved that it is possible to construct an O(log(n))-dimensional Euclidean embedding of an undirected graph with n nodes with finite distortion.
However, for directed graphs the asymmetry of graph shortest path distances is violating the symmetry assumption (not a metric function). This is the reason why only recently this problem was tackled by constructing two independent representations for each node (source and target representations) [39; 59; 27]. In this paper, we propose a single-node embedding for directed graphs to the space of probability distributions, described with the geometry of statistical manifold theory. Up to this point, different probability distributions were used for different embedding purposes such as: (i) applications to word embedding [45; 56], knowledge graphs [20], attributed graphs [4] or (ii) generalized point embeddings with elliptical distributions [36], but not for low-dimensional embedding of directed graphs, characterized by the theory of statistical manifolds.
The main contributions of this paper are: (i) We propose a node embedding for directed graphs to the elements of the statistical manifolds [51], to jointly capture asymmetric and infinite distances in a low-dimensional space. We determine the connection between geometry and gradient-based optimization. (ii) Furthermore, we develop a sampling-based scalable learning algorithm for largescale networks. (iii) Extensive experiments demonstrate that the proposed embedding outperforms several directed network embedding baselines, i.e. random walks based [59] and matrix factorization based [39] methods, as well as the deep learning undirected representative [40] and deep Gaussian embeddings for attributed graphs [4].

STATISTICAL MANIFOLD DIVERGENCE EMBEDDING FOR DIRECTED GRAPHS
In this section, we analyze the limits of metric embedding. Then, we continue by providing an intuition of our embedding with a synthetic example before presenting the learning procedure of the embedding method. Bourgain theorem (1985) [6] states that it is possible to construct an O(log(n))dimensional embedding (φ : v → x v ) of an undirected graph with n nodes to Euclidean space with O(log(n)) distortion by using random subset projection. But, on directed graph G = (V, E), the directed shortest paths are not necessarily symmetric d v,u = d u,v . This does not imply that it is not possible to provide low dimensional metric embedding [6; 32; 25; 12] with a variant of Bourgain theorem. In the appendix A.1, we show that the main problem is not asymmetry, but the existence of infinite directed distances, which is quite common in real directed networks, see Table 1.

LEARNING STATISTICAL MANIFOLD EMBEDDING
Instead of a conventional network embedding in a metric space, we propose to use the Kullback-Leibler divergence defined on probability distributions to capture asymmetric finite and infinite distances in directed graphs. Each node is mapped to a corresponding distribution described by some parameters, which we learn during training. In this paper, we choose the class of exponential power distributions due to analytical and computational merits. With minor modifications, our method can also be applied to other distribution classes.
Intuition. In Fig. 1, we use a toy example to qualitatively illustrate that our embedding can represent infinite distances without requiring a high dimensional embedding space. More precisely, the network consists of five groups (color-coded), with five nodes each. The two top blocks have a connection only to the center group and, similarly, the two bottom groups have only a link from the central group to them. Our model learns this connectivity pattern by embedding members of these groups in a similar fashion. In this example, each node u is embedded as a 2-variate normal distribution with mean µ u = (µ 1 u , µ 2 u ) and variances Σ u = diag(σ 1 u , σ 2 u ), which can be visualized by the σ-ellipse, the curve which represent one-σ distance from their respective means. The nodes of graphs are embedded by minimizing the difference between the pair-wise graph distances and corresponding Kullback-Leibler divergences between embeddings. For two distribution p(x), q(x), if p(x) q(x) on an open subset U , the Kullback-Leibler divergence KL(p(x), q(x)) is then relatively high. In other words, if in Figure 1 the σ-ellipse of node u is contained in or very similar to the σ-ellipse of node v, then the embedding represents d(u, v) < ∞. Using this, we see that the embedding retrieved by our optimization and visualized in Fig. 1 includes most of the observed infinite distances.
Statistical manifold embedding. Our embedding space X is the space of k-variate exponential power distributions [37] (also called generalized error distributions), described by the following probability density function for λ > 0 with mean vector µ ∈ R k and covariance matrix Σ ∈ R k×k . Γ(.) denotes the Gamma function and x T denotes the transposed vector of x. Note that λ = 2 results in the multivariate Gaussian distribution and λ = 1 yields the multivariate Laplacian distribution. As we are interested in non-degenerate distributions, we enforce positive definite co-variance matrices and further restrict ourselves to diagonal matrices, i.e. Σ u = diag(σ 1 u , . . . , σ k u ) with σ i u ∈ R + . With the latter, we reduce the degrees of freedom for each node to 2k and simplify our optimization by replacing a positive definite constraint on Σ u with the constraints σ i u > 0. A common asymmetric function operating on continuous random variables is the Kullback-Leibler divergence. The asymmetric distance between nodes u and v, denoted by KL u,v , is . We approximate it with importance sampling Monte Carlo estimation. In particular, KL u,v can be expressed as the expectation (for λ * = 2 ≤ λ) where p λ * u = ψ λ * (x|Σ u , µ u ) is easy to sample and a proposal function for p λ (x|Σ u , µ u ). If a closed expression for KL u,v is known, its evaluation replaces the importance sampling Monte Carlo estimation, like in the special case of λ = 2. See Appendix A.9 for more details. Now, in order to learn these statistical manifold embeddings, we can define the loss function over asymmetric distances D = (d u,v ) u,v∈V of a directed graph and {(µ u , Σ u )} u as: where τ ∈ R + is a free (trainable) parameter and β ∈ R + a fixed value. This loss function given in the Eq. (2) is minimized during the learning process so that the KL u,v based on learned node distribution representations captures the distances d u,v in the directed graph. Empirically, we transform the given distances into finite numbers with d −β u,v ∈ [0, 1], for all u = v and a β ∈ R + , which can be used to increase the differentiation between large d u,v values and between finite and infinite distances. We modify the unbounded Kullback-Leibler divergence in a similar fashion (1 + τ KL u,v ) −1 ∈ [0, 1], where τ ∈ R + is a free (trainable) parameter and the additional 1 ensures a value in the same interval [0, 1]. We start the optimization from random initial parameters {µ u , Σ u } u∈V , and iteratively minimize the loss function with stochastic gradient descent optimizers, such as Adam [28]. For small k, which we will consider in the next section, more enhanced initialization strategies, such as using graph plotting algorithms to determine the means and exploiting memberships of strongly connected components for the covariance initialization, probably reduce the number of training epochs.
Scalable learning procedure. The full objective function Eq. (2) consists of |V |(|V | − 1) terms and only graphs with up to the magnitude of around 10 4 nodes can be applied. To extend our method beyond this limit, we propose an approximated solution, where the size of the training data scales linearly in the number of nodes and thus can be applied to large graphs.
This approximation solution is based on a decomposition of the loss function Eq. (2) into a neighborhood term and a singularity term as: We efficiently sample from each of these sums for each node a small number of B samples and optimize our model based on the sampled information about closeness and infinite distances.
One straightforward approach to approximate the neighborhood term is to use all direct neighbors. Yet, the number of samples available via the directed neighbors is limited by |E|, which usually corresponds to a small B in sparse real-world examples. Therefore, we apply for each node a breadth-first-search into both directions until we retrieve B new samples. In this way, we obtain smaller d u,v first, and the approximation tends to the original term in the limit B → |V |.
For the singularity term, we use the topological sorting [26] of the strongly connected components. In a topological sorting of a directed acyclic graph, all edges are from lower indices to higher indices (with respect to the topological sorting).
Two important restrictions are noteworthy. First, the reverse statement does not hold, i.e. not all infinite distances are given via a single topological sorting [26]. As a consequence, we won't sample uniformly from all infinities, but from a subset of the infinities given by the topological sorting. Second, the construction of topological sorting is only possible for acyclic graphs, and most directed graphs have cycles.
Since we are only interested in sampling singularities and the graph defined by the strongly connected components of a directed graph is acyclic, we use Tarjan's algorithm [52] to retrieve the strongly connected components and topological sorting of them. After this preprocessing, we can efficiently generate samples of infinite distance for the nodes.
With these two approximations we can construct two sets U close and U ∞ and the loss function reduces toL See Appendix A.2 for proof using Johnson's algorithm [24] and the pseudo-code of our methods.
See the Appendix A.4 for more details and proofs.
The first observation of Theorem 1 is that the geometry of the statistical manifold has constant negative curvature (see [22; 48; 58] for detailed derivation). Negative curvature also comes as a natural model for power-law degree distributions in complex networks [29; 38]. In Fig. 3 of Appendix A.5 we exemplify the negative curvature of our embedding for the graph representations of Fig. 1 by making the isometric mapping (preserving distances) to the hyperbolic space. See the Appendix A.5 for the derivation of the used isometry. Since our representation space is not flat, the Riemannian metric is different from the Euclidean. Therefore, we need to adjust the Euclidean gradient ∇L of one of our objective functions L ∈ {L,L} with respect to the metric tensor [2]. The steepest descent direction is given by∇L = G −1 ∇L, where G −1 is the inverse of the metric tensor G of S n evaluated at the specific point. In other words, starting from the same representations and performing one step into the direction of∇L will always result in lower values of the loss function L than going into the direction of ∇L. In our experiments, we report the results using∇L. Further discussions and details can be found in Appendix A.8.
With the last property of our embedding space, the non-Euclidean Riemannian distance, is important for embedding based applications, like clustering. Note, that the value of c 3 is approximately close to the value 1.0 for different values of λ. It implies that after the embedding is done with one family of distributions, we can see that the pair-wise Riemannian distance of embedded points for different representations (λ) is scaling only by the multiplicative factor √ λ (see Appendix A.4 for more details). Also note another useful connection, the Hessian of KL divergence is the Fisher information metric g i,j . When the Fisher distance is small, we have KL p λ Furthermore, the Fisher information metric is unique (up to scaling) and is the only Riemannian metric on the statistical manifolds [9; 8]. Due to this fact and its connection with KL divergence, this is the reason why we have not used other divergence functions.

DATASETS
From the Koblenz Network Collection [30] we retrieved three datasets of different sizes and connectivity. See Table 1 for an overview.
Political blogs. The small dataset is compiled during the 2004 US election [1]. In addition, we evaluate two larger networks with different proportions of reachability between their nodes.
Cora. [50] consists of citations between computer science publications and was used as an example in baseline APP [59] and HOPE [39] as well.
Publication network. With a higher density but lower reciprocity, our largest example is the publication network given by arXiv's High Energy Physics Theory (hep-th) section [31].

BASELINES
APP is the asymmetric proximity preserving graph embedding method [59] based on the skip-gram model, which is used by many other methods like Node2Vec and DeepWalk. In contrast to the symmetric counterparts, APP explicitly splits the representation into a source vector and a target vector, which are updated in a direction-aware manner during the training with random walks with reset. Their method implicitly preserves the rooted PageRank score for any two vertices.
HOPE stands for High-Order Proximity preserved Embedding [39]. This method uses a generalization of the singular value decomposition to efficiently retrieve low-rank approximation of proximity measures like Katz Index or rooted PageRank.
DeepWalk is the deep learning representative of the undirected graph embedding methods. It does not differentiate between source and target and retrieves a single representation s u ∈ R K for each node. Like APP, DeepWalk uses the skip-gram model, trains the representation with random walks, and evaluates by cosine similarity between two node representations.
Graph2Gauss trains a neural network to output mean and variance of Gaussians in a way such that a ranking loss is minimized [5]. Their loss function concentrates on preserving the 1-hop and 2-hop neighborhood, but not the global graph structure (d u,v > 2). The method was designed for graphs with additional node feature data, and in the absence of such information, one-hot vector encoding should be used instead.

SET-UP
In this paper, we focus on directed network embedding, which preserves global properties of directed graphs. Considering this, our emphasis is different from the conventional evaluation tasks of network embedding, e.g. the link prediction task only evaluates the differentiation between d(u, v) = 1 and d(u, v) > 1, which respectively correspond to the case of link existence and not.
Evaluation metrics. Three evaluation metrics are used on the pairs of inverse true distances and approximated values derived by learned embedding from baselines and our methods. We use the Pearson correlation coefficient ρ for checking a linear dependency [47] and Spearman's rank correlation coefficient r for evaluating the monotonic relationship. In addition to these statistical measures, we propose to use an information-theoretic non-linear evaluation metric, i.e. mutual information (MI). We choose the non-parametric k-nearest-neighbor based MI estimator, LNC [13]. It is recently developed to overcome local non-uniformity and can capture relationships with limited data. We briefly describe the LNC MI here as: where N is the total number of data instances, the second term is a correction term handling non-uniform region V (n) surrounding point n, andp(.) represents the kNN density estimator.
Hyper-parameters. With the nonlinear interactions in our embedding, our method needs only a small number of dimensions, and for the presented results we used an embedding into a 2-variate normal distribution, i.e. k = 2 and the number of free parameters for each node is 4. The initial means µ u and co-variances Σ u are randomly initialized.
For the random walk based methods APP and DeepWalk, we unified both default settings with 20 random walks for each node and length 100. The embedding dimension was set to K = 4, where we allowed APP to use two 4 dimensional vectors. In the same fashion, we set the embedding dimension for HOPE to 4, resulting in two |V | × 4 matrices. All other parameters we left at the default value. For our proposed embedding, we evaluate both the exact and approximate version. For the approximate one, we report the results based on B = 10 and B = 100 samples for each node.
We executed the optimization with β ∈ 1 4 , 1 3 , 1 2 , 1 and consistently retrieved the best results for β = 1 2 . For our method, we selected from the runs the point with the highest Pearson correlation between d −1 u,v and (1 + τ KL u,v ) −1 , which usually coincided with the minimal observed objective function value, like in Figure 1. In the experiments, we applied Adam optimizer with learning rates in {.001, .01, .1} and retrieved the reported results with the .1 for political blogs and .001 for the others.
HOPE was executed with GNU Octave version 4.4.1, and the other methods were executed in Python 3.6.7 and Tensorflow on a server with 258 GB RAM and a NVIDIA Titan Xp GPU.

RESULTS
First, we compared the performance of the embedding using different λ, i.e. different classes of distributions. From the results in Appendix Table 3, we observe no significant performance improvement. So we fixed λ = 2 for the other experiments to have the performance gains of the analytical known KL divergence. Table 2 shows the results of evaluation metrics on different datasets. KL(·) and KL(full) refer to the approximate and exact version of our proposed embedding. We report the mean and standard deviation of MI by 40 bootstrap samples. For all metrics, the higher the value, the better the performance.
The results support this intuition that our method retrieves the highest values in all cases and significantly outperforms baselines. In addition, our approximated variant using only 10 neighbors and 10 infinities for each node already achieves higher values than baselines. Increasing the number of samples to 100, further enhances the performance of the approximate version, which even embeds the large network in a similar quality as our full method. A visualization of the results is given in Figure 2. Further details are in the Appendix A. 6. Additional experiments such as dimensionality experiment, graph reconstruction, and evaluation on undirected graph can be found in Appendix A.7. Table 2: Results including Pearson correlation coefficient ρ, Spearman's rank correlation coefficient r, and mutual information (MI). The p-value for ρ and r are in all cases below 10 −8 . For our method, we include the results with 10 samples, 100 samples for each node, and using the full distance matrix.

CONCLUSION AND DISCUSSION
Although the techniques for graph embedding are quite mature [16; 33; 10; 40; 14], there still exist obstacles for using them for directed graphs. Obstacle arises from the asymmetric property of graph geodesics and a large ratio of pairs with infinite distances. Motivated by this, we propose a mapping of nodes to the elements of the statistical manifolds [51] by minimizing the divergence function between embedded points a graph geodesics. This allows a single representation that allows elegant geometrical encoding of infinite and finite distances in low-dimensional statistical manifolds by using the divergence function. One can encode an arbitrary number of infinities into the low-dimensional space, as this embedding does not need to push point on infinite geodesic distance ,v ) u,v with boxplots, representing the means, first and third quartiles as well as 1.5 interquartile range. Violin plots indicate the kernel densities. Columns respectively correspond to dataset political blogs (first column), Cora (second column), and arXiv hep-th (last column). Rows from top to bottom represent APP, HOPE, DeepWalk, Graph2Gauss, and our KL method. Ideally, as the ground-truth value increases, approximated values are expected to follow this trend as well. The baseline methods show only a weak separation between the closest distances and all other. For our embedding method (last row) a monotonic increasing relation is visible, which was reflected in the highest mutual information, Pearson and Spearman's correlation coefficient in Table 2. on a manifold. Furthermore, this embedding allows the use of analytical tools from statistics and differential geometry, e.g. connection of curvature and natural gradient [2; 11; 48; 7]. In contrast to the previous work, we have characterized the geometrical structure of the underlying space to which nodes are being embedded into, and its connection to the learning via curvature corrected gradient. Furthermore, we have proposed an efficient divergence estimation method via importance sampling method. Theoretical understanding of the geometrical structures for directed graph embeddings opened many interesting theoretical and practical questions. This is the reason why we had to restrict the scope of this work only to unsupervised setting and leave link prediction and node classification task for future work.

A.1 LIMITS OF LOW-DIMENSIONAL METRIC REPRESENTATIONS
Definition 1. We define the following metric functiondu,v = min(du,v, dv,u).
The following Lemma can be viewed as the corollary of Bourgain theorem. It implies that distortion w.r.t. directed graph is is not finite when α = ∞. Note that the ∞-asymmetry is quite common in real directed networks, see Table 1.
If a graph is α-asymmetric, then there exists a metric representations that uses random subsets embedding (φ : v → xv) in m = log(n) dimensional space, such that for every pair (u, v) the following bounds: 16α hold, where ||.||1 denotes the L1 norm and E[.] is the expectation operator over random subsets.
Proof. Bourgain theorem (1985) [6] constructs an O(log(n))-dimensional embedding (φ : v → xv) of an undirected graph with n nodes to Euclidean space with O(log(n)) distortion by using random subset projection. Distortion is defined as the ratio D = max u,v∈V ||xu−xv || 1 /du,v min u,v∈V ||xu−xv || 1 /du,v , where du,v denotes the shortest path in a graph and ||xu − xv||1 the L1 distance between the embedded points. For directed graphs du,v is not symmetric and we propose to use the metricdu,v = min(du,v, dv,u) function, which fulfills the properties of non-negativity, symmetry and triangle inequality (proof omitted).
It is possible to construct m = log(n) random subsets Ai ⊆ V , where each node from V is put inside with the probability 1/2 i . The following embedding for node j can be constructed as xj = (d(j, A1), ...,d(j, Am)), whered(j, A1) denotes the distance from node j to set A1. Then, the following L1 bounds [34]   Proof. The embedding maps each node u to a k-variate normal distribution Nu with mean µu = (µ 1 u , . . . , µ k u ) and covariance Σu = diag(σ 1 u , . . . σ k u ), which are in total 2k|V | parameters. With the trainable τ in our objective function, we have in total 2k|V | + 1 degrees of freedom.
Johnson's algorithm [24] solves the problem of all pair shortest path length in O(|V | 2 log |V | + |V ||E|). The result are the |V | 2 distances, which are used in the full loss function.
For the scalable variant, we need to perform Tarjan's algorithm [52] one time, which has time complexity of O(|V | + |E|). This assigns every node its strongly connected component and at the same time returns a topological sorting of the strongly connected component. Using this, the sampling of infinities reduces to sampling from an array, which needs for B samples O(B). The neighborhood terms can be retrieved using a breadth-first search, which stops after finding B new samples. Under the assumption of B |V |, the total time complexity is O((B + 1)|V | + |E|). Finally, the approximated loss function uses two sums over each B|V | elements.

A.3 ALGORITHM
To clarify our two algorithms, we include the pseudo-code of the full algorithm (Algorithm 1) and the scalable variant (Algorithm 2). The main differences between Algorithm 2 and Algorithm 1 is the reduced amount of pre-processing needed and consequently the reduced amount of elements in the loss functionL. Lemma 1 gives the complexity for pre-processing and an optimization step.

Algorithm 1 Full algorithm
1: Pre-processing: Calculate all graph distances d u,v , for all u, v ∈ V 2: Initialization: Uniformly sample random values for distribution parameters µ u , Σ u for each node u ∈ V 3: Optimizing: Update µ u , Σ u , τ using Adam optimizer and loss function L Algorithm 2 Scalable algorithm Input: Graph G = (V, E) 1: Pre-processing: Calculate the strongly connected components and their topological sorting using Tarjans algorithm. Sample for each node u ∈ V up to B nodes v with d u,v = ∞. 2: Pre-processing: Perform for each node u a breadth-first-search for the successors and another for the predecessors to sample up to B nodes with d u,v < ∞ 3: Initialization: Uniformly sample random values for distribution parameters µ u , Σ u for each node u ∈ V 4: Optimizing: Update µ u , Σ u , τ using Adam optimizer and loss functionL A.4 PROOF OF THEOREM 1 Let us consider a surface S = {y (µ, σ) : (µ, σ) ∈ R × R+} of natural logarithms of PDFs of univariate exponential power distributions parameterized by their expectation and deviation, y (µ, σ) = ln f (x| (µ, σ)) = For given µ, σ, λ let X have an exponential power distribution with those parameters and define the inner product at (µ, σ) as y1|y2 (µ, σ) := E [ln (p1 (X|µ, σ)) · ln (p2 (X|µ, σ))]. Let us calculate the metric coefficients: We see that that for a = the metric tensor at (aµ, σ) is given by Similarly, for a multivariate exponential power distribution with parameters µ = (µ1, . . . , µ k ) , Σ = diag (σ1, . . . , σ k ) , λ, we get gF (aµ, Σ) = λ diag σ −2 1 , . . . , σ −2 k , σ −2 1 , . . . , σ −2 k , = λg H 2k (µ, Σ) so we get from which it follows that The detailed derivation of the curvature for the univariate case is given in [58], where the closed form solution for α-Gaussian curvature is given. In this paper, we are interested only in the case of α = 0 Gaussian curvature of the Riemannian metric, which leads to the −1/λ curvature.

A.5 DERIVATION OF MAPPING FROM GAUSSIAN STATISTICAL MANIFOLD TO HYPERBOLOID
To see how the points on the manifold relate to each other in terms of distance, we will map them to the upper half of a two-sheathed hyperboloid (see Figure 3) while preserving their distance up to a multiplicative constant factor.
To do this, we first map a point (µ, θ) to the Poincaré half-plane through the mapping (µ, θ) → µ/ √ 2, θ , which can be shown to be a similarity with the similarity coefficient √ 2 [7]. Then we isometrically map the Poincaré half-plane to the Poincaré disc by using the Cayley mapping [19]. We finish by mapping the Poincaré disc to the above-mentioned hyperboloid by using the inverse of the stereographic projection, which can be shown is also an isometry [49], where the distance of two points on the hyperboloid is the length of the curve which is an intersection of the hyperboloid and the plane passing through the origin and those two points. Note that the composition of these three maps is also a similarity with the similarity coefficient √ 2.
We have combined existing [7; 19; 49], well-known results about similarities, isometries and geodesics being mapped by those maps between the Gaussian stochastic manifold and various models for the hyperbolic geometry (Poincaré half-plane, Poincaré disc and a two-sheathed hyperboloid), using minor adjustments to suit our needs when necessary, to allow easy, direct visualisation of distances between the points on the stochastic manifold in the natural framework in which they were defined (hyperbolic geometry).
It is a well-know fact that the Cayley map (x, y) → x 2 +y 2 −1 is an isometry from the Poincaré half-plane to the Poincaré disc. It is also known that the stereographic projection of the upper half of the two-sheathed hyperboloid z 2 − x 2 − y 2 = 1 through the point (0, 0, −1) to the plane z = 0 is an isometry from the hyperboloid onto the Poincaré disc, so it's inverse, which can be computed to be is also an isometry. To obtain the inverse, we must find t such that the point t ((x, y, 0) − (0, 0, −1)) = (tx, ty, t) lies on the hyperboloid, i.e.
1−x 2 −y 2 since we're interested only in the upper sheath. From here, we read that the inverse of the stereographic projection is as stated above.
Finally, it can be shown that a similarity f : S1 → S2 maps a geodesic α on S1 to a curve f • α on S2 which can be reparameterized by arc length and such reparameterization f • α • ϕ is a geodesic on S2. If f has the similarity coefficient c, then it is easy to see that dS 1 (x, y) = cdS 2 (f (x) , f (y)) by using those two geodesics and the fact that geodesics are shortest lines between points they pass through.

A.6 FURTHER DETAILS OF EXPERIMENTS
For baseline HOPE, as input HOPE operates on any proximity measure S in the form S = M −1 g M l , we use HOPE with Mg = I the identity matrix and M l = ((1 − δu,v)(du,v +ε) −1 )u,v the matrix of element-wise inverse distances shifted by a small ε = 10 −6 to avoid division by zero.
The output of HOPE are two matrices U s ∈ R |V |×K , U t ∈ R K×|V | and the approximated values are calculated via U s · U t .
The initial means µ i u are drawn uniformly from [0, 10] and the initial co-variances σ i u are drawn uniformly from [4,7]. As initial value of τ we selected 2.5.  (2) and then making the mappings to the hyperboloid model. Table 3: Results of the exponential power distributions for λ ∈ {2, 4, 8} and 100 samples evaluated with Pearson correlation coefficient ρ, Spearman's rank correlation coefficient r and mutual information (MI). ρ and r were evaluated on all edges (u, v) with u = v using the values given by each method and the ground truth distance. The p-value for ρ and r are in all cases below 10 −8 .
Network For our full method, we used no batching for the political blogs network, 410 batches for Cora and 2777 batches for arXiv hep-th with and without shuffling between each epoch, where we saw an increased performance with shuffling especially for the larger datasets. The approximated approach uses no batch for the variant with B = 10 and 10 batches for B = 100.

A.7 FURTHER EVALUATION EXPERIMENTS
In this section, we report further results of experiments with different hyperparameters, another baseline for political blogs as well as the down-stream task graph reconstruction and experiments on an undirected graph.
First, we want to verify different hyperparameters of our method. Table 3 shows the results for different exponential power distributions, i.e. λ ∈ {2, 4, 8}. The results were calculated using the proposed importance sampling, see Appendix A.9 for more details. Since for higher λ the evaluation measures do not increase significantly, we have fixed λ = 2 for the other experiments, due to the analytical KL divergence in that case.
Another hyperparameter is the embedding dimension, which translates to selecting of k-variate exponential power distributions. Table 4 reports the results for k ∈ {2, 5, 10, 50}. Up to the value k = 10 all values increase, whereby in particular the mutual information registers the strongest increase. A further increase of the dimension to k=50 does not seem to bring any further advantage. Since the focus of this publication is on low-dimensional embeddings, we have set k = 2. Table 4: Results of the k-variate exponential power distributions for k ∈ {2, 5, 10, 50} of KL (full) evaluated with Pearson correlation coefficient ρ, Spearman's rank correlation coefficient r and mutual information (MI). ρ and r were evaluated on all edges (u, v) with u = v using the values given by each method and the ground truth distance. The p-value for ρ and r are in all cases below 10 −8 .
Network  For the political blogs network, we have evaluated as an additional baseline the elliptical embedding [36]. The work [36] of Muzellec et al. studies the problem of embedding objects as elliptical probability distributions, which are the generalization of Gaussian multivariate densities. Their work is rooted in the optimal transport theory by using the Wasserstein distance. The physical interpretation of this distance in the case of optimal transport is given by the cost of moving mass from one distribution to another one (see Monge-Kantorovich transportation problem [41]). In particular, for univariate Gaussian distributions, the Wasserstein distance between embedded points becomes the two-dimensional Euclidean distance of (µ1, σ1) and (µ2, σ2), i.e. flat geometry. In our case, the geometry of univariate Gaussians has constant negative curvature, and distance is measured with the Fisher distance. Our work is rooted in statistical manifold theory, where the Fisher distances arise from measuring the distinguishability between different distributions. According to the results in Table 5, we observe that this method is not outperforming our method.
Our method was created with the motivation to embed directed graphs. However, we also evaluated the performance on an undirected example. We have selected Hamsterster [18] from the Koblenz Network Collection [30]. With 2 426 nodes and 16 631 edges this friendship network has a medium size. The results in Table 6 show that even in this scenario our full method outperforms the others. Our intuition to these results is the following: Although KL divergence is an asymmetric function, in special cases it can also become symmetric. E.g. in the case of two Gaussian distributions with equal standard deviations, the KL divergence is symmetric. This demonstrates the generality of representation. Note that we did not set the additional equality constraint on the standard deviation parameters in the learning phase for this experiment. However, this only works, if all data is available and thus our approximation method does not generalize in a similar quality as seen before from the training samples to the full data set in the undirected case.
As last additional experiment, we have verified the performance of our method on the down-stream task graph reconstruction. In particular, for every node u with outdegree θu, we retrieve the θu best candidate successors N out θu (u) from each embedding and compare them to the direct successors of node u. To assess the performance, precision is computed Precision out = u N out θu (u) ∩ Successors(u) |E| .   Figure 4: Relative effect of correction∇L in comparison to ∇L. Starting from the same representation, we optimized with gradient descent optimization with∇L and ∇L with learning rate 1 * 10 −6 . Then the relative improvement ∆ ∇L L−∆∇ L L ∆ ∇L L was calculated and averaged over 1000 random initialization, where ∆ ∇L L is the value of our loss function after applying gradient descent with gradient ∇L. For this experimented we generated directed random networks with the Erdős-Rényi model for p = .15 and n ∈ {50, 100, 250, 500, 750, 1000}. This tells us the ratio of actual neighboring links the embedding can extract. The same is done for incoming links, using the in-degree of each node. This kind of task was previously used in several papers that study graph embeddings e.g. [54] and [27]. Table 7 shows the resulting in-and out-precisions for the political blogs network. Although, on average, our method (KL) is performing well, it was not designed to encode only the local neighborhood but rather the whole spectrum of finite and infinite distances. Our representation is designed for preserving the global geodesic information of directed graphs in an unsupervised setting. To excel at other supervised tasks, one would have to modify the loss function to include additional terms more suitable for that down-streaming task.

A.8 CORRECTION OF EUCLIDEAN GRADIENT
In section 3, we have deduced that the steepest direction is given by∇L = G −1 ∇L. In other words, in each step of our optimization, we need to correct [2] the Euclidean gradient by the inverse of Fisher information matrix at the respective point. To be more specific, to update the representation of a node with σ 1 , . . . σ k , µ 1 , . . . , µ k we apply∇ where c1 and c2 are the constants from Theorem 1. As we can see in Figure 4, the relative improvement of the corrected gradient decreases with the network size.