Introduction
Sparse coding is a fundamental technique in unsupervised learning, designed to represent high-dimensional data using a small number of active features. While deterministic models like LASSO are widely used, they lack the probabilistic benefits of uncertainty estimation and principled model selection. However, training probabilistic sparse coding models is traditionally difficult due to the intractable integrals associated with sparsity-inducing priors, such as the Laplace distribution. Researchers typically resort to Maximum A Posteriori (MAP) approximations, which can be numerically unstable, or Variational Inference (VI), which often requires computationally expensive sampling or the "reparameterization trick."
Methods: The Entropy-Based ELBO
This work introduces a novel Entropy-Based Evidence Lower Bound (ELBO) that provides a fully analytic path to learning sparse representations. The approach is built upon two theoretical insights:
- ELBO Convergence to Entropies: The authors prove that for standard sparse coding models, when the prior scale ($\lambda$) and observation noise ($\sigma^2$) reach their stationary points, the ELBO simplifies to a sum of three entropies: the encoder entropy, the prior entropy, and the likelihood entropy.
- Analytic Solutions: By deriving closed-form expressions for these optimal scales, the complex integral-based objective is transformed into a fully analytic function. This allows for the calculation of exact gradients with respect to model weights and encoder parameters without the need for random sampling.
Prior Annealing
To improve optimization, the authors introduce Prior Annealing. Unlike standard $\beta$-annealing in Variational Autoencoders (VAEs) which weights the entire KL-divergence, prior annealing specifically over-weights the prior entropy term $H[p(z)]$ early in training. This forces the model to explore sparse representations more aggressively, leading to faster convergence and better-localized features.
Experimental Results
The model was validated on two primary benchmarks: artificial sparse bars and natural image patches. On the artificial dataset, the model reached ELBO values near the ground truth in just 100 L-BFGS iterations.
On natural image patches (204,800 whitened 16x16 patches), the model successfully learned sharp, localized Gabor filters, which are characteristic of the receptive fields in the primary visual cortex (V1). Notably, with prior annealing, these structured filters began to emerge significantly faster than with standard training methods.
Conclusion and Future Work
The entropy-based ELBO offers a stable and efficient alternative to sampling-based variational inference for sparse coding. While currently derived for Gaussian noise and Laplace priors, the method demonstrates high qualitative excellence and speed. Future research will explore extending these analytic derivations to other distributions, such as Spike-and-Slab, and scaling the approach to high-resolution generative modeling.
Summary updated