Skip to main content
QUICK REVIEW

[Paper Review] Watch Your Step: Learning Graph Embeddings Through Attention.

Sami Abu-El-Haija, Bryan Perozzi|arXiv (Cornell University)|Oct 26, 2017
Advanced Graph Neural NetworksComputer Science26 references21 citations
TL;DR

This paper proposes a differentiable attention mechanism that learns optimal random walk hyper-parameters for graph embedding by backpropagating through the power series of the transition matrix. It improves link prediction performance by 20–45% across diverse real-world graphs, with learned parameters that align with manually tuned optima.

ABSTRACT

Graph embedding methods represent nodes in a continuous vector space, preserving information from the graph (e.g. by sampling random walks). There are many hyper-parameters to these methods (such as random walk length) which have to be manually tuned for every graph. In this paper, we replace random walk hyper-parameters with trainable parameters that we automatically learn via backpropagation. In particular, we learn a novel attention model on the power series of the transition matrix, which guides the random walk to optimize an upstream objective. Unlike previous approaches to attention models, the method that we propose utilizes attention parameters exclusively on the data (e.g. on the random walk), and not used by the model for inference. We experiment on link prediction tasks, as we aim to produce embeddings that best-preserve the graph structure, generalizing to unseen information. We improve state-of-the-art on a comprehensive suite of real world datasets including social, collaboration, and biological networks. Adding attention to random walks can reduce the error by 20% to 45% on datasets we attempted. Further, our learned attention parameters are different for every graph, and our automatically-found values agree with the optimal choice of hyper-parameter if we manually tune existing methods.

Motivation & Objective

  • To eliminate manual hyper-parameter tuning in graph embedding methods by learning optimal random walk parameters.
  • To improve graph structure preservation in node embeddings for better generalization to unseen links.
  • To develop an attention mechanism that operates solely on random walks during training, not during inference.
  • To demonstrate that learned attention parameters are consistent with manually optimized hyper-parameters across diverse graphs.

Proposed method

  • The method replaces fixed random walk hyper-parameters with trainable attention parameters that guide the random walk process.
  • It models the random walk process using the power series of the transition matrix, enabling differentiable optimization.
  • Attention weights are learned via backpropagation to optimize an upstream link prediction objective.
  • The attention mechanism is applied exclusively during training to shape walk trajectories, not used in inference.
  • The model is trained end-to-end using gradient descent to minimize link prediction loss.
  • The approach generalizes across graph types, including social, collaboration, and biological networks.

Experimental results

Research questions

  • RQ1Can attention mechanisms automatically learn optimal random walk hyper-parameters for graph embeddings without manual tuning?
  • RQ2How does the performance of the proposed method compare to state-of-the-art graph embedding models on link prediction tasks?
  • RQ3Do the learned attention parameters correspond to known optimal hyper-parameter values when manually tuned?
  • RQ4To what extent does the method improve generalization to unseen graph structures?

Key findings

  • The proposed method reduces link prediction error by 20% to 45% across multiple real-world datasets compared to state-of-the-art baselines.
  • Learned attention parameters are graph-specific and consistently align with manually tuned optimal hyper-parameters.
  • The model generalizes well across diverse graph types, including social, collaboration, and biological networks.
  • The attention mechanism improves embedding quality by dynamically guiding random walks to preserve structural information.
  • The method achieves superior performance without modifying the underlying model architecture or inference pipeline.
  • The attention parameters are effective only during training, ensuring no runtime overhead during inference.

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.