Scalable Graph Compressed Convolutions

Junshu Sun, Chenxue Yang, Shuhui Wang, Qingming HuangarXiv 2024

Abstract

Designing effective graph neural networks (GNNs) with message passing has two fundamental challenges, i.e., determining optimal message-passing pathways and designing local aggregators. Previous methods of designing optimal pathways are limited with information loss on the input features. On the other hand, existing local aggregators generally fail to extract multi-scale features and approximate diverse operators under limited parameter scales. In contrast to these methods, Euclidean convolution has been proven as an expressive aggregator, making it a perfect candidate for GNN construction. However, the challenges of generalizing Euclidean convolution to graphs arise from the irregular structure of graphs. To bridge the gap between Euclidean space and graph topology, we propose a differentiable method that applies permutations to calibrate input graphs for Euclidean convolution. The permutations constrain all nodes in a row regardless of their input order and therefore enable the flexible generalization of Euclidean convolution to graphs. Based on the graph calibration, we propose the Compressed Convolution Network (CoCN) for hierarchical graph representation learning. CoCN follows local feature-learning and global parameter-sharing mechanisms of convolution neural networks. The whole model can be trained end-to-end, with compressed convolution applied to learn individual node features and their corresponding structure features. CoCN can further borrow successful practices from Euclidean convolution, including residual connection and inception mechanism. We validate CoCN on both node-level and graph-level benchmarks. CoCN achieves superior performance over competitive GNN baselines.

Introduction

Graph Neural Networks (GNNs) have revolutionized the processing of non-Euclidean data, yet they face two persistent hurdles: fixed message-passing pathways and limited local aggregators. Most GNNs are "coupled" to the input graph's topology, which restricts the model's ability to optimize information flow. Furthermore, standard graph convolutions often struggle to capture the complex, multi-scale hierarchical features that Convolutional Neural Networks (CNNs) handle effortlessly in Euclidean grids like images.

The core challenge is the inherent irregularity of graphs. Unlike images, which have a fixed grid structure, graphs have varying node degrees and no natural ordering. This work introduces the Compressed Convolution Network (CoCN) to bridge this gap, re-ordering graph nodes into a regular sequence to leverage the expressive power of Euclidean convolutions.

Conceptual comparison between standard Graph Convolution and Euclidean Convolution.

Methods

Differentiable Graph Calibration

CoCN decouples the computational graph from the input topology using a Position Regression Module. This module maps nodes to a 1D line based on their features and structural roles. By employing a "relaxed" permutation matrix and cyclic shifts, the calibration process becomes differentiable, allowing the model to learn the optimal node ordering during training. This ensures permutation invariance, meaning the learned order remains consistent regardless of the initial input sequence.

Diagonal Convolution and Hierarchical Compression

Once nodes are calibrated into a sequence, CoCN applies a Diagonal Convolution operator. This operator mimics the local receptive field of a 2D CNN by sliding along the diagonal of the feature matrix, capturing both node attributes and structural relationships. To facilitate multi-scale learning, the model uses "anti-diagonal compression," which groups nodes into higher-level sets as the network deepens, creating a hierarchy analogous to pooling in image-based CNNs.

The CoCN pipeline: Position Regression maps nodes to 1D, followed by Permutation Generation and hierarchical convolutions.

Scalability with CoCN Turbo

To address massive real-world datasets, the authors developed CoCN Turbo. This version includes a Segment CoCN variant that uses a sliding window approach on the ordered node sequence. This allows the model to process large graphs in manageable batches, overcoming the memory limitations that often plague expressive GNNs.

Results and Discussion

CoCN was evaluated across a wide range of benchmarks, including graph classification (biochemical, social, and brain networks), node classification (heterophilic and large-scale graphs), and graph isomorphism tests.

  • Superior Accuracy: CoCN consistently outperformed competitive baselines such as GCN, GIN, and GraphSAGE. On the COLLAB social dataset, it achieved an accuracy improvement of over 5% compared to standard GCN.
  • Expressivity: Standard GNNs are often limited by the Weisfeiler-Lehman (1-WL) test. CoCN demonstrated superior expressivity by successfully distinguishing all 61 million non-isomorphic graph pairs in the Graph8c test.
  • Scalability: CoCN Turbo successfully scaled to the Genius dataset (421k nodes, 984k edges), maintaining high performance where other complex models failed due to resource constraints.
  • Architectural Flexibility: By mapping graphs to a quasi-Euclidean space, CoCN easily adopts successful CNN practices like residual connections and Inception modules, which are typically difficult to implement in standard GNN architectures.

Conclusion

CoCN provides a robust framework for bringing the hierarchical feature-learning capabilities of CNNs to the graph domain. By using differentiable calibration to order nodes, it enables the use of powerful Euclidean operators while remaining faithful to the graph's structural essence. While the permutation generation step adds some computational complexity, the gains in expressivity and performance are significant. Future research will explore applying CoCN to dynamic spatio-temporal graphs and multi-modal brain network studies.

Summary updated

BibTeX
@misc{sun2024scalable,
  author = {Junshu Sun and Chenxue Yang and Shuhui Wang and Qingming Huang},
  title = {{Scalable Graph Compressed Convolutions}},
  year = {2024},
  eprint = {2407.18480},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.18480},
}
Figure