All models

VST

A pure transformer for salient object detection that predicts saliency and boundary maps from task tokens.

Segmentation · 1,127 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 (24 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
44.6M
Operations
1,127
Framework
PyTorch
Recurrent
No
Published
ICCV 2021
Cited by
610 (as of 3 November 2026)
Authors
Nian Liu, Ni Zhang, Kaiyuan Wan and others
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
m21316
Graph hash
0c5d4c38f6b4e86f0c633509d5f85310d85715d4177fdb6427f172b57144a25f
Skeleton hash
3846242363f4af1376a30c8d88fbf290da59a9849308f4f96ce6f0f00a2ce953
Architecture hash
d4e242a7b1f86494f2b247f41407d33c8780612e15e3fa662132b2f2efa32fdd
Diagram SHA-256
e2d3363fdb96056cf18911b61e9e1e5395c7037ac346c459c936a180e8e79ac9
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

VST, the Visual Saliency Transformer, is a salient object detection model built on a pure transformer, where the paper says earlier saliency detection methods relied heavily on CNN-based architectures. It is presented as a unified model for both RGB and RGB-D salient object detection (SOD). The authors treat the task from a convolution-free sequence-to-sequence perspective and predict saliency by modeling long-range dependencies among image patches.

The main components are a transformer encoder based on T2T-ViT, a convertor that moves patch tokens from the encoder space to the decoder space, and a multi-task transformer decoder. To reach full resolution, the decoder upsamples tokens with a reverse T2T (RT2T) transformation, which expands each token into multiple sub-tokens. The upsampled patch tokens are fused with low-level tokens from the encoder. The decoder predicts saliency and boundaries together by introducing a saliency token and a boundary token. A patch-task-attention between the patch tokens and these task tokens produces the saliency and boundary maps.

The backbone is a pre-trained T2T-ViT_t-14 model, chosen because its computational complexity is similar to that of ResNet50. The RGB version uses a single transformer encoder, and the RGB-D version adds a second transformer encoder for the depth map and a cross modality transformer. The RGB version is trained on the training set of DUTS.

Key idea. VST is a pure transformer for salient object detection that upsamples tokens with a reverse T2T transformation and predicts saliency and boundary maps through task-related tokens and patch-task-attention.

  • vst
  • visual saliency transformer
  • salient object detection
  • sod
  • saliency detection
  • rgb-d salient object detection
  • boundary detection
  • reverse t2t
  • patch-task-attention

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

Cite the paper

@misc{liu2021visualsaliencytransformer,
      title={Visual Saliency Transformer}, 
      author={Nian Liu and Ni Zhang and Kaiyuan Wan and Ling Shao and Junwei Han},
      year={2021},
      eprint={2104.12099},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2104.12099}, 
}