Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Representation Learning on Graphs: Methods and Applications

Learned graph embeddings replace hand-built features for machine learning on graphs

  • Problem Hand-built graph features like degrees and kernel values are rigid and slow to design. They can't adapt while the model learns, so models miss the structure they need.
  • Method The authors train an encoder to map each node to a low-dimensional vector, so that a decoder's pairwise score matches graph similarity.
  • Results Cited studies found neighborhood aggregation encoders gave consistent gains over shallow encoders on node classification and link prediction.

Why graph structure is hard to feed into models

Graphs capture relational knowledge, and many prediction tasks use graph structure as their input signal. Traditional pipelines feed in degrees, clustering coefficients or kernel values that someone designed by hand. Such features can't adapt while the model learns, and designing them takes time and money.

The core difficulty is that graph structure is high-dimensional and non-Euclidean, so it has no direct feature vector. Representation learning gets around this by mapping nodes or subgraphs into a low-dimensional space and tuning that mapping so distances reflect the graph. The learned vectors then serve as features for downstream tasks such as node classification.

One encoder-decoder view for node embeddings

The key idea is to split every node embedding method into an encoder that produces vectors and a decoder that tries to recover graph similarity from them. The encoder maps each node to a vector z_i in R^d, and d is far smaller than |V|. The decoder takes a pair of embeddings and returns a similarity score, so that \(DEC(z_i, z_j) \approx s_G(v_i, v_j)\) for a graph-based similarity \(s_G\).

Training minimizes a loss \(L=\sum_{(v_i,v_j)\in D} \ell(DEC(z_i,z_j), s_G(v_i,v_j))\) over a set of training node pairs D. Four choices then separate the methods: the similarity function, the encoder, the decoder and the loss. Most decoders have no trainable parameters, so the learning sits almost entirely in the encoder.

Once trained, the encoder alone produces the features, for example for a logistic regression classifier that predicts communities. A few methods also train decoder parameters, which the authors treat as a side variant of the same scheme.

Shallow embeddings and random-walk objectives

In a shallow encoder each node simply gets its own column of a matrix Z, selected by a one-hot indicator vector. The only trainable parameters are the entries of Z, so the embedding matrix is optimized directly. Laplacian eigenmaps uses squared Euclidean distance as its decoder and weights each pair by graph similarity.

Factorization methods such as Graph Factorization, GraRep and HOPE switch to an inner-product decoder with a mean-squared-error loss. They differ only in the similarity they use: the adjacency matrix, its powers, or other neighborhood overlap measures. Graph Factorization is scalable, with O(|E|) time complexity for generating node embeddings.

DeepWalk and node2vec replace the deterministic similarity with co-occurrence on random walks, and they decode with a softmax over all nodes. The walk length T usually falls in the range 2,...,10. Computing that softmax naively costs O(|D||V|), so DeepWalk uses hierarchical softmax and node2vec uses negative sampling.

node2vec adds two parameters, p and q, that bias the walk: p controls revisiting the same node and q controls revisiting a node's one-hop neighborhood. LINE takes a different route: a sigmoid decoder for first-order similarity and a two-hop objective for second-order similarity.

Neighborhood aggregation encoders

Shallow lookups share no parameters, ignore node attributes and can't embed nodes that were absent during training. Aggregation encoders instead build each node's vector from its neighbors' attributes, so the same weights serve every node. Where no attributes exist, degrees or one-hot vectors can stand in as inputs.

Algorithm 1 starts from the input attributes and runs K rounds of aggregation over neighbor vectors. Each round combines a node's own vector with the aggregated neighbor vector, applies a weight matrix and a non-linearity, then normalizes. The vectors after the final round serve as the output embeddings, so information from farther nodes reaches each node after more rounds.

