Deep learning sparse ternary projections for compressed sensing of images

Duc Minh Nguyen, Evaggelia Tsiligianni, Nikos Deligiannis

Abstract

Compressed sensing (CS) traditionally relies on dense, continuous projection matrices that are computationally expensive and difficult to implement in hardware. This paper introduces a deep learning framework that jointly learns a highly sparse, ternary {-1, 0, +1} projection matrix alongside a non-linear neural network reconstructor. By employing a specialized training strategy involving top-K selection and binarization, the resulting hardware-friendly sensing mechanism achieves superior image reconstruction quality. Remarkably, the proposed method outperforms state-of-the-art dense CS methods even when 95% of the sensing matrix is zero, suggesting that extreme sparsity can serve as an effective regularizer.

Introduction

Compressed Sensing (CS) allows for the capture of high-dimensional signals using fewer measurements than the Shannon-Nyquist theorem suggests, provided the signal is sparse. However, the practical application of CS in physical hardware—such as edge devices or camera sensors—is often hindered by the memory and computational requirements of standard random Gaussian or Bernoulli projection matrices. These dense, continuous-valued matrices require massive floating-point operations.

To bridge the gap between theory and hardware, there is a critical need for projection matrices that are both sparse (reducing memory and operations) and ternary (replacing multiplications with simple additions and subtractions). Historically, manually designing such matrices has led to significant degradation in reconstruction quality. This work addresses this challenge through an end-to-end deep learning approach.

Methods

The authors frame the sensing and reconstruction process as a unified deep learning problem consisting of two primary modules: a Sensing Module and a Reconstruction Module.

The proposed network architecture, featuring a linear sensing layer followed by a non-linear deep reconstruction network.

The Architecture

  1. Sensing Module: A single linear layer without bias or activation functions, representing the physical projection matrix.
  2. Reconstruction Module: A deep network utilizing a scaling layer, fully connected layers, ReLUs, and batch normalization to reconstruct the original image from compressed measurements.

Training Strategy

To achieve a sparse ternary matrix without losing information, the authors modify the forward pass during training:

  • Sparsification: A top_K_select function retains only the largest absolute weights, forcing others to zero.
  • Binarization: Non-zero weights are converted to their signs (-1 or +1).
  • Scaling: A learned scaling layer compensates for the information loss inherent in quantization.
  • Optimization: During backpropagation, gradients from discrete weights update a "shadow" set of high-precision continuous weights, ensuring stable convergence.

Key Results

The proposed method was benchmarked against the state-of-the-art O-NL-SDA algorithm and traditional Basis Pursuit (BP) optimization.

Comparison of PSNR (dB) across different test images at a 25% sensing rate and 5% matrix sparsity.

At a sensing rate of 25% and with a projection matrix containing only 5% non-zero entries, the proposed method achieved a mean PSNR of 27.61 dB, significantly outperforming O-NL-SDA (26.96 dB) and BP (21.93 dB). Further testing on the LabelMe dataset showed even higher gains, with the proposed method reaching 33.15 dB.

Discussion and Insights

A counterintuitive finding of this research is that extreme sparsity acts as a form of regularization. The authors observed that making the matrix denser (e.g., 10% to 100% non-zero entries) actually degraded performance, likely due to overfitting on training patches. The system proved robust even under extreme stress tests, maintaining acceptable performance with as few as 0.1% non-zero entries in the projection matrix.

Conclusion

By jointly optimizing the physical sensing hardware and the software reconstruction algorithm, this work demonstrates that hardware-friendly constraints do not have to come at the cost of performance. The resulting sparse ternary matrices are ideal candidates for low-power CMOS image sensors and edge computing applications, providing a path toward efficient, real-time compressed sensing in the field.

Summary updated

BibTeX
@inproceedings{nguyen2017deep,
  author = {Duc Minh Nguyen and Evaggelia Tsiligianni and Nikos Deligiannis},
  title = {{Deep learning sparse ternary projections for compressed sensing of images}},
  booktitle = {GlobalSIP},
  year = {2017},
  doi = {10.1109/globalsip.2017.8309136},
}
Figure