On the Safety of Graph Representation Learning

Xiaoguang Guo, Zehong Wang, Ziming Li, Shawn Spitzel, Soonwoo Kwon, Tianyi Ma, Yanfang Ye, Chuxu ZhangarXiv 2026

TL;DR

As graph representation learning (GRL) transitions into the era of foundation models, evaluating model reliability under real-world deployment stress is more critical than ever. This paper introduces GRL-Safety, a comprehensive benchmark that tests 12 representative graph models across 25 datasets on five distinct safety axes. The findings reveal that newer graph foundation models do not offer blanket safety dominance, and model reliability depends heavily on the specific type of deployment stress encountered.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) and Graph Foundation Models (GFMs) are increasingly deployed in high-stakes domains like fraud detection, molecular design, and recommendation systems. While existing benchmarks thoroughly measure how well these models transfer to new tasks under "clean" conditions, they largely ignore how models behave under real-world deployment stresses. For instance, what happens when graph structures are corrupted, labels are heavily imbalanced, or data distributions shift over time?

Currently, safety evaluations are fragmented—focusing on one issue at a time (e.g., just fairness or just robustness) under disparate protocols. This paper bridges the gap by introducing a unified, multi-axis safety benchmark to evaluate the entire GRL spectrum under standardized, comparable conditions.

Methods

The authors present GRL-Safety, a standardized benchmark framework designed to evaluate 12 representative GRL methods spanning four distinct architectural eras:

  1. Shallow graph embeddings: DeepWalk, Node2vec
  2. Supervised GNNs: GCN, GAT, GraphSAGE
  3. Self-supervised graph models: BGRL, GraphMAE
  4. Graph Foundation Models (GFMs): GFT, GIT, UniGraph2, OFA, LLaGA

To ensure a fair comparison while preserving each method's native design, the authors standardized the input substrate: feature-consuming methods use shared text-attribute embeddings (via Sentence-BERT), and pretrained models share a common nine-graph pretraining corpus.

The benchmark evaluates these models across five safety axes:

  • Corruption Robustness: Stability against feature noise (Gaussian perturbations) and structure noise (random edge deletion).
  • OOD Generalization: Performance under degree, temporal, scaffold, and inductive entity shifts.
  • Class Imbalance: Performance under skewed label support, measuring major vs. minor class recall.
  • Fairness: Performance disparities between structural groups (high-degree "head" vs. low-degree "tail" nodes) and demographic groups.
  • Interpretation: The actual predictive fidelity of post-hoc explanations (saliency maps) under subgraph ablation.
Figure 1: Overview of GRL-Safety. We evaluate twelve GRL methods across five safety axes under standardized evaluation conditions.

Datasets

The benchmark evaluates models across 25 text-attributed graph datasets spanning seven diverse domains (Academic, E-commerce, Book, Web platform, Knowledge Graph, Recommendation, and Molecule) and three task formats (Node Classification, Link Prediction, and Graph Classification). Standard datasets include Cora, CiteSeer, PubMed, ogbn-arxiv, BACE, Tox21, WN18RR, and FB15K237. While no entirely new datasets are introduced, their unified curation and standardized text-embedding processing form a novel, holistic evaluation substrate.

Key Insights and Ideas

  • Stress × Design Matters: Safety isn't a monolithic property dictated by model family alone. A model's vulnerability depends entirely on the interaction between its representation design and the specific graph factor being stressed. For example, topology-only models are highly fragile to edge deletion but completely immune to feature noise.
  • No GFM Dominance: "Foundation-era" graph models (GFMs) do not universally outperform older models across safety axes. Instead, they exhibit highly axis-specific strengths (e.g., OFA excels at temporal shifts, while GFT dominates in explanation fidelity). Adopting a GFM is not a silver bullet for safety.
  • Persistent Capability Gaps: Certain deployment regimes remain fundamentally broken for all evaluated models. Severe class imbalance consistently forces a harsh trade-off between majority and minority class recall, and temporal drift causes massive accuracy drops across the board, signaling a need for new training objectives rather than just better model selection.

Key Results

  • Corruption Robustness: Under severe edge deletion ($p=0.5$), shallow embeddings like DeepWalk drop by nearly 10 points, whereas supervised and self-supervised GNNs remain remarkably stable (dropping $<2$ points). GFMs show mixed results: LLaGA handles feature noise well but degrades under structure noise, while UniGraph2 shows the opposite trend.
Figure 2: Corruption severity trajectories. Test accuracy under feature- and structure-noise sweeps on WikiCS and Cora. Curves denote methods; per-dataset curves in Appendix Figures 6–7.
  • OOD Generalization: Model rankings completely flip depending on the type of distribution shift. GraphMAE shows the lowest drop under degree shifts, but the foundation model OFA achieves the best resilience against temporal shifts on the arXiv dataset.
Figure 3: Node-classification OOD shifts. Larger values indicate weaker OOD generalization; darker cells and longer bars denote larger drops.
  • Class Imbalance & Fairness: Skewed label support causes severe minority-class collapse; topology-only models drop to near-zero recall on minority classes despite high majority performance. For structural fairness, purely structural representations heavily amplify degree-position disparity, consistently favoring well-connected "head" nodes over isolated "tail" nodes.
  • Interpretation Fidelity: Only a small subset of models yield faithful post-hoc explanations. GFT consistently leads in node-level attribution fidelity, followed by GraphSAGE and GIT, while other models fail to outperform a random-edge baseline.

Limitations and Future Work

The authors note that GRL-Safety is not an exhaustive taxonomy of all safety concerns; it currently omits calibration, privacy, and adaptive adversarial robustness. Furthermore, the evaluation is constrained by adapter compatibility—for instance, models without a shared per-edge gradient interface (like LLM-based GFMs) could not be evaluated on the node-level attribution fidelity axis. Future work aims to expand the benchmark to include more diverse adapters, domains, and explicit optimization methods tailored to handle these specific deployment stressors.

Summary updated

Abstract

Graph representation learning (GRL) has evolved from topology-only graph embeddings to task-specific supervised GNNs, and more recently to reusable representations and graph foundation models (GFMs). However, existing evaluations mainly measure clean transfer, adaptation, and task coverage. It remains unclear whether GRL methods stay reliable when deployment stresses affect graph signals, graph contexts, label support, structural groups, or predictive evidence. We introduce GRL-Safety, a multi-axis safety evaluation benchmark for GRL. GRL-Safety evaluates twelve representative methods, spanning topology-only embedding methods, supervised GNNs, self-supervised graph models, and GFMs, on twenty-five graph datasets under standardized evaluation conditions while preserving method-native adaptation. The evaluation covers five safety axes: corruption robustness, OOD generalization, class imbalance, fairness, and interpretation, with per-axis and sub-condition reporting rather than a single aggregate score. Our analysis yields three cross-axis insights that can inspire future research. First, safety behavior is shaped by the interaction between representation design and the stressed graph factor, rather than by method family alone. Second, foundation-era methods show axis-specific strengths rather than broad safety dominance. Third, several deployment regimes remain difficult even for the best evaluated method, revealing capability gaps that require new robustness, adaptation, or training objectives beyond model selection. The benchmark, evaluation protocols, and code are available at: https://github.com/GXG-CS/GRL-Safety.
BibTeX
@misc{guo2026safety,
  author = {Xiaoguang Guo and Zehong Wang and Ziming Li and Shawn Spitzel and Soonwoo Kwon and Tianyi Ma and Yanfang Ye and Chuxu Zhang},
  title = {{On the Safety of Graph Representation Learning}},
  year = {2026},
  eprint = {2605.06576},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.06576},
}
Figure