UCTransNet
UCTransNet is a U-Net whose skip connections are replaced by a channel-wise Transformer module, CTrans.
Medical imaging · 67 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Medical imaging
- Parameters
- 134.5K
- Operations
- 67
- Framework
- PyTorch
- Recurrent
- No
- Published
- AAAI 2022
- Cited by
- 1,183 (as of 29 October 2026)
- Authors
- Haonan Wang, Peng Cao, Jiaqi Wang, Osmar R. Zaiane
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m3215
- Graph hash
- 8df94e76178f3be44a34762d5a279091db2f9480f3274ee425b6d48bce2763bc
- Skeleton hash
- fd38b38243b31ca4c4693cb651b85b164fb47a6eb28af80f13abc60c1e0183d3
- Architecture hash
- 1441b0b1de1ffd08e06455779c74002ae5c8fa43ba1ece58e39b1b3d54f06aa6
- Diagram SHA-256
- a38b73ba6a7e017f5df65126724326ffbdb78514dc88260c10a3d09b0bde2287
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
menagerie.classics.wave_d_reimpl:build_uctransnet: build({}) What it is
UCTransNet is a medical image segmentation network that keeps the U-Net encoder and decoder but replaces the plain skip connections between them with a Transformer-based module called CTrans. The paper starts from an analysis of U-Net's skip connections on three datasets and concludes that simply copying encoder features to the decoder is not always beneficial, and that some skip connections lower segmentation performance.
CTrans has two parts. The Channel-wise Cross Fusion Transformer (CCT) turns the outputs of the four skip connection layers into tokens and fuses them, using each scale's tokens as queries and the concatenation of all four as key and value. Unlike standard self-attention, the attention runs along the channel axis rather than the patch axis, and instance normalization is applied to the similarity matrix. The Channel-wise Cross-Attention (CCA) module then guides how the fused multi-scale features connect to the decoder features.
The paper reports absolute gains of 4.05%, 7.98% and 9.00% Dice over U-Net on the GlaS, MoNuSeg and Synapse datasets, respectively. The authors found that a CCT with 4 layers and 4 heads performed best on the three datasets.
Key idea. The paper replaces U-Net's skip connections with a channel-wise Transformer module, CTrans, that fuses multi-scale encoder features before they reach the decoder.
- UCTransNet
- CTrans
- Channel Transformer
- U-Net skip connections
- medical image segmentation
- channel-wise cross attention
- CCT
- CCA
- semantic segmentation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2022uctransnetrethinkingskipconnections,
title={UCTransNet: Rethinking the Skip Connections in U-Net from a Channel-wise Perspective with Transformer},
author={Haonan Wang and Peng Cao and Jiaqi Wang and Osmar R. Zaiane},
year={2022},
eprint={2109.04335},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2109.04335},
}