Skip to main content
QUICK REVIEW

[Paper Review] node2vec: Scalable Feature Learning for Networks

Aditya Grover, Jure Leskovec|PubMed|Jul 3, 2016
Advanced Graph Neural NetworksComputer Science32 references229 citations
TL;DR

node2vec learns continuous node embeddings by performing biased random walks that interpolate between BFS and DFS, enabling scalable, task-agnostic representation learning for networks and improving multi-label classification and link prediction.

ABSTRACT

Prediction tasks over nodes and edges in networks require careful effort in engineering features used by learning algorithms. Recent research in the broader field of representation learning has led to significant progress in automating prediction by learning the features themselves. However, present feature learning approaches are not expressive enough to capture the diversity of connectivity patterns observed in networks. Here we propose <i>node2vec</i>, an algorithmic framework for learning continuous feature representations for nodes in networks. In <i>node2vec</i>, we learn a mapping of nodes to a low-dimensional space of features that maximizes the likelihood of preserving network neighborhoods of nodes. We define a flexible notion of a node's network neighborhood and design a biased random walk procedure, which efficiently explores diverse neighborhoods. Our algorithm generalizes prior work which is based on rigid notions of network neighborhoods, and we argue that the added flexibility in exploring neighborhoods is the key to learning richer representations. We demonstrate the efficacy of <i>node2vec</i> over existing state-of-the-art techniques on multi-label classification and link prediction in several real-world networks from diverse domains. Taken together, our work represents a new way for efficiently learning state-of-the-art task-independent representations in complex networks.

Motivation & Objective

  • Automate learning of informative node representations to support downstream prediction tasks on networks.
  • Provide a flexible neighborhood sampling mechanism that captures both community structure and structural equivalence.
  • Develop a scalable unsupervised objective that preserves network neighborhoods using SGD.
  • Extend node representations to edge representations via compositional operators for link prediction tasks.

Proposed method

  • Maximize the likelihood of observing a node's network neighborhood given its embedding.
  • Use a 2nd-order biased random walk with parameters p and q to sample diverse neighborhoods.
  • Optimize with stochastic gradient ascent and negative sampling to avoid expensive partition function computation.
  • Extend node embeddings to edge representations by applying a binary operator to node embeddings.
  • Provide a general framework that subsumes BFS-like and DFS-like sampling as special cases.

Experimental results

Research questions

  • RQ1How can we learn low-dimensional node representations that preserve diverse network neighborhoods?
  • RQ2Can biased 2nd-order random walks interpolate between homophily and structural equivalence to produce richer embeddings?
  • RQ3Do node embeddings learned by node2vec improve prediction tasks such as multi-label classification and link prediction compared to state-of-the-art methods?
  • RQ4Can the node representations be extended to effective edge representations for link prediction tasks?

Key findings

  • node2vec outperforms state-of-the-art methods on multi-label classification and link prediction across several real-world networks, with up to 26.7% improvement in classification and up to 12.6% in link prediction.
  • The framework can model both network communities (homophily) and structural roles (structural equivalence) by adjusting walk strategies.
  • Random walks offer scalable and efficient neighborhood sampling with reusability of samples across nodes, enabling handling of large networks.
  • Edge representations can be constructed by composing node embeddings with simple binary operators, enabling edge-based predictions.
  • The method demonstrates competitive performance with limited labeled data and is robust to noisy or missing edges.

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.