Source-linked AI summary
Multi-Compound Transformer for Accurate Biomedical Image Segmentation
Yuanfeng Ji, Ruimao Zhang, Huijie Wang, Zhen Li, Lingyun Wu, Shaoting Zhang, Ping Luo
TL;DR
Medical-image segmentation transformers model context at one scale, leaving cross-scale dependencies and consistency unmodeled despite their importance for lesions with dramatic size changes. MCTrans combines cross-scale context modeling and proxy-based semantic learning, and outperforms state-of-the-art methods on six benchmarks.
Problem
Medical-image segmentation transformers model context at one scale, leaving cross-scale dependencies and consistency unmodeled despite their importance for lesions with dramatic size changes.
Source: §1 · p. 2Method
MCTrans integrates cross-scale pixel-level context modeling and proxy-based semantic-category correspondence and feature enhancement into a UNet-like network.
Source: §1 · pp. 2–3Results
Across six tasks, MCTrans outperforms state-of-the-art methods by a significant margin with slight computation increase; on Pannuke, it improves 3.64% over UNet.
Source: §1 · p. 3, §4.3 · p. 8Takeaways & Limitations
Reported results across Pannuke and five lesion-segmentation datasets demonstrate MCTrans's versatility.
Source: §4.3 · p. 8
Abstract
from arXiv · showhide
The recent vision transformer(i.e.for image classification) learns non-local attentive interaction of different patch tokens. However, prior arts miss learning the cross-scale dependencies of different pixels, the semantic correspondence of different labels, and the consistency of the feature representations and semantic embeddings, which are critical for biomedical segmentation. In this paper, we tackle the above issues by proposing a unified transformer network, termed Multi-Compound Transformer (MCTrans), which incorporates rich feature learning and semantic structure mining into a unified framework. Specifically, MCTrans embeds the multi-scale convolutional features as a sequence of tokens and performs intra- and inter-scale self-attention, rather than single-scale attention in previous works. In addition, a learnable proxy embedding is also introduced to model semantic relationship and feature enhancement by using self-attention and cross-attention, respectively. MCTrans can be easily plugged into a UNet-like network and attains a significant improvement over the state-of-the-art methods in biomedical image segmentation in six standard benchmarks. For example, MCTrans outperforms UNet by 3.64%, 3.71%, 4.34%, 2.8%, 1.88%, 1.57% in Pannuke, CVC-Clinic, CVC-Colon, Etis, Kavirs, ISIC2018 dataset, respectively. Code is available at https://github.com/JiYuanFeng/MCTrans.
1 Introduction
MCTrans combines cross-scale pixel context modeling with proxy-embedding-based semantic learning to address limitations in biomedical segmentation. The paper reports that it outperforms state-of-the-art methods across six datasets with a slight computation increase.
1 Introduction
- CNN segmentation models such as FCN struggle to model long-term dependencies, while TransUNet [4] models global context at one scale and omits category correlations and feature consistency.The introduction identifies cross-scale dependency and consistency as important for segmenting lesions with dramatic size changes.Source: §1 · pp. 1–2
- MCTrans combines cross-scale contextual dependencies with semantic relationship mining for biomedical image segmentation.Its Transformer-Self-Attention module models cross-scale pixel context, while proxy embeddings support category-dependency learning and feature enhancement through self- and cross-attention.Source: §1 · pp. 2–3
- A learnable proxy embedding models category dependencies and interacts with feature representations, while auxiliary loss improves within-category correlation and between-class discriminability.The proxy embedding is used with self-attention to learn semantic correspondence and cross-attention to interact with feature representations.Source: §1 · pp. 2–3
- MCTrans is plugged into a UNet-like network and reportedly outperforms state-of-the-art methods across six challenging datasets with a slight computation increase.The paper attributes the results to the effectiveness of its proposed network components.Source: §1 · p. 3
2 Related Work
Prior attention methods model pixel relationships at a single scale, while Transformers enable information exchange across inputs. This work develops a Transformer-based approach tailored to medical image segmentation.
Attention Mechanisms
- Earlier attention methods model pixel relationships at a single scale, whereas this work uses Transformers to connect multi-scale features and exchange information across scales.Prior methods include attention gates [15], feature-channel attention, and non-local operations; they capture semantic and spatial relationships but neglect information from other scales.Source: §2 · p. 3
Transformer
- Vaswani et al. [19] introduced Transformers for machine translation, using self-attention to exchange information among inputs; vision applications include image classification [7] and semantic segmentation [21].Transformer methods have also been applied to object detection and tracking [25].Source: §2 · p. 3
- TransUnet [4] applies a Transformer encoder to UNet’s highest-level feature to collect long-range dependencies, whereas this work develops an approach specifically for medical image segmentation.The paper frames its approach as leveraging attention mechanisms more thoroughly for medical image segmentation.Source: §2 · pp. 3–4
3 Multi-Compound Transformer Network
MCTrans inserts self- and cross-attention modules between a UNet encoder and decoder to model context across multi-scale features and semantic relationships among categories. Its learnable proxy embeddings also interact with image tokens to enhance feature representations.
3 Multi-Compound Transformer Network
- MCTrans projects and concatenates multi-scale CNN features as tokens, processes them with TSA and TCA, then folds them back into pyramid features for prediction.It uses features from levels 2–4, with each feature-map location treated as a patch, and adds positional embeddings before attention.Source: §3 · p. 4
3.1 Transformer-Self-Attention
- TSA models pixel-level contextual dependencies across multi-scale features, using deformable sparse attention to reduce the cost of processing long token sequences.The module stacks self-attention and feed-forward layers; deformable self-attention attends to a sparse, data-dependent subset of elements.Source: §3.1 · pp. 4–5
3.2 Transformer-Cross-Attention
- TCA uses proxy embeddings to model category relationships and interact with tokens, improving feature consistency and discriminability, with auxiliary classification loss supervising proxy learning.Self-attention connects category pairs; cross-attention lets proxy embeddings interact with enhanced tokens, and the auxiliary prediction is supervised using unique labels from the ground-truth mask.Source: §3.2 · pp. 5–6
4 Experiments
MCTrans combines multi-scale feature modeling and semantic relationship learning, and experiments evaluate its components, settings, and performance across six biomedical segmentation datasets. It outperforms top methods across the benchmarks, with a 3.64% improvement over UNet on Pannuke at nearly identical parameter count and only a slight computation increase.
4.1 Datasets and Settings
- Experiments cover six datasets across cell, polyp, and skin-lesion segmentation, reporting DSC with 3-fold or 5-fold cross-validation.Pannuke uses official 3-fold cross-validation; other datasets use 5-fold cross-validation because test annotations are not publicly available. Training uses VGG-Style or ResNet-34 backbones, cross-entropy and Dice losses, flipping augmentation, and Adam with initial learning rate 3e-4.Source: §4.1 · pp. 6–7
Analysis of the Network Components
- On Pannuke, MCTrans reached 68.40% DSC versus UNet’s 64.92%; adding TSA raised UNet to 67.93%, while TCA raised baseline and MCTrans to 67.16% and 68.40%.Removing auxiliary loss reduced performance to 67.87%; single-scale Non-local and Transformer-Encoder variants performed far below MCTrans.Source: Analysis of the Network Components · p. 7
Sensitivity to the Setting
- On the small Pannuke dataset, DSC first increased and then decreased as TSA module count grew, while TCA performance peaked at Nc = 4 and then fell.The authors interpret this pattern as indicating that transformer-model capacity is not always better when training on a small dataset.Source: Table 2 · p. 7, Sensitivity to the Setting · p. 8
4.3 Comparisons with State-of-the-art Methods
- MCTrans outperformed top methods on Pannuke with VGG-Style and ResNet-34 feature extractors and on five lesion datasets, demonstrating versatility.The comparisons cover Pannuke and CVC-Clinic, CVC-ColonDB, ETIS-Larib, Kvasir, and ISIC2018.Source: §4.3 · p. 8, Table 3 · p. 8, Table 4 · p. 8
- On Pannuke, MCTrans improved over UNet by 3.64% with almost identical parameters and a slight computation increase.The passage also reports that UNet++ uses much more computation while achieving lower performance than MCTrans.Source: §4.3 · p. 8, Table 3 · p. 8
5 Conclusions
The paper proposes a transformer-based medical image segmentation network that uses attention for context modeling and semantic relationship mining. The authors report that it addresses cross-scale dependencies and category correspondence, and outperforms methods such as TransUnet on several public datasets.
- The proposed transformer-based network targets medical image segmentation.Source: §5 · p. 9
- Attention mechanisms model rich context and semantic relationships, addressing cross-scale dependencies and correspondence among categories.Source: §5 · p. 9
- The approach is reported effective and outperforms state-of-the-art methods such as TransUnet on several public datasets.Source: §5 · p. 9
Related papers
This paper cites
- Attention Is All You Need2017
- Very Deep Convolutional Networks for Large-Scale Image Recognition2014
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale2020
- U-Net: Convolutional Networks for Biomedical Image Segmentation2015
- Attention U-Net: Learning Where to Look for the Pancreas2018
- Skin Lesion Analysis Toward Melanoma Detection 2018: A Challenge Hosted by the International Skin Imaging Collaboration (ISIC)2019