TransNorm: Transformer Provides a Strong Spatial Normalization Mechanism for a Deep Segmentation Model

Reza Azad, Mohammad T. AL-Antary, Moein Heidari, Dorit MerhofarXiv 2022

Medical image segmentation—the process of identifying organs, lesions, or cells in scans—is a cornerstone of modern computer-aided diagnosis. For years, the U-Net architecture, powered by Convolutional Neural Networks (CNNs), has been the gold standard. However, CNNs have a "tunnel vision" problem: they are excellent at spotting local textures but struggle to understand how distant parts of an image relate to one another.

Enter TransNorm, a new framework that combines the local expertise of CNNs with the global "big picture" perspective of Transformers.

TL;DR

TransNorm is a hybrid deep learning architecture that integrates a Transformer module into the heart of a U-Net. Its secret sauce is a novel Spatial Normalization mechanism that uses global information to "recalibrate" skip connections, leading to significantly more accurate boundaries in complex medical images.

What Problem Does This Paper Address?

The authors identify a fundamental trade-off in medical imaging:

  1. CNNs (like U-Net) are great at extracting low-level features (edges, textures) but have a limited "receptive field." They can't easily model long-range dependencies, which is a problem when organs vary wildly in shape and size.
  2. Transformers excel at modeling global relationships via self-attention but often lack the "localization capacity" needed for precise pixel-level boundaries because they discard fine-grained local details.

While hybrid models exist, the authors argue that the skip connections—the bridges that pass information from the encoder to the decoder—are often under-utilized. TransNorm aims to fix this by using the Transformer's global insights to intelligently filter and refine the features passing through these bridges.

Methods

TransNorm follows a U-shaped structure but introduces two major innovations:

  1. Transformer Bottleneck: After the CNN encoder processes the image, the features are passed into a Transformer module. This module uses self-attention to learn long-range contextual dependencies across the entire latent space.
  2. Two-Level Attention Gate (Spatial Normalizer): This is the core contribution. Instead of just copying features across skip connections, TransNorm uses a two-step process to "normalize" them:
  3. Channel Attention: It recalibrates the importance of different feature channels, highlighting the most informative ones.
  4. Spatial Attention: It uses a spatial probability map derived directly from the Transformer to tell the decoder exactly where to focus. This helps the model distinguish between target organs and noisy backgrounds.
FIGURE 2: The structure of the proposed method for medical image segmentation. Our approach utilizes a Transformer module on the network bottleneck to learn long-range contextual dependency and produces a spatial normalization coefficient for the attention module.
FIGURE 3: Our proposed two-level attention gate to normalize both channel and spatial information on each decoding path.

Datasets

The researchers validated TransNorm across three diverse and challenging medical imaging tasks:

  • Synapse Multi-Organ Segmentation: 30 abdominal CT scans where 13 different organs (spleen, kidneys, liver, etc.) must be identified.
  • Skin Lesion Segmentation: Using three datasets (ISIC 2017, ISIC 2018, and PH2) to identify melanoma and other skin conditions from dermoscopy images.
  • Multiple Myeloma (MM) Segmentation: The SegPC challenge dataset, focusing on plasma cell segmentation in microscopic bone marrow slides.

Key Insights and Ideas

  • Skip Connections are Key: The authors show that simply having a Transformer at the bottleneck isn't enough. The real performance boost comes from using that global information to guide the skip connections.
  • Adaptive Recalibration: By using the Transformer's attention maps as a "spatial normalizer," the model can adaptively suppress background noise and sharpen the boundaries of target objects.
  • Synergy, Not Just Addition: The combination of local CNN features and global Transformer features provides a "complementary representation" that is more robust than either alone.

Key Results

TransNorm consistently outperformed state-of-the-art (SOTA) models, including the popular TransUnet:

  • Synapse Dataset: Achieved a 78.40% Dice Similarity Coefficient (DSC) and a significantly lower Hausdorff Distance (30.25 mm) compared to previous methods.
  • Skin Lesion (ISIC 2017): Reached a DSC of 0.8933, improving the F1 score by 8% over the standard U-Net.
  • Multiple Myeloma: Won out against top-tier challenge competitors with a mean Intersection over Union (mIOU) of 0.9399.

Qualitatively, the model produces much smoother and more precise boundaries, especially in cases where the target organ highly overlaps with the background.

FIGURE 4: Segmentation result of the proposed method on Synaps dataset. From Left to right, the images indicate the input image, grand truth and the predicted mask.

Limitations and Future Work

  • Resolution vs. Cost: The authors found that increasing input resolution (e.g., to 512x512) improves accuracy but dramatically increases computational complexity. Finding a more efficient way to handle high-res data remains a challenge.
  • Diminishing Returns on Scaling: Simply making the model "larger" (more parameters) led to overfitting on the training data without significant gains in real-world performance.
  • Future Directions: The authors suggest further research into optimizing the computational burden of the Transformer module to make it more viable for real-time clinical applications.

Summary updated

BibTeX
@misc{azad2022transnorm,
  author = {Reza Azad and Mohammad T. AL-Antary and Moein Heidari and Dorit Merhof},
  title = {{TransNorm: Transformer Provides a Strong Spatial Normalization Mechanism for a Deep Segmentation Model}},
  year = {2022},
  eprint = {2207.13415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.13415},
}
Figure