TGANet
A polyp segmentation network that turns polyp size and count labels into text-guided attention in its decoder.
Medical imaging · 622 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
- 19.8M
- Operations
- 622
- Framework
- PyTorch
- Recurrent
- No
- Published
- MICCAI 2022
- Cited by
- 226 (as of 24 October 2026)
- Authors
- Nikhil Kumar Tomar, Debesh Jha, Ulas Bagci, Sharib Ali
- 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
- m20788
- Graph hash
- 45c138a3f0bf40ca5de9c025b8acf2e9f1cffd8efd1d5916f194bdc589c204f6
- Skeleton hash
- 472f87fbff8f78e121fe542fb7ec50a7abba445d285f802513ed0794653799f7
- Architecture hash
- 4be0b4f3082009cf8912d61662ed73b4590313c5daee1d5ec241d378c3df0c20
- Diagram SHA-256
- ae4f5b82b7937fe77c9016c66e819a608ffac1fb86e494afc36479f0b03d6d1f
- 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
TGANet is a polyp segmentation network that uses text-guided attention so that polyps are segmented well regardless of their size and number. The paper's concern is that variability in polyp size can tie a model to the sizes most common in its training data.
The network works with five attribute words: one or many for the number of polyps, and small, medium or large for their size. The words are encoded with byte-pair encoding. An auxiliary classification task weights the resulting text embeddings. Three label attention modules then apply them as soft channel-wise attention to the three decoder outputs. The encoder is a pre-trained ResNet50 with four encoding blocks. Each block's output goes through a feature enhancement module, which begins with four parallel dilated convolutions.
The paper evaluates on four public polyp datasets: Kvasir-SEG, CVC-ClinicDB, BKAI and Kvasir-Sessile. On Kvasir-SEG it reports a mIoU of 0.8330 and a mDSC of 0.8982. In its ablation on that dataset, the full model improves on a version without the label and classifier by 2.26% on mIoU and 1.96% on mDSC.
Key idea. TGANet adds text-guided attention, built from embeddings of polyp size and number labels weighted by an auxiliary classifier, to a polyp segmentation network.
- TGANet
- text-guided attention network
- text guided attention
- polyp segmentation
- colonoscopy
- label embedding
- medical image segmentation
- multi-scale features
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{tomar2022tganettextguidedattentionimproved,
title={TGANet: Text-guided attention for improved polyp segmentation},
author={Nikhil Kumar Tomar and Debesh Jha and Ulas Bagci and Sharib Ali},
year={2022},
eprint={2205.04280},
archivePrefix={arXiv},
primaryClass={eess.IV},
url={https://arxiv.org/abs/2205.04280},
}