NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multi-dimension Transformer with Attention-based Filtering for Medical Image Segmentation

Wentao Wang, Xi Xiao, Mingjie Liu, Qizhen Lan, Xuanyao Huang, Qing Tian, Swalpa Kumar Roy, Tianyang Wang

TL;DR

MDT-AF is a novel Transformer-based architecture that addresses the inherent noise and complex structural variations in medical images. By introducing an attention-based filtering mechanism during patch embedding and expanding self-attention to both spatial and channel dimensions, it achieves state-of-the-art performance across lung, skin, and polyp segmentation tasks.

What Problem Does This Paper Address?

Medical image segmentation is a cornerstone of automated diagnosis, yet it faces two major hurdles:

  1. Low Signal-to-Noise Ratio (SNR): Medical images (like X-rays or dermoscopy) are often noisy or blurred, making it difficult for standard models to distinguish between critical anatomical boundaries and background artifacts.
  2. Limited Representation Capacity: While standard Vision Transformers (ViTs) excel at modeling global relationships, they often struggle to effectively utilize channel-wise information and spatial details simultaneously. Existing CNN-based models (like UNet) capture local details well but lack the global context needed when the size and shape of a region of interest vary significantly.

The authors propose MDT-AF (Multi-dimension Transformer with Attention-based Filtering) to bridge these gaps by refining how features are extracted and how the model "attends" to different dimensions of the data.

Methods

The MDT-AF framework introduces two primary innovations:

1. Attention-based Patch Embedding (APE)

Standard Transformers typically use a simple linear projection to create "patches." MDT-AF replaces this with a coarse-to-fine filtering process. It uses two parallel branches:

  • Overlap Patch Embedding: Extracts initial coarse features while preserving local continuity.
  • Attention-based Filtering: Generates attention weights to filter the coarse features, effectively suppressing noise and focusing the model on relevant signals before they even enter the Transformer blocks.

2. Multi-dimension Transformer Block

To better capture complex structures, the authors expanded the self-attention mechanism:

  • Spatial Self-attention (SSA): Captures contextual information across different image positions to define boundaries and shapes.
  • Channel Self-attention (CSA): Analyzes relationships between feature channels to highlight significant global features.
  • Interaction Mechanism: A specific module that adaptively re-weights and fuses features from both the spatial and channel dimensions.
  • Locality Integration: A convolutional branch runs in parallel with the self-attention modules to inject "inductive bias," helping the model maintain a sense of local pixel relationships.

To keep the model computationally feasible, they utilize Efficient Self-attention (ESA), which reduces the quadratic complexity typically associated with Transformers.

Datasets

The model was evaluated on three diverse public benchmarks:

  • Lung X-ray Dataset: 704 chest X-ray images for lung field segmentation.
  • Skin Lesion Dataset: A fusion of ISIC 2017, ISIC 2018, and PH2 datasets (approx. 3,400 samples) for dermoscopic image analysis.
  • Kvasir-SEG Dataset: 1,000 polyp images and masks for endoscopic segmentation.

Key Insights and Ideas

  • Filtering at the Source: The "aha moment" here is treating patch embedding as a denoising step. By filtering noise before the main Transformer stages, the model avoids propagating errors through the deeper layers.
  • The Power of "And": Most models choose between spatial or channel attention. MDT-AF demonstrates that an explicit interaction mechanism between the two is vital for medical images, where the "what" (channel) and the "where" (spatial) are equally critical for identifying subtle lesions.
  • Robustness to Complexity: Qualitative results show that MDT-AF is significantly better at handling "complicated backgrounds" where baseline models like TransUNet or SwinUNet often produce misclassified pixels or blurred boundaries.

Key Results

MDT-AF achieved State-of-the-Art (SOTA) results across all tested datasets:

  • Lung X-ray: Achieved a 97.17% Dice Score (DSC) and 98.60% Accuracy, outperforming TransUNet by 1.92% in DSC.
  • Skin Lesion: Achieved a 94.25% DSC, notably better than the 88.59% achieved by Hiformer.
  • Kvasir-SEG: Achieved a 93.38% DSC, significantly higher than SwinUNet (70.71%) and TransUNet (89.21%).

Ablation studies confirmed that the attention-based filtering (AF) and the multi-dimension self-attention (MSA) were both essential; removing either component led to a measurable drop in performance across all datasets.

Limitations and Future Work

  • Computational Overhead: While Efficient Self-attention (ESA) is used, the multi-branch nature of the patch embedding and the dual-attention blocks likely increase the parameter count and training time compared to simpler U-shaped networks.
  • Task Expansion: The current study focuses strictly on 2D segmentation. The authors suggest that future work will involve extending MDT-AF to other downstream medical tasks, such as 3D volume segmentation or image classification.
  • Clinical Validation: While the model performs well on public benchmarks, the authors note the need for further testing in diverse, real-world clinical environments to ensure robustness against varying image qualities from different hardware.

Summary updated

BibTeX
@inproceedings{wang2024multi,
  author = {Wentao Wang and Xi Xiao and Mingjie Liu and Qizhen Lan and Xuanyao Huang and Qing Tian and Swalpa Kumar Roy and Tianyang Wang},
  title = {{Multi-dimension Transformer with Attention-based Filtering for Medical Image Segmentation}},
  booktitle = {ICTAI},
  year = {2024},
  url = {https://openreview.net/forum?id=EiB6l8G7hS},
}

Loading related content...

Figure