用少量干净数据就能有效防御图神经网络的后门攻击
Fine-tuning is Not Fine: Mitigating Backdoor Attacks in GNNs with Limited Clean Data
- 通过注意力迁移和关系图一致性约束提升蒸馏效果
- 仅用3%干净数据就将攻击成功率降至5%以下
- 适合缺乏大量干净数据的GNN安全防护场景
图神经网络(GNN)凭借消息传递机制取得了显著性能,但近期研究揭示其易受后门攻击影响,导致带有触发器的图被错误分类为目标类别。现有防御方法如微调或知识蒸馏依赖完整训练数据集,实证表明微调需20%干净数据,蒸馏需15%才能使攻击准确率低于25%。然而,获取如此大量干净数据通常不切实际。本文提出实用的后门缓解框架GRAPHNAD,通过捕捉GNN中间层高质量表示来增强有限干净数据下的蒸馏过程。针对如何选择合适的注意力表示及如何在数据受限时强化蒸馏,我们采用图注意力迁移方法,使受损模型与教师模型的中间层注意力表示对齐,迫使后门神经元转变为良性状态;同时提取中间层变换的关系图,并强制受损模型的关系图与教师模型一致,从而在保障模型准确率的同时进一步降低后门影响。大量实验结果表明,仅使用3%干净数据微调教师模型,GRAPHNAD即可将攻击成功率降至5%以下。
原文摘要 · Abstract (English)
Graph Neural Networks (GNNs) have achieved remarkable performance through their message-passing mechanism. However, recent studies have highlighted the vulnerability of GNNs to backdoor attacks, which can lead the model to misclassify graphs with attached triggers as the target class. The effectiveness of recent promising defense techniques, such as fine-tuning or distillation, is heavily contingent on having comprehensive knowledge of the sufficient training dataset. Empirical studies have shown that fine-tuning methods require a clean dataset of 20% to reduce attack accuracy to below 25%, while distillation methods require a clean dataset of 15%. However, obtaining such a large amount of clean data is commonly impractical. In this paper, we propose a practical backdoor mitigation framework, denoted as GRAPHNAD, which can capture high-quality intermediate-layer representations in GNNs to enhance the distillation process with limited clean data. To achieve this, we address the following key questions: How to identify the appropriate attention representations in graphs for distillation? How to enhance distillation with limited data? By adopting the graph attention transfer method, GRAPHNAD can effectively align the intermediate-layer attention representations of the backdoored model with that of the teacher model, forcing the backdoor neurons to transform into benign ones. Besides, we extract the relation maps from intermediate-layer transformation and enforce the relation maps of the backdoored model to be consistent with that of the teacher model, thereby ensuring model accuracy while further reducing the influence of backdoors. Extensive experimental results show that by fine-tuning a teacher model with only 3% of the clean data, GRAPHNAD can reduce the attack success rate to below 5%.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。