Refined graph encoder embedding via self-training and latent community recovery

Cencheng Shen, Jonathan Larson, Ha Trinh, Carey E. Priebe

Introduction

Graph embedding is a fundamental task in modern data science, involving the projection of high-dimensional network data into a low-dimensional space. While traditional spectral methods like Adjacency Spectral Embedding (ASE) are mathematically robust, they often rely on Singular Value Decomposition (SVD), which is computationally prohibitive for massive graphs.

The Graph Encoder Embedding (GEE) was recently introduced to address this scalability issue by leveraging vertex labels for projection. However, GEE's performance is limited by the quality of the provided labels. If labels are coarse or noisy, the embedding fails to capture the full complexity of the network. This paper introduces Refined Graph Encoder Embedding (R-GEE), a method that enhances supervised embeddings by automatically discovering latent sub-communities through an iterative self-training loop.

Methodology: The R-GEE Framework

R-GEE improves upon the original GEE by adding a layer of iterative refinement. The process is built on three core pillars:

  1. Linear Discriminant Analysis (LDA): The authors demonstrate that GEE embeddings are approximately normally distributed. By applying LDA, the embedding space is aligned such that dimensions correspond directly to class probabilities, facilitating better separation.
  2. Self-Training Loop: The algorithm identifies "mismatched" vertices—nodes whose position in the embedding space contradicts their assigned labels. It then iteratively updates these labels to refine the decision boundaries.
  3. Latent Community Recovery: This is the key innovation. When groups of vertices are consistently mismatched, R-GEE reassigns them to new "latent" communities. By splitting a single known class into more accurate sub-classes, the model improves the overall embedding quality for the entire network.

A critical stopping criterion ensures the algorithm remains conservative, only creating new communities if they significantly enhance the model's margin of separation.

Efficiency and Scalability

One of the primary motivations for R-GEE is computational efficiency. Unlike SVD-based methods, R-GEE maintains a linear time complexity relative to the number of edges ($s$) and vertices ($n$).

Running time comparison between GEE, R-GEE, and SVD-based methods as the number of edges increases.

As shown in the performance benchmarks, R-GEE scales gracefully to large graphs. On a network with 30,000 vertices and 50 million edges, R-GEE completes the embedding in approximately 1.2 seconds, whereas traditional SVD-based methods can take over 200 seconds.

Results and Insights

The effectiveness of R-GEE was validated across various synthetic and real-world datasets, including social networks, biological networks (C. elegans), and citation graphs.

  • Improved Accuracy: In vertex classification tasks, R-GEE consistently matches or outperforms both standard GEE and spectral methods. For instance, on the C. elegans dataset, R-GEE reduced classification error from 49% to 37%.
  • Latent Label Benefit: A surprising finding is that creating "latent" labels—even if they are not part of the original ground truth—improves the classification of the original labels by acknowledging internal group diversity.
  • Interpretability: Visualization of networks like the Karate Club demonstrates R-GEE's ability to identify "anomaly" vertices at group intersections, providing clearer insights than standard methods.
Visualization of community structure and latent node assignments in a sample network.

Conclusion

R-GEE bridges the gap between the speed of supervised embeddings and the theoretical rigor of spectral methods. By incorporating self-training and latent community recovery, it offers a scalable solution for complex network analysis. Future work may explore non-linear refinement using deep learning or applying these embeddings to downstream tasks like link prediction and recommendation systems.

Summary updated

BibTeX
@article{shen2025refined,
  author = {Cencheng Shen and Jonathan Larson and Ha Trinh and Carey E. Priebe},
  title = {{Refined graph encoder embedding via self-training and latent community recovery}},
  journal = {Soc. Netw. Anal. Min.},
  year = {2025},
  doi = {10.1007/s13278-025-01419-w},
}
Figure