Learning Lightweight Dynamic Kernels With Attention Inside via Local-Global Context Fusion
Abstract
Traditional convolutional neural networks (CNNs) share their kernels among all positions of the input, which may constrain the representation ability in feature extraction. Dynamic convolution proposes to generate different kernels for different inputs to improve the model capacity. However, the total parameters of the dynamic network can be significantly huge. In this article, we propose a lightweight dynamic convolution method to strengthen traditional CNNs with an affordable increase of total parameters and multiply–adds. Instead of generating the whole kernels directly or combining several static kernels, we choose to “look inside,” learning the attention within convolutional kernels. An extra network is used to adjust the weights of kernels for every feature aggregation operation. By combining local and global contexts, the proposed approach can capture the variance among different samples, the variance in different positions of the feature maps, and the variance in different positions inside sliding windows. With a minor increase in the number of model parameters, remarkable improvements in image classification on CIFAR and ImageNet with multiple backbones have been obtained. Experiments on object detection also verify the effectiveness of the proposed method.
BibTeX
@article{tian2024learning,
author = {Yonglin Tian and Yu Shen and Xiao Wang and Jiangong Wang and Kunfeng Wang and Weiping Ding and Zilei Wang and Fei-Yue Wang},
title = {{Learning Lightweight Dynamic Kernels With Attention Inside via Local-Global Context Fusion}},
journal = {IEEE Trans. Neural Networks Learn. Syst.},
year = {2024},
url = {https://openreview.net/forum?id=acrz8YP3ff},
}Ask Althea to put this paper to the test.
Loading related content...