All models

MST++

A multi-stage Transformer that reconstructs a 31-band hyperspectral image from an RGB image.

773 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 (13 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
1.6M
Operations
773
Framework
PyTorch
Recurrent
No
Published
CVPR Workshops 2022 (NTIRE)
Cited by
364 (as of 30 October 2026)
Authors
Yuanhao Cai, Jing Lin, Zudi Lin 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
m18242
Graph hash
e44a650c504bd7c9b28e3a1f336f330e85c48dfe89f7ac091d5610787a0b820f
Skeleton hash
58269ae292070b9eb4c895260d1e467840822ebf54344daad68b563e78294263
Architecture hash
198d9b29ab127b91515c7882be5d47924fbbfef4a8e9b9b865f60b82ba865901
Diagram SHA-256
4ace4afb07e0a8ed04676b8e1b18db4975cd45a519c767d5635a057008715de6
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

MST++, the Multi-stage Spectral-wise Transformer, takes an RGB image as input and reconstructs the corresponding hyperspectral image. The paper presents this kind of spectral reconstruction as a way to reduce the cost of hyperspectral imaging, since RGB images are easily obtained with RGB cameras.

The central idea is to compute self-attention along the spectral dimension, with each spectral feature map treated as one token. The authors motivate this by noting that hyperspectral signals are spatially sparse while spectrally self-similar. Blocks of this attention form a U-shaped single-stage Transformer with an encoder, a bottleneck, and a decoder. MST++ cascades several of these stages to improve the reconstruction from coarse to fine, and the paper's implementation uses three stages with 31 channels.

The hyperspectral images in the paper's dataset have 31 wavelengths from 400 nm to 700 nm. The paper reports that the method won the NTIRE 2022 Spectral Reconstruction Challenge out of 231 participants. It is based on the authors' earlier MST, which was designed for spectral compressive imaging restoration.

Key idea. MST++ cascades U-shaped Transformer stages built on spectral-wise self-attention, which treats each spectral feature map as a token, to reconstruct hyperspectral images from RGB.

  • MST++
  • MST-plus-plus
  • Multi-stage Spectral-wise Transformer
  • spectral reconstruction
  • hyperspectral image reconstruction
  • RGB to hyperspectral
  • spectral-wise self-attention
  • NTIRE 2022 spectral reconstruction
  • hyperspectral imaging

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

Cite the paper

@misc{cai2022mstmultistagespectralwisetransformer,
      title={MST++: Multi-stage Spectral-wise Transformer for Efficient Spectral Reconstruction}, 
      author={Yuanhao Cai and Jing Lin and Zudi Lin and Haoqian Wang and Yulun Zhang and Hanspeter Pfister and Radu Timofte and Luc Van Gool},
      year={2022},
      eprint={2204.07908},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2204.07908}, 
}