arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.08374cs.CVcs.AIcs.LG
收藏

基于非对称InfoNCE的对抗性对比学习

Adversarial Contrastive Learning via Asymmetric InfoNCE

Tsinghua University(清华大学);Institute for AI Industry Research, Tsinghua University(清华大学智能产业研究院);Harbin Institute of Technology(哈尔滨工业大学);School of Computer Science and Technology, Harbin Institute of Technology(哈尔滨工业大学计算机科学与技术学院)

Qiying Yu, Jieming Lou, Xianyuan Zhan, Qizhang Li, Wangmeng Zuo, Yang Liu, Jingjing Liu

摘要:

对比学习(CL)最近被应用于对抗性学习任务。这种做法将对抗样本视为实例的额外积极观点,并通过最大化它们之间的一致性,产生更好的对抗鲁棒性。然而,这种机制可能存在潜在的缺陷,因为对抗性扰动可能会导致实例级身份混淆,这可能会通过将具有单独身份的不同实例拉在一起来阻碍CL性能。为了解决这个问题,我们建议在对比时不平等地对待对抗样本,使用非对称InfoNCE目标($A-InfoNCE$),允许对对抗样本进行区分考虑。具体而言,对手被视为诱导较弱学习信号的劣质阳性,或与其他阴性样本相比表现出更高对比度的硬阴性。在不对称的方式,CL和对抗性学习之间的目标冲突的不利影响,可以有效地减轻。实验表明,我们的方法在不同的微调方案中始终优于现有的对抗CL方法,而无需额外的计算成本。建议的A-InfoNCE也是一个通用的形式,可以很容易地扩展到其他CL方法。代码可在https://github.com/yqy2001/A-InfoNCE上获得。

英文摘要:

Contrastive learning (CL) has recently been applied to adversarial learning tasks. Such practice considers adversarial samples as additional positive views of an instance, and by maximizing their agreements with each other, yields better adversarial robustness. However, this mechanism can be potentially flawed, since adversarial perturbations may cause instance-level identity confusion, which can impede CL performance by pulling together different instances with separate identities. To address this issue, we propose to treat adversarial samples unequally when contrasted, with an asymmetric InfoNCE objective ($A-InfoNCE$) that allows discriminating considerations of adversarial samples. Specifically, adversaries are viewed as inferior positives that induce weaker learning signals, or as hard negatives exhibiting higher contrast to other negative samples. In the asymmetric fashion, the adverse impacts of conflicting objectives between CL and adversarial learning can be effectively mitigated. Experiments show that our approach consistently outperforms existing Adversarial CL methods across different finetuning schemes without additional computational cost. The proposed A-InfoNCE is also a generic form that can be readily extended to other CL methods. Code is available at https://github.com/yqy2001/A-InfoNCE.

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

↑