Skip to main content
QUICK REVIEW

[Paper Review] GEMSEC: Graph Embedding with Self Clustering

Benedek Rózemberczki, Ryan Davies|arXiv (Cornell University)|Feb 12, 2018
Complex Network Analysis TechniquesPhysics and Astronomy40 references66 citations
TL;DR

GEMSEC learns node embeddings jointly with clustering, guided by neighborhood preservation and social-regularized clustering, enabling competitive community detection and downstream tasks.

ABSTRACT

Modern graph embedding procedures can efficiently process graphs with millions of nodes. In this paper, we propose GEMSEC -- a graph embedding algorithm which learns a clustering of the nodes simultaneously with computing their embedding. GEMSEC is a general extension of earlier work in the domain of sequence-based graph embedding. GEMSEC places nodes in an abstract feature space where the vertex features minimize the negative log-likelihood of preserving sampled vertex neighborhoods, and it incorporates known social network properties through a machine learning regularization. We present two new social network datasets and show that by simultaneously considering the embedding and clustering problems with respect to social properties, GEMSEC extracts high-quality clusters competitive with or superior to other community detection algorithms. In experiments, the method is found to be computationally efficient and robust to the choice of hyperparameters.

Motivation & Objective

  • Motivate improving community detection within graph embeddings by integrating clustering into the embedding objective.
  • Develop a scalable, sequence-based embedding method that jointly optimizes embedding and clustering objectives.
  • Incorporate social-network properties via regularization to produce coherent and natural communities.
  • Demonstrate scalability to large graphs and robustness to hyperparameter settings.
  • Provide new social network datasets and demonstrate improved clustering and downstream tasks.

Proposed method

  • Extend skip-gram style embedding to include a clustering cost alongside the embedding objective.
  • Use negative sampling to approximate the partition function and enable scalable optimization.
  • Introduce an annealed clustering weight γ to prevent early clustering from dominating the embedding.
  • Incorporate a smoothness regularization term that uses neighborhood overlap as edge weights to better align embeddings with communities.
  • Optimize node representations f(v) and cluster centers μ via gradient-based updates (Adam), with explicit equations for gradients.
  • Provide a TensorFlow-based implementation and a training procedure (Algorithm 1) for GEMSEC.

Experimental results

Research questions

  • RQ1Can embedding and clustering be learned jointly to improve community-aware representations?
  • RQ2Does adding a clustering objective improve modularity and clustering quality over standard neighborhood-preserving embeddings?
  • RQ3How does smoothness regularization based on neighborhood overlap affect community coherence and robustness to hyperparameters?
  • RQ4Are GEMSEC variants scalable to large graphs and robust to parameter choices?
  • RQ5Do embeddings learned by GEMSEC improve downstream tasks such as music genre recommendation?

Key findings

  • GEMSEC variants achieve higher modularity than several neighborhood-based and community-aware baselines on Facebook datasets.
  • Regularization (Smooth GEMSEC) consistently improves robustness to hyperparameter changes and clustering quality.
  • GEMSEC2 and Smooth GEMSEC2 often outperform baselines, with notable gains on some datasets (e.g., Athletes).
  • On Deezer music genre prediction, GEMSEC2 yields higher F1 scores across Croatia, Hungary, and Romania than competing methods.
  • The approach scales linearly with graph size, maintaining efficiency as graphs grow.
  • Empirical results indicate that joint embedding and clustering yield natural, well-separated communities and improved downstream performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.