Skip to main content
QUICK REVIEW

[Paper Review] Capsule Neural Networks for Graph Classification using Explicit Tensorial Graph Representations

Marcelo Daniel Gutierrez Mallea, Peter C. Meltzer|arXiv (Cornell University)|Feb 22, 2019
Advanced Graph Neural NetworksComputer Science22 references20 citations
TL;DR

This paper proposes a Capsule Neural Network model for graph classification that uses explicit tensorial representations of undirected graphs with categorical node features. By leveraging Betweenness Centrality for node ordering and a capsule-based architecture to enforce permutation invariance, the method achieves state-of-the-art performance on MUTAG and PTC datasets, outperforming CNNs and competitive with SOTA graph kernels and GNNs despite limited hyperparameter tuning.

ABSTRACT

Graph classification is a significant problem in many scientific domains. It addresses tasks such as the classification of proteins and chemical compounds into categories according to their functions, or chemical and structural properties. In a supervised setting, this problem can be framed as learning the structure, features and relationships between features within a set of labelled graphs and being able to correctly predict the labels or categories of unseen graphs. A significant difficulty in this task arises when attempting to apply established classification algorithms due to the requirement for fixed size matrix or tensor representations of the graphs which may vary greatly in their numbers of nodes and edges. Building on prior work combining explicit tensor representations with a standard image-based classifier, we propose a model to perform graph classification by extracting fixed size tensorial information from each graph in a given set, and using a Capsule Network to perform classification. The graphs we consider here are undirected and with categorical features on the nodes. Using standard benchmarking chemical and protein datasets, we demonstrate that our graph Capsule Network classification model using an explicit tensorial representation of the graphs is competitive with current state of the art graph kernels and graph neural network models despite only limited hyper-parameter searching.

Motivation & Objective

  • To address the challenge of classifying graphs with variable sizes and node counts in a supervised setting.
  • To improve permutation invariance in graph classification by leveraging capsule networks' dynamic routing mechanism.
  • To evaluate the effectiveness of explicit tensor representations derived from graph structures using different node labelling strategies.
  • To benchmark the proposed model against state-of-the-art graph kernels and GNNs on standard chemical and protein datasets.
  • To investigate whether capsule networks can learn more robust and disentangled graph representations than CNNs.

Proposed method

  • The method extracts fixed-size tensor representations from each graph using a patch-based approach, where nodes are ordered via Betweenness Centrality or NAUTY canonical labelling.
  • Each graph is partitioned into subgraphs (patches), and node features are encoded into a tensor using a learnable embedding layer.
  • A capsule network processes the tensor representation, with primary capsules capturing spatial relationships and routing-by-agreement enabling equivariant feature learning.
  • Dynamic routing between primary and graph capsules ensures attention is focused on relevant structural patterns, enhancing generalization.
  • The final capsule layer outputs a vector per graph, used for classification via a softmax layer.
  • The model is trained end-to-end using cross-entropy loss with early stopping and weight decay.

Experimental results

Research questions

  • RQ1Can capsule networks effectively learn permutation-invariant representations for graph classification when applied to explicit tensorial graph representations?
  • RQ2How does the choice of node labelling procedure (Betweenness Centrality vs. NAUTY) affect the performance of the capsule-based graph classifier?
  • RQ3Does the capsule network outperform standard CNNs in classifying graphs with varying numbers of nodes and edges?
  • RQ4How does the model’s representation capacity compare to that of CNNs and graph kernels in terms of feature separation and clustering?
  • RQ5To what extent does limited hyperparameter tuning limit the model’s performance on datasets with high node feature cardinality?

Key findings

  • The capsule network outperformed the CNN baseline on all seven benchmark datasets, with statistically significant improvements on MUTAG and PTC.
  • Using Betweenness Centrality for node ordering yielded superior results than NAUTY canonical labelling on six out of seven datasets.
  • The model achieved state-of-the-art classification accuracy on the MUTAG and PTC datasets, outperforming current SOTA graph kernels and GNNs.
  • Despite better visual clustering in t-SNE plots, the CNN’s intermediate representation was less accurate than the capsule network’s, indicating that capsule routing enhances decision boundaries.
  • The capsule network was approximately eight times slower than the CNN due to its higher parameter count and routing complexity.
  • The model’s performance on datasets with high node feature cardinality was less competitive, suggesting potential for improvement via extended hyperparameter tuning or hybrid labelling strategies.

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.