SOM-based aggregation for graph convolutional neural networks

Luca Pasa, Nicolò Navarin, Alessandro SperdutiNeural Computing and Applications 2022

Abstract

This paper introduces a novel node aggregation scheme for Graph Neural Networks (GNNs) by integrating Self-Organizing Maps (SOMs) into the DeepSets framework. By using SOMs to transform node embeddings into similarity-preserving activation maps before pooling, the authors achieve state-of-the-art results on several benchmark graph classification datasets.

Introduction

In graph-level tasks, such as predicting molecular toxicity or protein function, a GNN must condense a variable number of node-level embeddings into a single, fixed-size vector. This process, known as aggregation or pooling, is critical for capturing the global properties of a graph. Standard operations like sum, mean, or max pooling are computationally efficient but often treat node embeddings as an unordered bag of numbers, potentially losing vital information about the underlying distribution and mutual similarities of nodes.

Methods: The SOM-GCNN Architecture

The proposed SOM-GCNN model implements the transformation function ($\phi$) of the DeepSets architecture using a Self-Organizing Map.

The SOM-GCNN architecture, illustrating the flow from input graph to graph-level representation through SOM-based aggregation blocks and multi-step training.

The SOM as an Encoder

Unlike standard Multi-Layer Perceptrons (MLPs), a SOM maps high-dimensional node embeddings onto a 2D lattice. This mapping preserves topology, meaning similar nodes activate neighboring neurons on the grid. To maintain differentiability and capture similarity nuances, the model employs "soft activations" via a Gaussian neighborhood function rather than a simple winner-take-all approach.

Topological Enrichment and Training

The architecture incorporates an additional Graph Convolution (GC) layer after the SOM mapping to combine spatial grid relationships with the graph's structural connectivity. Due to the unsupervised nature of SOMs, the authors utilize a four-step training pipeline:

  1. Pre-training: Establishing stable node embeddings with a basic GNN.
  2. Unsupervised SOM Training: Fitting the SOM to the embedding distribution.
  3. Supervised Readout Training: Training classification layers with a fixed SOM.
  4. Fine-tuning: A final supervised pass over the entire network.

Experimental Setup and Datasets

The model was evaluated on five standard bioinformatics and chemical graph classification benchmarks, ranging from small chemical datasets to large protein structures.

Summary of the benchmark datasets used for evaluation, showing variations in graph count and complexity.

The datasets include:

  • PTC: Chemical carcinogenicity prediction.
  • NCI1: Anti-cancer activity screens.
  • PROTEINS & D&D: Protein structure classification.
  • ENZYMES: Multi-class protein categorization.

Key Insights and Results

The SOM-GCNN model demonstrated superior performance compared to state-of-the-art baselines like PSCN, DGCNN, and GIN on four of the five datasets. Notably, it achieved 83.30% accuracy on NCI1 and 62.24% on PTC.

Why SOM Aggregation Works

  • Similarity Representation: The SOM explicitly represents node similarity to discovered "prototypes."
  • Increased Separability: Analysis indicates that the SOM "stretches" the embedding space, increasing pairwise distances between different node types and facilitating classification.
  • Explainability: The 2D grid allows for the generation of heatmaps, visualizing which node types (regions on the SOM) drive specific model decisions.

Conclusion

While SOM-GCNN offers significant performance gains and interpretability, it introduces higher training complexity and hyperparameter sensitivity. Future work aims to simplify the training pipeline through supervised SOM variants and reduce the hyperparameter search space.

Summary updated

BibTeX
@article{pasa2022som,
  author = {Luca Pasa and Nicolò Navarin and Alessandro Sperduti},
  title = {{SOM-based aggregation for graph convolutional neural networks}},
  journal = {Neural Computing and Applications},
  year = {2022},
  doi = {10.1007/s00521-020-05484-4},
}
Figure