Deep Feature Learning for Graphs

Ryan A. Rossi, Rong Zhou, Nesreen K. AhmedarXiv 2017

TL;DR

This paper introduces DeepGL, a novel framework for learning deep, hierarchical representations of nodes and edges in large graphs. DeepGL excels at learning interpretable, sparse features that generalize across different networks, significantly outperforming existing methods in speed, memory efficiency, and predictive accuracy for tasks like link prediction and node classification.

What Problem Does This Paper Address?

Machine learning on graphs is crucial for understanding complex relationships in data, from social networks to biological systems. However, learning effective representations of nodes and edges in these graphs is challenging. Existing methods often struggle with:

  • Limited expressiveness: They can't capture higher-order structural patterns in graphs.
  • Lack of generalization: Learned features are often tied to a specific network, hindering transfer learning to new graphs.
  • Inefficiency: They produce dense feature vectors that consume excessive memory and are slow to compute, making them impractical for large-scale networks.
  • Inability to handle attributed graphs: Many methods don't effectively incorporate node or edge attributes (like user demographics or edge weights).
  • Poor interpretability: The learned features are often opaque "black boxes."

Methods

DeepGL tackles these challenges with a flexible, hierarchical approach:

  • Hierarchical Feature Learning: DeepGL builds representations layer by layer. Each layer learns "higher-order" features by composing "lower-order" features from the previous layer using a set of learned relational feature operators. This is analogous to how convolutional neural networks build complex features from simpler ones.
  • Relational Functions: Instead of just learning embeddings, DeepGL learns relational functions that define how features are computed. These functions are designed to be generalizable across different graph structures.
  • Base Features: The process starts with a set of base features derived from graph topology (like degrees, graphlets/motifs) and/or node/edge attributes. The paper highlights the novel use of network motifs (graphlets) as base features.
  • Sparse Feature Learning: A key innovation is DeepGL's ability to learn sparse feature vectors. This drastically reduces memory requirements compared to dense representations.
  • Flexibility and Interchangeability: The framework is designed to be modular, allowing for different relational operators, base features, and evaluation criteria to be swapped in, making it adaptable to various tasks and data types.
  • Feature Diffusion: An optional step allows for smoothing features across the graph structure to improve robustness.

Datasets

The paper evaluates DeepGL on a variety of real-world graphs, including:

  • Social Networks: soc-wiki-Vote, soc-gplus, socfb-Stanford3, socfb-MIT, socfb-Duke14, yahoo-msg, enron, fb-MIT, fb-PU.
  • Technical Networks: tech-WHOIS, tech-routers-rf.
  • Web Graphs: web-google, web-indochina-2004, web-webbase-2001.
  • Biological Networks: bio-dmela.
  • Information Networks: ia-email-EU, ia-fb-messages, ia-infect-hyper, ia-infect-dublin.
  • Collaboration Networks: ca-CondMat, ca-netscience.
  • Domain-Specific Datasets: DD (various sizes), ENZYMES (various sizes).

The paper also uses data from NetworkRepository.com for experiments.

Key Insights and Ideas

  • Hierarchical Composition is Key: Learning features by composing simpler relational functions in layers allows for capturing complex, higher-order graph structures that simpler methods miss.
  • Generalizable Relational Functions: By defining features as functions rather than fixed embeddings, DeepGL achieves true across-network transfer learning, a significant limitation of prior work.
  • Sparsity is a Game Changer: Learning sparse features is not just an optimization; it's a fundamental enabler for applying graph learning to massive real-world networks that would otherwise be intractable due to memory constraints.
  • Interpretable Features: The framework's focus on learned relational functions, rather than opaque embeddings, offers a path towards more interpretable graph representations.
  • Flexibility is Power: The modular design of DeepGL makes it a versatile tool, adaptable to a wide range of graph types and learning tasks.

Key Results

  • Link Prediction: DeepGL significantly outperforms node2vec, achieving an average improvement of 33.6% in AUC across various graphs and binary operators, and up to 60% improvement in some cases.
  • Node Classification: DeepGL consistently outperforms node2vec across all tested graphs and problem types (binary and multiclass), with notable improvements like 48% AUC gain on ENZYMES295.
  • Speed: DeepGL is remarkably fast, with a runtime linear in the number of edges ($\mathcal{O}(|E|)$). It achieves up to a 182x speedup compared to node2vec on large graphs.
  • Space Efficiency: DeepGL learns sparse features, requiring up to 6x less memory than existing methods. For a graph with 10 million nodes, DeepGL uses 0.768GB compared to node2vec's 10.2GB.
  • Scalability: The framework exhibits strong parallel scaling, making it suitable for massive networks.
  • Across-Network Transfer Learning: DeepGL demonstrates stable performance even when applied to graphs with significant structural changes over time, outperforming node2vec in this challenging scenario.

Limitations and Future Work

  • Computational Cost of Search: While efficient, the search for optimal relational functions and feature layers can still be computationally intensive, especially for very deep hierarchies.
  • Hyperparameter Tuning: The performance of DeepGL can depend on the choice of relational operators, base features, and evaluation criteria, requiring careful tuning.
  • Future Work: The authors suggest exploring more sophisticated relational operators, different feature evaluation criteria, and further investigating the interpretability of learned relational functions. The framework's flexibility also opens doors for applying it to a wider array of graph-based tasks and domains.

Summary updated

Abstract

This paper presents a general graph representation learning framework called DeepGL for learning deep node and edge representations from large (attributed) graphs. In particular, DeepGL begins by deriving a set of base features (e.g., graphlet features) and automatically learns a multi-layered hierarchical graph representation where each successive layer leverages the output from the previous layer to learn features of a higher-order. Contrary to previous work, DeepGL learns relational functions (each representing a feature) that generalize across-networks and therefore useful for graph-based transfer learning tasks. Moreover, DeepGL naturally supports attributed graphs, learns interpretable features, and is space-efficient (by learning sparse feature vectors). In addition, DeepGL is expressive, flexible with many interchangeable components, efficient with a time complexity of $\mathcal{O}(|E|)$, and scalable for large networks via an efficient parallel implementation. Compared with the state-of-the-art method, DeepGL is (1) effective for across-network transfer learning tasks and attributed graph representation learning, (2) space-efficient requiring up to 6x less memory, (3) fast with up to 182x speedup in runtime performance, and (4) accurate with an average improvement of 20% or more on many learning tasks.
BibTeX
@misc{rossi2017deep,
  author = {Ryan A. Rossi and Rong Zhou and Nesreen K. Ahmed},
  title = {{Deep Feature Learning for Graphs}},
  year = {2017},
  eprint = {1704.08829},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.08829},
}
Figure