Abstract
Hierarchical Sparse Coding (HSC) is a powerful model to efficiently represent multi-dimensional, structured data such as images. The simplest solution to solve this computationally hard problem is to decompose it into independent layer-wise subproblems. However, neuroscientific evidence would suggest inter-connecting these subproblems as in the Predictive Coding (PC) theory, which adds top-down connections between consecutive layers. In this study, a new model called 2-Layers Sparse Predictive Coding (2L-SPC) is introduced to assess the impact of this inter-layer feedback connection. In particular, the 2L-SPC is compared with a Hierarchical Lasso (Hi-La) network made out of a sequence of independent Lasso layers. The 2L-SPC and the 2-layers Hi-La networks are trained on 4 different databases and with different sparsity parameters on each layer. First, we show that the overall prediction error generated by 2L-SPC is lower thanks to the feedback mechanism as it transfers prediction error between layers. Second, we demonstrate that the inference stage of the 2L-SPC is faster to converge than for the Hi-La model. Third, we show that the 2L-SPC also accelerates the learning process. Finally, the qualitative analysis of both models dictionaries, supported by their activation probability, show that the 2L-SPC features are more generic and informative.
Introduction
Sparse Coding (SC) aims to represent complex data using a minimal number of "atoms" from a learned dictionary. In hierarchical settings (HSC), layers are stacked to capture increasingly abstract features, moving from simple edges to complex shapes. While standard engineering approaches treat these layers as independent, bottom-up processes, biological visual systems are characterized by dense feedback loops. This research investigates whether incorporating top-down feedback—inspired by the Predictive Coding (PC) theory of the brain—improves the computational efficiency and representational quality of hierarchical models.
Methodology: 2-Layers Sparse Predictive Coding
The study compares two primary frameworks:
- Hierarchical Lasso (Hi-La): A standard baseline where each layer independently minimizes the reconstruction error of the layer below it.
- 2-Layers Sparse Predictive Coding (2L-SPC): A novel architecture where the loss function of a lower layer includes a top-down prediction error from the layer above.
As shown in Figure 1, the 2L-SPC model introduces inter-layer feedback connections (indicated by the blue arrow). This mechanism forces a layer to not only represent its input but also to align with the predictions of the higher-level layer. Both models utilize ISTA/FISTA algorithms for inference and Stochastic Gradient Descent for dictionary learning. Testing was conducted across four diverse datasets: STL-10 (general objects), CFD (faces), MNIST (digits), and AT&T (faces under varying conditions).
Key Results and Insights
The inclusion of top-down connections yielded significant improvements across several metrics:
1. Error Distribution and Reduction
The 2L-SPC model consistently achieved lower total prediction error than the Hi-La model. The feedback mechanism allows the network to "distribute" prediction difficulty across layers; rather than the first layer attempting to resolve all input complexity, the higher layer assists by providing a predictive context.
2. Computational Efficiency
Counter-intuitively, the added constraint of being "predictable" from above accelerated the inference process. The feedback acts as a guide, narrowing the search space for optimal sparse codes and allowing the system to reach stability in fewer iterations. Similarly, the 2L-SPC model demonstrated accelerated learning, reaching minimal cost in fewer training epochs.
3. Feature Quality
Qualitative analysis of the learned dictionaries revealed that 2L-SPC features are more "generic" and "informative." While Hi-La often produced fragmented features, 2L-SPC learned receptive fields that covered more of the input image and captured abstract concepts, such as specific facial curvatures. This suggests that top-down signals act as a regularizer, preventing lower layers from overfitting to local noise.
Conclusion
The 2L-SPC framework demonstrates that top-down feedback is not just a biological curiosity but a powerful computational tool for hierarchical modeling. By allowing layers to "talk back," the network achieves lower error, faster convergence, and superior feature representation. Future work will explore scaling these benefits to deeper architectures and applying the model to practical tasks such as image denoising and super-resolution.
Summary updated