Skip to content
module

InceptionNeXt

12 members
lucid.models.vision.inception_next

InceptionNeXt — Yu et al., 2023.

Image Classification
Paper

Yu, Weihao, et al. "InceptionNeXt: When Inception Meets ConvNeXt." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024.

Overview

InceptionNeXt is a drop-in replacement for the ConvNeXt block that eliminates the cost of a single large 7×77 \times 7 depthwise convolution by factorizing it into four parallel, low-cost Inception-style branches. The motivation is that large-kernel depthwise convs dominate ConvNeXt's wall-clock latency on modern accelerators despite their relatively small FLOP count: depthwise convolutions are memory-bandwidth bound and large kernels amplify that bottleneck.

The InceptionDWConv2d operator splits the input channels into four groups and applies in parallel: (i) an identity branch, (ii) a small 3×33 \times 3 square depthwise conv, (iii) a horizontal band depthwise conv of shape 1×K1 \times K, and (iv) a vertical band depthwise conv of shape K×1K \times 1, with K=11K = 11 by default. The outputs are concatenated along the channel dimension:

IDWConv(x)=Concat(x(1),  DW3×3(x(2)),  DW1×K(x(3)),  DWK×1(x(4))).\mathrm{IDWConv}(x) = \mathrm{Concat}\bigl( x^{(1)},\; \mathrm{DW}_{3 \times 3}(x^{(2)}),\; \mathrm{DW}_{1 \times K}(x^{(3)}),\; \mathrm{DW}_{K \times 1}(x^{(4)})\bigr).

The factorization preserves a large effective receptive field (the band convolutions span KK pixels along each axis) while cutting depthwise FLOPs and — more importantly — memory traffic. All other elements of the ConvNeXt block (LayerNorm, inverted bottleneck MLP, layer scale, residual) are kept unchanged, so the Tiny / Small / Base variants reuse the same depth and width tables as ConvNeXt while running noticeably faster at equal accuracy.

Classes

Functions

Weights