# Graph Embedding Techniques, Applications, and Performance: A Survey

Survey compares graph embedding methods across factorization, random walks, and deep learning

Palash Goyal, Emilio Ferrara · arXiv · 2017-5-8

- **Problem** Early graph embedding methods scale as O(\|V\|^2), so they are too slow for networks with millions of nodes. Analysts want one vector per node to use as features.
- **Method** The authors group graph embedding methods into factorization, random walk, and deep learning families. They evaluate them on shared datasets and release the GEM Python library with a unified interface.
- **Results** Higher-order methods generally reconstruct graphs better than the rest. The ranking shifts by dataset, so no single method wins everywhere.

## Why classic embeddings break on large graphs

Analysts want one vector per node, because downstream models can then use those vectors as features. Early methods built a similarity graph over the points and kept connected nodes close, with Laplacian Eigenmaps and LLE as examples. Their time complexity is \\(O(\|V\|^2)\\), so they scale poorly to networks with millions of nodes.

The authors name three challenges: choosing which property to preserve, scaling to large graphs, and picking the dimension. Higher dimension can raise reconstruction precision, but it also raises time and space cost. The right dimension can also depend on the task, since few dimensions can help link prediction when the model captures only local connections.

## What factorization methods factorize

Factorization methods write node connections as a matrix and factorize it, so the choice of matrix shapes the method. The candidate matrices include the adjacency matrix, the Laplacian, the transition probability matrix and the Katz similarity matrix. A positive semidefinite matrix such as the Laplacian can be handled by eigenvalue decomposition, while unstructured matrices call for gradient descent.

LLE assumes each node is a linear combination of its neighbours, and it minimizes the reconstruction error under variance and centering constraints. That objective reduces to an eigenvalue problem on \\((I - W)^T (I - W)\\), keeping the bottom eigenvectors and dropping the smallest one. Laplacian Eigenmaps instead weights each pair by \\(W\_{ij}\\) and takes the d smallest eigenvectors of the normalized Laplacian.

Graph Factorization was, to the authors' knowledge, the first method to reach O(\|E\|) time. It fits dot products of embeddings to the adjacency weights, but it sums only over observed edges, which is an approximation. Because the adjacency matrix is often not positive semidefinite, its loss keeps a minimum above zero even at dimension \|V\|.

HOPE factorizes a similarity matrix S instead of the adjacency matrix, so it can capture higher-order proximity. GraRep takes powers of the transition matrix, but the k-th power can have O(\|V\|^2) non-zero entries, which limits its scale.

## What random walks and autoencoders add

DeepWalk treats each random walk like a sentence and maximizes the probability of the nodes around each centre node. It sums the log-likelihoods over many walks and uses a dot-product decoder to reconstruct edges. node2vec keeps this setup but biases its walks between breadth-first and depth-first moves, so it can capture community structure and structural equivalence.

DeepWalk and node2vec start from random embeddings and have non-convex objectives, so they can settle in local optima. HARP coarsens the graph into a hierarchy, embeds the coarsest graph, and passes the vectors down as initial values. Walklets adds explicit skip lengths to the walks, so distances at several ranges are modelled directly.

SDNE uses deep autoencoders to preserve first- and second-order proximities jointly. Its unsupervised autoencoder reconstructs each node's neighbourhood, while a Laplacian-Eigenmaps-style penalty pulls similar nodes together. DNGR instead feeds a PPMI matrix from random surfing into stacked denoising autoencoders. GCN aggregates neighbour embeddings locally, which keeps the computation scalable on large sparse graphs.

The authors argue that factorization methods can't learn an arbitrary function, so they miss structural equivalence unless it is written into the objective. Deep learning methods can model a wide range of functions by the universal approximation theorem, so they can learn a mix of community and structural equivalence.

## Datasets and metrics behind the comparison

The study uses one synthetic graph and six real networks. SYN-SBM has 1024 nodes and 3 communities, with in-block and cross-block probabilities of 0.1 and 0.01. The real graphs range from the 34-node KARATE network to YOUTUBE with 1,157,827 nodes. HEP-TH and ASTRO-PH are collaboration networks with 7,980 and 18,772 nodes, and PPI has 3,890 nodes.

Reconstruction and link prediction are scored with Pr@k and MAP, which rank node pairs by predicted proximity. Node classification uses micro-F1 and macro-F1, where macro-F1 averages the per-label F1 scores. Node classification splits the labelled nodes 50% for training and 50% for testing.

