Abstract
Many popular dimensionality reduction procedures have out-of-sample extensions, which allow a practitioner to apply a learned embedding to observations not seen in the initial training sample. In this work, we consider the problem of obtaining an out-of-sample extension for the adjacency spectral embedding, a procedure for embedding the vertices of a graph into Euclidean space. We present two different approaches to this problem, one based on a least-squares objective and the other based on a maximum-likelihood formulation. We show that if the graph of interest is drawn according to a certain latent position model called a random dot product graph, then both of these out-of-sample extensions estimate the true latent position of the out-of-sample vertex with the same error rate. Further, we prove a central limit theorem for the least-squares-based extension, showing that the estimate is asymptotically normal about the truth in the large-graph limit.
Introduction
Graph embedding techniques, particularly Adjacency Spectral Embedding (ASE), have become essential for transforming high-dimensional relational data into low-dimensional Euclidean representations. These embeddings facilitate downstream tasks such as vertex classification, community detection, and link prediction. However, a significant limitation of ASE is its transductive nature: the embedding is typically defined only for the vertices present during the initial computation. In dynamic networks where new users or nodes frequently join, the standard approach requires re-calculating the spectral decomposition for the entire augmented graph—a process that is computationally prohibitive for large-scale networks.
This paper addresses the "out-of-sample" (OOS) extension problem: how to efficiently estimate the latent position of a new vertex $v$ given its connections to an existing set of embedded vertices, without re-processing the entire graph.
The Random Dot Product Graph Framework
The authors frame their analysis within the context of Random Dot Product Graphs (RDPGs). In an RDPG, each vertex $i$ is associated with a latent position $x_i \in \mathbb{R}^d$. The probability of an edge existing between vertex $i$ and vertex $j$ is defined by the dot product of their latent positions: $P(A_{ij} = 1) = x_i^T x_j$.
Given an adjacency matrix $A$ for $n$ vertices, ASE estimates these latent positions by performing an eigendecomposition of $A$. The OOS problem then considers a new vertex $n+1$ with an adjacency vector $\vec{a}$ representing its edges to the original $n$ vertices.
Proposed Out-of-Sample Extensions
The researchers propose and analyze two distinct methods for OOS extension:
1. Linear Least Squares (LLS)
The LLS approach treats the OOS extension as a linear regression problem. Given the existing embedding matrix $\hat{X} \in \mathbb{R}^{n \times d}$ and the new adjacency vector $\vec{a} \in \{0, 1\}^n$, the objective is to find a vector $w$ that minimizes the squared error: $$\min_w \| \vec{a} - \hat{X}w \|^2$$ This method is computationally efficient, with a complexity of $O(d^2 n)$, making it highly suitable for real-time applications in large networks.
2. Maximum Likelihood (ML)
The ML approach is a more statistically rigorous formulation. It treats the edges of the new vertex as independent Bernoulli trials. The goal is to find the latent position $w$ that maximizes the log-likelihood of the observed edges $\vec{a}$ under the RDPG model. While theoretically appealing, this requires solving a constrained optimization problem, which is more computationally demanding than the LLS closed-form solution.
Theoretical Results
The core contribution of this work is the theoretical justification for these OOS methods.
Asymptotic Equivalence
The authors prove (Theorems 1 and 2) that both the LLS and ML extensions are "asymptotically equivalent" to the full in-sample embedding. Specifically, both methods estimate the true latent position of the out-of-sample vertex with an error rate of $O(n^{-1/2} \log n)$. This implies that for large graphs, the computational savings of OOS methods do not come at the cost of statistical accuracy compared to a full re-embedding.
Central Limit Theorem
The paper provides a Central Limit Theorem (Theorem 3) for the LLS extension. It demonstrates that as the number of vertices $n$ grows, the distribution of the LLS estimate $\hat{w}$ is asymptotically normal, centered around the true latent position. This result is crucial for uncertainty quantification, allowing practitioners to calculate confidence intervals for the estimated positions of new nodes.
Empirical Validation
The authors validate their theoretical findings using synthetic simulations, including Stochastic Block Models (SBMs) and general RDPGs.
- Convergence: Simulations confirm that the OOS estimates converge to the truth at the predicted rates.
- Distribution: Even at moderate graph sizes (e.g., $n=100$), the empirical distribution of the OOS estimates closely follows the predicted Gaussian "bell curve," supporting the CLT findings.
- Batch Efficiency: The results suggest that re-embedding the entire graph only provides a meaningful accuracy advantage when adding a very large number of nodes simultaneously. For incremental updates, OOS methods are nearly optimal.
Conclusion and Future Work
This work provides a solid theoretical foundation for the use of OOS extensions in graph embeddings. The LLS method, in particular, emerges as a powerful tool for practitioners due to its balance of computational speed and statistical precision.
While the RDPG model is flexible, future research could explore OOS extensions for graphs that do not strictly follow the dot-product assumption, such as those with heavy-tailed degree distributions. Additionally, extending these proofs to other dimensionality reduction techniques and exploring "batch" OOS extensions—where connections between new nodes are also utilized—remain promising avenues for further study.
Summary updated