A Generalization of ViT/MLP-Mixer to Graphs

Xiaoxin HeBryan HooiThomas LaurentAdam PeroldYann LeCunXavier Bresson

article2023ICML135 citations

Generalizes vision transformer and MLP-Mixer architectures to graph representation learning, offering a linear-complexity model that mitigates over-squashing, models long-range dependencies, and achieves 3-WL expressive power.

Listen

Graph Neural Networks (GNNs) are critical tools for modeling relational data in domains such as drug discovery, chemistry, social networks, and computer vision. However, standard message-passing architectures struggle with two significant issues: poor long-range dependency and over-squashing, where exponentially growing neighborhood information is compressed into fixed-size vectors. While Graph Transformers address these challenges using global attention mechanisms, they introduce quadratic computational complexity relative to the number of nodes, making them inefficient and prohibitively expensive for large graphs.

The article evaluates a new framework that adapts vision-based ViT and MLP-Mixer architectures to graph learning, creating the Graph ViT/MLP-Mixer class of models. The primary objective is to demonstrate that this architecture can capture long-range interactions, achieve high expressive power, and maintain linear computational and memory complexity without relying on costly full-graph attention mechanisms.

To achieve this, the approach partitions graphs into overlapping sub-graph patches using a fast clustering algorithm (METIS expanded by one hop) to preserve critical boundary edges. A local message-passing neural network encodes each patch into a vector representation, and explicit node and patch positional encodings maintain spatial relationships. Alternating token-mixing and channel-mixing layers then combine information across all patches and feature dimensions in linear time. The authors validated the framework across four simulated datasets (evaluating graph isomorphism and over-squashing) and seven real-world benchmarks spanning molecular property prediction, image superpixels, and large peptide structures, comparing performance, runtime, and memory usage against standard message-passing and transformer baselines.

The key findings show that the proposed model delivers state-of-the-art accuracy while dramatically reducing computational overhead. First, on the Long Range Graph Benchmark (Peptides-func and Peptides-struct), the model achieved top scores (0.6970 Average Precision and 0.2449 Mean Absolute Error), significantly outperforming standard message-passing baselines. Second, it demonstrated linear scalability, consuming up to 18 to 20 times less memory and running up to 43 times faster per epoch than leading expressive graph models like SUN on large graphs. Third, the framework effectively mitigated over-squashing on the synthetic TreeNeighbourMatch benchmark, generalizing successfully up to a tree depth of seven where standard models failed at depth four. Finally, the architecture achieved 100% accuracy on simulated isomorphism datasets (CSL, EXP, and SR25), demonstrating empirical expressive power at the level of higher-order Weisfeiler-Leman tests.

These results demonstrate that attention mechanisms are not strictly necessary to capture long-range dependencies in graph learning. Organizations can achieve state-of-the-art predictive accuracy with linear resource scaling, substantially reducing hardware requirements, training times, and operational costs for large-scale graph analytics. Furthermore, the framework acts as a versatile plugin, consistently improving the performance of various underlying message-passing encoders.

Organizations evaluating or deploying graph learning models should consider adopting patch-based mixer architectures as a lightweight, scalable alternative to Graph Transformers for long-range reasoning tasks. To implement the method effectively, practitioners should use overlapping patch extraction rather than disjoint partitioning and leverage on-the-fly partition perturbations during training to regularize the model and prevent overfitting.

Confidence in these findings is strong across the evaluated benchmarks, but practical limitations remain. The number of graph clusters must currently be chosen as a fixed parameter, which can cause the model to process graphs of variable sizes at inconsistent structural resolutions. Additionally, the high expressive power demonstrated in the article remains empirical without formal mathematical guarantees, and large-scale pre-training across wider domain benchmarks has yet to be evaluated.

Cover for A Generalization of ViT/MLP-Mixer to Graphs

Abstract

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: https://github.com/XiaoxinHe/Graph-ViT-MLPMixer.

Table of Contents

  • 1. Message-Passing GNNs and the Limitations
  • 2. Generalizing ViT/MLP-Mixer to Graphs
  • 3. Generalization Challenges
  • 4. Proposed Architecture
  • 4.1. Overview
  • 4.2. Patch Extraction
  • 4.3. Patch Encoder
  • 4.4. Positional Information
  • 4.5. Mixer Layer
  • 4.6. Data augmentation
  • 5. Experiments
  • 5.1. Comparison with MP-GNNs
  • 5.2. Comparison with SOTAs
  • 5.3. Graph ViT/MLP-Mixer can mitigate over-squashing
  • 5.4. Graph ViT/MLP-Mixer can achieve empirical high expressivity
  • 5.5. Ablation Studies
  • 6. Conclusion
  • Acknowledgments
  • References
  • A. Related Work
  • B. Datasets Description
  • C. Experiment Details
  • D. Studies on Patch Extraction Module
  • D.1. Effect of Patch Extraction
  • D.2. Effect of Graph Partition Algorithm
  • D.3. Effect of Number of Patches
  • D.4. Effect of Patch Overlapping
  • D.5. Patch Size and WL Expressivity
  • E. Studies on Positional Encoding
  • E.1. Effect of Positional Encoding
  • E.2. Positional Encoding and Patch Size
  • F. Study on Different Designs of Graph-Based MHA
  • G. Effect of Data Augmentation
  • H. Long Range Graph Benchmark
  • I. Mitigating Oversquashing in TreeNeighbourMatch
  • J. Complexity Analysis
  • K. Limitations

