CTRL-F:通过多级特征交叉注意力和表示学习融合将卷积与Transformer配对用于图像分类
CTRL-F: Pairing Convolution with Transformer for Image Classification via Multi-Level Feature Cross-Attention and Representation Learning Fusion
AI总结:
针对Transformer数据需求量大、低数据场景泛化能力弱的问题,提出轻量级混合网络CTRL-F,通过多级特征交叉注意力(MFCA)模块结合卷积与Transformer,并利用自适应/协作知识融合技术,在有限及大数据集上均实现最优分类性能。
摘要:
Transformer凭借其大容量和全局处理能力在计算机视觉领域受到越来越多的关注。然而,Transformer对数据的需求量大,且与卷积神经网络(ConvNets)相比,其泛化能力受到限制,尤其是在训练数据有限的情况下——这是因为Transformer缺乏ConvNets内置的空间归纳偏置。在本文中,我们致力于将卷积和Transformer的优势最优地结合起来用于图像分类任务。为此,我们提出了一种新颖的轻量级混合网络,通过表示学习融合和多级特征交叉注意力将卷积与Transformer配对,名为CTRL-F。我们的网络包含一个卷积分支和一个名为多级特征交叉注意力(MFCA)的新型Transformer模块。MFCA模块作用于在不同卷积阶段获得的多级特征表示,它通过两个独立的Transformer分支处理从这些多级特征表示中提取的小补丁token和大补丁token,且两个分支通过交叉注意力机制进行通信和知识交换。我们使用名为自适应知识融合(AKF)和协作知识融合(CKF)的新型表示融合技术,将从卷积路径获得的局部响应与从MFCA模块获得的全局响应进行融合。实验表明,无论在大数据集上从头训练还是在低数据环境下训练,我们的CTRL-F变体都能实现最先进的性能。例如,在Oxford-102 Flowers和PlantVillage数据集上从头训练时,CTRL-F分别达到82.24%和99.91%的top-1准确率,超过了最先进的模型,这展示了我们的模型在图像分类任务中的鲁棒性。代码地址:https://github.com/hosamsherif/CTRL-F
英文摘要:
Transformers have captured growing attention in computer vision, thanks to its large capacity and global processing capabilities. However, transformers are data hungry, and their ability to generalize is constrained compared to Convolutional Neural Networks (ConvNets), especially when trained with limited data due to the absence of the built-in spatial inductive biases present in ConvNets. In this paper, we strive to optimally combine the strengths of both convolution and transformers for image classification tasks. Towards this end, we present a novel lightweight hybrid network that pairs Convolution with Transformers via Representation Learning Fusion and Multi-Level Feature Cross-Attention named CTRL-F. Our network comprises a convolution branch and a novel transformer module named multi-level feature cross-attention (MFCA). The MFCA module operates on multi-level feature representations obtained at different convolution stages. It processes small patch tokens and large patch tokens extracted from these multi-level feature representations via two separate transformer branches, where both branches communicate and exchange knowledge through cross-attention mechanism. We fuse the local responses acquired from the convolution path with the global responses acquired from the MFCA module using novel representation fusion techniques dubbed adaptive knowledge fusion (AKF) and collaborative knowledge fusion (CKF). Experiments demonstrate that our CTRL-F variants achieve state-of-the-art performance, whether trained from scratch on large data or even with low-data regime. For Instance, CTRL-F achieves top-1 accuracy of 82.24% and 99.91% when trained from scratch on Oxford-102 Flowers and PlantVillage datasets respectively, surpassing state-of-the-art models which showcase the robustness of our model on image classification tasks. Code at: https://github.com/hosamsherif/CTRL-F
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。