Manuscript Offprint

arXiv:2609.09698

Kernel-Complexity Edge Sanitization for Training-Free Defense against Structural Graph Attacks

Yaning Jia, Shenyang Deng, Yaoqing Yang, Chiyu Ma, Wenxuan Xu, Soroush Vosoughi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yaning Jia

yaning.jia.gr@dartmouth.edu

Department of Computer Science

Dartmouth College

Hanover, New Hampshire, USA

Chiyu Ma

chiyu.ma.gr@dartmouth.edu

Department of Computer Science

Dartmouth College

Hanover, New Hampshire, USA

Shenyang Deng

shenyang.deng.gr@dartmouth.edu

Department of Computer Science

Dartmouth College

Hanover, New Hampshire, USA

Wenxuan Xu

wenxuan.xu.gr@dartmouth.edu

Department of Computer Science

Dartmouth College

Hanover, New Hampshire, USA

Yaoqing Yang

yaoqing.yang@dartmouth.edu

Department of Computer Science

Dartmouth College

Hanover, New Hampshire, USA

Soroush Vosoughi ∗^{*}

soroush.vosoughi@dartmouth.edu

Department of Computer Science

Dartmouth College

Hanover, New Hampshire, USA

Abstract

Graph Neural Networks (GNNs) have achieved remarkable success across diverse applications, yet they remain highly vulnerable to adversarial attacks that maliciously perturb graph structure. Existing defenses often lack rigorous theoretical grounding, rely on attack-specific heuristics, or require costly retraining procedures such as adversarial training. To address these limitations, we propose Kernel-Complexity Edge Sanitization (KCES), a training-free and model-agnostic framework for defending against structural attacks. KCES is built upon Graph Kernel Complexity (GKC), a principled metric derived from the graph Gram matrix that appears in a generalization upper bound on the GNN test error. From this bound, we define an edge-specific KC score that quantifies each edge's structural influence via its induced change in GKC. KCES then identifies and prunes high-KC edges, which are empirically enriched with adversarial perturbations under structural attacks, to mitigate their harmful impact. Computationally efficient and scalable, KCES operates as a lightweight preprocessing step without retraining and can be seamlessly integrated with existing defenses. Extensive experiments demonstrate that KCES consistently outperforms representative robust baselines across diverse attack settings and scales effectively to large graphs. Supported by theoretical analysis and extensive empirical validation, KCES provides a principled and efficient framework for securing GNNs. Our code is available at https://github.com/karpning/KCScore.

CCS Concepts

• Information systems → Data mining; • Theory of computation → Theory and algorithms for application domains; • Computing methodologies → Artificial intelligence.