Knowls

  1. Knowl 1 — Graph ViT/MLP-Mixer Architecture Overview

    model/method

    Graph ViT/MLP-Mixer is a deep learning architecture designed to generalize Vision Transformer (ViT) and MLP-Mixer architectures to graph-structured data. Given an input graph G=(V,E)G = (\mathcal{V}, \mathcal{E}) with N=∣V∣N = |\mathcal{V}| nodes, E=∣E∣E = |\mathcal{E}| edges, node feature matrix, and edge feature matrix, the pipeline operates in four main stages:

    1. Patch Extraction: Partitions the graph GG into a fixed number of PP overlapping subgraphs (patches) {G1,…,GP}\{G_1, \dots, G_P\} using the METIS clustering algorithm followed by 1-hop neighborhood expansion.
    2. Patch Embedding (Encoder): Encodes each patch Gp=(Vp,Ep)G_p = (\mathcal{V}_p, \mathcal{E}_p) into a fixed dd-dimensional token vector xGp∈Rdx_{G_p} \in \mathbb{R}^d using a message-passing graph neural network (MP-GNN) followed by patch-level readout.
    3. Mixer / Transformer Layers: Stacks LmixL_{\text{mix}} layers that alternate between mixing token representations across the PP patches (via token-mixing MLPs or graph-based multi-head attention) and channel representations within each token (via channel-mixing MLPs).
    4. Graph-Level Pooling and Readout: Computes the final graph embedding by masked average pooling over valid non-empty patch tokens: hG=∑p=1Pmp⋅xGp∑p=1Pmp∈Rdh_G = \frac{\sum_{p=1}^P m_p \cdot x_{G_p}}{\sum_{p=1}^P m_p} \in \mathbb{R}^d where mp∈{0,1}m_p \in \{0, 1\} indicates whether patch pp is non-empty, followed by an MLP classifier/regressor head yG=MLP(hG)y_G = \text{MLP}(h_G).
  2. Knowl 2 — Overlapping Graph Patch Extraction via METIS and 1-Hop Expansion

    model/method

    Graph patch extraction decomposes an irregular input graph G=(V,E)G = (\mathcal{V}, \mathcal{E}) into PP graph tokens {G1,…,GP}\{G_1, \dots, G_P\}. To preserve edge connectivity that would otherwise be discarded across cluster boundaries, extraction proceeds in two steps:

    1. METIS Partitioning: The METIS graph clustering algorithm partitions V\mathcal{V} into PP disjoint subsets {V1,…,VP}\{\mathcal{V}_1, \dots, \mathcal{V}_P\} such that V=⋃p=1PVp\mathcal{V} = \bigcup_{p=1}^P \mathcal{V}_p and Vi∩Vj=∅\mathcal{V}_i \cap \mathcal{V}_j = \emptyset for all i≠ji \neq j, maximizing within-cluster links and minimizing between-cluster cuts in O(E)O(E) runtime.
    2. 1-Hop Overlapping Expansion: Each partition Vp\mathcal{V}_p is extended to include the 1-hop neighbors of all its constituent nodes: Vp←Vp∪{N1(j)∣j∈Vp}\mathcal{V}_p \leftarrow \mathcal{V}_p \cup \left\{ \mathcal{N}_1(j) \mid j \in \mathcal{V}_p \right\} where N1(j)\mathcal{N}_1(j) is the 1-hop neighborhood of node jj. The induced subgraph patch Gp=(Vp,Ep)G_p = (\mathcal{V}_p, \mathcal{E}_p) contains all nodes in the expanded subset Vp\mathcal{V}_p and all original edges whose endpoints both belong to Vp\mathcal{V}_p.
  3. Knowl 3 — Graph Patch Encoder Module

    model/method

    The patch encoder transforms each extracted graph patch Gp=(Vp,Ep)G_p = (\mathcal{V}_p, \mathcal{E}_p) into a fixed dd-dimensional token embedding xGp∈Rdx_{G_p} \in \mathbb{R}^d through three steps:

    1. Linear Feature Projection and Node Positional Encoding: Raw node features αi∈Rdn\alpha_i \in \mathbb{R}^{d_n}, edge features βij∈Rde\beta_{ij} \in \mathbb{R}^{d_e}, and node positional encodings pi∈RKp_i \in \mathbb{R}^K are linearly projected into dd-dimensional space: hi0=T0pi+U0αi+u0∈Rd,eij0=V0βij+v0∈Rdh_i^0 = T^0 p_i + U^0 \alpha_i + u^0 \in \mathbb{R}^d, \quad e_{ij}^0 = V^0 \beta_{ij} + v^0 \in \mathbb{R}^d where T0∈Rd×KT^0 \in \mathbb{R}^{d \times K}, U0∈Rd×dnU^0 \in \mathbb{R}^{d \times d_n}, V0∈Rd×deV^0 \in \mathbb{R}^{d \times d_e} are learnable projection matrices, and u0,v0∈Rdu^0, v^0 \in \mathbb{R}^d are learnable biases.

    2. Local Message Passing with Overlap Averaging: Over LL MP-GNN layers, node and edge features are updated within each patch GpG_p: hi,pℓ+1=fnode(hi,pℓ,{hj,pℓ∣j∈N(i)∩Vp},eij,pℓ)+gpatch-node(hpℓ)h_{i,p}^{\ell+1} = f_{\text{node}}\left(h_{i,p}^\ell, \{h_{j,p}^\ell \mid j \in \mathcal{N}(i) \cap \mathcal{V}_p\}, e_{ij,p}^\ell\right) + g_{\text{patch-node}}(h_p^\ell) eij,pℓ+1=fedge(hi,pℓ,hj,pℓ,eij,pℓ)+gpatch-edge(epℓ)e_{ij,p}^{\ell+1} = f_{\text{edge}}\left(h_{i,p}^\ell, h_{j,p}^\ell, e_{ij,p}^\ell\right) + g_{\text{patch-edge}}(e_p^\ell) where hpℓ=1∣Vp∣∑i∈Vphi,pℓh_p^\ell = \frac{1}{|\mathcal{V}_p|} \sum_{i \in \mathcal{V}_p} h_{i,p}^\ell, epℓ=1∣Ep∣∑ij∈Epeij,pℓe_p^\ell = \frac{1}{|\mathcal{E}_p|} \sum_{ij \in \mathcal{E}_p} e_{ij,p}^\ell, and gpatch-node,gpatch-edgeg_{\text{patch-node}}, g_{\text{patch-edge}} are MLPs acting on the patch-level means. Node and edge representations shared across overlapping patches are averaged across all patches containing them: hi,pℓ+1←1∣{k∣i∈Vk}∣∑k:i∈Vkhi,kℓ+1,eij,pℓ+1←1∣{k∣ij∈Ek}∣∑k:ij∈Ekeij,kℓ+1h_{i,p}^{\ell+1} \leftarrow \frac{1}{|\{k \mid i \in \mathcal{V}_k\}|} \sum_{k: i \in \mathcal{V}_k} h_{i,k}^{\ell+1}, \quad e_{ij,p}^{\ell+1} \leftarrow \frac{1}{|\{k \mid ij \in \mathcal{E}_k\}|} \sum_{k: ij \in \mathcal{E}_k} e_{ij,k}^{\ell+1}

    3. Patch Readout: Representations from layer LL are mean-pooled across Vp\mathcal{V}_p to obtain hp=1∣Vp∣∑i∈Vphi,pLh_p = \frac{1}{|\mathcal{V}_p|} \sum_{i \in \mathcal{V}_p} h_{i,p}^L, and passed through an MLP to generate xGp=MLP(hp)∈Rdx_{G_p} = \text{MLP}(h_p) \in \mathbb{R}^d.

  4. Knowl 4 — Graph Mixer Layer and Hadamard Graph Multi-Head Attention

    model/method

    Given patch embedding matrix X∈RP×dX \in \mathbb{R}^{P \times d}, inter-token representations are updated using either an MLP-Mixer block or a Graph Vision Transformer (ViT) block:

    Graph MLP-Mixer Layer: Alternates token mixing across the PP patch tokens and channel mixing across the dd feature dimensions: U=X+(W2 σ(W1 LayerNorm(X)))∈RP×dU = X + \left(W_2 \, \sigma\left(W_1 \, \text{LayerNorm}(X)\right)\right) \in \mathbb{R}^{P \times d} Y=U+(W4 σ(W3 LayerNorm(U)T))T∈RP×dY = U + \left(W_4 \, \sigma\left(W_3 \, \text{LayerNorm}(U)^T\right)\right)^T \in \mathbb{R}^{P \times d} where σ\sigma is the GELU activation function, LayerNorm(⋅)\text{LayerNorm}(\cdot) denotes layer normalization, W1∈Rds×PW_1 \in \mathbb{R}^{d_s \times P}, W2∈RP×dsW_2 \in \mathbb{R}^{P \times d_s}, W3∈Rdc×dW_3 \in \mathbb{R}^{d_c \times d}, and W4∈Rd×dcW_4 \in \mathbb{R}^{d \times d_c}, with dsd_s and dcd_c being the hidden dimensions of the token-mixing and channel-mixing MLPs.

    Graph ViT Layer (gMHA): Replaces token mixing with a topology-aware graph multi-head self-attention module: U=X+gMHA(LayerNorm(X))∈RP×dU = X + \text{gMHA}(\text{LayerNorm}(X)) \in \mathbb{R}^{P \times d} Y=U+MLP(LayerNorm(U))∈RP×dY = U + \text{MLP}(\text{LayerNorm}(U)) \in \mathbb{R}^{P \times d} where gMHA\text{gMHA} incorporates the coarsened patch adjacency matrix AP∈RP×PA^P \in \mathbb{R}^{P \times P} via Hadamard product: gMHA(X)=(AP⊙softmax(QKTd))V\text{gMHA}(X) = \left( A^P \odot \text{softmax}\left(\frac{Q K^T}{\sqrt{d}}\right) \right) V where Q=XWQ,K=XWK,V=XWVQ = X W_Q, K = X W_K, V = X W_V are linear projections for queries, keys, and values.

  5. Knowl 5 — Two-Level Positional Encodings for Graphs

    model/method

    To inject geometric and structural ordering into unordered graph patches and nodes, Graph ViT/MLP-Mixer employs a two-level positional encoding (PE) framework:

    1. Node Positional Encoding (Node PE): Augments node feature inputs in the patch encoder with absolute positional vectors pi∈RKp_i \in \mathbb{R}^K. Molecular graphs employ Random Walk Structural Encodings (RWSE), while superpixel graphs employ Laplacian Eigenvector Positional Encodings (LapPE) with random sign flips applied during training.
    2. Patch Positional Encoding (Patch PE): Computes relative positional encodings between graph patches using a coarsened adjacency matrix AP∈RP×PA^P \in \mathbb{R}^{P \times P}: AijP=Cut(Vi,Vj)=∑k∈Vi∑l∈VjAklA^P_{ij} = \text{Cut}(\mathcal{V}_i, \mathcal{V}_j) = \sum_{k \in \mathcal{V}_i} \sum_{l \in \mathcal{V}_j} A_{kl} where A∈RN×NA \in \mathbb{R}^{N \times N} is the original adjacency matrix, and Cut(Vi,Vj)\text{Cut}(\mathcal{V}_i, \mathcal{V}_j) counts connecting edges between clusters Vi\mathcal{V}_i and Vj\mathcal{V}_j. Patch-level positional encodings p^i∈RK^\hat{p}_i \in \mathbb{R}^{\hat{K}} (e.g., RWSE computed from APA^P) are added to patch embeddings xi∈Rdx_i \in \mathbb{R}^d entering the first mixer block: xi0=T^0p^i+U^0xi+u^0∈Rdx_i^0 = \hat{T}^0 \hat{p}_i + \hat{U}^0 x_i + \hat{u}^0 \in \mathbb{R}^d where T^0∈Rd×K^,U^0∈Rd×d\hat{T}^0 \in \mathbb{R}^{d \times \hat{K}}, \hat{U}^0 \in \mathbb{R}^{d \times d}, and u^0∈Rd\hat{u}^0 \in \mathbb{R}^d are learnable parameters.
  6. Knowl 6 — Dynamic Patch Perturbation Data Augmentation

    model/method

    To prevent overfitting in Graph ViT/MLP-Mixer models, dynamic graph patch perturbation is performed at every training epoch:

    1. A perturbed graph G′=(V,E′)G' = (\mathcal{V}, \mathcal{E}') is created by randomly dropping a small subset of edges from the original graph G=(V,E)G = (\mathcal{V}, \mathcal{E}).
    2. The METIS graph partitioning algorithm is executed on the perturbed graph G′G' to generate stochastic partition clusters {V1,…,VP}\{\mathcal{V}_1, \dots, \mathcal{V}_P\}.
    3. The actual patches {G1,…,GP}\{G_1, \dots, G_P\} are extracted as induced subgraphs of the original unperturbed graph GG using these partitions (followed by 1-hop expansion).

    This produces distinct patch configurations across epochs while retaining all original nodes and edges, acting as effective regularizing data augmentation without altering the underlying graph data.

  7. Knowl 7 — Performance Improvement over Base MP-GNNs on Benchmark Datasets

    data/table

    Applying Graph MLP-Mixer and Graph ViT architectures over baseline MP-GNN encoders (GCN, GatedGCN, GINE, GraphTrans) consistently improves test performance across diverse benchmark tasks.

    Model ZINC MNIST CIFAR10 MolTOX21 MolHIV Peptide-func Peptide-struct
    MAE ↓\downarrow Accuracy ↑\uparrow Accuracy ↑\uparrow ROCAUC ↑\uparrow ROCAUC ↑\uparrow AP ↑\uparrow MAE ↓\downarrow
    GCN 0.1952±0.00570.1952 \pm 0.0057 0.9269±0.00230.9269 \pm 0.0023 0.5423±0.00560.5423 \pm 0.0056 0.7525±0.00310.7525 \pm 0.0031 0.7813±0.00810.7813 \pm 0.0081 0.6328±0.00860.6328 \pm 0.0086 0.2758±0.00120.2758 \pm 0.0012
    GCN-MLP-Mixer 0.1347±0.00200.1347 \pm 0.0020 0.9516±0.00270.9516 \pm 0.0027 0.6111±0.00170.6111 \pm 0.0017 0.7816±0.00750.7816 \pm 0.0075 0.7929±0.01110.7929 \pm 0.0111 0.6832±0.00610.6832 \pm 0.0061 0.2486±0.00410.2486 \pm 0.0041
    GCN-ViT 0.1688±0.00950.1688 \pm 0.0095 0.9600±0.00150.9600 \pm 0.0015 0.6367±0.00270.6367 \pm 0.0027 0.7820±0.00960.7820 \pm 0.0096 0.7780±0.01200.7780 \pm 0.0120 0.6855±0.00490.6855 \pm 0.0049 0.2468±0.00150.2468 \pm 0.0015
    GatedGCN 0.1577±0.00460.1577 \pm 0.0046 0.9776±0.00170.9776 \pm 0.0017 0.6628±0.00170.6628 \pm 0.0017 0.7641±0.00570.7641 \pm 0.0057 0.7874±0.01190.7874 \pm 0.0119 0.6300±0.00290.6300 \pm 0.0029 0.2778±0.00170.2778 \pm 0.0017
    GatedGCN-MLP-Mixer 0.1244±0.00530.1244 \pm 0.0053 0.9832±0.00040.9832 \pm 0.0004 0.7060±0.00220.7060 \pm 0.0022 0.7910±0.00400.7910 \pm 0.0040 0.7976±0.01360.7976 \pm 0.0136 0.6932±0.00170.6932 \pm 0.0017 0.2508±0.00070.2508 \pm 0.0007
    GatedGCN-ViT 0.1421±0.00310.1421 \pm 0.0031 0.9846±0.00090.9846 \pm 0.0009 0.7158±0.00090.7158 \pm 0.0009 0.7857±0.00280.7857 \pm 0.0028 0.7734±0.01140.7734 \pm 0.0114 0.6942±0.00750.6942 \pm 0.0075 0.2465±0.00150.2465 \pm 0.0015
    GINE 0.1072±0.00370.1072 \pm 0.0037 0.9705±0.00230.9705 \pm 0.0023 0.6131±0.00350.6131 \pm 0.0035 0.7730±0.00640.7730 \pm 0.0064 0.7885±0.00340.7885 \pm 0.0034 0.6405±0.00770.6405 \pm 0.0077 0.2780±0.00210.2780 \pm 0.0021
    GINE-MLP-Mixer 0.0733±0.00140.0733 \pm 0.0014 0.9809±0.00040.9809 \pm 0.0004 0.6833±0.00220.6833 \pm 0.0022 0.7868±0.00430.7868 \pm 0.0043 0.7997±0.01020.7997 \pm 0.0102 0.6970±0.00800.6970 \pm 0.0080 0.2494±0.00070.2494 \pm 0.0007
    GINE-ViT 0.0849±0.00470.0849 \pm 0.0047 0.9820±0.00050.9820 \pm 0.0005 0.6967±0.00400.6967 \pm 0.0040 0.7851±0.00770.7851 \pm 0.0077 0.7792±0.01490.7792 \pm 0.0149 0.6919±0.00850.6919 \pm 0.0085 0.2449±0.00160.2449 \pm 0.0016
    GraphTrans 0.1230±0.00180.1230 \pm 0.0018 0.9782±0.00120.9782 \pm 0.0012 0.6809±0.00200.6809 \pm 0.0020 0.7646±0.00550.7646 \pm 0.0055 0.7884±0.01040.7884 \pm 0.0104 0.6313±0.00390.6313 \pm 0.0039 0.2777±0.00250.2777 \pm 0.0025
    GraphTrans-MLP-Mixer 0.0773±0.00300.0773 \pm 0.0030 0.9742±0.00110.9742 \pm 0.0011 0.7396±0.00330.7396 \pm 0.0033 0.7817±0.00400.7817 \pm 0.0040 0.7969±0.00610.7969 \pm 0.0061 0.6858±0.00620.6858 \pm 0.0062 0.2480±0.00130.2480 \pm 0.0013
    GraphTrans-ViT 0.0960±0.00730.0960 \pm 0.0073 0.9725±0.00230.9725 \pm 0.0023 0.7211±0.00550.7211 \pm 0.0055 0.7835±0.00320.7835 \pm 0.0032 0.7755±0.02080.7755 \pm 0.0208 0.6876±0.00590.6876 \pm 0.0059 0.2455±0.00270.2455 \pm 0.0027

    All baseline architectures were augmented with the same positional encodings for fair comparison. The results demonstrate large improvements on the Long Range Graph Benchmark (LRGB), showing an average gain of 0.0560.056 Average Precision on Peptides-func and an average reduction of 0.0280.028 MAE on Peptides-struct.

  8. Knowl 8 — Empirical Isomorphism Expressivity on 1-WL, 2-WL, and 3-WL Benchmarks

    data/table

    Standard MP-GNNs are theoretically bounded by the 1-Weisfeiler-Leman (1-WL) isomorphism test and fail to distinguish non-isomorphic regular graphs. Graph MLP-Mixer was evaluated on three synthetic benchmark datasets: CSL (150 4-regular graphs, 1-WL failure), EXP (600 graph pairs, 1-WL and 2-WL failure), and SR25 (15 strongly regular graphs with 25 nodes, 3-WL failure).

    Model CSL (ACC ↑\uparrow) EXP (ACC ↑\uparrow) SR25 (ACC ↑\uparrow)
    GCN 10.00±0.0010.00 \pm 0.00 51.90±1.9651.90 \pm 1.96 6.67±0.006.67 \pm 0.00
    GatedGCN 10.00±0.0010.00 \pm 0.00 51.73±1.6551.73 \pm 1.65 6.67±0.006.67 \pm 0.00
    GINE 10.00±0.0010.00 \pm 0.00 50.69±1.3950.69 \pm 1.39 6.67±0.006.67 \pm 0.00
    GraphTrans 10.00±0.0010.00 \pm 0.00 52.35±2.3252.35 \pm 2.32 6.67±0.006.67 \pm 0.00
    GCN-MLP-Mixer 100.00±0.00100.00 \pm 0.00 100.00±0.00100.00 \pm 0.00 100.00±0.00100.00 \pm 0.00
    GatedGCN-MLP-Mixer 100.00±0.00100.00 \pm 0.00 100.00±0.00100.00 \pm 0.00 100.00±0.00100.00 \pm 0.00
    GINE-MLP-Mixer 100.00±0.00100.00 \pm 0.00 100.00±0.00100.00 \pm 0.00 100.00±0.00100.00 \pm 0.00
    GraphTrans-MLP-Mixer 100.00±0.00100.00 \pm 0.00 100.00±0.00100.00 \pm 0.00 100.00±0.00100.00 \pm 0.00

    While all baseline MP-GNN models perform at chance level (10.00%10.00\% on CSL, ≈51%\approx 51\% on EXP, and 6.67%6.67\% on SR25), all Graph MLP-Mixer variants achieve 100.00%100.00\% test accuracy, empirically demonstrating expressivity capable of distinguishing at least 3-WL non-isomorphic graphs.

  9. Knowl 9 — Over-Squashing Mitigation on TreeNeighbourMatch

    empirical result

    The TreeNeighbourMatch benchmark tests an architecture's susceptibility to over-squashing as the tree depth (problem radius rr) increases. Each instance is a binary tree of depth rr where a target node must be assigned an alphabetical label identical to the leaf node having the same degree as the target node.

    Standard MP-GNNs (GCN, GatedGCN, GAT, GIN) fail completely to generalize for r≥4r \ge 4 because they are forced to compress exponentially growing leaf information (O(2r)O(2^r)) into a fixed-length target node embedding. In contrast, Graph MLP-Mixer and Graph ViT maintain near 100%100\% classification accuracy from r=2r = 2 up to r=6r = 6, and achieve robust generalization at r=7r = 7, before dropping at r=8r = 8. This demonstrates that passing patch-level tokens directly through mixer and attention layers bypasses the localized information bottleneck of message-passing.

  10. Knowl 10 — Comparison of Attention Formulations in Graph ViT

    data/table

    Five different graph-based multi-head attention (gMHA) formulations were evaluated within the Graph ViT transformer layer on the ZINC (molecular regression) and Peptides-func (long-range functional classification) datasets.

    gMHA Formulation Attention Equation ZINC (MAE ↓\downarrow) Peptides-func (AP ↑\uparrow)
    Standard / Full Attention softmax(QKTd)V\text{softmax}\left(\frac{Q K^T}{\sqrt{d}}\right) V 0.1784±0.02380.1784 \pm 0.0238 0.6778±0.00390.6778 \pm 0.0039
    Graph Attention softmax(AP⊙QKTd)V\text{softmax}\left(A^P \odot \frac{Q K^T}{\sqrt{d}}\right) V 0.1527±0.00670.1527 \pm 0.0067 0.6795±0.00700.6795 \pm 0.0070
    Kernel Attention softmax(RW(AP)⊙QKTd)V\text{softmax}\left(\text{RW}(A^P) \odot \frac{Q K^T}{\sqrt{d}}\right) V 0.1010±0.00310.1010 \pm 0.0031 0.6844±0.01020.6844 \pm 0.0102
    Additive Attention (softmax(QKTd)+LL(AP))V\left(\text{softmax}\left(\frac{Q K^T}{\sqrt{d}}\right) + \text{LL}(A^P)\right) V 0.1632±0.00630.1632 \pm 0.0063 0.6842±0.00570.6842 \pm 0.0057
    Hadamard Attention (AP⊙softmax(QKTd))V\left(A^P \odot \text{softmax}\left(\frac{Q K^T}{\sqrt{d}}\right)\right) V 0.0849±0.00470.0849 \pm 0.0047 0.6919±0.00850.6919 \pm 0.0085

    Hadamard Attention—where the full attention distribution is weighted via an elementwise Hadamard product with the coarsened patch adjacency matrix APA^P—achieved the best performance on both datasets (0.08490.0849 MAE on ZINC and 0.69190.6919 AP on Peptides-func).

  11. Knowl 11 — Computational Time and Memory Complexity

    theoretical result

    For a graph G=(V,E)G = (\mathcal{V}, \mathcal{E}) with N=∣V∣N = |\mathcal{V}| nodes and E=∣E∣E = |\mathcal{E}| edges partitioned into PP overlapping patches {G1,…,GP}\{G_1, \dots, G_P\}:

    1. Patch Extraction: METIS partitioning executes in O(E)O(E) time.
    2. Patch Embedding Module: With total patch nodes N′=∑p=1P∣Vp∣≤PNN' = \sum_{p=1}^P |\mathcal{V}_p| \le P N and total patch edges E′=∑p=1P∣Ep∣≤PEE' = \sum_{p=1}^P |\mathcal{E}_p| \le P E, the MP-GNN patch encoder operates in O(N′+E′)O(N' + E') runtime and memory, preserving linear O(N+E)O(N + E) complexity with a constant overhead proportional to neighborhood overlap.
    3. Mixer Layers: Operating on PP tokens per graph requires O(P)O(P) memory and computation per layer for Graph MLP-Mixer, avoiding the quadratic O(N2)O(N^2) scaling of dense Graph Transformers.

    On the Peptides-func dataset, Graph MLP-Mixer achieves competitive or superior accuracy while requiring 43.8×43.8\times less training time and 18.8×18.8\times less GPU memory than expressive subgraph networks (SUN), and 9.4×9.4\times less training time and 12.4×12.4\times less memory than spectral Graph Transformers (SAN+LapPE).

  12. Knowl 12 — Ablation of Patch Extraction and Overlapping Hop Radius

    data/table

    Ablation experiments evaluate the impact of using graph patch extraction versus treating each individual node as a patch, and the effect of varying the neighborhood expansion hop radius kk.

    Model Patch Extraction ZINC (MAE ↓\downarrow) Peptides-func (AP ↑\uparrow)
    GCN-MLP-Mixer No 0.2495±0.00400.2495 \pm 0.0040 0.6341±0.01390.6341 \pm 0.0139
    Yes 0.1347±0.00200.1347 \pm 0.0020 0.6832±0.00610.6832 \pm 0.0061
    GatedGCN-MLP-Mixer No 0.2521±0.00840.2521 \pm 0.0084 0.6230±0.01100.6230 \pm 0.0110
    Yes 0.1244±0.00530.1244 \pm 0.0053 0.6932±0.00170.6932 \pm 0.0017
    GINE-MLP-Mixer No 0.2558±0.00590.2558 \pm 0.0059 0.6350±0.00380.6350 \pm 0.0038
    Yes 0.0733±0.00140.0733 \pm 0.0014 0.6970±0.00800.6970 \pm 0.0080
    GraphTrans-MLP-Mixer No 0.2538±0.00670.2538 \pm 0.0067 0.6224±0.01120.6224 \pm 0.0112
    Yes 0.0773±0.00300.0773 \pm 0.0030 0.6858±0.00620.6858 \pm 0.0062

    Extracting patches using METIS with 1-hop overlap (k=1k=1) significantly outperforms the unpartitioned baseline across all base models. Extending patch overlap from 0-hop (non-overlapping) to 1-hop produces a large performance gain by restoring cut edge connectivity, with performance plateauing or decreasing for k≥2k \ge 2.

  13. Knowl 13 — Limitations of Graph ViT/MLP-Mixer

    limitation

    The Graph ViT/MLP-Mixer framework has three identified limitations:

    1. Pre-defined Static Patch Count: The number of clusters PP in METIS is chosen as a fixed hyperparameter (P=32P=32 by default). Applying a constant PP to graphs of widely varying sizes forces the model to process subgraphs at differing spatial resolutions.
    2. Empirical Nature of Expressivity Bounds: High isomorphism expressivity (surpassing 3-WL) is demonstrated through empirical experiments on synthetic datasets (CSL, EXP, SR25), but lacks a formal mathematical proof due to non-local inter-layer feature mixing.
    3. Absence of Large-Scale Pre-training: The architecture was not evaluated on large-scale self-supervised graph pre-training or on very large datasets such as PCQM4Mv2 and MalNet.

