Geometric Graph Convolutional Neural Networks

Przemyslaw Spurek, Tomasz Danel, Jacek Tabor, Marek Smieja, Lukasz Struski, Agnieszka Slowik, Lukasz MaziarkaarXiv 2019

TL;DR

Spatial Graph Convolutional Networks (SGCN) bridge the gap between traditional Convolutional Neural Networks (CNNs) and Graph Convolutional Networks (GCNs). By incorporating the spatial coordinates of nodes into the convolution operation, SGCN allows models to learn from the relative positioning of neighbors, enabling powerful data augmentation techniques like rotation and translation for graph-structured data.

What Problem Does This Paper Address?

Standard GCNs have become the go-to for learning on graphs, especially in chemoinformatics. However, they have a fundamental limitation: they treat a node's neighbors as an unordered set. While this makes them flexible, it throws away valuable information when the graph has a natural geometric interpretation.

For example, in a molecule, the specific 3D spatial arrangement of atoms (its "conformation") is critical to its biological activity. Similarly, in computer vision, the relative positions of pixels on a grid are what allow CNNs to detect edges and shapes. Standard GCNs can't naturally distinguish between a neighbor to the "left" versus one to the "right" unless that information is manually encoded. Furthermore, because standard GCNs don't "see" space, they cannot benefit from geometric data augmentation—like rotating a molecule in 3D—which is a staple for training robust image models.

Fig. 1: Representation of small molecules. (a) shows the structural formula of a compound (methadone). This notation is commonly used by chemists. (b) presents the molecular graph constructed from the structural formula. The ver- tices denote atoms, and bonds are represented by the undirected edges. (c) de- picts a molecular conformation (one of the energetic minima), which is a 3D embedding of the graph.

Methods

The authors introduce the Spatial Graph Convolutional Network (SGCN). The core innovation is a new aggregation function that uses the relative spatial positions of nodes.

In a standard GCN, the features of neighboring nodes are typically summed or averaged. In SGCN, the relative position $(p_j - p_i)$ between a central node $i$ and its neighbor $j$ is passed through a linear transformation and a ReLU activation to create a weight. This weight is then used to scale the neighbor's feature vector $h_j$ before aggregation:

$$\bar{h}_i(U, b) = \sum_{j \in N_i} \text{ReLU}(U^T(p_j - p_i) + b) \odot h_j$$

Here, $U$ and $b$ are trainable parameters. This allows the network to "mask" or emphasize neighbors based on where they are located relative to the center node.

The authors provide a theoretical proof (Theorem 1) showing that SGCN is a proper generalization of both CNNs and GCNs. By setting spatial coordinates to zero, it reverts to a vanilla GCN; by arranging nodes on a grid and carefully choosing weights, it can perfectly replicate a standard CNN filter.

Fig. 3: Comparison of CNN, SGCN, and GCN filters. SGCN uses spatial features to weight neighbors, mimicking CNN behavior on irregular graphs.

Datasets

The model was evaluated on two distinct domains:

  1. Computer Vision: The MNIST digit dataset, represented in two ways:
  2. Grid: Pixels mapped to a regular graph.
  3. Superpixels: An irregular graph of 75 superpixels to test performance on non-grid structures.
  4. Chemoinformatics: Three datasets from the MoleculeNet benchmark:
  5. BBBP (Blood-Brain Barrier Permeability): A binary classification task.
  6. ESOL: A regression task for water solubility.
  7. FreeSolv: A regression task for hydration free energy.

Key Insights and Ideas

  • Spatial Awareness as a Mask: The use of relative positions acts as a "self-taught feature masking" mechanism. The network learns which spatial directions are important for the task at hand.
  • Geometric Data Augmentation for Graphs: Because the model explicitly uses coordinates, the authors could augment the training data by randomly rotating molecules in 3D space and using multiple energetic minima (conformations) for the same molecule. This significantly improved generalization, especially when data was scarce.
  • Generalization Proof: The mathematical proof that SGCN can simulate a CNN is a strong theoretical contribution, suggesting that SGCN is a robust choice for any data that exists in a coordinate space, whether that space is a 2D grid or 3D molecular volume.

Key Results

  • MNIST: SGCN achieved 99.61% accuracy on the grid representation, outperforming standard CNNs (99.21%) and other graph methods like SplineCNN and GAT. On superpixels, it also maintained a lead with 95.95% accuracy.
  • Chemistry: On the BBBP dataset, SGCN reached an ROC AUC of 0.743, significantly higher than the previous state-of-the-art (MAT at 0.711).
  • Augmentation Impact: The authors showed that adding rotations and multiple conformations leads to a steady increase in performance. As shown in Figure 5, increasing the number of generated conformations for the BBBP task led to a gain of over 0.06 in ROC AUC compared to a standard GCN.
Fig. 5: Performance gain on BBBP as the amount of spatial data augmentation increases.

Limitations and Future Work

  • Small Dataset Variance: On the FreeSolv dataset (which only has 513 examples), the high variance made it difficult to statistically distinguish SGCN from other top-performing models.
  • Coordinate Dependency: The model relies on having accurate spatial coordinates. In chemistry, these are often predicted using force fields (like UFF), which adds a computational step and potential noise if the predictions are inaccurate.
  • Scalability: While not explicitly detailed as a failure, managing multiple 3D conformations and rotations per molecule increases the computational overhead during training compared to simple 2D graph processing. Future work could look into more efficient ways to handle this high-dimensional augmentation.

Summary updated

BibTeX
@misc{spurek2019geometric,
  author = {Przemyslaw Spurek and Tomasz Danel and Jacek Tabor and Marek Smieja and Lukasz Struski and Agnieszka Slowik and Lukasz Maziarka},
  title = {{Geometric Graph Convolutional Neural Networks}},
  year = {2019},
  eprint = {1909.05310},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.05310},
}
Figure