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

在类增量学习中保持视觉Transformer的局部性

Preserving Locality in Vision Transformers for Class Incremental Learning

Nanjing University(南京大学)

Bowen Zheng, Da-Wei Zhou, Han-Jia Ye, De-Chuan Zhan

AI总结:

本文针对视觉Transformer在类增量学习中出现的局部性退化问题,提出局部性保持注意力层,通过融入局部信息并控制初始梯度来增强低级通用特征的可迁移性,从而在CIFAR100和ImageNet100上持续提升性能。

摘要:

在不遗忘的情况下学习新类别对于分类模型的实际应用至关重要。视觉Transformer(ViT)最近在类增量学习(CIL)中取得了显著性能。以往的工作主要关注ViT的模块设计和模型扩展。然而,在本文中,我们发现当ViT被增量训练时,注意力层逐渐失去对局部特征的关注。我们将这一有趣的现象称为ViT在CIL中的“局部性退化”。由于低级局部信息对于表示的可迁移性至关重要,因此在注意力层中保持局部性是有益的。在本文中,我们鼓励模型在训练过程中保留更多局部信息,并设计了一种局部性保持注意力(LPA)层来强调局部特征的重要性。具体来说,我们将局部信息直接融入普通注意力中,并通过用较小的初始值对其进行加权来控制普通注意力的初始梯度。大量实验表明,由LPA促进的表示能够捕获更多低级通用信息,这些信息更容易迁移到后续任务中。改进后的模型在CIFAR100和ImageNet100上持续获得更好的性能。

英文摘要:

Learning new classes without forgetting is crucial for real-world applications for a classification model. Vision Transformers (ViT) recently achieve remarkable performance in Class Incremental Learning (CIL). Previous works mainly focus on block design and model expansion for ViTs. However, in this paper, we find that when the ViT is incrementally trained, the attention layers gradually lose concentration on local features. We call this interesting phenomenon as \emph{Locality Degradation} in ViTs for CIL. Since the low-level local information is crucial to the transferability of the representation, it is beneficial to preserve the locality in attention layers. In this paper, we encourage the model to preserve more local information as the training procedure goes on and devise a Locality-Preserved Attention (LPA) layer to emphasize the importance of local features. Specifically, we incorporate the local information directly into the vanilla attention and control the initial gradients of the vanilla attention by weighting it with a small initial value. Extensive experiments show that the representations facilitated by LPA capture more low-level general information which is easier to transfer to follow-up tasks. The improved model gets consistently better performance on CIFAR100 and ImageNet100.

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

↑