作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• •    

候选参考集污染下的锚点引导图像后门样本检测方法

  • 发布日期:2026-12-04

Anchor-Guided Image Backdoor Sample Detection under Candidate-Reference Contamination

  • Published:2026-12-04

摘要: 针对推理阶段图像后门样本检测依赖干净参考集、候选参考样本遭受定向污染后类别统计易发生偏移的问题,提出一种安全筛选锚点引导检测方法(Safe-Filtered Anchor-Guided Detection,SFAG-Det)。SFAG-Det首先从受检模型的中间层提取归一化特征,并利用每类20个可信锚点构建由语义间隔和统计距离组成的非一致性分数;随后计算候选参考样本的类条件有限样本p值,筛除异常候选,对保留样本按p值连续加权,并与高权重可信锚点共同估计类别原型和收缩方差。在线阶段对语义异常分数和统计异常分数进行类条件标准化与等权融合,再利用每类20个独立干净校准样本确定误报率约为5%的有限样本顺序统计阈值。实验在加拿大高级研究院10类图像数据集(CIFAR-10)和德国交通标志识别基准(GTSRB)上使用预激活残差网络(PreActResNet18)开展三随机种子验证,并在CIFAR-10上额外使用18层残差网络(ResNet-18)进行跨架构验证,覆盖BadNets、Blended、样本特定后门攻击(SSBA)、正弦信号攻击(SIG)、WaNet和输入感知动态后门攻击(InputAware)等六类攻击。当目标类别候选参考样本全部被替换时,在误报率(FPR)为5%的工作点,SFAG-Det在CIFAR-10和GTSRB各5项已测攻击的宏平均真正率(TPR)分别为0.7525和0.9721,普通均值统计在高替换率下接近失效。在3个ResNet-18受害模型种子的四项攻击验证中,SFAG-Det由0%替换时的0.5983提高至100%目标类别候选参考替换时的0.7398。在GTSRB各替换率下SFAG-Det与仅锚点的差值均不超过0.92个百分点,表明目标类别候选参考替换未导致检测率明显下降。参数敏感性、层级自助法、多随机种子和效率实验进一步验证了SFAG-Det的稳定性,同时表明其仍受可信锚点质量和CIFAR-10 BadNets检测能力的限制。

Abstract: Candidate-reference contamination can shift class statistics toward the backdoor distribution and degrade feature-based test-time detection. This paper proposes Safe-Filtered Anchor-Guided Detection (SFAG-Det). Using 20 trusted anchors per class, SFAG-Det builds semantic and statistical nonconformity scores, screens candidates with class-conditional finite-sample p-values, and estimates class prototypes and shrinkage variances from weighted accepted candidates and anchors; rejected samples never enter subsequent statistics. Online detection fuses the standardized scores and calibrates the threshold using 20 independent clean samples per class. Experiments cover BadNets, Blended, SSBA, SIG, WaNet, and InputAware, using three PreActResNet18 seeds on CIFAR-10 and GTSRB and three ResNet-18 seeds on CIFAR-10. At 100% target-class candidate replacement, macro-averaged TPR at 5% FPR across the five tested attacks per dataset is 0.7525 and 0.9721, respectively, while ordinary-mean statistics nearly fail. On ResNet-18 (four attacks), TPR rises from 0.5983 to 0.7398. On GTSRB, performance remains within 0.92 percentage points of the anchor-only baseline. Sensitivity, ablation, hierarchical-bootstrap, multi-seed, and efficiency results support stable, low-overhead detection. Performance still depends on trusted-anchor quality and is weaker on CIFAR-10 BadNets.