Skip to content
module

ResNeSt

19 members
lucid.models.vision.resnest

ResNeSt family — Zhang et al., 2020.

Image Classification
Paper

Zhang, Hang, et al. "ResNeSt: Split-Attention Networks." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 2022, pp. 2736–2746.

Overview

ResNeSt fuses three previously separate ideas — ResNeXt's cardinality, SKNet's soft kernel selection, and SENet's channel-wise attention — into a single unified Split-Attention block that can replace the central 3×33\times3 convolution of any ResNet bottleneck.

The block first splits the input into KK groups (cardinality), and inside each group it further splits the feature map into RR parallel branches called radixes. Each radix runs a different transformation Fr\mathcal{F}_r and produces a CC -channel feature map UrU_r. The branch outputs are summed to form a single combined response U=∑rUrU = \sum_r U_r, which is then pooled and passed through a small bottleneck network to emit per-radix, per-channel attention weights:

ar,c=exp⁡(zr,c)∑r′=1Rexp⁡(zr′,c),∑r=1Rar,c=1    ∀c.a_{r, c} = \frac{ \exp\big( z_{r, c} \big) } { \sum_{r' = 1}^{R} \exp\big( z_{r', c} \big) }, \qquad \sum_{r=1}^{R} a_{r, c} = 1 \;\; \forall c.

The block's output is the radix-weighted sum

Vc=∑r=1Rar,c⋅Ur,c,V_c = \sum_{r=1}^{R} a_{r, c} \cdot U_{r, c},

applied independently inside every cardinal group and then concatenated. When R=1R = 1 the block reduces to ResNeXt; when R≥2R \geq 2 it generalises SKNet to arbitrary radix counts with a softmax (rather than two-way sigmoid) gate.

Two further refinements complete the architecture. A deep stem replaces the original 7×77\times7 ResNet stem with three 3×33\times3 convolutions, and an average-pool downsampling path (controlled by the avg_down and avd fields) replaces strided convolutions in residual shortcuts and inside the Split-Attention block itself. With these changes ResNeSt-50 outperforms a plain ResNet-50 by roughly 3 ImageNet top-1 percentage points at the same parameter count, and serves as a strong backbone for downstream detection / segmentation tasks.

Classes

Functions

Weights