Because the number of node pairs grows quadratically, the authors sample 1024 nodes per dataset and draw five samples. Hyperparameters are chosen by mean MAP and then rerun on five fresh samples. Runs used a 32-core Ubuntu machine, with an Nvidia Tesla K40C for the deep models.

## Reconstruction and dimension effects

At 128 dimensions, methods that preserve higher-order proximities generally reconstruct better than the rest. The gap depends on the dataset, so no single method wins everywhere. SDNE was consistently strong across all datasets, which the authors attribute to its ability to learn complex structure.

Laplacian Eigenmaps did unusually well on SBM, which the authors trace to SBM lacking higher-order structure. node2vec had low reconstruction precision, and the authors link this to a highly non-linear reduction. HOPE, though linear, reconstructs graphs well without extra parameters.

As dimension grows, MAP rises in most cases, with a couple of exceptions. The authors read this as higher dimension storing more information. SDNE reached high precision at 16 dimensions, but only with decoder parameters.

## Visualization and sensitivity checks

The authors project 128-dimensional SBM embeddings to two dimensions with t-SNE and colour nodes by community. HOPE and SDNE separate the communities, while LE, GF and LLE capture them only to some extent. The picture is qualitative, with no score attached.

On Karate, HOPE places nodes 16 and 21 farthest apart, although their Katz similarity is only 0.0006. Nodes 32 and 33, both high-degree hubs, sit together, which the authors connect to node2vec and SDNE mixing community and structural information. SDNE places node 0, a bridge between communities, far from the other nodes, which the authors read as SDNE treating node 0 as a separate type.

For SDNE's observed-link reconstruction weight, the optimal value raises link prediction MAP more than 3-fold on Hep-th and about 2-fold on PPI. Node classification moves less with that weight, and the best result comes at an intermediate value.

node2vec's q was swept with context size 10 and walk length 80 held fixed. Low q gave higher node classification accuracy, while high q favoured link prediction on PPI and HEPTH. The authors attribute this to low q capturing structural equivalence and high q capturing community structure.

## One Python interface for all methods

GEM implements LLE, Laplacian Eigenmaps, Graph Factorization, HOPE, SDNE and node2vec behind one interface. Its evaluation tasks cover graph reconstruction, link prediction, node classification and visualization. It supports cosine similarity, Euclidean distance and decoder-based edge scores, and one-vs-rest logistic regression for multi-label classification.

The library handles weighted and unweighted graphs. Its node2vec interface wraps the C++ implementation provided by the original authors.

## Limits and open questions

Reconstruction was scored on random samples of 1024 nodes, five per dataset, not on the full graphs. The node2vec explanation is the authors' interpretation, and it is not tested in a separate experiment.

The visualizations are qualitative and cover only SBM and Karate. The Graph Factorization loss sums over observed edges only, an approximation the authors say may add noise. Factorization methods need explicit terms to capture structural equivalence.

SDNE's strong precision at 16 dimensions depends on decoder parameters. GraRep's non-zero entry count of O(\|V\|^2) makes it hard to scale. The authors list non-linear models, graph evolution and synthetic graph generation as open directions.

## Paper info

