Source-linked AI summary

Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellence

Yuankai Luo, Lei Shi, Xiao-Ming Wu

arXiv:2502.09263v3cs.LG

TL;DR

Message-passing GNNs are criticized for limited expressiveness and difficulties with over-smoothing, over-squashing, and long-range dependencies. This paper evaluates classic GNNs enhanced with GNN+ on graph-level tasks and finds that they match or surpass GTs across benchmarks.

  • Problem

    Message-passing GNNs face concerns about limited expressiveness, over-smoothing, over-squashing, and capturing long-range dependencies.

    Source: §1 · pp. 1–2
  • Method

    GNN+ enhances GCN, GIN, and GatedGCN with six established techniques, including edge features, normalization, dropout, residual connections, feed-forward networks, and positional encoding.

    Source: §1 · p. 2
  • Results

    Enhanced classic GNNs match or outperform state-of-the-art GTs across 14 graph-level datasets, ranking in the top three on all and first on eight.

    Source: §1 · p. 2, §8 · p. 9
  • Takeaways & Limitations

    The evaluations show that classic GNNs can be competitive and computationally more efficient alternatives to GTs for graph-level tasks on the evaluated benchmarks.

    Source: §1 · p. 2, §8 · p. 9

    The findings are empirical and limited to current datasets and evaluation settings; the authors note that their advantage may shift on more challenging, application-driven benchmarks.

    Source: §7 · p. 9

Abstract

from arXiv · show

Message-passing Graph Neural Networks (GNNs) are often criticized for their limited expressiveness, issues like over-smoothing and over-squashing, and challenges in capturing long-range dependencies. Conversely, Graph Transformers (GTs) are regarded as superior due to their employment of global attention mechanisms, which potentially mitigate these challenges. Literature frequently suggests that GTs outperform GNNs in graph-level tasks, especially for graph classification and regression on small molecular graphs. In this study, we explore the untapped potential of GNNs through an enhanced framework, GNN+, which integrates six widely used techniques: edge feature integration, normalization, dropout, residual connections, feed-forward networks, and positional encoding, to effectively tackle graph-level tasks. We conduct a systematic re-evaluation of three classic GNNs (GCN, GIN, and GatedGCN) enhanced by the GNN+ framework across 14 well-known graph-level datasets. Our results reveal that, contrary to prevailing beliefs, these classic GNNs consistently match or surpass the performance of GTs, securing top-three rankings across all datasets and achieving first place in eight. Furthermore, they demonstrate greater efficiency, running several times faster than GTs on many datasets. This highlights the potential of simple GNN architectures, challenging the notion that complex mechanisms in GTs are essential for superior graph-level performance. Our source code is available at https://github.com/LUOyk1999/GNNPlus.

1. Introduction

The paper asks whether classic GNNs can excel on graph-level tasks and introduces GNN+ to test that question. Across 14 datasets, enhanced classic GNNs match or surpass state-of-the-art Graph Transformers (GTs).

1. Introduction

  • Prior work had not established comparable classic-GNN performance for graph-level tasks, and an earlier study was limited to LRGB and still trailed GTs overall.The authors frame this gap as the question of whether classic GNNs can excel on graph-level tasks.Source: §1 · p. 2
  • GNN+ integrates edge features, normalization, dropout, residual connections, feed-forward networks, and positional encoding into message passing, with each technique treated as a tunable hyperparameter.The study evaluates GCN, GIN, and GatedGCN enhanced by this framework.Source: §1 · p. 2
  • Across 14 graph-level datasets, enhanced classic GNNs match or outperform state-of-the-art GTs, rank in the top three on every dataset, and place first on eight.They also run several times faster than GTs on many datasets.Source: §1 · p. 2
  • Edge features are particularly beneficial on molecular and image-superpixel datasets, where they encode domain-specific information.Source: §1 · p. 2
  • Dropout benefits most graph-level datasets, and a modest dropout rate is reported as sufficient and optimal.Source: §1 · p. 2
  • Residual connections are generally essential, except for shallow GNNs applied to small graphs.Source: §1 · p. 2
  • Feed-forward networks are especially pivotal for simpler models such as GCN in graph-level tasks.Source: §1 · p. 2
  • Positional encoding is more critical for small-scale datasets than for large-scale ones.The authors describe the roles of the integrated techniques as nuanced and relevant to future GNN design and application.Source: §1 · p. 2

