Abstract
Linear encoding of sparse vectors is widely popular, but is commonly data-independent -- missing any possible extra (but a priori unknown) structure beyond sparsity. In this paper we present a new method to learn linear encoders that adapt to data, while still performing well with the widely used $\ell_1$ decoder. The convex $\ell_1$ decoder prevents gradient propagation as needed in standard gradient-based training. Our method is based on the insight that unrolling the convex decoder into $T$ projected subgradient steps can address this issue. Our method can be seen as a data-driven way to learn a compressed sensing measurement matrix. We compare the empirical performance of 10 algorithms over 6 sparse datasets (3 synthetic and 3 real). Our experiments show that there is indeed additional structure beyond sparsity in the real datasets; our method is able to discover it and exploit it to create excellent reconstructions with fewer measurements (by a factor of 1.1-3x) compared to the previous state-of-the-art methods. We illustrate an application of our method in learning label embeddings for extreme multi-label classification, and empirically show that our method is able to match or outperform the precision scores of SLEEC, which is one of the state-of-the-art embedding-based approaches.
Introduction
Compressed sensing (CS) traditionally relies on random measurement matrices, such as Gaussian matrices, to project high-dimensional sparse signals into lower-dimensional spaces. While these matrices offer strong theoretical guarantees, they are data-independent and fail to exploit inherent structures present in real-world data, such as correlations in text or categorical features. Learning a data-driven measurement matrix could significantly improve compression efficiency. However, the standard recovery method—$\ell_1$-minimization—is a convex optimization problem that does not naturally support backpropagation, posing a challenge for standard deep learning frameworks.
The $\ell_1$-AE Architecture
To overcome the non-differentiability of the $\ell_1$ solver, we introduce the $\ell_1$-AE, a novel autoencoder architecture. The encoder performs a linear projection $y = Ax$, where $A$ is the measurement matrix to be learned. The decoder "unrolls" the iterative projected subgradient method into a neural network with $T$ layers.
A key innovation is the simplification of the subgradient step. While the standard method requires a computationally expensive pseudo-inverse, the authors prove that by restricting the search to matrices with singular values of 1, the pseudo-inverse can be replaced by the matrix transpose $A^T$. This makes the network efficient to train via backpropagation. Crucially, after training, the unrolled decoder is discarded in favor of an exact off-the-shelf $\ell_1$-minimization solver, which achieves near-perfect reconstruction (errors $\approx 10^{-15}$) compared to the neural network's approximation.
Experimental Results
We evaluated $\ell_1$-AE against 10 algorithms across six datasets, including synthetic block-sparse data and real-world datasets like Amazon employee access and Wiki10-31K.
Our results demonstrate that the learned matrix $A$ significantly outperforms traditional Gaussian matrices and other baselines like PCA and standard autoencoders. Specifically, $\ell_1$-AE achieves perfect recovery using 1.1x to 3x fewer measurements than random matrices. Furthermore, the learned matrix is robust; it improves the performance of other decoding algorithms, such as model-based CoSaMP, even though it was not explicitly trained for them.
In the context of Extreme Multi-label Learning (XML), our method was used to compress large label spaces. On benchmarks like EURLex-4K and Wiki10-31K, $\ell_1$-AE matched or exceeded the precision of SLEEC, a leading embedding-based approach.
Discussion and Conclusion
The $\ell_1$-AE successfully bridges the gap between convex optimization and deep learning for sparse recovery. While currently optimized for non-negative sparse signals—common in text and categorical data—future work will explore extensions to general signals and stricter enforcement of matrix constraints during training. The ability to discover and exploit hidden data structures makes $\ell_1$-AE a powerful tool for efficient data representation and recovery.
Summary updated