Learning to Model Graph Structural Information on MLPs via Graph Structure Self-Contrasting

Lirong Wu, Haitao Lin, Guojiang Zhao, Cheng Tan, Stan Z. Li

TL;DR

GSSC (Graph Structure Self-Contrasting) is a new framework that allows simple Multi-Layer Perceptrons (MLPs) to outperform complex Graph Neural Networks (GNNs) by learning from graph structure implicitly. By decoupling node features from the graph topology during the forward pass, GSSC achieves state-of-the-art accuracy while remaining significantly more robust to noise and faster during inference.

What Problem Does This Paper Address?

Most modern graph learning relies on Graph Neural Networks (GNNs) and their "message passing" mechanism. In message passing, a node updates its representation by aggregating features from its neighbors. While powerful, this creates a tight feature-structure coupling.

This coupling is a double-edged sword: if the graph structure is noisy (e.g., "fake" edges between unrelated nodes) or node features are perturbed, the errors propagate through the network, leading to poor robustness. Conversely, standard Multi-Layer Perceptrons (MLPs) are robust because they treat nodes independently, but they usually perform poorly because they ignore the valuable structural information provided by the graph. The authors tackle the "missing middle": how to give an MLP the structural "wisdom" of a GNN without the fragility of message passing.

Methods

The authors propose the Graph Structure Self-Contrasting (GSSC) framework, which consists of two main components optimized via a bi-level strategy:

  1. STR-Sparse (Structural Sparsification): This network learns to identify and remove "noisy" or uninformative edges. It uses an amortization inference approach to estimate edge probabilities and employs Gumbel-Softmax sampling to make the selection of a discrete subgraph differentiable.
  2. STR-Contrast (Structural Self-Contrasting): This is the core MLP. Crucially, it does not use message passing in its forward propagation. Instead, it uses the graph structure as a supervisory signal. It enforces a "structural smoothness constraint": connected nodes (in the sparsified graph) are encouraged to have similar representations, while non-neighbors are pushed apart. They even use a "learnable interpolation" to create augmented positive samples between a node and its neighbors.
  3. Bi-level Optimization: Because the MLP doesn't "see" the graph during the forward pass, the sparsification network cannot be trained via standard backpropagation from the classification loss. To solve this, the authors use a bi-level approach: the MLP (lower level) minimizes classification error, while the Sparsifier (upper level) maximizes a homophily-oriented objective (ensuring connected nodes share the same predicted labels).

Datasets

The framework was evaluated on a diverse set of benchmarks:

  • Homophily Graphs (Standard): Cora, Citeseer, Coauthor-CS, and Coauthor-Phy.
  • Large-scale Graphs: ogbn-arxiv and ogbn-proteins.
  • Heterophily Graphs (Nodes of different classes connect): Actor, Squirrel, Chameleon, and Deezer.
  • Graph-level Tasks (Molecular Property Prediction): BBBP, Tox21, MUV, and HIV.

Key Insights and Ideas

  • Implicit is Better than Explicit: You don't need to physically move data across edges (message passing) to learn from a graph. Using the graph to shape the loss function is enough to capture structural patterns.
  • The Power of Homophily: The "birds of a feather flock together" principle (homophily) is a remarkably strong inductive bias. By training the sparsifier to maximize the homophily of the resulting subgraph, the model naturally filters out noise that would otherwise confuse a GNN.
  • Decoupling for Robustness: Because GSSC is "just an MLP" at inference time, a "poisoned" node cannot infect its neighbors. This architectural choice inherently limits error propagation.
  • Efficiency: By removing the need to fetch neighborhood data during the forward pass, GSSC avoids the "neighborhood explosion" problem, making it much faster for real-time inference on large graphs.

Key Results

  • Superior Accuracy: GSSC consistently outperformed standard GNNs (like GCN and GAT) and other MLP-based models (like Graph-MLP and LinkDist). On the ogbn-proteins dataset, it outperformed the state-of-the-art DAGNN by 5.50%.
  • Extreme Robustness: In tests with 60% asymmetric label noise, GSSC outperformed DAGNN by 4.55% on Cora and 7.19% on Citeseer. It showed similar resilience against structural attacks (adding/removing random edges).
  • Inference Speed: GSSC is significantly faster than GNNs. For example, on the Coauthor-Phy dataset, GSSC's inference time was roughly 14ms, compared to over 100ms for GAT and GraphSAGE.

Limitations and Future Work

While GSSC shows great promise, the authors note a few areas for improvement:

  • Optimization Complexity: The bi-level optimization (alternating between the MLP and the Sparsifier) is more computationally intensive during the training phase than a standard MLP or simple GNN.
  • Generalization: The current work focuses on static, homogeneous graphs. The authors suggest that exploring the applicability of GSSC to temporal graphs (where structure changes over time) and heterogeneous graphs (with multiple node/edge types) is a vital next step.
  • Homophily Bias: While the model performs well on heterophily datasets, the core objective is still homophily-oriented. Developing a more flexible objective that can adapt to different graph "signatures" could further boost performance.

Summary updated

BibTeX
@article{wu2025learning,
  author = {Lirong Wu and Haitao Lin and Guojiang Zhao and Cheng Tan and Stan Z. Li},
  title = {{Learning to Model Graph Structural Information on MLPs via Graph Structure Self-Contrasting}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  doi = {10.1109/tnnls.2024.3458405},
}
Figure