arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.08782cs.CV
收藏

无偏视觉识别中的因果注意

Causal Attention for Unbiased Visual Recognition

Nanyang Technological University(南洋理工大学);Damo Academy, Alibaba Group(阿里巴巴集团达摩院);Singapore Management University(新加坡管理大学)

Tan Wang, Chang Zhou, Qianru Sun, Hanwang Zhang

摘要:

注意力模块并不总是帮助深度模型学习在任何混淆背景下都是鲁棒的因果特征,例如,前景对象特征对于不同的背景是不变的。这是因为混杂因素欺骗注意力,以捕获虚假的相关性,当训练和测试数据是IID(相同和独立分布)时,这些相关性有利于预测;而当数据是OOD(分布外)时,这些相关性则会损害预测。学习因果注意力的唯一基本解决方案是通过因果干预,这需要对混淆因素进行额外的注释,例如,分别在“草+狗”和“路+狗”内学习“狗”模型,因此“草”和“路”上下文将不再混淆“狗”识别。然而,这样的注释不仅昂贵得令人望而却步,而且本质上也是有问题的,因为混杂因素本质上是难以捉摸的。在本文中,我们提出了一个因果注意模块(CaaM),自我注释的混淆在无监督的方式。特别地,多个CaaM可以堆叠并集成在常规注意力CNN和自注意力视觉Transformer中。在OOD设置中,使用CaaM的深度模型明显优于没有它的深度模型;即使在IID设置中,CaaM也改善了注意力定位,在需要鲁棒视觉显着性的应用中显示出巨大的潜力。代码可从\url{https://github.com/Wangt-CN/CaaM}获得。

英文摘要:

Attention module does not always help deep models learn causal features that are robust in any confounding context, e.g., a foreground object feature is invariant to different backgrounds. This is because the confounders trick the attention to capture spurious correlations that benefit the prediction when the training and testing data are IID (identical & independent distribution); while harm the prediction when the data are OOD (out-of-distribution). The sole fundamental solution to learn causal attention is by causal intervention, which requires additional annotations of the confounders, e.g., a "dog" model is learned within "grass+dog" and "road+dog" respectively, so the "grass" and "road" contexts will no longer confound the "dog" recognition. However, such annotation is not only prohibitively expensive, but also inherently problematic, as the confounders are elusive in nature. In this paper, we propose a causal attention module (CaaM) that self-annotates the confounders in unsupervised fashion. In particular, multiple CaaMs can be stacked and integrated in conventional attention CNN and self-attention Vision Transformer. In OOD settings, deep models with CaaM outperform those without it significantly; even in IID settings, the attention localization is also improved by CaaM, showing a great potential in applications that require robust visual saliency. Codes are available at \url{https://github.com/Wangt-CN/CaaM}.

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

↑