Coverage note — None omitted; all core architectural components, empirical comparisons on benchmarks, expressivity analyses, synthetic tests, ablations, complexity bounds, and limitations are fully represented.

References

  1. 1.Abboud, R., Ceylan, I. I., Grohe, M., and Lukasiewicz, T. The surprising power of graph neural networks with random node initialization. arXiv preprint arXiv:2010.01179, 2020.
  2. 2.Alon, U. and Yahav, E. On the bottleneck of graph neural networks and its practical implications. arXiv preprint arXiv:2006.05205, 2020.
  3. 3.Alsentzer, E., Finlayson, S., Li, M., and Zitnik, M. Subgraph neural networks. Advances in Neural Information Processing Systems, 33:8017–8029, 2020.
  4. 4.Arnaiz-Rodr'ıguez, A., Begga, A., Escolano, F., and Oliver, N. M. Diffwire: Inductive graph rewiring via the lovasz bound. In The First Learning on Graphs Conference, 2022.
  5. 5.Azizian, W. and Lelarge, M. Expressive power of invariant and equivariant graph neural networks. arXiv preprint arXiv:2006.15646, 2020.
  6. 6.Ba, J. L., Kiros, J. R., and Hinton, G. E. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
  7. 7.Bahdanau, D., Cho, K., and Bengio, Y. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
  8. 8.Balcilar, M., Heroux, P., Gauzere, B., Vasseur, P., Adam, S., and Honeine, P. Breaking the limits of message passing graph neural networks. In International Conference on Machine Learning, pp. 599–608. PMLR, 2021.
  9. 9.Bapst, V., Keck, T., Grabska-Barwinska, A., Donner, C., Cubuk, E. D., Schoenholz, S. S., Obika, A., Nelson, A. W., Back, T., Hassabis, D., et al. Unveiling the predictive power of static structure in glassy systems. Nature Physics, 16(4):448–454, 2020.
  10. 10.Belkin, M. and Niyogi, P. Laplacian eigenmaps for dimensionality reduction and data representation. Neural computation, 15(6):1373–1396, 2003.
  11. 11.Berg, R. v. d., Kipf, T. N., and Welling, M. Graph convolutional matrix completion. arXiv preprint arXiv:1706.02263, 2017.
  12. 12.Bodnar, C., Frasca, F., Otter, N., Wang, Y., Lio, P., Montufar, G. F., and Bronstein, M. Weisfeiler and lehman go cellular: Cw networks. Advances in Neural Information Processing Systems, 34:2625–2640, 2021.
  13. 13.Bouritsas, G., Frasca, F., Zafeiriou, S. P., and Bronstein, M. Improving graph neural network expressivity via subgraph isomorphism counting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2022.
  14. 14.Bresson, X. and Laurent, T. Residual gated graph convnets. arXiv preprint arXiv:1711.07553, 2017.
  15. 15.Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. Advances in neural information processing systems, 33: 1877–1901, 2020.
  16. 16.Bulu¸, A., Meyerhenke, H., Safro, I., Sanders, P., and Schulz, C. Recent advances in graph partitioning. Algorithm engineering, pp. 117–158, 2016.
  17. 17.Chen, D., O’Bray, L., and Borgwardt, K. Structure-aware transformer for graph representation learning. In International Conference on Machine Learning, pp. 3469–3489. PMLR, 2022a.
  18. 18.Chen, J., Gao, K., Li, G., and He, K. Nagphormer: Neighborhood aggregation graph transformer for node classification in large graphs. arXiv preprint arXiv:2206.04910, 2022b.
  19. 19.Chen, Z., Chen, L., Villar, S., and Bruna, J. On the equivalence between graph isomorphism testing and function approximation with gnns. Advances in neural information processing systems, 2019.
  20. 20.Chen, Z., Chen, L., Villar, S., and Bruna, J. Can graph neural networks count substructures? Advances in neural information processing systems, 33:10383–10395, 2020.
  21. 21.Chung, F. R. Spectral graph theory, volume 92. American Mathematical Soc., 1997.
  22. 22.Cranmer, M. D., Xu, R., Battaglia, P., and Ho, S. Learning symbolic physics with graph networks. arXiv preprint arXiv:1909.05862, 2019.
  23. 23.Cubuk, E. D., Zoph, B., Shlens, J., and Le, Q. V. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition workshops, pp. 702–703, 2020.
  24. 24.Deac, A., Lackenby, M., and Velickovič, P. Expander graph propagation. In The First Learning on Graphs Conference, 2022.
  25. 25.Defferrard, M., Bresson, X., and Vandergheynst, P. Convolutional neural networks on graphs with fast localized spectral filtering. In NIPS, 2016.
  26. 26.Derrow-Pinion, A., She, J., Wong, D., Lange, O., Hester, T., Perez, L., Nunkesser, M., Lee, S., Guo, X., Wiltshire, B., et al. Eta prediction with graph neural networks in google maps. In Proceedings of the 30th ACM International Conference on Information & Knowledge Management, pp. 3767–3776, 2021.
  27. 27.Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
  28. 28.Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
  29. 29.Duvenaud, D. K., Maclaurin, D., Iparraguirre, J., Bombarell, R., Hirzel, T., Aspuru-Guzik, A., and Adams, R. P. Convolutional networks on graphs for learning molecular fingerprints. Advances in neural information processing systems, 28, 2015.
  30. 30.Dwivedi, V. P. and Bresson, X. A generalization of transformer networks to graphs. In AAAI Workshop on Deep Learning on Graphs: Methods and Applications, 2021.
  31. 31.Dwivedi, V. P., Joshi, C. K., Laurent, T., Bengio, Y., and Bresson, X. Benchmarking graph neural networks. arXiv preprint arXiv:2003.00982, 2020.
  32. 32.Dwivedi, V. P., Luu, A. T., Laurent, T., Bengio, Y., and Bresson, X. Graph neural networks with learnable structural and positional representations. In International Conference on Learning Representations, 2021.
  33. 33.Dwivedi, V. P., Rampa'sek, L., Galkin, M., Parviz, A., Wolf, G., Luu, A. T., and Beaini, D. Long range graph benchmark. arXiv preprint arXiv:2206.08164, 2022.
  34. 34.Feng, J., Chen, Y., Li, F., Sarkar, A., and Zhang, M. How powerful are k-hop message passing graph neural networks. arXiv preprint arXiv:2205.13328, 2022.
  35. 35.Fey, M. and Lenssen, J. E. Fast graph representation learning with pytorch geometric. arXiv preprint arXiv:1903.02428, 2019.
  36. 36.Frasca, F., Bevilacqua, B., Bronstein, M. M., and Maron, H. Understanding and extending subgraph gnns by rethinking their symmetries. arXiv preprint arXiv:2206.11140, 2022.
  37. 37.Freitas, S., Dong, Y., Neil, J., and Chau, D. H. A large-scale database for graph representation learning. arXiv preprint arXiv:2011.07682, 2020.
  38. 38.Gaudelet, T., Day, B., Jamasb, A. R., Soman, J., Regep, C., Liu, G., Hayter, J. B., Vickers, R., Roberts, C., Tang, J., et al. Utilising graph machine learning within drug discovery and development. arXiv preprint arXiv:2012.05716, 2020.
  39. 39.Gilmer, J., Schoenholz, S. S., Riley, P. F., Vinyals, O., and Dahl, G. E. Neural message passing for quantum chemistry. In International Conference on Machine Learning, pp. 1263–1272. PMLR, 2017.
  40. 40.Hamilton, W. L., Ying, R., and Leskovec, J. Inductive representation learning on large graphs. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pp. 1025–1035, 2017.
  41. 41.Han, K., Wang, Y., Guo, J., Tang, Y., and Wu, E. Vision gnn: An image is worth graph of nodes. arXiv preprint arXiv:2206.00272, 2022a.
  42. 42.Han, X., Jiang, Z., Liu, N., and Hu, X. G-mixup: Graph data augmentation for graph classification. arXiv preprint arXiv:2202.07179, 2022b.
  43. 43.Hendrycks, D. and Gimpel, K. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415, 2016.
  44. 44.Hochreiter, S. and Schmidhuber, J. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
  45. 45.Hu, W., Liu, B., Gomes, J., Zitnik, M., Liang, P., Pande, V., and Leskovec, J. Strategies for pre-training graph neural networks. arXiv preprint arXiv:1905.12265, 2019.
  46. 46.Hu, W., Fey, M., Zitnik, M., Dong, Y., Ren, H., Liu, B., Catasta, M., and Leskovec, J. Open graph benchmark: Datasets for machine learning on graphs. Advances in neural information processing systems, 33:22118–22133, 2020.
  47. 47.Irwin, J. J., Sterling, T., Mysinger, M. M., Bolstad, E. S., and Coleman, R. G. Zinc: a free tool to discover chemistry for biology. Journal of chemical information and modeling, 52(7):1757–1768, 2012.
  48. 48.Karypis, G. and Kumar, V. A fast and high quality multilevel scheme for partitioning irregular graphs. SIAM Journal on scientific Computing, 20(1):359–392, 1998.
  49. 49.Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
  50. 50.Kipf, T. N. and Welling, M. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017.
  51. 51.Kreuzer, D., Beaini, D., Hamilton, W., L'etourneau, V., and Tossou, P. Rethinking graph transformers with spectral attention. Advances in Neural Information Processing Systems, 34:21618–21629, 2021.
  52. 52.Kuang, W., WANG, Z., Li, Y., Wei, Z., and Ding, B. Coarformer: Transformer for large graph via graph coarsening, 2022. URL https://openreview.net/forum?id=fkjO_FKVzw.
  53. 53.Kwon, J., Kim, J., Park, H., and Choi, I. K. Asam: Adaptive sharpness-aware minimization for scale-invariant learning of deep neural networks. arXiv preprint arXiv:2102.11600, 2021.
  54. 54.Landrum, G. et al. Rdkit: Open-source cheminformatics. 2006, 2006.
  55. 55.Li, P., Wang, Y., Wang, H., and Leskovec, J. Distance encoding: Design provably more powerful neural networks for graph representation learning. Advances in Neural Information Processing Systems, 33, 2020a.
  56. 56.Li, X., Zhou, Y., Dvornek, N., Zhang, M., Gao, S., Zhuang, J., Scheinost, D., Staib, L. H., Ventola, P., and Duncan, J. S. Braingnn: Interpretable brain graph neural network for fmri analysis. Medical Image Analysis, 74:102233, 2021.
  57. 57.Li, Y., Qian, B., Zhang, X., and Liu, H. Graph neural network-based diagnosis prediction. Big Data, 8(5):379–390, 2020b.
  58. 58.Lim, D., Robinson, J., Zhao, L., Smidt, T., Sra, S., Maron, H., and Jegelka, S. Sign and basis invariant networks for spectral graph representation learning. arXiv preprint arXiv:2202.13013, 2022.
  59. 59.Liu, H., Dai, Z., So, D., and Le, Q. V. Pay attention to mlps. Advances in Neural Information Processing Systems, 34: 9204–9215, 2021.
  60. 60.Loukas, A. What graph neural networks cannot learn: depth vs width. In International Conference on Learning Representations, 2020.
  61. 61.Maron, H., Ben-Hamu, H., Shamir, N., and Lipman, Y. Invariant and equivariant graph networks. arXiv preprint arXiv:1812.09902, 2018.
  62. 62.Maron, H., Ben-Hamu, H., Serviansky, H., and Lipman, Y. Provably powerful graph networks. arXiv preprint arXiv:1905.11136, 2019.
  63. 63.Mialon, G., Chen, D., Selosse, M., and Mairal, J. Graphit: Encoding graph structure in transformers. arXiv preprint arXiv:2106.05667, 2021.
  64. 64.Min, E., Chen, R., Bian, Y., Xu, T., Zhao, K., Huang, W., Zhao, P., Huang, J., Ananiadou, S., and Rong, Y. Transformer for graphs: An overview from architecture perspective. arXiv preprint arXiv:2202.08455, 2022.
  65. 65.Monti, F., Bronstein, M., and Bresson, X. Geometric matrix completion with recurrent multi-graph neural networks. Advances in neural information processing systems, 30, 2017.
  66. 66.Morris, C., Ritzert, M., Fey, M., Hamilton, W. L., Lenssen, J. E., Rattan, G., and Grohe, M. Weisfeiler and leman go neural: Higher-order graph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 4602–4609, 2019.
  67. 67.Murphy, R., Srinivasan, B., Rao, V., and Ribeiro, B. Relational pooling for graph representations. In International Conference on Machine Learning, pp. 4663–4673. PMLR, 2019.
  68. 68.Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
  69. 69.Rampa'sek, L., Galkin, M., Dwivedi, V. P., Luu, A. T., Wolf, G., and Beaini, D. Recipe for a general, powerful, scalable graph transformer. arXiv preprint arXiv:2205.12454, 2022.
  70. 70.Rong, Y., Huang, W., Xu, T., and Huang, J. Dropedge: Towards deep graph convolutional networks on node classification. arXiv preprint arXiv:1907.10903, 2019.
  71. 71.Schlichtkrull, M., Kipf, T. N., Bloem, P., Berg, R. v. d., Titov, I., and Welling, M. Modeling relational data with graph convolutional networks. In European semantic web conference, pp. 593–607. Springer, 2018.
  72. 72.Shirzad, H., Velingker, A., Venkatachalam, B., Sutherland, D. J., and Sinop, A. K. Exphormer: Sparse transformers for graphs. arXiv preprint arXiv:2303.06147, 2023.
  73. 73.Singh, S., Chaudhary, K., Dhanda, S. K., Bhalla, S., Usmani, S. S., Gautam, A., Tuknait, A., Agrawal, P., Mathur, D., and Raghava, G. P. Satpdb: a database of structurally annotated therapeutic peptides. Nucleic acids research, 44(D1):D1119–D1126, 2016.
  74. 74.Stokes, J. M., Yang, K., Swanson, K., Jin, W., Cubillos-Ruiz, A., Donghia, N. M., MacNair, C. R., French, S., Carfrae, L. A., Bloom-Ackermann, Z., et al. A deep learning approach to antibiotic discovery. Cell, 180(4): 688–702, 2020.
  75. 75.Szklarczyk, D., Gable, A. L., Lyon, D., Junge, A., Wyder, S., Huerta-Cepas, J., Simonovic, M., Doncheva, N. T., Morris, J. H., Bork, P., et al. String v11: protein–protein association networks with increased coverage, supporting functional discovery in genome-wide experimental datasets. Nucleic acids research, 47(D1):D607–D613, 2019.
  76. 76.Tolstikhin, I. O., Houlsby, N., Kolesnikov, A., Beyer, L., Zhai, X., Unterthiner, T., Yung, J., Steiner, A., Keysers, D., Uszkoreit, J., et al. Mlp-mixer: An all-mlp architecture for vision. Advances in Neural Information Processing Systems, 34:24261–24272, 2021.
  77. 77.Topping, J., Di Giovanni, F., Chamberlain, B. P., Dong, X., and Bronstein, M. M. Understanding over-squashing and bottlenecks on graphs via curvature. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022, 2022.
  78. 78.Touvron, H., Bojanowski, P., Caron, M., Cord, M., El-Nouby, A., Grave, E., Izacard, G., Joulin, A., Synnaeve, G., Verbeek, J., et al. Resmlp: Feedforward networks for image classification with data-efficient training. arXiv preprint arXiv:2105.03404, 2021.
  79. 79.Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., and Polosukhin, I. Attention is all you need. Advances in neural information processing systems, 30, 2017.
  80. 80.Velickovič, P., Cucurull, G., Casanova, A., Romero, A., Lio, P., and Bengio, Y. Graph attention networks. In International Conference on Learning Representations, 2018.
  81. 81.Wang, Z., Jiang, W., Zhu, Y. M., Yuan, L., Song, Y., and Liu, W. Dynamixer: a vision mlp architecture with dynamic mixing. In International Conference on Machine Learning, pp. 22691–22701. PMLR, 2022.
  82. 82.Weisfeiler, B. and Leman, A. The reduction of a graph to canonical form and the algebra which appears therein. NTI Series, 2(9):12–16, 1968.
  83. 83.Wu, L., Chen, Y., Shen, K., Guo, X., Gao, H., Li, S., Pei, J., and Long, B. Graph neural networks for natural language processing: A survey. arXiv preprint arXiv:2106.06090, 2021a.
  84. 84.Wu, Z., Jain, P., Wright, M., Mirhoseini, A., Gonzalez, J. E., and Stoica, I. Representing long-range context for graph neural networks with global attention. Advances in Neural Information Processing Systems, 34:13266–13279, 2021b.
  85. 85.Xu, K., Hu, W., Leskovec, J., and Jegelka, S. How powerful are graph neural networks? In International Conference on Learning Representations, 2019.
  86. 86.Ying, C., Cai, T., Luo, S., Zheng, S., Ke, G., He, D., Shen, Y., and Liu, T.-Y. Do transformers really perform badly for graph representation? Advances in Neural Information Processing Systems, 34:28877–28888, 2021.
  87. 87.Yu, W., Luo, M., Zhou, P., Si, C., Zhou, Y., Wang, X., Feng, J., and Yan, S. Metaformer is actually what you need for vision. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10819–10829, 2022.
  88. 88.Zhang, H., Cisse, M., Dauphin, Y. N., and Lopez-Paz, D. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017.
  89. 89.Zhang, M. and Li, P. Nested graph neural networks. Advances in Neural Information Processing Systems, 34: 15734–15747, 2021.
  90. 90.Zhang, Z., Liu, Q., Hu, Q., and Lee, C.-K. Hierarchical graph transformer with adaptive node sampling. arXiv preprint arXiv:2210.03930, 2022.
  91. 91.Zhao, L., Jin, W., Akoglu, L., and Shah, N. From stars to subgraphs: Uplifting any gnn with local structure awareness. In International Conference on Learning Representations, 2021.
  92. 92.Zhao, T., Liu, Y., Neves, L., Woodford, O. J., Jiang, M., and Shah, N. Data augmentation for graph neural networks. CoRR, abs/2006.06830, 2020.
  93. 93.Zheng, D., Song, X., Ma, C., Tan, Z., Ye, Z., Dong, J., Xiong, H., Zhang, Z., and Karypis, G. Dgl-ke: Training knowledge graph embeddings at scale. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 739–748, 2020.
  94. 94.Zopf, M. 1-wl expressiveness is (almost) all you need. arXiv preprint arXiv:2202.10156, 2022.

