Permutohedral-GCN: Graph Convolutional Networks with Global Attention

Hesham Mostafa, Marcel NassararXiv 2020

Introduction

Graph Convolutional Networks (GCNs) have revolutionized the processing of graph-structured data by enabling effective local feature aggregation. However, these models face a fundamental limitation: they struggle to capture long-range dependencies. In standard GCNs, a node's receptive field is limited to its immediate neighbors. While stacking multiple layers can expand this field, it often results in over-smoothing, where node representations converge to a uniform mean, destroying the discriminative power of the network.

To address this, researchers have explored global attention mechanisms that allow every node to attend to every other node. While powerful, naive global attention scales quadratically ($O(N^2)$) with the number of nodes, making it computationally prohibitive for large-scale graphs. This paper presents Permutohedral-GCN (PH-GCN), an architecture that achieves the benefits of global attention with linear $O(N)$ complexity by reframing attention as a high-dimensional filtering problem.

Methodology: Permutohedral Global Aggregation

PH-GCN utilizes a dual-pathway architecture. One pathway performs traditional local aggregation based on the graph's adjacency matrix, while the second pathway performs global aggregation. The core innovation lies in the global pathway's use of Euclidean Distance Attention and Permutohedral Lattice Filtering.

Euclidean Distance Attention

Instead of the dot-product attention common in Transformers and Graph Attention Networks (GATs), PH-GCN defines attention based on the Euclidean distance between learnable node embeddings. By using an exponential decay kernel, the attention mechanism becomes mathematically equivalent to Gaussian filtering in a high-dimensional space. This shift allows the model to leverage efficient filtering algorithms developed in the computer vision community.

Permutohedral Lattice Filtering

To solve the $O(N^2)$ bottleneck of exact Gaussian filtering, the authors employ the permutohedral lattice—a data structure that allows for approximate filtering in linear time. The process consists of three fully differentiable steps:

  1. Splatting: Node features are "splatted" onto the vertices of a high-dimensional permutohedral lattice based on their learned embeddings.
  2. Blurring: A local Gaussian filter is applied across the lattice vertices, effectively aggregating information from nearby points in the embedding space.
  3. Slicing: The filtered features are "sliced" (interpolated) back from the lattice to the original nodes.
The PH-GCN global aggregation pipeline, illustrating the splatting, blurring, and slicing operations on a permutohedral lattice.

This mechanism allows nodes that are semantically similar (close in embedding space) to share information efficiently, regardless of their distance in the input graph.

Experimental Evaluation

The authors evaluated PH-GCN on a variety of synthetic and real-world transductive node classification benchmarks.

Synthetic Motif Task

To test the model's ability to capture global context, the authors introduced a synthetic task where nodes are classified based on the frequency of specific structural motifs (e.g., cliques or cycles) across the entire graph. As shown in the results below, standard GAT models fail this task, as their local receptive field cannot perceive the global distribution of motifs. PH-GCN, however, achieves near-perfect accuracy, demonstrating its ability to aggregate information globally.

Synthetic motif graph task (a) and test accuracy comparison (b) between GAT and PH-GCN.

Real-World Performance

PH-GCN shows its greatest strength on non-assortative graphs, where connected nodes do not necessarily share the same label. On the WebKB datasets (Cornell, Texas, Wisconsin), PH-GCN significantly outperformed both GCN and GAT. For instance, on Cornell, PH-GCN reached 74.3% accuracy, compared to ~53% for the baselines. On highly assortative graphs like Cora, where local neighbors provide sufficient information, PH-GCN remains competitive with state-of-the-art local methods, showing that the global pathway does not degrade performance when local context is dominant.

Conclusion and Future Work

PH-GCN successfully bridges Graph ML and computer vision by applying efficient high-dimensional filtering to the problem of global graph attention. By decoupling semantic similarity from graph topology, it avoids the over-smoothing issues of deep GCNs while maintaining linear scalability.

A particularly exciting avenue for future work is the application of this $O(N)$ differentiable attention to Transformers. Currently, Transformers suffer from quadratic costs in long-sequence modeling. The permutohedral lattice approach could serve as a superior, fully differentiable alternative to existing approximations like hashing-based Reformers, potentially unlocking new scales for natural language processing and beyond.

Summary updated

Abstract

Graph convolutional networks (GCNs) update a node's feature vector by aggregating features from its neighbors in the graph. This ignores potentially useful contributions from distant nodes. Identifying such useful distant contributions is challenging due to scalability issues (too many nodes can potentially contribute) and oversmoothing (aggregating features from too many nodes risks swamping out relevant information and may result in nodes having different labels but indistinguishable features). We introduce a global attention mechanism where a node can selectively attend to, and aggregate features from, any other node in the graph. The attention coefficients depend on the Euclidean distance between learnable node embeddings, and we show that the resulting attention-based global aggregation scheme is analogous to high-dimensional Gaussian filtering. This makes it possible to use efficient approximate Gaussian filtering techniques to implement our attention-based global aggregation scheme. By employing an approximate filtering method based on the permutohedral lattice, the time complexity of our proposed global aggregation scheme only grows linearly with the number of nodes. The resulting GCNs, which we term permutohedral-GCNs, are differentiable and trained end-to-end, and they achieve state of the art performance on several node classification benchmarks.
BibTeX
@misc{mostafa2020permutohedral,
  author = {Hesham Mostafa and Marcel Nassar},
  title = {{Permutohedral-GCN: Graph Convolutional Networks with Global Attention}},
  year = {2020},
  eprint = {2003.00635},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.00635},
}
Figure