Paper commentary
Selective Kernel Networks
Selective Kernel Networks let each neuron pick its receptive field size
- Problem Standard CNN layers give every neuron one fixed receptive field size. Summing multi-kernel branches linearly may not let neurons adapt that size to the input.
- Method SKNet stacks Selective Kernel units built from ResNeXt bottlenecks. Each unit splits the input into kernel branches, fuses them, and uses channel-wise softmax weights to choose between branches.
- Results SKNet-50 gains 1.44% absolute top-1 accuracy over ResNeXt-50 at 27.5M parameters and 4.47 GFLOPs, against 25.0M and 4.24 GFLOPs.
Why fixed receptive fields limit adaptation
Multi-scale designs such as InceptionNets place kernels of different sizes side by side in one layer, so the following layer receives several receptive field sizes at once. The receptive fields of cortical neurons are not fixed either. Their size is modulated by the stimulus, including contrast and the surrounding context, and this property has received little attention in deep learning models.
InceptionNets can adjust the receptive field of the next layer to the input only through the linear combination of their branches, and the authors argue that this linear aggregation may give neurons too little adaptive power. The paper therefore asks whether a nonlinear, input-dependent weighting of kernel branches lets each neuron change its effective receptive field, and whether it does so at a modest extra cost.
How SK convolution weights its branches
Split takes the feature map X and applies two transformations, one with a 3 kernel and one with a 5 kernel, producing branch maps of the same size. Each transformation is a grouped or depthwise convolution followed by batch normalization and ReLU. For efficiency, the 5×5 branch is replaced by a 3×3 convolution with dilation 2, which covers a similar receptive field with fewer operations.
Fuse adds the two branch outputs element-wise, \( U = \tilde{U} + \hat{U} \), so that the gate sees information from every branch. Global average pooling then gives a channel vector \( s_c = F_{gp}(U_c) \), averaging each channel over its H×W positions. A fully connected layer with batch normalization and ReLU maps s to a compact feature z.
Its width is \( d = \max(C/r, L) \), so the reduction ratio r sets the width and the minimum L sets a floor. L is 32 in the experiments.
Select applies a channel-wise softmax over two scores, A_c z for the 3×3 branch and B_c z for the 5×5 branch, giving weights a_c and b_c with a_c + b_c = 1. The output channel is the weighted sum \( V_c = a_c \cdot \tilde{U}_c + b_c \cdot \hat{U}_c \). Because the weights are computed from z, which summarizes both branches, the mixture of kernel sizes changes with the input.
Building SKNet from ResNeXt bottlenecks
SKNet starts from ResNeXt, because its grouped convolutions keep the computational cost low and the architecture performs well on object recognition. Each SK unit is a 1×1 convolution, then an SK convolution, then another 1×1 convolution. The large-kernel convolutions of the ResNeXt bottleneck are replaced by SK convolutions.
Three hyper-parameters control an SK convolution: the number of paths M, the group number G, and the reduction ratio r. The typical setting, SK[2, 32, 16], is used in Table 1. SKNet-50 has four stages with {3, 4, 6, 3} SK units. SKNet-26 uses {2, 2, 2, 2} and SKNet-101 uses {3, 4, 23, 3}.
Relative to ResNeXt-50, SKNet-50 adds about 10% parameters and about 5% computation. Its parameters are 27.5M against 25.0M for ResNeXt-50, and its cost is 4.47 GFLOPs against 4.24.
ImageNet classification results
Models are trained on the 1.28 million ImageNet 2012 training images and scored on the 50K validation images across 1,000 classes, using top-1 error. Large models are trained from scratch for 100 epochs on 8 GPUs with mini-batch 256 and an initial learning rate of 0.1, divided by 10 every 30 epochs. Reported results are averages of 3 runs by default.
Matched complexity: depth, width and cardinality
The gains from these changes are 0.10%, 0.19% and 0.23% respectively, which the authors describe as marginal.
SKNet-50 gains 1.44% absolute over the ResNeXt-50 baseline at 27.5M and 4.47 GFLOPs, so at a similar budget the SK convolutions give a clearly larger gain than extra depth, width or cardinality.
Parameter efficiency and lightweight networks
The authors plot top-1 error against parameter count for SK-26, SKNet-50 and SKNet-101, together with ResNets, ResNeXts, DenseNets, DPNs and SENets. At around 20.2 top-1 error, SKNet-101 needs 22% fewer parameters than DPN-98.
The SK variants cost more MFLOPs than the SE variants in both settings, so the lightweight gain is not free in computation.
CIFAR results
CIFAR-10 and CIFAR-100 each contain 32×32 colour images, with 50k training and 10k test images, and CIFAR-100 has 100 classes.
Ablations of kernel sizes, paths and dilation
In these ablations the first branch of SKNet-50 is fixed at 3×3, dilation 1, group 32, and the second branch is varied in kernel size, dilation and group number.
The authors find that a second branch with a 5×5 kernel and one with a dilated 3×3 are the best options, with the dilated 3×3 at dilation 2 being slightly less complex. They report that series of 3×3 kernels with various dilations are moderately better than large undilated kernels with the same receptive field.
The combination study uses K3 as a standard 3×3, K5 as a 3×3 with dilation 2 and K7 as a 3×3 with dilation 3, with G fixed to 32. The SK attention is compared with a naive summation of the same branches. With SK attention, top-1 error is 20.79 for M = 2 and 20.76 for M = 3. The authors report that SK attention gives lower error than naive summation for both M = 2 and M = 3.
How attention shifts with object scale
The central object of ImageNet validation images is enlarged from 1.0× to 2.0× by central cropping and resizing, and the attention of the 5×5 branch is computed per channel in each SK unit. Averaging over channels and images, the attention of the 5×5 branch rises in most channels when the target grows, and Figure 3 plots averages over 16 successive channels for the sample images.
The difference between the 5×5 and 3×3 attention is then taken per SK unit. In low and middle units such as SK 2 3 and SK 3 4, larger targets receive more attention on the larger branch. In the highest unit SK 5 3, this shift disappears, and the authors read this as scale information being encoded in the feature vector at high levels.
The class-level analysis averages over the 50 images of each category, and the shift in SK 2 3 and SK 3 4 holds for all 1,000 categories between 1.0× and 1.5× targets. The authors attribute the early-stage pattern to kernel size being chosen according to object size, and this is their interpretation rather than a separate measurement.
Limitations
The adaptive receptive field is inferred from attention weights between branches, not measured directly, and the enlargement used in the analysis is a crop-and-resize manipulation of validation images.
The scale-dependent shift is absent in the highest unit SK 5 3, and the explanation the authors offer for this is their interpretation.
Paper info
- Authors
- Xiang Li, Wenhai Wang, Xiaolin Hu, Jian Yang
- Venue
- arXiv · Preprint
- First published
- 2019-3-15
- Added
- 2026-11-12
- Updated
- 2019-3-18
- Version
- v2
- arXiv
- 1903.06586
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Xiang Li, Wenhai Wang, Xiaolin Hu, Jian Yang (2019). Selective Kernel Networks. arXiv:1903.06586v2. https://arxiv.org/abs/1903.06586v2
BibTeX
@misc{li2019selective,
title = {{Selective Kernel Networks}},
author = {Xiang Li and Wenhai Wang and Xiaolin Hu and Jian Yang},
year = {2019},
eprint = {1903.06586},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1903.06586v2}
}