2. Classic GNNs for Graph-level Tasks

This section introduces graph-level prediction and the message-passing framework used to produce node representations. It outlines GCN, GIN, and GatedGCN as the three classic GNNs considered.

2. Classic GNNs for Graph-level Tasks

  • Message-passing GNNs update each node representation by aggregating information from neighboring nodes, then produce a final node representation after the last layer.The section focuses on GCN, GIN, and GatedGCN, which differ in how they learn node representations.Source: §2 · pp. 2–3
  • GCN is presented as a classic graph convolution model, with its layer update using a trainable weight matrix and activation function.Source: §2 · p. 3
  • GIN learns node representations using an update with a multi-layer perceptron, usually consisting of two layers.Source: §2 · p. 3
  • GatedGCN incorporates gating into graph convolution; its gate determines how much each neighboring node contributes to the current node's update.Source: §2 · p. 3
  • Graph-level datasets associate each graph with classification labels or regression targets, and prediction uses a readout over node representations followed by a prediction head.For graph prediction, the readout often uses global mean pooling; training minimizes loss over graphs in the training set.Source: §2 · p. 3

3. GNN+: Enhancing Classic GNNs for Graph-level Tasks

GNN+ enhances classic GNN message passing with six established techniques: edge-feature integration, normalization, dropout, residual connections, feed-forward networks, and positional encoding. The section describes how these additions are incorporated into the models.

3.1. Edge Feature Integration

  • Edge features are integrated into message passing through a learned transformation of each edge feature alongside the source-node representation.For GCN, the edge feature vector is multiplied by a trainable layer-specific weight matrix.Source: §3.1 · pp. 3–4

3.2. Normalization

  • Batch Normalization is applied to layer outputs before the activation function.The section describes normalization as stabilizing training by mitigating changes in node-embedding distributions across layers.Source: §3.2 · p. 4

3.3. Dropout

  • Dropout is applied to node embeddings after activation.The section relates dropout in GNNs to reducing co-adaptation effects propagated through message passing.Source: §3.3 · p. 4

3.4. Residual Connection

  • Residual connections allow deeper GNNs, from 3 to 20 layers, to achieve strong performance.The section contrasts this range with typical GNN depths of 2 to 5 layers and notes the challenge of over-smoothing in deeper models.Source: §3.4 · p. 4

3.5. Feed-Forward Network

  • GNN+ appends a fully connected feed-forward network at the end of each GNN layer.The FFN is described as adding complex feature transformations and nonlinearity.Source: §3.5 · p. 4

3.6. Positional Encoding

  • GNN+ uses Random Walk Structural Encoding as its positional encoding method to improve GNN performance.The section describes positional encodings as incorporating graph positional or structural information, typically by adding or concatenating them to input node features.Source: §3.6 · pp. 4–5

4. Assessment: Experimental Setup

The experiments evaluate enhanced classic GNNs on 14 graph-level datasets using established evaluation protocols and a broad set of GNN and Graph Transformer baselines. The study tunes selected model and training hyperparameters without an exhaustive search.

Datasets

  • The evaluation covers 14 graph-level datasets from GNN Benchmark, LRGB, and OGB, using their standard splits and metrics.The datasets include graph benchmarks, long-range graph tasks, and OGB tasks.Source: §4 · p. 5

Baselines

  • The baselines include classic GNNs, state-of-the-art Graph Transformers, and graph state-space models.Reported baseline results primarily come from prior benchmark studies, with others taken from original papers or official leaderboards when possible.Source: §4 · pp. 5–6

Datasets

  • Table 3 reports test performance on five LRGB datasets and lists approximately 500K parameters for all models.Its caption says baseline results come from the respective original papers.Source: Table 3 · p. 6

Hyperparameter Configurations

  • Hyperparameter tuning covers learning rates, 3–20 layers, and GNN+ modules, but is not exhaustive.The authors also retrained baseline GTs using the same search space and training environments, then reported original-paper results because retraining did not surpass them; GNN+ results are means and standard deviations over five runs.Source: §4 · p. 6

