CAMAL:利用分割掩码改进注意力对齐与忠实度
CAMAL: Improving Attention Alignment and Faithfulness with Segmentation Masks
AI总结:
CAMAL通过利用分割掩码提升视觉模型的注意力对齐和忠实度,增强模型解释性并提升泛化性能。
摘要:
许多视觉数据集现在除了标注图像外还提供分割掩码,以支持多种任务。本文提出Class Activation Map Attention Learning (CAMAL),一种高效且可扩展的方法,利用分割掩码改进视觉模型的注意力对齐和忠实度。注意力对齐是指模型注意力与真实判别区域的匹配程度,而注意力忠实度是指模型注意力对决策的影响程度。改进两者对确保模型注意力在空间上准确且因果上有意义至关重要。CAMAL首先在训练过程中提取模型对每个图像的注意力,然后将注意力与从相应分割掩码获得的真实判别区域进行比较。CAMAL随后作为辅助正则化器,鼓励注意力与真实判别区域对齐,同时抑制其他区域的注意力。我们评估了CAMAL在两种学习范式——深度学习(DL)和深度强化学习(DRL)——中的表现,观察到在注意力对齐和忠实度上均取得显著改进。特别是,CAMAL在所有设置中均在注意力对齐上获得统计显著提升,并与最近工作相比将注意力忠实度提高超过35%。此外,我们表明改进的注意力对齐和忠实度增强了可解释性,同时在不增加推理成本的情况下提升了或保持了泛化性能。这些发现表明,分割掩码中包含的空间信息可以有效引导模型注意力在不同学习任务中。
英文摘要:
Many vision datasets now provide segmentation masks in addition to annotated images to support a wide range of tasks. In this work, we propose Class Activation Map Attention Learning (CAMAL), an efficient and scalable method that utilizes segmentation masks to improve attention alignment and faithfulness in vision models. Specifically, attention alignment refers to the degree to which a model's attention aligns with ground-truth discriminative regions, while attention faithfulness refers to the degree to which a model's attention influences its decision. Improving both attention alignment and faithfulness is essential for ensuring that model attention is both spatially accurate and causally meaningful. To improve attention alignment and faithfulness in vision models, CAMAL first extracts the model's attention for each image during training and then compares the attention to ground-truth discriminative regions obtained from the corresponding segmentation masks. CAMAL then acts as an auxiliary regularizer, encouraging attention that aligns with ground-truth discriminative regions, while suppressing attention elsewhere. We evaluated CAMAL across two learning paradigms -- Deep Learning (DL) and Deep Reinforcement Learning (DRL) -- and observed consistent, significant improvements in both attention alignment and faithfulness. In particular, CAMAL yields statistically significant gains in attention alignment across all settings, and improves attention faithfulness by over 35% compared to recent work. Moreover, we show that improved attention alignment and faithfulness enhance explainability, while yielding improved or comparable generalization performance without increasing inference cost. These findings demonstrate that the spatial information contained within segmentation masks can be effectively leveraged to guide model attention across learning tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。