All models

MSA2Net

Medical image segmentation network with a MaxViT encoder and attention-gated skip connections (MASAG).

Medical imaging · 1,754 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (32 KB)

Open in a new tab

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

Parameters
93.7M
Operations
1,754
Framework
PyTorch
Recurrent
No
Published
BMVC 2024
Cited by
6 (as of 3 November 2026)
Authors
Sina Ghorbani Kolahi, Seyed Kamal Chaharsooghi, Toktam Khatibi and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m18216
Graph hash
5f982beb6b67ec5b381cbbb6a77abd868f2fd4751ededcb34aedd0a03c5e2c2c
Skeleton hash
5f18995db2e88773a7c6d94ab1190fa71e571534abdd37b65295ceab33907392
Architecture hash
bf154a5dd62a2e546917f248697be3ce02bd2d7d437bd95b86486b79ed1fd133
Diagram SHA-256
5788f0156e0f95a2935de93ee114c62671aaa5f725e921b1119cd47179a01f6a
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

MSA2Net is a network for medical image segmentation, where the tissues and structures to be outlined vary widely in size, shape and density. Its contribution is in the skip connections between encoder and decoder: the authors observe that most earlier studies improved the encoder or the decoder and left the original skip connection design unchanged.

The encoder is a pretrained MaxViT, and the decoder uses DAE-Former blocks in its deeper layers and LKA (Large Kernel Attention) blocks in its shallow ones. Each skip connection passes through a Multi-Scale Adaptive Spatial Attention Gate (MASAG), which processes the encoder and decoder outputs in four stages: multi-scale fusion, spatial selection, spatial interaction and cross-modulation, and recalibration. The first stage widens the spatial scope of the encoder feature with depthwise and dilated convolutions and summarizes the decoder feature with channel-wise pooling. The last stage produces an attention map and multiplies it with the encoder feature before that feature enters the decoder.

The paper evaluates on two datasets, ISIC2018 for dermatology and Synapse for radiology. On Synapse it reports a 0.48% margin over the 2D version of D-LKA. On ISIC it reports surpassing the other methods by at least 1.24% in DSC. Input images are resized to 224 x 224 pixels, and training adds a Boundary Difference over Union (BDoU) loss for boundary-aware segmentation.

Key idea. MSA2Net redesigns skip connections with MASAG, a gate that dynamically adjusts the receptive field so spatially relevant encoder features are highlighted before fusion with decoder features.

  • MSA2Net
  • MSA^2Net
  • MSA-2Net
  • multi-scale adaptive attention-guided network
  • MASAG
  • medical image segmentation
  • Synapse
  • ISIC 2018
  • skip connection
  • attention gate

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{kolahi2024msa2netmultiscaleadaptiveattentionguided,
      title={MSA$^2$Net: Multi-scale Adaptive Attention-guided Network for Medical Image Segmentation}, 
      author={Sina Ghorbani Kolahi and Seyed Kamal Chaharsooghi and Toktam Khatibi and Afshin Bozorgpour and Reza Azad and Moein Heidari and Ilker Hacihaliloglu and Dorit Merhof},
      year={2024},
      eprint={2407.21640},
      archivePrefix={arXiv},
      primaryClass={eess.IV},
      url={https://arxiv.org/abs/2407.21640}, 
}