Node Embeddings via Neighbor Embeddings
Jan Niklas Böhm, Marius Keute, Alica Guzmán, Sebastian Damrich, Andrew Draganov, Dmitry Kobak
TL;DR
Graph NE introduces a non-parametric neighbor-embedding framework that embeds graph nodes by directly pulling adjacent nodes together using affinities derived from the graph itself, eliminating the need for random walks. The approach unifies high-dimensional node embeddings and 2D graph layouts by linking the InfoNCE objective to KL divergence, enabling a $d=128$ embedding and a graph-$t$-SNE style visualization via a CNE backend. Empirically, Graph NE consistently outperforms state-of-the-art non-parametric methods on local structure preservation across eight graphs and delivers superior 2D layouts, with competitive classification results and strong local structure metrics. The method is simple, scalable (linear in edges), and feature-free, with promising directions including parametric extensions, alternative neighbor-embedding backends like UMAP, and systematic study of the temperature parameter $\tau$.
Abstract
Node embeddings are a paradigm in non-parametric graph representation learning, where graph nodes are embedded into a given vector space to enable downstream processing. State-of-the-art node-embedding algorithms, such as DeepWalk and node2vec, are based on random-walk notions of node similarity and on contrastive learning. In this work, we introduce the graph neighbor-embedding (graph NE) framework that directly pulls together embedding vectors of adjacent nodes without relying on any random walks. We show that graph NE strongly outperforms state-of-the-art node-embedding algorithms in terms of local structure preservation. Furthermore, we apply graph NE to the 2D node-embedding problem, obtaining graph t-SNE layouts that also outperform existing graph-layout algorithms.