GraphSAGE concatenates the two vectors and accepts general aggregators such as the element-wise mean, max-pooling networks and LSTMs. GCNs and column networks use a weighted sum and a weighted element-wise mean instead, and column networks add an interpolation with the previous vector. The more complex aggregators, especially max-pooling, gave significant gains in the GraphSAGE study.

Across node classification and link prediction benchmarks, these encoders gave consistent gains over their shallow counterparts. That support comes from results gathered across cited works, so it isn't one controlled comparison run by the authors. The shared parameter count doesn't grow with the size of the graph, which is why these encoders scale better than lookup tables.

Limits of shallow and autoencoder methods

Shallow methods grow their parameter count as O(|V|) and are transductive. They can't produce embeddings for unseen nodes without additional optimization, which hurts evolving graphs.

Their structure is also fixed, so they stay strictly transductive and can't generalize across graphs.

Naive spectral graph convolutions need the eigenvectors of the graph Laplacian, so their cost is O(|V|^3). Approximations with Chebyshev polynomials avoid this, but they are a separate set of methods.

Multi-layer graphs and structural roles

Multi-layer graphs repeat the same node across layers, so a node's embeddings in different layers should stay close. OhmNet combines node2vec with a penalty \(\lambda\|z^{G1}_i - z^{G2}_i\|\) that ties a node's embeddings across two layers. For layers in a hierarchy, that penalty applies only between parent and child layers.

For several edge types, a bilinear decoder with a learned matrix per type replaces the plain inner product. Regularizing that matrix, for example by making it diagonal, helps when there are many edge types.

HARP coarsens the graph, embeds the coarse version and uses those vectors to initialize the finer embeddings. The authors report consistent improvements for DeepWalk, node2vec and LINE with this pre-processing.

struc2vec targets structural roles by building auxiliary graphs whose edge weights accumulate degree-sequence distances between k-hop neighborhoods. The recursion is \(w_k(v_i,v_j)=w_{k-1}(v_i,v_j)+d(R_k(v_i),R_k(v_j))\), and biased random walks then run on these auxiliary graphs.

Subgraph embeddings and graph neural networks

For subgraphs the target is one vector z_S for an induced subgraph, usually used for classification. Most subgraph methods are fully supervised, so they are trained with a cross-entropy loss.

Convolutional molecular fingerprints sum the node embeddings in the subgraph, giving \(z_S=\sum_{v_i\in S} z_i\). Dai et al. add edge embeddings before summing, and their encoder takes inspiration from loopy belief propagation. Graph coarsening layers instead cluster nodes and combine them with element-wise max-pooling.

The original graph neural network iterates message passing until the embeddings converge, which requires the update function to be a contraction map. Gated Graph Neural Networks replace that iteration with gated recurrent units and use node attributes to initialize the embeddings. Message Passing Neural Networks generalize these models with a message function q and an update function U.

Subgraph embeddings are mostly used to classify molecules, for example to predict the therapeutic effect of candidate drugs. They have also been applied to classifying images converted to graphs and to logical reasoning tasks.

Open problems

The field still lacks a consistent theoretical framework that precisely states the goals of graph representation learning. Most work aims at strong scores on classification and link prediction benchmarks, and sometimes at pleasing visualizations. The authors warn that the spread of disparate benchmarks and conceptual models is a real risk to progress.

Paper info

Authors
William L. Hamilton, Rex Ying, Jure Leskovec
Venue
arXiv · Preprint
First published
2017-9-17
Added
2026-11-12
Updated
2018-4-10
Version
v3
arXiv
1709.05584
Category
cs.SI · cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

William L. Hamilton, Rex Ying, Jure Leskovec (2017). Representation Learning on Graphs: Methods and Applications. arXiv:1709.05584v3. https://arxiv.org/abs/1709.05584v3

BibTeX
@misc{hamilton2017representation,
  title = {{Representation Learning on Graphs: Methods and Applications}},
  author = {William L. Hamilton and Rex Ying and Jure Leskovec},
  year = {2017},
  eprint = {1709.05584},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.05584v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up