- **Authors**: Palash Goyal, Emilio Ferrara
- **Venue**: arXiv · Preprint
- **First published**: 2017-5-8
- **Added**: 2026-11-12
- **Updated**: 2017-12-22
- **Version**: v4
- **arXiv**: 1705.02801
- **DOI**: 10.1016/j.knosys.2018.03.022
- **Category**: cs.SI · cs.LG · physics.data-an
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1705.02801v4) · [PDF ↗](https://arxiv.org/pdf/1705.02801v4)

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

Palash Goyal, Emilio Ferrara (2017). Graph Embedding Techniques, Applications, and Performance: A Survey. arXiv:1705.02801v4. https://doi.org/10.1016/j.knosys.2018.03.022

**BibTeX**

```
@article{goyal2017graph,
  title = {{Graph Embedding Techniques, Applications, and Performance: A Survey}},
  author = {Palash Goyal and Emilio Ferrara},
  year = {2017},
  eprint = {1705.02801},
  archivePrefix = {arXiv},
  doi = {10.1016/j.knosys.2018.03.022},
  url = {https://arxiv.org/abs/1705.02801v4}
}
```

## Other paper commentary

- [Session-based Recommendation with Graph Neural Networks](https://refivu.com/en/papers/62d7225d-cbaa-40dd-937a-e1fda19d331d-session-based-recommendation-with-graph-neural-networks.md)
- [RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space](https://refivu.com/en/papers/6cf7532c-a2b4-4553-a534-0482af8548e2-rotate-knowledge-graph-embedding-by-relational-rotation-in.md)
- [A Comprehensive Survey of Graph Embedding: Problems, Techniques and Applications](https://refivu.com/en/papers/ec23e11b-6984-4611-aa20-93a65865b536-a-comprehensive-survey-of-graph-embedding-problems.md)
- [Graph Neural Networks for Social Recommendation](https://refivu.com/en/papers/3f172e45-3e51-4657-9b43-76ed2fb286e9-graph-neural-networks-for-social-recommendation.md)
- [Graph Convolutional Networks for Text Classification](https://refivu.com/en/papers/3f1e8027-a608-4e71-87f0-2bdbf0fd5a7f-graph-convolutional-networks-for-text-classification.md)
- [Two-Stream Adaptive Graph Convolutional Networks for Skeleton-Based Action Recognition](https://refivu.com/en/papers/34b4bb2a-43de-4874-9031-6b02160d4003-two-stream-adaptive-graph-convolutional-networks-for.md)
- [Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling](https://refivu.com/en/papers/90a6655e-9301-4ffa-a598-267663200fa0-expanding-performance-boundaries-of-open-source-multimodal.md)
- [A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivity](https://refivu.com/en/papers/a220e44a-f4ac-4a9b-9268-eefcbafeda8e-a-multitask-multilingual-multimodal-evaluation-of-chatgpt-on.md)
- [Image Captioning with Semantic Attention](https://refivu.com/en/papers/1d01d0ec-7423-41cc-9a8a-b002bc483a11-image-captioning-with-semantic-attention.md)
- [A Neural Conversational Model](https://refivu.com/en/papers/2838569c-2f3a-45e5-86e6-549de8737d24-a-neural-conversational-model.md)
- [Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Rates](https://refivu.com/en/papers/6770e9ca-a3e2-40e5-bf7e-fd1daf28cf68-super-convergence-very-fast-training-of-neural-networks.md)
- [BloombergGPT: A Large Language Model for Finance](https://refivu.com/en/papers/2dae70a1-3c88-432c-b934-14abfe8cc431-bloomberggpt-a-large-language-model-for-finance.md)

## Terms in this paper

- [mAP](https://refivu.com/en/terms/477dad058d88-map)
- [t-SNE](https://refivu.com/en/terms/488ecf7dbbcf-t-sne)
- [link prediction](https://refivu.com/en/terms/f029f4345f8f-link-prediction)
- [DeepWalk](https://refivu.com/en/terms/6f5bcebcffef-deepwalk)
- [Macro-F1](https://refivu.com/en/terms/bac7d2670b4d-macro-f1)
- [Micro-F1](https://refivu.com/en/terms/984be90cfb2a-micro-f1)
- [BLOGCATALOG](https://refivu.com/en/terms/8a1839cb1f57-blogcatalog)
- [Random Walk](https://refivu.com/en/terms/1eea91355912-random-walk)
- [Laplacian eigenmaps](https://refivu.com/en/terms/de45f3ff5b8e-laplacian-eigenmaps)
- [LINE](https://refivu.com/en/terms/94e45777fb4b-line)
- [node2vec](https://refivu.com/en/terms/56209922221d-node2vec)
- [second-order proximity](https://refivu.com/en/terms/d0808c2374a7-second-order-proximity)
- [YouTube](https://refivu.com/en/terms/a3648f1520e9-youtube)
- [DNGR](https://refivu.com/en/terms/22ec7ad609bd-dngr)
- [first-order proximity](https://refivu.com/en/terms/de7ae8aede64-first-order-proximity)
- [Graph Convolutional Networks (GCN)](https://refivu.com/en/terms/789810032eb2-graph-convolutional-networks-gcn)
- [graph embedding](https://refivu.com/en/terms/5fe1d3692d26-graph-embedding)
- [graph factorization](https://refivu.com/en/terms/84d1c0044212-graph-factorization)
- [HOPE](https://refivu.com/en/terms/9b30a3c9d49d-hope)
- [PPI](https://refivu.com/en/terms/6839f59f724d-ppi)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/eeed1384-bf87-452c-b3b1-9ecc6ce7d43b-graph-embedding-techniques-applications-and-performance-a)
