[Paper Review] Spatial-Temporal Transformer for Video Snapshot Compressive Imaging
This paper proposes STFormer, a spatial-temporal Transformer network for video snapshot compressive imaging (SCI) reconstruction, leveraging factorized self-attention in spatial and temporal domains to model long-range correlations. It achieves state-of-the-art performance with 30+ dB PSNR on complex high-speed scenes and enables fast, end-to-end inference in just 2.7 seconds, while supporting variable masks and input sizes without retraining.
Video snapshot compressive imaging (SCI) captures multiple sequential video frames by a single measurement using the idea of computational imaging. The underlying principle is to modulate high-speed frames through different masks and these modulated frames are summed to a single measurement captured by a low-speed 2D sensor (dubbed optical encoder); following this, algorithms are employed to reconstruct the desired high-speed frames (dubbed software decoder) if needed. In this paper, we consider the reconstruction algorithm in video SCI, i.e., recovering a series of video frames from a compressed measurement. Specifically, we propose a Spatial-Temporal transFormer (STFormer) to exploit the correlation in both spatial and temporal domains. STFormer network is composed of a token generation block, a video reconstruction block, and these two blocks are connected by a series of STFormer blocks. Each STFormer block consists of a spatial self-attention branch, a temporal self-attention branch and the outputs of these two branches are integrated by a fusion network. Extensive results on both simulated and real data demonstrate the state-of-the-art performance of STFormer. The code and models are publicly available at https://github.com/ucaswangls/STFormer.git
Motivation & Objective
- To address the challenge of modeling long-term temporal correlations in video SCI reconstruction, which traditional CNNs with limited receptive fields fail to capture effectively.
- To overcome the inflexibility of existing deep learning models that require retraining when input size or masks change.
- To develop a fast, end-to-end reconstruction network that maintains high fidelity across diverse compression rates and complex motion scenes.
- To improve reconstruction quality on real color video SCI data, which remains challenging due to noise and complex spectral crosstalk.
Proposed method
- The STFormer network consists of a token generation block, a video reconstruction block, and multiple STFormer blocks that integrate spatial and temporal self-attention via a fusion network.
- Each STFormer block applies local self-attention separately on spatial windows and temporal sequences, enabling efficient modeling of long-range dependencies with reduced computation.
- The spatial and temporal attention branches are factorized and combined through a learnable fusion network to preserve spatial and temporal coherence.
- The architecture is designed to be flexible to input size and mask patterns, eliminating the need for retraining when these vary.
- The model is trained end-to-end using a reconstruction loss to minimize pixel-wise error between predicted and ground-truth frames.
- The method supports both grayscale and color video SCI using Bayer-filtered measurements and is compatible with real-world systems like CACTI.
Experimental results
Research questions
- RQ1Can a Transformer-based architecture effectively model long-range spatial-temporal correlations in video SCI reconstruction, surpassing CNN-based methods?
- RQ2Can the proposed STFormer network maintain high reconstruction quality across varying compression rates and input sizes without retraining?
- RQ3How does STFormer perform on real-world color video SCI data with complex motion and noise, compared to existing SOTA methods?
- RQ4Can the STFormer architecture achieve fast inference speeds while maintaining high PSNR and structural fidelity?
Key findings
- STFormer achieves state-of-the-art reconstruction performance with PSNR exceeding 30 dB on complex high-speed scenes such as Duomino and Water Balloon, significantly outperforming prior methods.
- On real color video data (e.g., Hammer, Ball Rotate, Duomino), STFormer produces sharper edges and fewer artifacts than GAP-TV, DeSCI, and PnP-FastDVDnet, especially in high-motion regions.
- The method reconstructs video frames in just 2.7 seconds, far outpacing DeSCI (over 3 hours) and PnP-FastDVDnet (3.4 minutes), demonstrating superior inference speed.
- STFormer is the first end-to-end deep learning model for video SCI that supports variable input sizes and masks without retraining, enhancing practical deployability.
- The model maintains high performance across compression rates from B=10 to B=50, with clear motion details preserved even at high compression.
- Supplementary results on a new Westlake University-built video SCI system confirm STFormer’s robustness and generalization across different hardware configurations and mask patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.