arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.06230cs.CR
收藏

基于激活梯度的中毒样本检测以防御后门攻击

Activation Gradient based Poisoned Sample Detection Against Backdoor Attacks

Danni Yuan, Shaokui Wei, Mingda Zhang, Li Liu, Baoyuan Wu

AI总结:

针对后门攻击中的中毒样本检测,提出基于激活梯度循环分布(GCD)的三阶段检测方法AGPD,利用目标类GCD分散度差异识别目标类,并依据GCD中中毒与干净样本的分离过滤中毒样本,实验验证其优于现有方法。

摘要:

本文研究了中毒样本检测任务,以防御基于数据投毒的后门攻击。其核心挑战在于寻找一种具有泛化性和判别性的度量,以区分干净样本与各种类型的中毒样本(例如,各种触发器、各种投毒比例)。受后门攻击中一个常见现象的启发,即被植入后门的模型倾向于将目标类别中显著不同的中毒样本和干净样本映射到相似的激活区域,我们引入了一个关于样本激活梯度的循环分布的新视角,称为梯度循环分布(GCD)。基于GCD,我们发现了两个有趣的观察。一是目标类别中样本的GCD比干净类别中的更加分散。二是目标类别的GCD中,中毒样本和干净样本被清晰地区分开。受上述两个观察的启发,我们开发了一种创新的三阶段中毒样本检测方法,称为基于激活梯度的中毒样本检测(AGPD)。首先,我们从不信任数据集上训练的模型中计算所有类别的GCD。然后,我们根据目标类别与干净类别之间GCD分散度的差异来识别目标类别。最后,我们根据中毒样本与干净样本之间的清晰分离,在已识别的目标类别中过滤掉中毒样本。在各种后门攻击设置下的大量实验表明,与现有的基于样本激活度量的中毒检测方法相比,所提出的方法具有优越的检测性能。

英文摘要:

This work studies the task of poisoned sample detection for defending against data poisoning based backdoor attacks. Its core challenge is finding a generalizable and discriminative metric to distinguish between clean and various types of poisoned samples (e.g., various triggers, various poisoning ratios). Inspired by a common phenomenon in backdoor attacks that the backdoored model tend to map significantly different poisoned and clean samples within the target class to similar activation areas, we introduce a novel perspective of the circular distribution of the gradients w.r.t. sample activation, dubbed gradient circular distribution (GCD). And, we find two interesting observations based on GCD. One is that the GCD of samples in the target class is much more dispersed than that in the clean class. The other is that in the GCD of target class, poisoned and clean samples are clearly separated. Inspired by above two observations, we develop an innovative three-stage poisoned sample detection approach, called Activation Gradient based Poisoned sample Detection (AGPD). First, we calculate GCDs of all classes from the model trained on the untrustworthy dataset. Then, we identify the target class(es) based on the difference on GCD dispersion between target and clean classes. Last, we filter out poisoned samples within the identified target class(es) based on the clear separation between poisoned and clean samples. Extensive experiments under various settings of backdoor attacks demonstrate the superior detection performance of the proposed method to existing poisoned detection approaches according to sample activation-based metrics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