Skip to main content
QUICK REVIEW

[Paper Review] More than Encoder: Introducing Transformer Decoder to Upsample

Yijiang Li, Wentian Cai|arXiv (Cornell University)|Jun 20, 2021
Radiomics and Machine Learning in Medical ImagingMedicine52 references6 citations
TL;DR

This paper introduces Window Attention Upsample (WAU), a novel transformer-based upsampling method that leverages the decoder of a Transformer to enhance feature reconstruction in medical image segmentation. By applying local windowed self-attention to features from the downsampling path, WAU improves spatial detail and semantic consistency, achieving state-of-the-art performance on Synapse, MSD Brain, and ACDC datasets across multiple architectures.

ABSTRACT

Medical image segmentation methods downsample images for feature extraction and then upsample them to restore resolution for pixel-level predictions. In such a schema, upsample technique is vital in restoring information for better performance. However, existing upsample techniques leverage little information from downsampling paths. The local and detailed feature from the shallower layer such as boundary and tissue texture is particularly more important in medical segmentation compared with natural image segmentation. To this end, we propose a novel upsample approach for medical image segmentation, Window Attention Upsample (WAU), which upsamples features conditioned on local and detailed features from downsampling path in local windows by introducing attention decoders of Transformer. WAU could serve as a general upsample method and be incorporated into any segmentation model that possesses lateral connections. We first propose the Attention Upsample which consists of Attention Decoder (AD) and bilinear upsample. AD leverages pixel-level attention to model long-range dependency and global information for a better upsample. Bilinear upsample is introduced as the residual connection to complement the upsampled features. Moreover, considering the extensive memory and computation cost of pixel-level attention, we further design a window attention scheme to restrict attention computation in local windows instead of the global range. We evaluate our method (WAU) on classic U-Net structure with lateral connections and achieve state-of-the-art performance on Synapse multi-organ segmentation, Medical Segmentation Decathlon (MSD) Brain, and Automatic Cardiac Diagnosis Challenge (ACDC) datasets. We also validate the effectiveness of our method on multiple classic architectures and achieve consistent improvement.

Motivation & Objective

  • To address the limitation of existing upsampling techniques in medical image segmentation, which underutilize local and detailed features from the downsampling path.
  • To explore the potential of the Transformer decoder in feature upscaling, moving beyond its typical use in sequence generation.
  • To develop a memory- and computation-efficient upsampling mechanism that preserves fine-grained details critical in medical imaging.
  • To create a general-purpose upsampling module compatible with any segmentation model that uses skip connections.
  • To demonstrate consistent performance gains across diverse architectures, including 2D and 3D U-Net, FCN, and DeepLabV3.

Proposed method

  • Proposes Attention Upsample (AU), a two-stream module combining a Transformer-based Attention Decoder (AD) with bilinear upsampling as a residual connection.
  • Designs the Window Attention Decoder (WAD) to restrict self-attention computation to local spatial windows, reducing computational cost while maintaining long-range modeling.
  • Uses depthwise separable convolution for efficient feature projection within each window, improving performance on small medical datasets.
  • Applies windowed self-attention to compute query, key, and value matrices from local feature windows, enabling context-aware upsampling.
  • Integrates WAU into the skip connection path of U-Net-like architectures, allowing end-to-end training with standard segmentation heads.
  • Employs a residual learning scheme where bilinear upsampling complements the attention-based refinement, stabilizing training and improving feature quality.

Experimental results

Research questions

  • RQ1Can the decoder of a Transformer be effectively repurposed for feature upscaling in medical image segmentation?
  • RQ2How does incorporating local, detailed features from the downsampling path improve upsampling quality compared to standard transposed convolution or bilinear upsampling?
  • RQ3What is the optimal window size for balancing local detail and long-range context modeling in the windowed attention mechanism?
  • RQ4How does the proposed WAU method generalize across different segmentation architectures, including 2D and 3D models?
  • RQ5What is the trade-off between attention computation cost and performance gain when using global versus local windowed attention in upsampling?

Key findings

  • WAU achieves state-of-the-art performance on the Synapse multi-organ segmentation dataset, outperforming existing methods.
  • On the Medical Segmentation Decathlon (MSD) Brain dataset, WAU achieves a mean DSC improvement of 1.47 points over the baseline ResUNet.
  • WAU improves 3D U-Net by 0.36 DSC, demonstrating strong generalization to 3D medical volume segmentation.
  • The optimal window size for WAU is 4, as larger or smaller windows degrade performance due to loss of focus or insufficient context.
  • Depthwise separable convolution yields the best performance among convolution types, particularly on small medical datasets with limited parameters.
  • Visualizations confirm that WAU’s attention weights are spatially focused on relevant anatomical structures, enhancing feature discrimination and lesion visibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.