Stage-Aware Graph Contrastive Learning with Node-oriented Mixture of Experts

Xiangkai Zhu, Yeyu Yan, Saiqin Long, Chao Li, Guanwen Chen, Longsheng Su

TL;DR

SAGCL (Stage-Aware Graph Contrastive Learning) addresses the "semantic misalignment" that occurs when plugging Large Language Model (LLM) embeddings into Graph Neural Networks (GNNs). By using a node-level Mixture of Experts (NodeMoE) to fuse multiple LLMs and a decoupled contrastive learning strategy, the framework ensures that rich textual semantics actually harmonize with graph topology rather than causing performance collapse.

What Problem Does This Paper Address?

Text-attributed graphs (TAGs)—where nodes represent entities like research papers or products with associated text—are usually processed by using an LLM to generate node features, which are then fed into a GNN. However, the authors discovered two major hurdles:

  1. Architectural Heterogeneity: No single LLM is "the best" for every node in a graph. Different models (like Llama vs. Qwen) capture different semantic nuances, and their effectiveness varies across different datasets.
  2. Semantic Misalignment: LLM embeddings are high-dimensional and semantically dense, while GNN message passing is a local, topology-biased operation. Simply "dropping in" LLM features often leads to a performance drop because the GNN's inductive bias (how it learns from neighbors) doesn't align with the LLM's perception of the text.

Methods

The authors propose SAGCL, which consists of two primary innovations:

  • Node-oriented Mixture of Experts (NodeMoE): Instead of picking one LLM, SAGCL uses a committee (e.g., Llama-8B, Qwen-7B, and Qwen-2.5-7B). To keep this computationally feasible, they use a low-rank reparameterization strategy. This allows the model to learn node-specific weights to fuse these experts' embeddings without the massive overhead of a standard gating network.
  • Stage-Aware Contrastive Learning: They decouple the GNN's message-passing process into two distinct stages: Feature Transformation ($F_T$) and Feature Propagation ($F_P$).
  • In the $F_T$ stage, they use contrastive loss to align the LLM's semantic features with the GNN's internal hidden representations.
  • In the $F_P$ stage, they align the LLM-enhanced features with the locally aware topological patterns captured by the GNN.
  • They also introduce an upper-bound loss to prevent "over-smoothing," ensuring that node embeddings don't drift too far from their original identity during neighborhood aggregation.

Datasets

The framework was evaluated on eight diverse graph datasets:

  • Citation Networks: Cora, CiteSeer, PubMed, and ogbn-arxiv.
  • Social/Product Networks: Instagram, Photo, Computer, and WikiCS.

Evaluation covered three downstream tasks: Node Classification (NC), Node Clustering (NClu), and Link Prediction (LP).

Key Insights and Ideas

  • LLMs aren't a "Silver Bullet" for GNNs: The authors' initial experiments showed that simply replacing original features with LLM embeddings sometimes hurt performance in GNNs, even if it helped in simple MLPs. This highlights the need for explicit alignment.
  • The Power of Diversity: The NodeMoE approach proves that different nodes benefit from different "expert" perspectives. For example, one LLM might be better at technical jargon in a citation graph, while another excels at general sentiment.
  • Decoupling is Essential: By treating the transformation of features and the propagation of features as separate stages, the model can bridge the gap between "what the text says" and "who the node's neighbors are" more effectively.

Key Results

SAGCL consistently outperformed twelve state-of-the-art self-supervised methods (including GRACE, DGI, and various Graph Autoencoders).

  • Node Classification: On the Cora dataset, SAGCL achieved 85.40% accuracy, significantly higher than the next best baseline (ROSEN at 84.41%).
  • Clustering: It showed a marked improvement in Normalized Mutual Information (NMI), particularly on the Computer and Photo datasets.
  • Link Prediction: SAGCL reached an AUC of 99.1% on Cora, demonstrating that its embeddings are highly discriminative for structural relationships.

Limitations and Future Work

The authors note that while NodeMoE is efficient, there is a "sweet spot" for the number of experts. Increasing the number of experts beyond $M=4$ actually led to a slight decline in performance, likely due to excessive semantic smoothing—where the unique signals of individual nodes get washed out by too much "expert" noise.

Future work could explore more complex GNN architectures beyond the vanilla SGC used in this study or investigate how to dynamically scale the number of experts based on graph density.

Summary updated

BibTeX
@inproceedings{zhu2026stage,
  author = {Xiangkai Zhu and Yeyu Yan and Saiqin Long and Chao Li and Guanwen Chen and Longsheng Su},
  title = {{Stage-Aware Graph Contrastive Learning with Node-oriented Mixture of Experts}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i19.38695},
}
Figure