monai.MedNeXt
A ConvNeXt-style 3D encoder-decoder for medical segmentation, here the Base size with 3x3x3 kernels.
Medical imaging · 178 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Medical imaging
- Parameters
- 10.5M
- Operations
- 178
- Framework
- PyTorch
- Recurrent
- No
- Published
- MICCAI 2023
- Cited by
- 398 (as of 19 October 2026)
- Authors
- Saikat Roy, Gregor Koehler, Constantin Ulrich and others
- Source
- monai 1.5.2
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m7435
- Graph hash
- 8e59931c46860621b17aac1301b7e3d241935b5affe211a5f16504c2bb834a2e
- Skeleton hash
- 848055a48e317eb4c85a1b50bd5a656871bcb109082abf1e7228748b904dd097
- Architecture hash
- 70d328f3cc0f0e028f0387df888766663254e50daa4bd3828a5aec86c79e6f08
- Diagram SHA-256
- c67beeba2b86d9df6b46e9cfeb98bc372546480cc4061a846e41550b380cd6e8
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
MedNeXt is a convolutional segmentation network for 3D medical images whose block design comes from Transformers by way of ConvNeXt. The paper starts from a tension: Transformers drew interest for medical segmentation but lacked large annotated datasets, whereas convolutional networks have higher inductive biases and train easily. ConvNeXt had modernized the ConvNet by mirroring Transformer blocks; MedNeXt builds on that for data-scarce medical settings. It introduces a fully ConvNeXt 3D encoder-decoder, residual ConvNeXt up- and downsampling blocks, a way to grow kernel sizes by upsampling small-kernel networks so performance does not saturate on limited data, and compound scaling of depth, width and kernel size. The paper reports results on 4 tasks across CT and MRI.
Each MedNeXt block is a depthwise convolution with a large kernel, 7 by default, then an expansion layer with ratio 4 and group normalization. The kernel-growing step, UpKern, initializes a large-kernel network from an equivalent small-kernel one by trilinear interpolation. This model is the Base (B) size with 3x3x3 kernels, which the authors list at 10.5M parameters and 170 GFlops, with one input channel, three output classes and no deep supervision. Sizes S, B, M and L and kernel sizes 3 and 5 were tested in the publication; the authors recommend training the 3x3x3 version first and growing it to 5x5x5 with UpKern. Training sits on top of nnU-Net v1, and the 2D mode exists but has not been tested.
Key idea. MedNeXt scales ConvNeXt-style convolutional blocks into a 3D encoder-decoder for medical segmentation, growing kernel sizes with UpKern so performance does not saturate on scarce data.
- mednext
- mednext v1
- medical image segmentation
- convnext segmentation
- large kernel
- upkern
- 3d segmentation
- nnunet
- miccai 2023
- dkfz
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{roy2024mednexttransformerdrivenscalingconvnets,
title={MedNeXt: Transformer-driven Scaling of ConvNets for Medical Image Segmentation},
author={Saikat Roy and Gregor Koehler and Constantin Ulrich and Michael Baumgartner and Jens Petersen and Fabian Isensee and Paul F. Jaeger and Klaus Maier-Hein},
year={2024},
eprint={2303.09975},
archivePrefix={arXiv},
primaryClass={eess.IV},
url={https://arxiv.org/abs/2303.09975},
}