5. Assessment: Results and Findings

Across 14 graph-level datasets, enhanced classic GNNs achieve top-three rankings throughout and first place on eight, with superior efficiency. Ablations show that the benefits of GNN+ components depend on dataset scale, architecture, and task.

5.1. Overall Performance

  • Across 14 datasets, enhanced classic GNNs ranked top three throughout, took first place in eight, and showed superior efficiency.Source: §5.1 · p. 6
  • GNN+ improves ZINC, PATTERN, and CLUSTER; GatedGCN+ beats SOTA models on MNIST and CIFAR and ranks third on PascalVOC-SP and COCO-SP, while GCN+ excels on peptide datasets.Source: §5.1 · pp. 6–7
  • On ogbg-ppa, GatedGCN+ improves performance by approximately 9% and ranks first; it ranks top three across OGB and tops three of four datasets.Source: Table 4 · p. 7, §5.1 · p. 7

5.2. Ablation Study

  • Ablations broadly penalize component removal; edge features matter for molecular and image-superpixel structure, while normalization matters more on larger datasets, dropping ogbg-ppa accuracy around 15%.Source: §5.2 · pp. 7–8
  • Dropout helps most GNN Benchmark, LRGB, and large OGB datasets: 97% of optimal rates are ≤0.2 and 64% are ≤0.1.Source: §5.2 · p. 8
  • Removing residuals usually harms results, but may not help shallow 3–5-layer peptide models; deeper networks on larger graphs rely on them for gradient flow and stable long-range exchange.Source: §5.2 · pp. 8–9
  • Removing FFN causes broad GCN+ and GIN+ declines, including an 88% relative accuracy drop for GIN+ on MNIST; GatedGCN+ relies less on FFN, and peptide models omit it.Source: §5.2 · p. 9
  • Positional encoding substantially benefits several smaller datasets with 10,000–40,000 graphs, while its impact is less pronounced on datasets exceeding 100,000 graphs.Source: §5.2 · p. 9

6. Related Work

Prior work emphasizes fair evaluation for GNN benchmarks and reports that tuned classic GNNs can rival state-of-the-art models, particularly on node-level tasks. Graph-level studies use varied benchmark suites, but some have been limited in dataset diversity and hyperparameter coverage.

  • Node-level benchmark audits found that claimed architecture gains can disappear under fair evaluation; Luo et al. (2024b) reported classic GNNs matching or surpassing SOTA across 18 node-classification datasets.Source: §6 · p. 9
  • Graph-level evaluation work includes OGB standardization, fixed-budget comparisons across diverse graphs, and LRGB benchmarks designed to assess long-range dependencies.Source: §6 · p. 9
  • Tönshoff et al. (2023) found classic GNNs can close the gap with GTs under tuning, while prior studies were limited by dataset scope, diversity, or hyperparameter coverage.Source: §6 · p. 9

7. Limitations and Future Work

The reported advantage is established empirically on existing benchmarks, without a theoretical explanation. The authors call for theory on GNN+ components and note that future, more challenging application-driven benchmarks may change the comparison.

  • The study offers empirical evidence on existing benchmarks but no theoretical explanation for the enhanced GNNs’ observed advantage over GTs.Source: §7 · p. 9
  • Future work should explain how GNN+ components and their interactions affect expressiveness, representation, oversmoothing, and oversquashing.Source: §7 · p. 9

8. Conclusion

The conclusion presents GNN+ as a way to enhance classic GNNs with six widely used techniques and evaluates three architectures across 14 benchmark datasets. The enhanced models match or surpass GTs while offering greater computational efficiency.

  • Across 14 benchmark datasets, GNN+ enhanced GCN, GIN, and GatedGCN to match or outperform SOTA GTs with greater computational efficiency.Source: §8 · p. 9

Impact Statement

The paper presents an empirical benchmarking study, offers practical guidance for model selection and design, and reports no immediate societal consequences requiring specific emphasis. The experiments were conducted on a single workstation with eight RTX 3090 GPUs.

