NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph-MLP: Node Classification without Message Passing in Graph

Yang Hu, Haoxuan You, Zhecan Wang, Zhicheng Wang, Erjin Zhou, Yue GaoarXiv 2021

TL;DR

This paper introduces Graph-MLP, a novel framework for node classification that achieves state-of-the-art performance without relying on traditional message-passing mechanisms found in Graph Neural Networks (GNNs). By using a pure MLP architecture and a new "Neighboring Contrastive" (NContrast) loss, Graph-MLP learns structural node representations implicitly, leading to increased efficiency and robustness, especially when graph connectivity information is noisy or incomplete.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have become the go-to method for tasks involving graph-structured data, excelling in areas like social networks, recommendation systems, and molecular analysis. The core of most GNNs involves "message passing," where nodes aggregate information from their neighbors using the graph's adjacency matrix. While effective, this message-passing mechanism can be computationally expensive and makes GNNs vulnerable to errors or missing information in the adjacency matrix, which is common in real-world scenarios (e.g., new users in a social network with no connections). The authors question whether these complex message-passing modules are truly necessary and propose an alternative that bypasses them entirely.

Methods

The Graph-MLP framework is built around two key innovations:

  1. Pure MLP Architecture: Instead of traditional GNN layers that explicitly aggregate neighbor features, Graph-MLP uses a standard Multilayer Perceptron (MLP) architecture. This consists of sequential linear layers, activation functions (GELU), layer normalization, and dropout. The absence of message passing significantly simplifies the model and reduces computational overhead.
  2. Neighboring Contrastive (NContrast) Loss: To compensate for the lack of explicit message passing and still learn structural information, the authors introduce the NContrast loss. This loss function encourages nodes to be similar to their "positive" samples (r-hop neighbors) and dissimilar to "negative" samples (unconnected nodes). This is achieved by leveraging the adjacency matrix only during the loss computation, not during the forward pass. This implicit learning of graph structure allows the model to be robust to missing or corrupted adjacency information during inference.

Datasets

The paper evaluates Graph-MLP on three standard citation network datasets for node classification:

  • Cora
  • Citeseer
  • Pubmed

These datasets are commonly used benchmarks in graph learning research. The paper does not introduce any new datasets.

Key Insights and Ideas

  • Message Passing is Not Always Necessary: The most striking insight is that complex message-passing mechanisms, a cornerstone of GNNs, can be entirely removed for node classification tasks without sacrificing performance. This challenges the conventional wisdom in graph learning.
  • Implicit Structural Learning: The NContrast loss is a clever way to inject graph structure information into an MLP without explicit message passing. By treating neighbors as positive samples and non-neighbors as negative samples in a contrastive learning framework, the MLP learns to embed nodes in a way that reflects their connectivity.
  • Robustness to Corrupted Data: The ability of Graph-MLP to maintain performance even when the adjacency matrix is corrupted or missing during inference is a significant advantage over traditional GNNs. This makes it more practical for real-world applications where data is often imperfect.
  • Efficiency Gains: By eliminating message passing, Graph-MLP achieves substantial improvements in computational efficiency, both in training and inference.

Key Results

  • Comparable/Superior Performance: Graph-MLP achieves comparable or even superior test accuracy on the Cora, Citeseer, and Pubmed datasets compared to state-of-the-art GNN models. For instance, on Citeseer and Pubmed, it outperforms GCN and GAT.
  • Significant Efficiency Improvement: Graph-MLP demonstrates much faster training convergence and significantly lower inference times compared to GCN. Table 3 shows Graph-MLP's testing time is orders of magnitude faster.
  • Robustness to Adjacency Corruption: In experiments where the adjacency matrix was corrupted (Figure 6), Graph-MLP's performance remained largely unaffected, while GCN's accuracy degraded drastically even with minor corruption.
  • MLP Improvement: When the NContrast loss is disabled (effectively making it a vanilla MLP), performance drops significantly, highlighting the crucial role of the proposed loss function.

Limitations and Future Work

  • Batch Sampling: The authors acknowledge that for some nodes, positive samples might not be present in a randomly sampled batch, which can lead to the loss for that node being removed. They suggest that a better batch sampling method or fusion with models like GraphSAGE could be explored.
  • Hyperparameter Sensitivity: While the paper shows Graph-MLP is generally robust to hyperparameters like $\tau$, $r$, and $B$, the $\alpha$ parameter (weighting between NContrast and CE loss) shows some sensitivity, with optimal values varying across datasets.
  • Future Work: The authors suggest exploring more advanced batch sampling techniques and investigating the fusion of Graph-MLP with other graph learning architectures like GraphSAGE. They also mention the potential for applying this framework to other graph-related tasks beyond node classification.

Summary updated

BibTeX
@misc{hu2021graph,
  author = {Yang Hu and Haoxuan You and Zhecan Wang and Zhicheng Wang and Erjin Zhou and Yue Gao},
  title = {{Graph-MLP: Node Classification without Message Passing in Graph}},
  year = {2021},
  eprint = {2106.04051},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.04051},
}
Figure