arXiv:2605.23411cs.LGcs.CR2026-05

针对测试时自适应设计了精准隐蔽的样本级攻击方法。

Sample-wise Targeted Adversarial Attacks on Test-time Adaptation

论文配图:Sample-wise Targeted Adversarial Attacks on Test-time Adaptation
图 1 · 摘自论文原文
  • 基于元学习与优先级梯度对齐,仅攻击带触发器的样本。
  • 攻击成功率高且目标标签分布与正常情况一致。
  • 适合评估模型在真实场景下的安全漏洞,尤其对抗检测防御。

测试时自适应(TTA)能有效应对分布偏移,但暴露于未标注测试流的对抗攻击风险。现有类别级目标攻击在批量处理下易被检测:强制部分样本分类为目标类会牵连相似良性样本,导致目标标签频率异常升高。为此,我们提出样本级目标攻击,攻击者仅使携带特定触发器的输入误分类,同时保持良性样本的全局标签分布不变,以规避检测。为此,我们设计一种基于元学习的攻击方法,采用新颖的优先级感知梯度对齐策略,将梯度更新建模为椭球信任区域问题,缓解攻击成功与分布隐蔽性之间的冲突,并提供理论保障。在CIFAR-10-C、CIFAR-100-C和ImageNet-C上的实验表明,该方法在多种TTA协议下实现高目标攻击成功率,同时标签分布与无攻击基线一致,难以在无监督部署中察觉。此外,该攻击对现有防御机制也表现出强鲁棒性。

原文摘要 · Abstract (English)

Test-time adaptation (TTA) effectively counters distribution shifts but exposes models to adversarial manipulation via the unlabeled test stream. Existing class-wise targeted attacks remain impractical for stealthy exploitation in this setting: since TTA operates on batches, forcing a subset of samples toward a target label unintentionally pulls similar benign samples along, resulting in a conspicuously high frequency of the target label that is easy to detect. To capture a more realistic threat, we introduce a sample-wise targeted attack. Unlike prior approaches, the attacker aims to misclassify only inputs carrying an attacker-chosen trigger, while preserving the global label distribution of benign queries to evade detection. To achieve this, we propose a meta-learning-based attack with a novel priority-aware gradient alignment strategy that explicitly prioritizes attack success. The strategy formulates the gradient update as an ellipsoidal trust-region problem, mitigating the misalignment between attack success and distributional stealth, while providing theoretical guarantees for effective optimization of the attack objective in the presence of gradient misalignment. Extensive experiments on CIFAR-10-C, CIFAR-100-C, and ImageNet-C across TTA protocols demonstrate that our method achieves high targeted success rates while maintaining a label distribution that is consistent with the no-attack baseline, making it difficult to detect in unlabeled TTA deployment scenarios. Furthermore, we demonstrate that our attack shows strong robustness against existing defenses.

对抗攻击测试时自适应隐蔽攻击

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