KernelWarehouse: Towards Parameter-Efficient Dynamic Convolution

Chao Li, Anbang Yao
8/16/2023
cs.CVcs.LG

No official code found. Best implementation: OSVAI/KernelWarehouse (102 stars, Apache-2.0, last commit 2024-06-13).

Abstract

Dynamic convolution learns a linear mixture of $n$ static kernels weighted with their sample-dependent attentions, demonstrating superior performance compared to normal convolution. However, existing designs are parameter-inefficient: they increase the number of convolutional parameters by $n$ times. This and the optimization difficulty lead to no research progress in dynamic convolution that can allow us to use a significant large value of $n$ (e.g., $n>100$ instead of typical setting $n<10$) to push forward the performance boundary. In this paper, we propose $KernelWarehouse$, a more general form of dynamic convolution, which can strike a favorable trade-off between parameter efficiency and representation power. Its key idea is to redefine the basic concepts of "$kernels$" and "$assembling$ $kernels$" in dynamic convolution from the perspective of reducing kernel dimension and increasing kernel number significantly. In principle, KernelWarehouse enhances convolutional parameter dependencies within the same layer and across successive layers via tactful kernel partition and warehouse sharing, yielding a high degree of freedom to fit a desired parameter budget. We validate our method on ImageNet and MS-COCO datasets with different ConvNet architectures, and show that it attains state-of-the-art results. For instance, the ResNet18|ResNet50|MobileNetV2|ConvNeXt-Tiny model trained with KernelWarehouse on ImageNet reaches 76.05%|81.05%|75.52%|82.51% top-1 accuracy. Thanks to its flexible design, KernelWarehouse can even reduce the model size of a ConvNet while improving the accuracy, e.g., our ResNet18 model with 36.45%|65.10% parameter reduction to the baseline shows 2.89%|2.29% absolute improvement to top-1 accuracy.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The official project website of "KernelWarehouse: Rethinking the Design of Dynamic Convolution" (KW for short, published in ICML 2024)

1026PythonAug 10, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{li2023kernelwarehouse,
  title  = {KernelWarehouse: Towards Parameter-Efficient Dynamic Convolution},
  author = {Chao Li and Anbang Yao},
  year   = {2023},
  eprint = {2308.08361},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.08361v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.08361.svg)](https://codeofpaper.com/paper/2308.08361)

Discussion