Citation

MLA
He, X., et al. “A Generalization of ViT/MLP-Mixer to Graphs”. International Conference on Machine Learning, vol. 202, 2023, pp. 12724–45, https://proceedings.mlr.press/v202/he23a.html.
APA
He, X., Hooi, B., Laurent, T., Perold, A., Lecun, Y., & Bresson, X. (2023). A Generalization of ViT/MLP-Mixer to Graphs. International Conference on Machine Learning, 202, 12724–12745. https://proceedings.mlr.press/v202/he23a.html
Chicago
He, X., B. Hooi, T. Laurent, A. Perold, Y. Lecun, and X. Bresson. 2023. “A Generalization of ViT/MLP-Mixer to Graphs”. International Conference on Machine Learning 202: 12724–45. https://proceedings.mlr.press/v202/he23a.html.
Harvard
He, X. et al. (2023) “A Generalization of ViT/MLP-Mixer to Graphs”, International Conference on Machine Learning. PMLR, pp. 12724–12745. Available at: https://proceedings.mlr.press/v202/he23a.html.
Vancouver
1. He X, Hooi B, Laurent T, Perold A, Lecun Y, Bresson X (2023) A Generalization of ViT/MLP-Mixer to Graphs. In: International Conference on Machine Learning. PMLR, pp 12724–12745

