TL;DR
Slimmable ConvNeXt introduces a highly efficient, width-adaptive convolutional network that packs multiple nested subnetworks of varying capacities into a single set of shared weights. By leveraging ConvNeXt's modern design choices—specifically LayerNorm and inverted bottlenecks—the authors eliminate the complex normalization overhead of older slimmable networks, outperforming recent Vision Transformer (ViT) baselines on ImageNet-1k at a fraction of the computational cost.
What Problem Does This Paper Address?
Deploying deep learning models to production is rarely a one-size-fits-all scenario. Engineers often need to deploy vision models across a heterogeneous fleet of devices, ranging from powerful cloud servers to resource-constrained mobile edge devices. Furthermore, even on a single device, available compute can fluctuate dynamically due to battery state, thermal throttling, or strict latency deadlines.
Traditionally, this required training, maintaining, and storing separate models for each target budget. "Width-adaptive inference" (or slimmable networks) solves this by training a single model containing multiple nested subnetworks that can be dynamically selected at runtime. However, older CNN-based slimmable networks relied heavily on BatchNorm, requiring a messy workaround called "switchable batch normalization" to track separate running statistics for every single width. Consequently, recent scalability research shifted toward Vision Transformers (ViTs), but these carry heavy self-attention overheads. This paper asks: Can we build a simpler, more efficient slimmable network using modern CNN architectures?
Methods
The authors introduce Slimmable ConvNeXt, applying channel-width slimming to the popular ConvNeXt architecture.
Channel-Width Slimming
For any given ConvNeXt block, a slimming ratio $p \in (0, 1]$ determines the fraction of active channels. All weight tensors within the block (depthwise convolutions, pointwise convolutions, and LayerNorm) are sliced to retain only the first $\lfloor p \cdot C \rfloor$ channels. To handle the residual connection when dimensions mismatch, the block's output is simply zero-padded back to the original channel count before being added to the skip connection.
Joint Training with Alternating Widths
During training, the model alternates between a discrete set of width configurations (e.g., $p \in \{0.25, 0.5, 1.0\}$). For each mini-batch, a configuration is randomly sampled, and a standard forward and backward pass is executed.
The secret weapon here is LayerNorm. Unlike BatchNorm, LayerNorm computes statistics per sample and per channel slice dynamically at runtime. This completely eliminates the need for switchable normalization layers, resulting in a clean, standard training pipeline without knowledge distillation or complex training rules.
Datasets
The models were trained from scratch and evaluated on the standard ImageNet-1k dataset, which consists of approximately 1.28 million training images and 50,000 validation images across 1,000 classes.
Key Insights and Ideas
- Architectural Synergy: ConvNeXt’s modern design choices make it inherently ideal for slimming. LayerNorm removes the tracking overhead of BatchNorm, and the inverted bottleneck structure concentrates parameters in pointwise layers that are trivial to slice.
- No Attention Overhead: Because ConvNeXt lacks self-attention mechanisms, its subnetworks face fewer structural constraints than ViT-based alternatives (which must scale by discrete attention heads), allowing for finer control over the compute-accuracy trade-off.
- Slimming as a Regularizer: Interestingly, for larger model scales like ConvNeXt-B, mild slimming ($p=0.75$) actually matched or slightly improved full-capacity accuracy. This suggests that forcing the network to operate at reduced widths acts as an implicit regularizer.
- Graceful Degradation in Larger Models: Larger base models (ConvNeXt-B) retain high accuracy much better under aggressive slimming than smaller ones (ConvNeXt-T). Wider channel dimensions provide enough redundancy for the primary channels to retain robust representations.
Key Results
Slimmable ConvNeXt achieves state-of-the-art accuracy-compute trade-offs across the board, consistently outperforming ViT baselines like HydraViT, MatFormer, and SortedNet.
- Slimmable ConvNeXt-T (Tiny): At full capacity (4.5 GMACs), it hits 80.8% top-1 accuracy. At half capacity (1.2 GMACs), it maintains 77.4% accuracy, beating HydraViT's comparable configuration by 4.4 percentage points.
- Slimmable ConvNeXt-B (Base): Reaches a peak accuracy of 82.8% at 15.4 GMACs. At half capacity (4.0 GMACs), it achieves 81.6% top-1 accuracy—outperforming HydraViT’s ViT-B baseline while requiring 13% fewer operations (GMACs).
Limitations and Future Work
- Zero-Padding Bottleneck: When using non-uniform per-block widths (via AutoSlim), aggressively slimmed blocks pass mostly zeros through the residual path. This discards up to three-quarters of learned features at low capacities. Replacing zero-padding with a lightweight linear projection could alleviate this, though it would introduce extra parameters.
- GMACs vs. Real-World Latency: The paper evaluates efficiency using GMACs (Giga Multiply-Accumulate operations). However, GMACs do not perfectly correlate with hardware latency. For instance, depthwise convolutions can suffer from low arithmetic intensity on throughput-oriented GPUs, even though they run exceptionally well on memory-bandwidth-limited mobile SoCs.
Summary updated