arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.07879cs.CVcs.AIcs.LG
收藏

KernelWarehouse:重新思考动态卷积的设计

KernelWarehouse: Rethinking the Design of Dynamic Convolution

Intel Labs China(英特尔中国实验室)

Chao Li, Anbang Yao

AI总结:

本文提出 KernelWarehouse,通过挖掘 ConvNet 层内与跨层卷积参数依赖重构动态卷积,在显著减少参数的同时提升多种 CNN 与 ViT 骨干网络性能。

摘要:

动态卷积学习 n 个静态卷积核的线性混合,并以依赖于输入的注意力对其加权,表现出优于普通卷积的性能。然而,它会使卷积参数数量增加 n 倍,因此参数效率不高。这导致目前尚无研究进展能够让研究者探索 n>100 的设置(比典型设置 n<10 大一个数量级),从而在享有参数效率的同时推进动态卷积的性能边界。为填补这一空白,本文提出 KernelWarehouse,这是一种更通用的动态卷积形式,它从利用 ConvNet 同一层内以及相邻层之间卷积参数依赖关系的视角,重新定义了“卷积核”“组装卷积核”和“注意力函数”的基本概念。我们使用多种 ConvNet 架构,在 ImageNet 和 MS-COCO 数据集上验证了 KernelWarehouse 的有效性。有趣的是,KernelWarehouse 也适用于 Vision Transformers,甚至能够在减小骨干网络模型尺寸的同时提高模型精度。例如,KernelWarehouse(n=4)在 ResNet18|MobileNetV2|DeiT-Tiny 骨干网络上分别实现 5.61%|3.90%|4.38% 的绝对 top-1 准确率提升;而模型尺寸减少 65.10% 的 KernelWarehouse(n=1/4)在 ResNet18 骨干网络上仍实现 2.29% 的提升。代码和模型可在 https://github.com/OSVAI/KernelWarehouse 获取。

英文摘要:

Dynamic convolution learns a linear mixture of n static kernels weighted with their input-dependent attentions, demonstrating superior performance than normal convolution. However, it increases the number of convolutional parameters by n times, and thus is not parameter efficient. This leads to no research progress that can allow researchers to explore the setting n>100 (an order of magnitude larger than the typical setting n<10) for pushing forward the performance boundary of dynamic convolution while enjoying parameter efficiency. To fill this gap, in this paper, we propose KernelWarehouse, a more general form of dynamic convolution, which redefines the basic concepts of ``kernels", ``assembling kernels" and ``attention function" through the lens of exploiting convolutional parameter dependencies within the same layer and across neighboring layers of a ConvNet. We testify the effectiveness of KernelWarehouse on ImageNet and MS-COCO datasets using various ConvNet architectures. Intriguingly, KernelWarehouse is also applicable to Vision Transformers, and it can even reduce the model size of a backbone while improving the model accuracy. For instance, KernelWarehouse (n=4) achieves 5.61%|3.90%|4.38% absolute top-1 accuracy gain on the ResNet18|MobileNetV2|DeiT-Tiny backbone, and KernelWarehouse (n=1/4) with 65.10% model size reduction still achieves 2.29% gain on the ResNet18 backbone. The code and models are available at https://github.com/OSVAI/KernelWarehouse.

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

↑