Abstract
We propose combining memory saving techniques with traditional U-Net architectures to increase the complexity of the models on the Brain Tumor Segmentation (BraTS) challenge. The BraTS challenge consists of a 3D segmentation of a 240x240x155x4 input image into a set of tumor classes. Because of the large volume and need for 3D convolutional layers, this task is very memory intensive. To address this, prior approaches use smaller cropped images while constraining the model's depth and width. Our 3D U-Net uses a reversible version of the mobile inverted bottleneck block defined in MobileNetV2, MnasNet and the more recent EfficientNet architectures to save activation memory during training. Using reversible layers enables the model to recompute input activations given the outputs of that layer, saving memory by eliminating the need to store activations during the forward pass. The inverted residual bottleneck block uses lightweight depthwise separable convolutions to reduce computation by decomposing convolutions into a pointwise convolution and a depthwise convolution. Further, this block inverts traditional bottleneck blocks by placing an intermediate expansion layer between the input and output linear 1x1 convolution, reducing the total number of channels. Given a fixed memory budget, with these memory saving techniques, we are able to train image volumes up to 3x larger, models with 25% more depth, or models with up to 2x the number of channels than a corresponding non-reversible network.
Introduction
3D medical image segmentation, particularly for brain tumors in the BraTS (Brain Tumor Segmentation) challenge, is notoriously memory-intensive. High-resolution MRI scans are volumetric (240x240x155 voxels) and typically include multiple modalities such as T1, T2, and FLAIR. Standard 3D U-Nets quickly exhaust GPU memory because they must store intermediate activations for gradient calculation during training. To cope, researchers often resort to cropping images into small patches, shrinking model depth or width, or reducing batch sizes to one. This paper introduces a memory-efficient architecture that breaks these constraints, allowing for more complex models and larger input volumes without requiring additional hardware memory.
Methods
The proposed architecture introduces two primary shifts to the traditional 3D U-Net: Reversible Layers and Mobile Inverted Bottleneck (MBConv) blocks.
Reversible Mobile Inverted Bottleneck (RevMBConv)
Instead of storing activations for the entire forward pass, reversible layers allow the network to recompute the input of a layer from its output during the backward pass. This trades a small amount of extra computation for a massive reduction in memory footprint. The MBConv blocks, borrowed from MobileNetV2 and EfficientNet, utilize depthwise separable convolutions. This technique decomposes a standard convolution into two steps: a spatial filter for each channel and a 1x1 pointwise convolution to mix information. Unlike standard bottlenecks, these blocks expand the channel count internally before shrinking them back down, allowing for efficient processing of high-dimensional features.
3D U-Net Architecture
The final architecture, termed RevMBConv, uses these blocks within a U-Net framework, employing additive skip connections and Group Normalization to handle small batch sizes effectively. The encoder path uses RevMBConv blocks, while the decoder uses Reversible Convolution (RevConv) blocks.
Datasets
The study utilizes the BraTS dataset, consisting of 370 MRI exams. Each exam contains four modalities (T1, T1c, T2, FLAIR) and ground truth maps for four tumor categories: necrotic core, enhancing tumor, non-enhancing tumor, and peritumoral edema. The data was split into 330 training examples and 40 for a hold-out validation set.
Results and Discussion
The RevMBConv architecture demonstrated significant memory savings, enabling the training of models that were 25% deeper or had 2x the channels compared to non-reversible baselines within a 14GB memory limit. The MBConv-Base model achieved a mean Dice score of 0.7513. Notably, it reached a Dice score of 0.7317 after only 50 epochs, significantly outperforming the baseline (0.7184) at the same stage.
While MBConv blocks require fewer FLOPs, they are currently slower on standard GPUs due to the lack of kernel optimization for depthwise separable convolutions compared to standard convolutions. However, the ability to process volumes up to 3x larger provides the model with critical global context often lost in small, cropped patches.
Conclusion
By combining reversible layers with inverted bottlenecks, we have developed a 3D U-Net that significantly reduces memory requirements while maintaining high segmentation accuracy. This approach allows for the training of larger and more complex models on standard hardware. Future work will focus on hardware-level optimizations for separable convolutions and further hyperparameter tuning specific to the MBConv architecture.
Summary updated