[Paper Review] CSformer: Bridging Convolution and Transformer for Compressive Sensing
CSformer proposes a hybrid deep learning framework that integrates convolutional neural networks (CNNs) and vision transformers for compressive sensing image reconstruction. By using a dual-stem architecture with concurrent CNN and transformer branches, along with progressive feature fusion and window-based attention, CSformer achieves state-of-the-art performance in image reconstruction quality while maintaining efficient computation, outperforming existing methods across multiple datasets and sampling ratios.
Convolution neural networks (CNNs) have succeeded in compressive image sensing. However, due to the inductive bias of locality and weight sharing, the convolution operations demonstrate the intrinsic limitations in modeling the long-range dependency. Transformer, designed initially as a sequence-to-sequence model, excels at capturing global contexts due to the self-attention-based architectures even though it may be equipped with limited localization abilities. This paper proposes CSformer, a hybrid framework that integrates the advantages of leveraging both detailed spatial information from CNN and the global context provided by transformer for enhanced representation learning. The proposed approach is an end-to-end compressive image sensing method, composed of adaptive sampling and recovery. In the sampling module, images are measured block-by-block by the learned sampling matrix. In the reconstruction stage, the measurement is projected into dual stems. One is the CNN stem for modeling the neighborhood relationships by convolution, and the other is the transformer stem for adopting global self-attention mechanism. The dual branches structure is concurrent, and the local features and global representations are fused under different resolutions to maximize the complementary of features. Furthermore, we explore a progressive strategy and window-based transformer block to reduce the parameter and computational complexity. The experimental results demonstrate the effectiveness of the dedicated transformer-based architecture for compressive sensing, which achieves superior performance compared to state-of-the-art methods on different datasets.
Motivation & Objective
- To overcome the limitations of CNNs in modeling long-range dependencies and transformers in capturing local spatial details in compressive sensing.
- To design an end-to-end trainable framework that jointly optimizes adaptive sampling and image reconstruction.
- To leverage the complementary strengths of CNNs (local inductive bias) and transformers (global context modeling) for improved representation learning.
- To reduce computational complexity in transformer-based CS methods through a window-based attention mechanism and progressive feature resolution.
- To establish a new SOTA baseline for deep learning-based compressive sensing using a hybrid CNN-transformer architecture.
Proposed method
- The framework employs a dual-stem network: one stem uses convolutional layers to model local neighborhood relationships, while the other uses a vision transformer to capture global long-range dependencies.
- Features from both stems are fused at multiple resolutions to maximize complementary representation learning.
- A progressive feature refinement strategy increases resolution gradually, reducing memory and computational costs.
- The window-based transformer block limits self-attention computation to local windows, significantly reducing FLOPs and model size.
- The sampling module learns a block-wise adaptive sampling matrix to optimize measurement acquisition.
- End-to-end training is performed to jointly optimize the sampling and reconstruction stages.
Experimental results
Research questions
- RQ1Can a hybrid CNN-transformer architecture outperform pure CNN or transformer-based models in compressive sensing image reconstruction?
- RQ2How can local inductive bias from CNNs and global context modeling from transformers be effectively combined in a single framework?
- RQ3What is the impact of progressive feature fusion and window-based attention on computational efficiency and reconstruction quality?
- RQ4How does the dual-stem design compare to single-path transformer or CNN-only models in terms of performance and generalization?
- RQ5To what extent does the proposed adaptive sampling strategy improve reconstruction fidelity across varying sampling ratios?
Key findings
- CSformer achieves the highest PSNR across all datasets and sampling ratios, with a 1.32 dB improvement over AMP-Net and 1.39 dB over OPINE-Net at 50% sampling ratio on the Direct Average metric.
- On the Set5 dataset at 50% CS ratio, CSformer achieves 43.55 dB PSNR, outperforming AMP-Net (42.54 dB) and OPINE-Net (42.12 dB).
- Despite a higher inference time (5.0765 seconds for 256×256 image), CSformer maintains a model size of 6.71M parameters, 30% smaller than DPA-Net (9.78M) with dual-path CNNs.
- Centered kernel alignment analysis shows that early transformer features resemble deep CNN features, indicating that transformers capture long-range dependencies early, while CNNs rely on deeper stacking for such modeling.
- The fusion of features at middle and deep layers shows moderate to weak similarity, confirming that the dual-stem design effectively balances local and global representations.
- Retraining on the larger COCO dataset further improves performance, with CSformer achieving the best results on all evaluation metrics compared to retrained AMP-Net and OPINE-Net.
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.