All models

MERIT

A medical image segmentation network that pairs two MaxViT backbones with different attention windows.

Medical imaging · 3,061 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

This diagram has 3,061 operations (57 KB) and is drawn when you ask.

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
147.9M
Operations
3,061
Framework
PyTorch
Recurrent
No
Published
MIDL 2023 (PMLR vol. 227)
Cited by
60 (as of 29 October 2026)
Authors
Md Mostafijur Rahman, Radu Marculescu
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
m18086
Graph hash
8914cbc09200f2b386b84b96e8a70edb0583f6b316bf08e4f201d73627fd8332
Skeleton hash
aec4df37f259113881c3cba4babdccc6c1d8719dcecab31cc28dda0708799e40
Architecture hash
558c225f0706d5c2eee58839d22fc30c2e2945b1ac6798c69fd820780b54332c
Diagram SHA-256
ba5e9e9ed84932ad50e6ac054fedf49bc4e84bdcd30957ec1909f8ac673ab968
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

MERIT (Multi-scale hiERarchical vIsion Transformer) is a backbone network for 2D medical image segmentation that computes self-attention at multiple scales. The paper's starting point is that hierarchical vision transformers perform self-attention with a single attention window, which limits how well they capture organs and lesions of different sizes.

The implementation uses two instances of the MaxViT-S backbone, one with 8×8 and one with 7×7 attention windows. The paper proposes two designs: Cascaded MERIT, which adds feedback from one backbone to the next, and Parallel MERIT, which passes images of several resolutions into separate backbones. Each backbone has its own decoder, the attention-based CASCADE decoder, which merges features across stages with attention gates and enhances them with a convolutional attention module. The four decoder stages give four prediction maps, and the maps of the two decoders are added stage by stage.

For training, the paper adds MUTATION, a loss aggregation that sums losses over prediction maps built from every non-empty subset of the stage outputs, 15 maps from 4. The paper reports an average DICE score of 84.90% on the Synapse multi-organ benchmark for Cascaded MERIT and 92.32% on ACDC for Parallel MERIT.

Key idea. MERIT computes self-attention across multiple attention windows by combining two MaxViT backbones, each with a CASCADE decoder, and trains them with a feature-mixing loss aggregation.

  • MERIT
  • Multi-scale Hierarchical Vision Transformer
  • medical image segmentation
  • multi-scale self-attention
  • MUTATION loss aggregation
  • Synapse multi-organ
  • ACDC
  • vision transformer segmentation

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

Cite the paper

@misc{rahman2023multiscalehierarchicalvisiontransformer,
      title={Multi-scale Hierarchical Vision Transformer with Cascaded Attention Decoding for Medical Image Segmentation}, 
      author={Md Mostafijur Rahman and Radu Marculescu},
      year={2023},
      eprint={2303.16892},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2303.16892}, 
}