ColonFormer
A colon polyp segmentation network with a Mix Transformer encoder and a pyramid CNN decoder.
Medical imaging · 1,495 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
- 52.9M
- Operations
- 1,495
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE Access, vol. 10, pp. 80575-80586, 2022
- Cited by
- 242 (as of 24 October 2026)
- Authors
- Nguyen Thanh Duc, Nguyen Thi Oanh, Nguyen Thi Thuy and others
- 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
- m15378
- Graph hash
- ea3891d5e18eb3b8ee873fbb07a0baa321af32c5384f8d72b2bc4e8a6cde9e06
- Skeleton hash
- 39b7a66014753f663055386ee40623b2333ca329fb19fb029543c46c195320d1
- Architecture hash
- c715156049a55f7cf7d430ca9ed542624218f6ce7693b446091a0fedf716a746
- Diagram SHA-256
- 2fbb3b80e9527ad43fe061341912898ea02b4acb03ce384e12d7b2a25ef1fce1
- 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
What it is
ColonFormer is a network for colon polyp segmentation that integrates a hierarchical Transformer and a hierarchical pyramid CNN in one architecture. The paper cites a literature review estimating that 20 to 47 percent of colon polyps may be missed during endoscopies.
The network has three parts: an encoder, a decoder and a refinement module. The encoder is the Mix Transformer (MiT), a hierarchical Transformer backbone. The decoder runs the deepest encoder features through a Pyramid Pooling Module (PPM), then gradually fuses that global map with the multi-scale feature maps of the MiT backbone. The refinement module corrects polyp boundaries with a Channel-wise Feature Pyramid module and a Reverse Attention module enhanced by a residual axial attention block. The residual connection lets the network omit the axial attention layers when required.
Variants follow the MiT backbone scales from MiT-B1 to MiT-B5, and this model uses MiT-B3, the scale the paper names ColonFormer-L. Besides the final prediction, the global map and two intermediate maps are also passed into the training loss, an arrangement called deep supervision. On its five test sets (Kvasir, ClinicDB, ColonDB, CVC-T and ETIS-Larib), the paper reports that ColonFormer generally outperformed the benchmark models on most datasets. The exception it reports is CVC-ClinicDB, where ColonFormer scored roughly 1% below TransFuse-L*. For testing, input images are resized to 352 × 352.
Key idea. The paper built ColonFormer, which integrates a hierarchical Transformer encoder and a hierarchical pyramid CNN decoder in one architecture for colon polyp segmentation.
- colonformer
- colon polyp segmentation
- polyp segmentation
- colonoscopy
- endoscopic image segmentation
- medical image segmentation
- residual axial reverse attention
- ra-ra
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{duc2022colonformerefficienttransformerbased,
title={ColonFormer: An Efficient Transformer based Method for Colon Polyp Segmentation},
author={Nguyen Thanh Duc and Nguyen Thi Oanh and Nguyen Thi Thuy and Tran Minh Triet and Dinh Viet Sang},
year={2022},
eprint={2205.08473},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2205.08473},
}