[Paper Review] A Generalization of ViT/MLP-Mixer to Graphs
This paper proposes Graph ViT/MLP-Mixer, a novel GNN architecture that generalizes Vision Transformer and MLP-Mixer to graphs by partitioning graphs into patches and applying token-mixing and channel-mixing mechanisms. It achieves linear complexity in nodes and edges, mitigates over-squashing, and outperforms MP-GNNs and Graph Transformers on long-range dependency and expressivity benchmarks.
Graph Neural Networks (GNNs) have shown great potential in the field of graph representation learning. Standard GNNs define a local message-passing mechanism which propagates information over the whole graph domain by stacking multiple layers. This paradigm suffers from two major limitations, over-squashing and poor long-range dependencies, that can be solved using global attention but significantly increases the computational cost to quadratic complexity. In this work, we propose an alternative approach to overcome these structural limitations by leveraging the ViT/MLP-Mixer architectures introduced in computer vision. We introduce a new class of GNNs, called Graph ViT/MLP-Mixer, that holds three key properties. First, they capture long-range dependency and mitigate the issue of over-squashing as demonstrated on Long Range Graph Benchmark and TreeNeighbourMatch datasets. Second, they offer better speed and memory efficiency with a complexity linear to the number of nodes and edges, surpassing the related Graph Transformer and expressive GNN models. Third, they show high expressivity in terms of graph isomorphism as they can distinguish at least 3-WL non-isomorphic graphs. We test our architecture on 4 simulated datasets and 7 real-world benchmarks, and show highly competitive results on all of them. The source code is available for reproducibility at: \url{https://github.com/XiaoxinHe/Graph-ViT-MLPMixer}.
Motivation & Objective
- Address the limitations of message-passing GNNs, particularly over-squashing and poor long-range dependency.
- Overcome the quadratic complexity of Graph Transformers while maintaining or improving expressivity.
- Develop a GNN architecture that captures long-range dependencies efficiently without relying on stacked message-passing layers.
- Enhance graph isomorphism expressivity beyond 1-WL, enabling distinction of more complex non-isomorphic graphs.
- Achieve high performance with linear time and memory complexity across diverse graph benchmarks, including large-scale and sparse graphs.
Proposed method
- Partition graphs into P patches using METIS graph partitioning, with one-hop overlapping to preserve connectivity.
- Apply a base GNN (e.g., GCN, GIN) to each patch to compute patch embeddings, introducing a constant overhead over standard GNNs.
- Apply a token-mixer layer that performs cross-patch attention or feed-forward operations to model long-range dependencies between patches.
- Apply a channel-mixer layer to refine node representations within each patch, enabling feature-level interaction.
- Use a global classification head to aggregate patch representations for downstream tasks.
- Leverage the MLP-Mixer-style architecture to decouple spatial (patch) and channel-wise feature learning, enabling efficient global modeling.
Experimental results
Research questions
- RQ1Can a ViT/MLP-Mixer-inspired architecture be effectively generalized to graph-structured data to overcome the limitations of message-passing GNNs?
- RQ2Does the proposed Graph ViT/MLP-Mixer achieve better long-range dependency modeling than standard MP-GNNs and Graph Transformers?
- RQ3Can the model maintain linear time and memory complexity while achieving higher expressivity than 1-WL and 2-WL GNNs?
- RQ4How does the model perform on benchmarks with long-range dependencies and structural complexity, such as TreeNeighbourMatch and Long Range Graph Benchmark?
- RQ5To what extent does the model’s performance depend on the number of patches and the graph partitioning strategy?
Key findings
- Graph ViT/MLP-Mixer achieves a 0.056 average improvement in Average Precision on Peptides-func and a 0.028 MAE reduction on Peptides-struct, demonstrating superior long-range interaction modeling.
- On the TreeNeighbourMatch dataset, the model generalizes up to depth r=7, while standard MP-GNNs fail at r=4, indicating effective mitigation of over-squashing.
- The model achieves performance comparable to SUN (0.6730 on Peptides-func, 0.2498 on Peptides-struct) but with 44× less memory and 19× faster training, confirming its efficiency.
- Graph MLP-Mixer shows high expressivity, capable of distinguishing at least 3-WL non-isomorphic graphs, surpassing standard MP-GNNs.
- The model maintains linear complexity O(N + E) in both time and memory, significantly outperforming Graph Transformers and expressive GNNs like SUN in scalability.
- Empirical results on 4 simulated and 7 real-world benchmarks show highly competitive performance across all tasks, validating the architecture’s robustness and generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.