Impact Statement

  • The authors describe the work as an empirical benchmarking study that provides practical guidance for future model selection and design, with no immediate societal consequences to highlight.The impact statement says the findings challenge common assumptions about classic GNN performance on graph-level tasks.Source: Impact Statement · p. 10

A.1. Computing Environment

  • Experiments were conducted on a single workstation equipped with 8 RTX 3090 GPUs.Source: §A.1 · p. 14

A.2. Datasets

The benchmark suite spans graph-level datasets from GNN Benchmark, LRGB, and OGB, with varied graph types and prediction tasks. Hyperparameter settings and validation-based selection are described for reproducibility.

A.2. Datasets

  • GNN Benchmark includes ZINC molecular solubility regression and 10-class graph classification on MNIST and CIFAR10 images represented as superpixel graphs.The suite also includes synthetic PATTERN and CLUSTER datasets for subgraph-pattern recognition and cluster-ID inference.Source: §A.2 · p. 14
  • LRGB covers peptide functional-class classification and structural-property regression, superpixel object-class node classification, and MalNet-Tiny software-type prediction from function-call graphs.PCQM-Contact was excluded because its download link was no longer valid.Source: §A.2 · p. 14
  • OGB adds larger-scale molecular-property, protein-network origin, and code-function-name prediction datasets, with graphs ranging from hundreds of thousands to millions.The tasks include HIV-inhibition classification, 128-assay prediction, taxonomic-group classification, and prediction of the first five function-name subtokens.Source: §A.2 · p. 14

A.3. Hyperparameters and Reproducibility

  • Hyperparameter settings are detailed in Tables 8–13, the validation set selects the best settings, and the code is released under the MIT License.The study follows GraphGPS experiment settings and points to its code for further hyperparameter details.Source: §A.3 · pp. 14–15

B.1. Hyperparameter Sensitivity Analysis

The sensitivity analyses show that layer depth and residual connections affect performance, while a fixed GNN+ configuration remains competitive. Additional comparisons, embedding visualizations, and attention analyses provide further evidence about GNN+ and graph-transformer behavior.

B.1. Hyperparameter Sensitivity Analysis

  • GCN+ and GatedGCN+ peak at 12 layers on PATTERN, while CLUSTER and PascalVOC-SP improve with depth; without residuals, performance degrades especially beyond 8 layers.The degradation is most pronounced on CLUSTER and PascalVOC-SP, where the authors attribute it to over-smoothing and over-squashing.Source: §B.1 · pp. 17–18, Figure 3 · p. 18
  • Dropout rates of 0.1–0.2 are optimal across four datasets, while rates of 0.3 or higher significantly degrade performance.On Peptides-struct, MAE rises sharply beyond 0.2 dropout; on CLUSTER, accuracy collapses at 0.5.Source: §B.1 · p. 18, Figure 4 · p. 19

B.2. Performance of a Fixed GNN+ Configuration

  • A fixed GNN+ configuration integrating all six techniques performs comparably to the best dataset-tuned configurations across nine datasets.The authors present this as evidence of practicality and robustness without extensive tuning.Source: §B.2 · p. 18, Table 14 · p. 18

B.3. Additional Baselines

B.4. Visualization

  • On Peptides-func, GCN+ embeddings show more distinct class separation and larger inter-class margins than vanilla GCN embeddings.The comparison is a t-SNE visualization.Source: §B.4 · p. 20, Figure 5 · p. 20

B.5. Static Attention Problem of GTs

  • The authors identify a potential static-attention limitation in representative GTs: attention appears query-invariant, and a misclassified ZINC molecule illustrates low attention to functionally significant substructures.In that GraphGPS example, nodes focus mainly on pyrazoline and benzene rings rather than the C–O–N=N and nitro groups; the authors connect this pattern to insufficient subgraph sensitivity and adverse prediction accuracy.Source: §B.5 · p. 20, Figure 6 · p. 21

C.1. Clarification on GNN+ and Classic GNNs

  • GNN+ unifies widely used components while preserving message passing; the authors describe it as a practical extension, not a departure from the message-passing paradigm.The components are not novel or specific to one architecture.Source: §C.1 · p. 21
Loading 2502.09263v3…