Out-of-sample extension of graph adjacency spectral embedding

Keith Levin, Farbod Roosta-Khorasani, Michael W. Mahoney, Carey E. Priebe

Graph embedding is a cornerstone of modern network analysis, mapping vertices into a low-dimensional Euclidean space where geometric distance reflects network topology. Adjacency Spectral Embedding (ASE) is a popular method that uses the top eigenvectors of the adjacency matrix to find these "latent positions."

However, graphs in the real world are dynamic. When a new user joins a social network or a new paper is added to a citation index, we need to find its coordinates in the existing embedding space. The naive approach is to re-run the entire spectral decomposition on the updated $(n+1) \times (n+1)$ matrix, but this is computationally prohibitive for large, fast-growing graphs.

This paper provides a rigorous theoretical foundation for adding new nodes to an existing graph embedding without recomputing the entire model from scratch. The authors propose two "out-of-sample" (OOS) extensions for ASE and prove that these approximations are asymptotically as accurate as re-running the full, expensive embedding process.

Proposed Methods

The authors propose and analyze two primary methods for OOS extension in the context of Random Dot Product Graphs (RDPG):

  1. Linear Least Squares (LLS) Extension: This treats the embedding as a regression problem. Given the existing embeddings $\hat{X}$ and the new node's connectivity vector $a$, we find the position $w$ that minimizes the squared error $\|a - \hat{X}w\|^2$. This is computationally very cheap, requiring only a matrix-vector product.
  2. Maximum Likelihood (ML) Extension: A more statistically "principled" approach that treats the edges as independent Bernoulli trials. It maximizes the likelihood of the observed edges to the new node, given the estimated positions of the existing nodes. This is more computationally intensive than LLS but remains much faster than a full re-embedding.

Key Theoretical Insights

The most significant theoretical contribution of the paper is the "Same Rate" Guarantee (established in Theorems 1 and 2). The authors prove that both the LLS and ML extensions recover the true latent position of the new vertex with an error rate of $O(n^{-1/2} \log n)$. Crucially, this is the same asymptotic error rate achieved by the full in-sample ASE. In other words, practitioners do not lose statistical "quality" by taking the OOS shortcut.

Furthermore, the authors prove a Central Limit Theorem (CLT) for the LLS extension (Theorem 3). This means the error in the OOS estimate isn't just small; it is normally distributed around the truth. This allows practitioners to potentially place confidence intervals around the estimated positions of new nodes.

Distribution of LLS OOS estimates as a function of graph size

Empirical Validation and Results

The paper relies on synthetic simulations to validate the theoretical results, specifically using RDPGs to prove core theorems and a two-block Stochastic Block Model (SBM) to demonstrate how OOS estimates behave in a community detection context.

Simulations show that even with a relatively small graph ($n=100$), the distribution of OOS estimates closely matches the predicted normal distribution. Through these experiments, the authors demonstrate an Efficiency Threshold: recomputing the full embedding only provides a noticeable accuracy benefit if you are adding a large number of new nodes simultaneously. For adding nodes one-by-one or in small batches, the OOS extension is nearly optimal.

From a computational standpoint, the LLS extension offers a massive advantage. It has a time complexity of $O(d^2 n)$, which is significantly faster than the $O(n^3)$ or $O(d n^2)$ required for full spectral decomposition.

Limitations and Future Work

While theoretically robust, the paper outlines several areas for future exploration:

  • Generalized RDPGs: The current work focuses on standard RDPGs, which are limited to positive semi-definite expected adjacency matrices. Extending this to "Generalized RDPGs" would allow for more complex graph structures, such as disassortative networks.
  • ML CLT Conjecture: While the authors prove a CLT for the Least Squares version, the CLT for the Maximum Likelihood version remains a conjecture (though it is supported by their simulations).
  • Inter-node Edges: The current OOS formulation primarily considers edges between the new node and the original set. It does not explicitly optimize for edges between multiple new nodes arriving at the same time.
  • Real-world Data: The paper is heavily theoretical. Testing these extensions on massive, noisy real-world datasets (like web crawls or biological networks) is the next logical step to prove practical utility.

Summary updated

BibTeX
@inproceedings{levin2018out,
  author = {Keith Levin and Farbod Roosta-Khorasani and Michael W. Mahoney and Carey E. Priebe},
  title = {{Out-of-sample extension of graph adjacency spectral embedding}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=rk-Wv2WuZr},
}
Figure