全维动态卷积
Omni-Dimensional Dynamic Convolution
摘要:
在每个卷积层中学习单个静态卷积核是现代卷积神经网络(CNN)的常见训练范例。相反,最近在动态卷积方面的研究表明,学习$n$卷积核的线性组合,用它们的输入相关注意力加权,可以显着提高轻量级CNN的准确性,同时保持有效的推理。然而,我们观察到,现有的工作通过内核空间的一个维度(关于卷积核数)赋予卷积核动态特性,但忽略了其他三个维度(关于空间大小,每个卷积核的输入通道数和输出通道数)。受此启发,我们提出了全维动态卷积(ODConv),这是一种更通用但更优雅的动态卷积设计,以推进这一研究。ODConv利用一种新颖的多维注意力机制和并行策略,在任何卷积层沿着内核空间的所有四维学习卷积内核的互补注意力。作为常规卷积的直接替代,ODConv可以插入许多CNN架构中。在ImageNet和MS-COCO数据集上进行的大量实验表明,ODConv为各种流行的CNN主干带来了可靠的准确性提升,包括轻量级和大型主干,例如,3.77%~5.71%|对MobivleNetV 2的1.86%~3.72%绝对前1名改进|ImageNet数据集上的ResNet家族。有趣的是,由于其改进的特征学习能力,即使只有一个内核的ODConv也可以与具有多个内核的现有动态卷积对手竞争或超越,从而大大减少了额外的参数。此外,ODConv在调制输出特征或卷积权重方面也优于其他注意力模块。
英文摘要:
Learning a single static convolutional kernel in each convolutional layer is the common training paradigm of modern Convolutional Neural Networks (CNNs). Instead, recent research in dynamic convolution shows that learning a linear combination of $n$ convolutional kernels weighted with their input-dependent attentions can significantly improve the accuracy of light-weight CNNs, while maintaining efficient inference. However, we observe that existing works endow convolutional kernels with the dynamic property through one dimension (regarding the convolutional kernel number) of the kernel space, but the other three dimensions (regarding the spatial size, the input channel number and the output channel number for each convolutional kernel) are overlooked. Inspired by this, we present Omni-dimensional Dynamic Convolution (ODConv), a more generalized yet elegant dynamic convolution design, to advance this line of research. ODConv leverages a novel multi-dimensional attention mechanism with a parallel strategy to learn complementary attentions for convolutional kernels along all four dimensions of the kernel space at any convolutional layer. As a drop-in replacement of regular convolutions, ODConv can be plugged into many CNN architectures. Extensive experiments on the ImageNet and MS-COCO datasets show that ODConv brings solid accuracy boosts for various prevailing CNN backbones including both light-weight and large ones, e.g., 3.77%~5.71%|1.86%~3.72% absolute top-1 improvements to MobivleNetV2|ResNet family on the ImageNet dataset. Intriguingly, thanks to its improved feature learning ability, ODConv with even one single kernel can compete with or outperform existing dynamic convolution counterparts with multiple kernels, substantially reducing extra parameters. Furthermore, ODConv is also superior to other attention modules for modulating the output features or the convolutional weights.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。