Abstract
Sparse coding is a fundamental technique in signal processing, yet solving structured sparsity problems typically requires slow, iterative optimization. This paper proposes a framework to "unroll" these iterative algorithms into fast, feed-forward neural networks. By mapping optimization steps to network layers and training them to minimize the sparse coding objective directly, the authors achieve real-time performance with minimal accuracy loss across image and audio processing tasks.
Introduction
Sparse coding represents signals using a small number of atoms from a dictionary. In many real-world scenarios, these sparse coefficients exhibit inherent structures, such as groups or hierarchies (e.g., frequency components in a speaker's voice). While algorithms like HiLasso effectively solve these structured problems, their iterative nature makes them too slow for real-time applications. This work addresses the need for fast "regressors" that can approximate these complex solutions in a fixed, minimal amount of time.
The BCoFB Network Architecture
The core contribution is the Block-Coordinate Forward-Backward (BCoFB) network. This architecture is derived by unrolling the iterations of a block-coordinate optimization algorithm into the layers of a neural network.
Each layer in the network performs a linear operation followed by a non-linear proximal operator tailored to the specific sparsity structure. Unlike standard neural networks, the weights and non-linearities are initialized based on the dictionary and the known sparsity constraints, providing a strong inductive bias. Furthermore, the authors propose training the network to minimize the original sparse coding cost function (reconstruction error plus sparsity penalty) directly, rather than simply mimicking a slow optimizer.
Experimental Results
The framework was evaluated on MNIST, Brodatz textures, and audio speaker identification tasks.
Efficiency and Convergence
A key advantage of this approach is the ability to achieve high accuracy with very few layers. As shown in the performance analysis, the L2 error decreases rapidly as the number of layers increases, quickly approaching or surpassing the performance levels of traditional exact solvers within a few iterations.
Performance Benchmarks
- Speed: The neural network implementation is several orders of magnitude faster than state-of-the-art C++ solvers (like SPAMS). It can process vectors in approximately 3.6 microseconds each.
- Accuracy: On the MNIST dataset, the "NN Lasso" achieved a 2.51% error rate, compared to 1.47% for the exact solver. In speaker identification, a structured NN with only two layers reached a 3.53% error rate, closely approaching the exact solver's 2.35% while maintaining real-time speeds.
Conclusion
This work demonstrates that the structure of an optimization algorithm can serve as an effective template for neural network design. By incorporating domain knowledge about sparsity structures into the architecture, these networks can learn to solve complex modeling problems efficiently. This "unrolling" principle provides a path forward for other iterative problems such as Robust PCA and Non-negative Matrix Factorization.
Summary updated