arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.06040cs.CV
收藏

MSCViT: 面向小数据集的具备多尺度自注意力机制的轻量型ViT架构

MSCViT: A Small-size ViT architecture with Multi-Scale Self-Attention Mechanism for Tiny Datasets

Sichuan University(四川大学)

Bowei Zhang, Yi Zhang

AI总结:

针对ViT在小数据集上表现不佳的问题,提出融合小波卷积、轻量多头注意力及局部特征模块的MSCViT架构,参数效率更高,在小数据集上取得优异准确率。

摘要:

视觉Transformer(ViT)凭借强大的长距离依赖建模能力,已在各类视觉任务中展现出巨大潜力。但这一成功很大程度上依赖于海量样本的训练支撑。在实际应用中,大规模数据集并非总能获取,若仅在小规模数据集(即小数据集)上训练,ViT的表现会逊色于卷积神经网络(CNNs),因为它需要大量训练数据才能保证表征能力。\n本文提出一种融合多尺度自注意力机制与卷积模块的轻量型ViT架构(命名为MSCViT),可在每一层建模不同尺度的注意力。首先,我们引入小波卷积,将分频得到的高频分量与我们的卷积通道选择性结合,以提取局部特征。其次,设计了一个轻量级多头注意力模块,用于减少token数量并降低计算成本。最后,用局部特征提取模块替换了骨干网络中的位置编码(PE)。与原始ViT相比,该模型参数效率更高,尤其适用于小数据集场景。\n我们在多个小数据集上开展了大量实验,结果显示:在无需大规模数据集预训练的情况下,我们的模型以14.0M参数量和2.5 GFLOPs的计算量,在CIFAR-100上达到了84.68%的准确率。

英文摘要:

Vision Transformer (ViT) has demonstrated significant potential in various vision tasks due to its strong ability in modelling long-range dependencies. However, such success is largely fueled by training on massive samples. In real applications, the large-scale datasets are not always available, and ViT performs worse than Convolutional Neural Networks (CNNs) if it is only trained on small scale dataset (called tiny dataset), since it requires large amount of training data to ensure its representational capacity. In this paper, a small-size ViT architecture with multi-scale self-attention mechanism and convolution blocks is presented (dubbed MSCViT) to model different scales of attention at each layer. Firstly, we introduced wavelet convolution, which selectively combines the high-frequency components obtained by frequency division with our convolution channel to extract local features. Then, a lightweight multi-head attention module is developed to reduce the number of tokens and computational costs. Finally, the positional encoding (PE) in the backbone is replaced by a local feature extraction module. Compared with the original ViT, it is parameter-efficient and is particularly suitable for tiny datasets. Extensive experiments have been conducted on tiny datasets, in which our model achieves an accuracy of 84.68% on CIFAR-100 with 14.0M parameters and 2.5 GFLOPs, without pre-training on large datasets.

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

↑