Abstract
Dynamic convolution has emerged as a powerful technique to enhance the representational capacity of Convolutional Neural Networks (ConvNets) by using input-dependent kernel mixtures. However, it is fundamentally limited by a "parameter explosion" problem, where the parameter count scales linearly with the number of kernels. We present KernelWarehouse, a novel rethink of dynamic convolution that breaks this barrier. By partitioning kernels into granular "cells" and sharing a "warehouse" of these cells across layers, KernelWarehouse enables models to utilize over 100 dynamic kernels while simultaneously reducing total parameters and significantly boosting accuracy across various benchmarks.
Introduction: The Parameter Efficiency Challenge
Standard ConvNets rely on static weights, applying the same filters regardless of the input. Dynamic convolution improves upon this by learning a linear mixture of multiple static kernels, weighted by input-dependent attentions. While this increases expressiveness, it is highly parameter-inefficient. A dynamic layer with $n$ kernels requires $n$ times the parameters of a standard layer, typically forcing researchers to limit $n$ to small values (e.g., 4 or 8). This creates a conflict between the desire for high representation power and the constraints of memory footprints. Furthermore, existing methods treat layers independently, ignoring potential parameter redundancies across the network hierarchy.
Methods: Granular Sharing and Assembly
KernelWarehouse shifts the focus from holistic kernels to a granular, cell-based approach. The architecture is defined by three core components:
- Kernel Partition: Convolutional kernels are divided into $m$ disjoint "kernel cells" of identical dimensions.
- Warehouse Sharing: A global "warehouse" containing $n$ kernel cells is defined and shared across multiple neighboring layers. Each cell in a specific layer is then computed as a linear mixture of the cells available in this shared warehouse.
- Normalized Attention Function (NAF): To handle a large number of kernels (e.g., $n > 100$), the authors propose NAF. It incorporates a temperature annealing strategy and allows for negative attention values, enabling the network to learn adversarial relationships and perform feature subtraction, which is more expressive than purely additive mixtures.
By adjusting the number of cells ($m$) and the warehouse size ($n$), the model's parameter budget can be precisely scaled, allowing for high diversity in building blocks without a corresponding explosion in unique, layer-specific parameters.
Key Results and Performance
KernelWarehouse was validated on ImageNet-1K and MS-COCO 2017 using various backbones including ResNet, MobileNetV2, and ConvNeXt. The method achieves a rare "win-win" of higher accuracy with fewer parameters.
- Parameter Efficiency: A ResNet18 model using KernelWarehouse achieved a 2.89% absolute improvement in top-1 accuracy on ImageNet while reducing parameters by 36.45% compared to the baseline.
- State-of-the-Art Comparisons: As shown in the table below, KernelWarehouse (KW) variants consistently outperform other dynamic convolution methods like CondConv, DY-Conv, and ODConv in both parameter efficiency and accuracy.
- Downstream Tasks: In MS-COCO object detection, KernelWarehouse outperformed ODConv by 2.2% AP using a ResNet50 backbone, demonstrating strong generalization to complex vision tasks.
Limitations and Conclusion
The primary trade-off for this efficiency is inference speed. The process of computing linear mixtures for every cell is computationally dense, making KernelWarehouse models roughly 2-3x slower than their dynamic counterparts on standard hardware.
In conclusion, KernelWarehouse proves that diversity of building blocks is more critical than the volume of unique parameters. By exploiting redundancy through warehouse sharing and enabling expressive feature subtraction via NAF, it sets a new standard for parameter-efficient dynamic networks. Future work will focus on optimizing these dense computations for real-time applications.
Summary updated