Hostname: page-component-5db58dd55d-bthnr Total loading time: 0 Render date: 2026-07-04T20:17:33.451Z Has data issue: false hasContentIssue false

Spherical latent space models for social networks: Geometry-aware inference and comparison across latent geometries

Published online by Cambridge University Press:  15 June 2026

Carlos Nosa
Affiliation:
Facultad de Ciencias, Universidad Nacional de Colombia, Bogotá, Colombia
Juan Sosa*
Affiliation:
Facultad de Ciencias, Universidad Nacional de Colombia, Bogotá, Colombia
*
Corresponding author: Juan Sosa; Email: jcsosam@unal.edu.co
Rights & Permissions [Opens in a new window]

Abstract

This article studies latent space models for social network data in which actors are embedded on a hypersphere and link probabilities depend on angular similarity. In contrast to Euclidean embeddings, the spherical formulation provides a compact parameter space, stabilizes the linear predictor through bounded inner products, and offers a natural representation of directional and cyclic structure. For inference, we combine maximum likelihood estimation, used to obtain initial values for latent positions and model parameters, with geometry-aware Bayesian methods based on Metropolis–Hastings and Hamiltonian Monte Carlo algorithms, including a geodesic Hamiltonian scheme for manifold-constrained parameters. We conduct a systematic empirical comparison between Euclidean and spherical latent space models on a benchmark social network dataset, evaluating model fit, predictive performance, and interpretability. The results show that spherical representations provide competitive performance while offering a more constrained and geometrically interpretable structure. Overall, the paper clarifies the role of latent space geometry in network modeling and highlights the importance of geometry-aware inference in statistical analysis of relational data.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Algorithm 1 Gradient ascent with Armijo backtracking line search for maximum likelihood estimation in latent space models

Figure 1

Figure 1. Directed acyclic graphs (DAGs) for the latent space models, where circles denote random variables or random vectors, squares indicate fixed parameters, and edges represent dependencies.

Figure 2

Algorithm 2 Metropolis–Hastings algorithm for latent space models

Figure 3

Algorithm 3 Hamiltonian Monte Carlo algorithm

Figure 4

Algorithm 4 Spherical Hamiltonian Monte Carlo algorithm

Figure 5

Figure 2. Visualization of the marriage network among Florentine families.

Figure 6

Figure 3. Likelihood traces for latent position model parameters in $\mathbb{R}^3$ and $\mathbb{S}^2$ for the Florentine families example, obtained using Metropolis and Hamiltonian based sampling algorithms.

Figure 7

Table 1. Comparison of MH, HMC, and GHMC for the Florentine families latent space model in $\mathbb{R}^3$ and $\mathbb{S}^2$

Figure 8

Figure 4. Log-likelihood trajectories for all models obtained during MCMC sampling.

Figure 9

Table 2. Model comparison metrics for each latent space specification. The mean log-likelihood is averaged over posterior samples, while ML, MAP, and CM denote the log-likelihood evaluated at the maximum likelihood estimate, the maximum a posteriori estimate, and the posterior mean, respectively

Figure 10

Figure 5. Latent space representations for $\mathbb{R}^1$ and $\mathbb{S}^1$ models, showing each node’s posterior distribution and mean position, with edges indicating ties from the original network.

Figure 11

Table 3. Correlation between latent space centrality measures and node degree

Figure 12

Figure 6. Clustering across latent space representations, showing number of communities $K$ and modularity $M$.

Figure 13

Figure 7. Posterior predictive checks for all models using network-level statistics in the Florentine families example. Each plot shows model-based histograms with means (dashed line) and the observed value (black line), with the legend reporting the posterior predictive $p$-value for each model.

Figure 14

Figure 8. Receiver operating characteristic (ROC) curves for each model.

Figure 15

Table 4. Predictive performance metrics for each model

Figure 16

Table 5. Comparison of Metropolis–Hastings (MH) and Hamiltonian Monte Carlo (HMC) algorithms for sampling from the Rosenbrock distribution on $\mathbb{R}^2$ and $\mathbb{S}^1$

Figure 17

Figure 9. Comparison of sampling results for the rosenbrock distribution across different spaces and algorithms.

Supplementary material: File

Nosa and Sosa supplementary material

Nosa and Sosa supplementary material
Download Nosa and Sosa supplementary material(File)
File 5.7 KB