arXiv:2608.11495cs.LGcs.CR2026-08KDD

用动态结构防火墙保护图神经网络,防模型盗取却不影响正常使用。

Defending against Model Extraction for GNNs with Model Reprogramming

  • 通过可学习拓扑原型构建动态结构门控机制
  • 使攻击者估计误差下限随扰动敏感度上升而增大
  • 适合高安全场景下的GNN服务防护

图神经网络(GNN)在机器学习即服务(MLaaS)中承担关键任务,但其黑盒部署易受模型提取(ME)攻击,攻击者通过查询接口窃取知识产权。现有防御存在‘欧氏偏差’:将图像领域的随机噪声等策略直接迁移至图结构,忽视节点间复杂的拓扑依赖,常导致性能严重下降。被动防御如水印也无法实时阻止盗取。为此,我们提出GraphRP(图重编程防护)框架,利用模型重编程实现主动防御。不同于静态扰动,GraphRP引入由可学习拓扑原型驱动的结构感知门控机制,构建动态‘结构防火墙’,选择性调制模型决策边界:对位于训练流形上的良性查询保持精度,对恶意查询则最大化扰动方向上的费舍尔信息。在标准假设下(有界损失、最优攻击者、局部二阶近似),我们证明了攻击者估计误差存在下界,且随重编程噪声的结构敏感度增加而上升。大量实验表明,GraphRP在硬标签与软标签模型提取攻击下均显著降低攻击有效性,同时保持良性任务的使用性能。

原文摘要 · Abstract (English)

Graph Neural Networks (GNNs) serve as the backbone for high-stakes applications in Machine-Learning-as-a-Service (MLaaS). Still, their black-box deployment exposes them to Model Extraction (ME) attacks, in which adversaries steal intellectual property by querying APIs. Existing defenses suffer from a critical ''Euclidean bias'': they transfer image-based strategies (e.g., random noise) to graphs, ignoring the complex topological dependencies between nodes, which often results in severe utility degradation. Passive methods like watermarking also fail to prevent theft in real time. To bridge this gap, we propose GraphRP (Graph Reprogramming Protection), a proactive defense framework that repurposes Model Reprogramming for security. Unlike static perturbations, GraphRP introduces a Structure-Aware Gating Mechanism driven by learnable topological prototypes. This creates a dynamic ''structural firewall'' that selectively modulates the model's decision boundary: it preserves fidelity for benign queries residing on the training manifold, while maximizing the Fisher Information along the perturbation direction for adversarial queries. Under standard assumptions (bounded loss, optimal attacker, and local second-order approximation), we prove a lower bound on the attacker's estimation error that increases with the structural sensitivity of the reprogramming noise. Extensive experiments on both hard-label and soft-label ME attacks demonstrate that GraphRP significantly degrades attack effectiveness while preserving benign utility.

图神经网络模型安全对抗防御

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。