A Simple Low-Bit Quantization Framework for Video Snapshot Compressive Imaging

Miao Cao, Lishun Wang, Huan Wang, Xin Yuan

Abstract

Video Snapshot Compressive Imaging (SCI) enables the capture of high-speed scenes using low-speed 2D sensors through a combination of hardware-based modulation and software-based reconstruction. While deep learning has significantly improved reconstruction quality, the computational demands of these models hinder their deployment on resource-constrained edge devices. We present Q-SCI, the first dedicated low-bit quantization framework designed specifically for Video SCI. By integrating strategic 8-bit shortcut connections and a novel learnable shift operation to correct Transformer distribution distortions, Q-SCI enables 4-bit quantized models to achieve a theoretical 7.8x speedup with a negligible 2.3% reduction in reconstruction quality compared to full-precision counterparts.

Introduction

Video Snapshot Compressive Imaging (SCI) is a sophisticated imaging paradigm that allows standard cameras to record high-speed temporal information. The process involves modulating high-speed frames with temporal masks before integrating them into a single 2D measurement. A reconstruction algorithm then "uncompresses" this measurement back into a high-frame-rate video sequence.

Despite the success of deep neural networks in this domain, their high memory footprint and floating-point operation (FLOP) requirements make them unsuitable for real-time applications on smartphones or drones. Network quantization—the process of reducing the precision of weights and activations from 32-bit floats to low-bit integers—is a common solution for efficiency. However, standard quantization techniques often lead to catastrophic performance degradation in SCI tasks. Q-SCI addresses these challenges by identifying and mitigating the specific sensitivities of SCI architectures to low-bit precision.

The Q-SCI Framework

The Q-SCI framework targets the three primary stages of the SCI reconstruction pipeline to maintain high fidelity while maximizing computational efficiency.

1. High-Quality Feature Extraction

Empirical analysis revealed that the initial feature extraction layer is exceptionally sensitive to quantization. Quantizing this module alone can lead to a significant drop in Peak Signal-to-Noise Ratio (PSNR) (approximately 2.22 dB). To counter this, Q-SCI employs a mixed-precision strategy. It utilizes 8-bit shortcut connections (implemented via 1x1 convolutions) to "shield" and propagate high-quality features through the network. This ensures that the main processing layers can be compressed to 4-bit without losing the foundational information necessary for accurate reconstruction.

2. Shifted Transformer Branch

Transformers have become a staple in SCI for their ability to capture long-range temporal dependencies. However, quantization distorts the distribution of "queries" (Q) and "keys" (K), leading to inaccurate attention maps. Q-SCI introduces a learnable shift operation: $$\tilde{q} = q + \beta_q$$ This operation realigns the mean of the quantized distributions with their full-precision counterparts. By learning a simple bias ($\beta_q$), the framework recovers significant accuracy without adding meaningful computational overhead.

3. Precise Video Reconstruction

Similar to the extraction phase, the final reconstruction stage is critical for translating latent features back into pixel space. Q-SCI applies 8-bit shortcut connections here as well, ensuring that the high-quality features preserved throughout the network are accurately decoded into the final video frames.

Experimental Evaluation

Datasets and Setup

The framework was trained on the DAVIS2017 dataset at 480p resolution. Performance was evaluated across six standard simulation benchmarks (Kobe, Traffic, Runner, Drop, Crash, and Aerial) at $256 \times 256$ resolution with a compression ratio of 8. To validate real-world utility, the authors tested Q-SCI on data captured from a physical SCI system, including the Domino and Water Balloon scenes ($512 \times 512$ resolution).

Key Results

  • Efficiency vs. Quality: A 4-bit quantized version of EfficientSCI-S using the Q-SCI framework achieved a PSNR of 34.71 dB, remarkably close to the full-precision model's 35.51 dB. This represents a theoretical 7.8x speedup.
  • Comparison with State-of-the-Art (SOTA): The 4-bit Q-SCI model outperformed several full-precision SOTA models, such as BIRNAT and RevSCI, in both reconstruction quality and efficiency.
  • Real-World Validation: In physical hardware tests, Q-SCI produced visibly sharper edges and clearer text compared to traditional reconstruction methods, proving its robustness against real-world noise and hardware non-idealities.

Discussion and Future Work

Q-SCI demonstrates that mixed-precision shortcuts and distribution alignment are key to effective SCI quantization. The framework is model-agnostic, showing success when applied to both EfficientSCI and STFormer.

However, limitations remain. While theoretical speedups are significant, actual deployment depends on hardware support for 2-bit and 4-bit operations, which is still maturing in many AI chips. Future research will focus on Neural Architecture Search (NAS) to design "quantization-native" mobile reconstruction networks and extending the Q-SCI framework to other modalities, such as hyperspectral and depth-of-field compressive imaging.

Conclusion

Q-SCI provides a practical path for deploying high-performance video reconstruction models on edge devices. By addressing the specific distribution shifts in Transformers and protecting sensitive feature extraction layers, it bridges the gap between the computational efficiency of low-bit quantization and the high-fidelity requirements of Snapshot Compressive Imaging.

Summary updated

BibTeX
@inproceedings{cao2024simple,
  author = {Miao Cao and Lishun Wang and Huan Wang and Xin Yuan},
  title = {{A Simple Low-Bit Quantization Framework for Video Snapshot Compressive Imaging}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72943-0\_7},
}
Figure