Learning a Compressed Sensing Measurement Matrix via Gradient Unrolling

Shanshan Wu, Alex Dimakis, Sujay Sanghavi, Felix X. Yu, Daniel Niels Holtmann-Rice, Dmitry Storcheus, Afshin Rostamizadeh, Sanjiv Kumar

Compressed Sensing (CS) is a powerful mathematical framework that allows us to reconstruct high-dimensional sparse signals from a small number of linear measurements. Traditionally, researchers use "data-blind" random matrices (like Gaussian or Fourier matrices) to perform this encoding. While these matrices work well theoretically for any sparse signal, they fail to exploit the additional, often unknown, structures present in real-world data—such as correlations between specific words in a text document or gene expressions in biology.

The primary challenge in learning a better, data-specific measurement matrix lies in the decoding step. To recover the signal, one typically solves an $\ell_1$-minimization problem. Because this is an iterative optimization process rather than a simple differentiable function, it is notoriously difficult to "backpropagate" through it to update the encoding matrix.

This paper asks a fundamental question: Can we design an end-to-end differentiable system that learns the best possible measurement matrix for a specific dataset?

The $\ell_1$-AE Architecture: Optimization as a Layer

To solve this, the authors propose the $\ell_1$-AE (L1-AutoEncoder), a novel architecture consisting of a linear encoder and a non-linear, "unrolled" decoder.

Architecture of the L1-AE model

The methodology breaks down into several key innovations:

  1. Linear Encoder: The input signal $x$ is compressed into a lower-dimensional measurement $y = Ax$, where $A$ is the measurement matrix the network aims to learn.
  2. Gradient Unrolling: Instead of relying on a black-box optimization solver to decode $y$ back into $x$, the authors "unroll" the iterations of a projected subgradient descent algorithm into $T$ discrete neural network layers. Each layer performs one step of the optimization, making the entire process differentiable.
  3. The Transpose Trick: Standard projection steps in optimization require computing a Moore-Penrose pseudoinverse ($A^\dagger$), which is computationally expensive and unstable during neural network training. The authors prove that if the matrix $A$ is constrained to have singular values of 1, the pseudoinverse can be safely replaced by a simple transpose ($A^T$). This drastically simplifies the network architecture.
  4. End-to-End Training: With the unrolled solver acting as a sequence of differentiable operations (matrix multiplications, additions, and sign functions), the entire system can be trained using standard Stochastic Gradient Descent (SGD) to minimize the reconstruction error.

Key Results and Performance

The researchers evaluated $\ell_1$-AE across six diverse datasets, including synthetic data with block and power-law sparsity, Amazon Employee Access (categorical data), Wiki10-31K (extreme multi-label data), and RCV1 (text data with TF-IDF features).

Performance comparison across various datasets

The results demonstrate significant improvements over traditional methods:

  • Measurement Efficiency: On real-world datasets like the Amazon employee data, the learned matrices achieved perfect signal recovery using 1.1x to 3x fewer measurements than standard Gaussian random matrices.
  • Outperforming Baselines: $\ell_1$-AE consistently outperformed other learning-based approaches, including standard Principal Component Analysis (PCA) and simple feed-forward autoencoders, in both recovery rate and Test RMSE.
  • Extreme Multi-label Learning (XML): When applied to predicting labels from massive sets, the method matched or outperformed state-of-the-art embedding-based algorithms like SLEEC in precision scores (e.g., achieving a P@1 of 0.8062 on the EURLex-4K dataset).
  • Generalization to Exact Solvers: Remarkably, a measurement matrix $A$ learned using a "shallow" 10-step unrolled decoder still performs exceptionally well when paired with a perfect, industrial-grade optimization solver (like Gurobi) at test time.

Limitations and Future Directions

While highly effective, the current implementation is optimized specifically for non-negative sparse vectors. Though this covers many practical use cases like text and categorical data, extending the framework to general signals remains an area for future work.

Additionally, training the unrolled network on extremely high-dimensional data (e.g., $d > 100,000$) can be memory-intensive, even though the resulting measurement matrix is extremely fast to apply post-training. Finally, the authors noted that strictly enforcing the "singular values = 1" constraint during training actually hindered performance, leaving the search for a better regularization method during SGD as an open research question.

Summary updated

BibTeX
@inproceedings{wu2019learning,
  author = {Shanshan Wu and Alex Dimakis and Sujay Sanghavi and Felix X. Yu and Daniel Niels Holtmann-Rice and Dmitry Storcheus and Afshin Rostamizadeh and Sanjiv Kumar},
  title = {{Learning a Compressed Sensing Measurement Matrix via Gradient Unrolling}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=S1NI_2bO-H},
}
Figure