All in a Row: Compressed Convolution Networks for Graphs

Junshu Sun, Shuhui Wang, Xinzhe Han, Zhe Xue, Qingming HuangICML 2023

This paper introduces Compressed Convolution Networks for Graphs (CoCN), a novel framework that brings the power of standard Euclidean convolutions—the kind that made Deep Learning famous in computer vision—to the irregular world of graphs. By "lining up" graph nodes in a learnable, differentiable way, the authors enable hierarchical feature extraction that outperforms traditional Graph Neural Networks (GNNs).

TL;DR

CoCN bridges the gap between irregular graphs and regular grids by differentiably permuting nodes into a "row," allowing the use of efficient, CNN-like sliding window convolutions. This approach enables end-to-end hierarchical representation learning, achieving state-of-the-art results on both node and graph classification benchmarks.

The Challenge of Graph Convolutions

Convolutional Neural Networks (CNNs) are incredibly successful on grid-like data (like images) because they use local feature learning and global parameter sharing. However, graphs are irregular; they don't have a natural "up, down, left, right" or a fixed ordering of neighbors.

Existing GNNs try to solve this using message-passing or graph spectral filters, but these often struggle with:

  1. Limited Expressiveness: They often rely on simple polynomials that cannot capture complex local patterns as well as a CNN kernel.
  2. Clunky Hierarchies: Performing "pooling" on graphs usually requires complex, multi-stage clustering or node-dropping methods that can lose vital structural information.
  3. Non-Differentiable Ordering: Previous attempts to "regularize" graphs into sequences often used fixed sorting rules (like sorting by node degree) that could not be optimized for a specific task.

The CoCN Approach

The core innovation of CoCN is a three-part pipeline that makes the graph look like a sequence to a convolution kernel:

  1. Differentiable Permutation Generation: The model learns to assign each node an absolute position in a "row." It uses a multi-layer perceptron (MLP) and Laplacian smoothing to predict positions based on node features and local connectivity. Crucially, it uses a "cyclic shift" trick to make this permutation process fully differentiable, allowing the model to learn the best node ordering for the specific task at hand.
  2. Diagonal Convolution: Once the nodes are in a row, the model applies a "Diagonal Convolution." Instead of a standard 2D window, the kernel slides along the main diagonal of the permuted adjacency matrix. This allows it to simultaneously aggregate individual node features and the structural features (edges) between them.
  3. Anti-diagonal Compression: For hierarchical learning (pooling), CoCN uses "anti-diagonal compression." As the model goes deeper, it reduces the size of the graph representation by removing or pooling main diagonal blocks, effectively "coarsening" the graph while preserving topological structure.
The CoCN pipeline: Permuting the graph into a row, followed by diagonal convolutions.

The overall architecture varies slightly depending on the task, using transposed convolutions for node classification to recover multi-scale features.

The hierarchical architecture of CoCN for graph and node classification.

Key Insights

  • Learning the Order: The most significant breakthrough is making the node ordering learnable. By making the permutation differentiable, the model doesn't just convolve; it learns how to arrange the graph so that the convolution is most effective.
  • Structure as a Feature Map: By convolving over the adjacency matrix, CoCN treats the graph's topology as a learnable feature map, much like the color channels in an image.
  • Permutation Invariance: Despite reordering the nodes, the authors theoretically prove that CoCN remains permutation invariant—meaning the final output doesn't change if you just shuffle the IDs of the input nodes.

Experimental Validation

The authors evaluated CoCN on a wide array of standard benchmarks, covering both graph and node classification tasks.

Graph Classification: Tested on biochemical datasets (MUTAG, PROTEINS, NCI1) and social network datasets (COLLAB, IMDB-BINARY, IMDB-MULTI), CoCN achieved state-of-the-art results on complex social networks like COLLAB (86.15% accuracy) and IMDB-M (56.32%), where structural patterns are highly complex.

Node Classification: Evaluated on heterophilous graphs (where connected nodes have different labels) such as Chameleon, Squirrel, Cornell, Texas, Wisconsin, and Actor. The gains here were dramatic. On Chameleon, CoCN reached 79.17% accuracy, compared to just 59.82% for a standard GCN. On Squirrel, it hit 72.95%, nearly doubling the performance of some traditional GNNs.

Scalability: To test scalability, the authors used large-scale datasets like Genius, Questions, and Amazon-ratings. Using mini-batching (Cluster-GCN), CoCN performed comparably to full-batch baselines on large graphs, achieving 90.58% ROC AUC on Genius.

Limitations and Future Work

While highly effective, the authors note a few areas for improvement:

  • Weak Connectivity: CoCN's performance is slightly less dominant on graphs with very low average connectivity (like the MUTAG or TEXAS datasets), as there are fewer "structural features" for the diagonal convolution to capture.
  • Implicit Encoding: The current position regression might not fully capture all structural nuances in highly homophilous graphs (where neighbors are very similar).

Future directions include exploring more sophisticated position regression techniques to further improve how the model "lines up" nodes before convolution.

Summary updated

BibTeX
@inproceedings{sun2023all,
  author = {Junshu Sun and Shuhui Wang and Xinzhe Han and Zhe Xue and Qingming Huang},
  title = {{All in a Row: Compressed Convolution Networks for Graphs}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=AHWSZhGXbs},
}
Figure