Papers › Coarse-to-Fine Sparse Transformer for Hyperspectral Image Reconstruction

Coarse-to-Fine Sparse Transformer for Hyperspectral Image Reconstruction

9 Mar 2022arXiv:2203.04845archive 2025-07-28

Yuanhao Cai, Jing Lin, Xiaowan Hu, Haoqian Wang, Xin Yuan, Yulun Zhang, Radu Timofte, Luc van Gool

Many algorithms have been developed to solve the inverse problem of coded aperture snapshot spectral imaging (CASSI), i.e., recovering the 3D hyperspectral images (HSIs) from a 2D compressive measurement. In recent years, learning-based methods have demonstrated promising performance and dominated the mainstream research direction. However, existing CNN-based methods show limitations in capturing long-range dependencies and non-local self-similarity. Previous Transformer-based methods densely sample tokens, some of which are uninformative, and calculate the multi-head self-attention (MSA) between some tokens that are unrelated in content. This does not fit the spatially sparse nature of HSI signals and limits the model scalability. In this paper, we propose a novel Transformer-based method, coarse-to-fine sparse Transformer (CST), firstly embedding HSI sparsity into deep learning for HSI reconstruction. In particular, CST uses our proposed spectra-aware screening mechanism (SASM) for coarse patch selecting. Then the selected patches are fed into our customized spectra-aggregation hashing multi-head self-attention (SAH-MSA) for fine pixel clustering and self-similarity capturing. Comprehensive experiments show that our CST significantly outperforms state-of-the-art methods while requiring cheaper computational costs. The code and models will be released at https://github.com/caiyuanhao1998/MST

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2203.04845")

Code

Syntology Ran 13 of 16 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 2 ran · fixture could not drive it; 9 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

caiyuanhao1998/MST officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 13 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
2ran · fixture could not drive it
9ran
3unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from caiyuanhao1998/MST. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ASPP caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran fingerprinted MIT (permissive) · e6b806ed01455bd5 · report
ASPPConv caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran fingerprinted MIT (permissive) · 4bd71cba3602449c · report
ASPPPooling caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran fingerprinted MIT (permissive) · dd36c1718253bd99 · report
AsymmetricTransform caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran MIT (permissive) · 58f6128456d2627d · report
LSH caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran MIT (permissive) · af8bb615fc66f945 · report
SAH_MSA caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran MIT (permissive) · 7dea4c5caae45bd4 · report
SALSH caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran MIT (permissive) · 6a998c9227157700 · report
Sparsity_Estimator caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran MIT (permissive) · 45281a471fb34442 · report
XBOXPLUS caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran MIT (permissive) · 6d329196f36c232e · report
batch_gather caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran · fixture could not drive it MIT (permissive) · 169dedccb5536ed4 · report
batch_scatter caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran · fixture could not drive it MIT (permissive) · 8b3f512fc8acb3da · report
lsh_clustering caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · aa9a1d1268999fa4 · report
uniform caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository ran · our draft was wrong MIT (permissive) · acc89f0bd5a8ecc6 · report
CST caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository unverified MIT (permissive) · 128f3f681fa4e5a2 · report
SAHAB caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository unverified MIT (permissive) · 95caa6a06d8dfedc · report
SAHABs caiyuanhao1998/MST/real/train_code/architecture/CST.py official repository unverified MIT (permissive) · 0885baf6a0f88d0a · report

Tasks

Compressive SensingImage ReconstructionSpectral Reconstruction

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Spectral Reconstruction CAVE CST-L PSNR 36.12 #6 of 10 Archive leaderboard report
Spectral Reconstruction CAVE CST-L SSIM 0.957 #6 of 10 Archive leaderboard report
Spectral Reconstruction KAIST CST-L PSNR 36.12 #6 of 10 Archive leaderboard report
Spectral Reconstruction KAIST CST-L SSIM 0.957 #6 of 10 Archive leaderboard report
Spectral Reconstruction Real HSI CST-L User Study Score 14 #4 of 9 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxSparse TransformerTransformerWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections