Skip to main content
QUICK REVIEW

[Paper Review] Watch Your Step: Learning Node Embeddings via Graph Attention

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

The paper introduces Graph Attention to learn trainable context distributions for random-walk based graph embeddings, yielding state-of-the-art link prediction results by end-to-end training of attention parameters with embeddings.

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

  • Motivate replacing fixed hyper-parameters in graph embeddings with trainable parameters learned via backpropagation.
  • Propose an attention mechanism on the power series of the graph transition matrix to guide random walks.
  • Derive a closed-form expectation for co-occurrence statistics to enable end-to-end training.
  • Demonstrate improved link prediction performance and robustness across diverse real-world graphs.

Proposed method

  • Represent embeddings as g(Y) = L × R^T with Y = [L|R].
  • Set f(A) to the expectation of the co-occurrence matrix D produced by random walks, i.e., E[D].
  • Introduce a context distribution Q over walk lengths and express E[D] as E[D;Q] = P^(0) ∑k Q_k (T^k), where T is the transition matrix of the graph.
  • Parameterize Q via a Graph Attention Model as Q = softmax(q) and learn q jointly with embeddings.
  • Extend to an infinite power-series attention by softmax over an infinite set of powers, i.e., E[D^{softmax[∞]}; q] = P^(0) lim_{C→∞} ∑k softmax(q)_k (T^k).
  • Train by maximizing/minimizing the NLGL objective with attention parameters, while keeping inference-time parameters separate.

Experimental results

Research questions

  • RQ1Can attention parameters learn graph-specific context distributions for random-walk-based embeddings?
  • RQ2How does learned context distribution compare to hand-tuned C and fixed context schemes in terms of link prediction performance?
  • RQ3Does the proposed graph attention mechanism generalize across diverse graph types (social, collaboration, biological) and remain robust to hyper-parameter choices?

Key findings

  • The Graph Attention model significantly improves link prediction across multiple real-world datasets compared to fixed-context baselines, reducing error by up to 20%–40%.
  • Learned attention weights Q vary by dataset and often align with grid-search results over fixed context windows, indicating the model discovers appropriate short- vs. long-range dependencies per graph.
  • The method remains robust to hyper-parameter choices (C and regularization β), maintaining performance across a wide range of settings.
  • On node classification tasks (Cora, Citeseer) the unsupervised embeddings yield better separation than competitive baselines, even without node features during training.
  • The attention parameters are learned only during training (not used for inference), enabling end-to-end optimization without inference-time complexity increases.

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.