AdwU-Net: Adaptive Depth and Width U-Net for Medical Image Segmentation by Differentiable Neural Architecture Search

Ziyan Huang, Zehua Wang, zhikai yang, Lixu GuMIDL 2022

TL;DR

This paper introduces AdwU-Net, a novel neural architecture search (NAS) framework that automatically discovers the optimal depth and width for U-Net architectures tailored to specific medical image segmentation tasks. By employing a differentiable search strategy and an efficient "adaptive block," AdwU-Net significantly improves segmentation performance and efficiency compared to manually designed or other NAS-based approaches.

What Problem Does This Paper Address?

The U-Net architecture has become a cornerstone for medical image segmentation due to its effectiveness. However, medical imaging datasets are incredibly diverse, varying in image size, resolution, intensity ranges, and anatomical structures. This diversity means that a one-size-fits-all U-Net configuration (in terms of network depth and width) is often suboptimal. Manually tuning these hyperparameters is a tedious and time-consuming process, often relying on heuristics rather than data-driven optimization. Existing NAS methods, while powerful, often focus on other architectural aspects or are computationally prohibitive, leaving the crucial task of finding optimal U-Net depth and width for specific tasks largely unaddressed.

Methods

The core innovation is the AdwU-Net framework, which leverages differentiable neural architecture search (DNAS) to find task-specific U-Net architectures. Key components include:

  • Adaptive Depth and Width Block (AdwBlock): This block is integrated into each resolution stage of the U-Net. It intelligently searches for the optimal number of convolutional layers (depth) and the optimal number of channels (width) within those layers.
  • Depth Search: Instead of creating multiple parallel paths for different depths, AdwU-Net uses a "sink-connecting" approach. It keeps the deepest path and uses weighted skip connections from shallower paths. This reuses convolutional weights, significantly reducing memory consumption and computational cost during the search. Gumbel Softmax is used for continuous relaxation of the discrete depth choices.
  • Width Search: To handle the large number of channel options and the mismatch in output dimensions, AdwU-Net adopts a strategy inspired by FBNetV2. It uses a single convolution with the maximum candidate channel number and then applies weighted channel masks. This allows for efficient exploration of width options while sharing weights.
  • Memory-Efficient Search Space: The combination of weight sharing in depth search and masked convolutions in width search makes the search process more memory-efficient, enabling the exploration of a vast number of architectural possibilities.
  • Mixed-Level Optimization: The framework uses a mixed-level optimization strategy to jointly learn architecture parameters and network weights, further enhancing the search efficiency.

Datasets

The primary dataset used for training and evaluation is the 3D Medical Segmentation Decathlon (MSD). This is a comprehensive benchmark comprising 10 diverse medical image segmentation tasks, covering various organs, modalities, and imaging sources, making it ideal for evaluating the generalizability of the proposed method.

Key Insights and Ideas

  • Task-Specific Architecture is Crucial: The paper strongly demonstrates that optimal U-Net depth and width are highly dependent on the specific medical imaging task. What works for one task might not be ideal for another.
  • Differentiable Search for Efficiency: Applying DNAS to search for depth and width simultaneously is a significant step towards making architecture optimization more accessible and less computationally demanding than traditional NAS methods.
  • Weight Sharing and Masking for Scalability: The proposed AdwBlock cleverly tackles the memory and computational challenges of searching for both depth and width by reusing weights and employing masked convolutions, allowing for a much larger search space to be explored.
  • Depth and Width are Intertwined: The paper implicitly and explicitly suggests that depth and width are not independent hyperparameters and should be optimized jointly for optimal performance.

Key Results

  • State-of-the-Art Performance: AdwU-Net achieved state-of-the-art performance on the MSD dataset, outperforming manually scaled U-Nets and other NAS-based methods. It achieved the best average Dice Coefficient (DSC) in 6 out of 10 MSD tasks and an overall average DSC of 0.7803.
  • Improved Efficiency: The AdwU-Net, even when configured with its searched parameters, achieved better performance than scaled versions of the baseline 3D nnU-Net with comparable or even fewer computational resources (FLOPs). For instance, on the Prostate dataset, AdwU-Net achieved a higher DSC with fewer FLOPs than several scaled models.
  • Significant Improvements on Prostate Dataset: On the MSD Prostate dataset, AdwU-Net improved the average DSC by 1.94% over the 3D nnU-Net baseline when both depth and width were searched, with statistically significant improvements.
  • Qualitative Improvements: Visualizations show that AdwU-Net produces more accurate segmentation boundaries and fewer false positives/negatives compared to nnU-Net on challenging cases.

Limitations and Future Work

  • Focus on U-Net: The current framework is specifically designed for the U-Net architecture. While the authors suggest the AdwBlock could be applied to other backbones, this remains future work.
  • Other Hyperparameters: The paper focuses solely on depth and width. Future work could explore automatically designing other hyperparameters, such as input patch size, to further optimize the segmentation pipeline.
  • Computational Cost of Search: While efficient for NAS, the search process still requires significant computational resources (e.g., 2 days on a V100 GPU). Further optimizations might be beneficial.

Summary updated

BibTeX
@inproceedings{huang2022adwu,
  author = {Ziyan Huang and Zehua Wang and zhikai yang and Lixu Gu},
  title = {{AdwU-Net: Adaptive Depth and Width U-Net for Medical Image Segmentation by Differentiable Neural Architecture Search}},
  booktitle = {MIDL},
  year = {2022},
  url = {https://openreview.net/forum?id=kF-d1SKWJpS},
}
Figure