Introduction
In 3D medical imaging, such as CT or MRI scans, high-capacity 3D U-Nets are the gold standard for segmentation. However, these models face a significant "memory wall." A single 3D volume can be massive, and a high-capacity network quickly exhausts the VRAM of a single GPU. Traditionally, researchers have either slimmed down models (reducing learning capacity) or used patch-based training. While patch-based methods fit in memory, they sacrifice "global context"—the spatial relationship between distant organs—which is critical for accurate diagnosis.
Breaking the Memory Wall with LAMP
The authors propose LAMP (Large deep 3D ConvNets with Automated Model Parallelism) to enable training massive models on entire medical images. LAMP overcomes the memory bottleneck through three primary innovations:
1. Sequential U-Net Architecture
To leverage pipeline parallelism libraries like GPipe, the model must be a linear sequence of layers. Standard U-Nets have "skip connections" that create complex, non-sequential data flows. LAMP modifies the architecture by duplicating encoder outputs, effectively "tricking" the system into seeing a sequential model that can be easily partitioned across multiple GPUs without breaking the skip-connection logic.
2. Automated Pipeline Parallelism
Using the modified architecture, LAMP automatically partitions the large 3D model across multiple GPUs. It employs "micro-batching" to maximize hardware utility. While one GPU processes the initial layers for one data slice, other GPUs simultaneously work on subsequent layers for different slices. This ensures that the pipeline remains full, minimizing idle time and allowing for training models with significantly more filters (e.g., SEU-Net-128) than would be possible on a single device.
3. Curriculum Learning
Training on whole images from scratch is challenging due to extreme class imbalance (e.g., a tiny tumor in a large scan). LAMP uses a three-stage curriculum: starting with small $64^3$ patches, moving to $128^3$ patches, and finally training on the "Whole" image. This progressive approach helps the network learn local features before mastering global context.
Experimental Results
The researchers evaluated LAMP on the Head and Neck (HaN) dataset and the MSD Liver dataset.
Accuracy and Context
The results confirm that global context is vital. Models trained on "Whole" images consistently outperformed patch-based counterparts, even when the underlying architecture was identical. On the HaN dataset, the SEU-Net-128 (Whole) model achieved a state-of-the-art Dice coefficient of 79.52%, outperforming previous benchmarks like AnatomyNet. Scaling performance was also consistent; increasing model size from 32 to 128 filters improved scores across all tasks.
Efficiency and Speed
Contrary to intuition, larger input models can be significantly faster during inference. Instead of running a "sliding window" hundreds of times over small patches and stitching them together, LAMP processes the whole volume in a few passes.
As shown in the figures above, "Whole" image inference was roughly 2x faster than the $64^3$ patch-based approach on the HaN dataset (0.61s vs 1.21s). On the Liver dataset, the speedup was even more dramatic, reducing inference time from approximately 6.7s to 1.5s. This efficiency makes high-capacity models more viable for real-time clinical use.
Conclusion
LAMP successfully breaks the memory barrier for 3D medical imaging by combining architectural modifications with automated pipeline parallelism. By enabling whole-image training, it captures essential global context, leading to higher accuracy and faster inference. While it requires significant hardware resources, the benefits for high-resolution 3D tasks are clear. Future work will explore applying this framework to image registration, object detection, and neural architecture search.
Reference: Zhu, W., et al. (2020). LAMP: Large Deep Nets with Automated Model Parallelism for Image Segmentation. arXiv:2006.12575v3.
Summary updated