BibTeX

@InProceedings{pmlr-v202-he23a,
  title = 	 {A Generalization of {V}i{T}/{MLP}-Mixer to Graphs},
  author =       {He, Xiaoxin and Hooi, Bryan and Laurent, Thomas and Perold, Adam and Lecun, Yann and Bresson, Xavier},
  booktitle = 	 {Proceedings of the 40th International Conference on Machine Learning},
  pages = 	 {12724--12745},
  year = 	 {2023},
  editor = 	 {Krause, Andreas and Brunskill, Emma and Cho, Kyunghyun and Engelhardt, Barbara and Sabato, Sivan and Scarlett, Jonathan},
  volume = 	 {202},
  series = 	 {Proceedings of Machine Learning Research},
  month = 	 {23--29 Jul},
  publisher =    {PMLR},
  pdf = 	 {https://proceedings.mlr.press/v202/he23a/he23a.pdf},
  url = 	 {https://proceedings.mlr.press/v202/he23a.html},
  abstract = 	 {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: https://github.com/XiaoxinHe/Graph-ViT-MLPMixer.}
}
Metadata:DOI registry

Source Code

This paper has an official code repository available. Click below to access the source code.

View Repository

Access the Paper

This paper is available from its original source. Click below to access the PDF.

Open PDF
License: https://creativecommons.org/licenses/by/4.0/