[Paper Review] Spike-and-Slab Sparse Coding for Unsupervised Feature Discovery
This paper proposes Spike-and-Slab Sparse Coding (S3C), a hybrid generative model combining sparse coding and spike-and-slab RBMs to enable unsupervised feature discovery. It uses structured variational inference for scalable GPU training, achieving 78.3% accuracy on CIFAR-10—comparable to sparse coding and superior to ssRBM—while enabling effective semi-supervised learning and winning a transfer learning challenge.
We consider the problem of using a factor model we call {\em spike-and-slab sparse coding} (S3C) to learn features for a classification task. The S3C model resembles both the spike-and-slab RBM and sparse coding. Since exact inference in this model is intractable, we derive a structured variational inference procedure and employ a variational EM training algorithm. Prior work on approximate inference for this model has not prioritized the ability to exploit parallel architectures and scale to enormous problem sizes. We present an inference procedure appropriate for use with GPUs which allows us to dramatically increase both the training set size and the amount of latent factors. We demonstrate that this approach improves upon the supervised learning capabilities of both sparse coding and the ssRBM on the CIFAR-10 dataset. We evaluate our approach's potential for semi-supervised learning on subsets of CIFAR-10. We demonstrate state-of-the art self-taught learning performance on the STL-10 dataset and use our method to win the NIPS 2011 Workshop on Challenges In Learning Hierarchical Models' Transfer Learning Challenge.
Motivation & Objective
- To develop a scalable, differentiable feature discovery method that combines the strengths of sparse coding and spike-and-slab RBMs.
- To address the limitation of sparse coding, where sparsity and magnitude regularization are conflated, by decoupling them via binary spike and continuous slab variables.
- To enable integration into deep generative models like deep Boltzmann machines by using variational inference instead of MAP inference.
- To demonstrate effectiveness in supervised, semi-supervised, and self-taught learning settings on benchmark datasets.
- To achieve state-of-the-art performance in a transfer learning challenge using only unlabeled data for feature learning.
Proposed method
- S3C models data using binary spike variables $h_i$ and continuous slab variables $s_i$, where $h_i$ gates the activation of $s_i$, forming a joint hidden unit.
- The model uses a spike-and-slab prior: $p(h_i=1) = \sigma(b_i)$ and $p(s_i|h_i) = \mathcal{N}(s_i | h_i\mu_i, \alpha_{ii}^{-1})$, enabling independent control of sparsity and activation magnitude.
- Visible data $v_d$ is generated via $p(v_d|s,h) = \mathcal{N}(v_d | W_{d:}(h \circ s), \beta_{dd}^{-1})$, with $W$ constrained to unit-norm columns to avoid overparameterization.
- A structured variational inference procedure approximates the true posterior $p(h,s|v)$ using a mean-field approximation, enabling efficient GPU-accelerated training.
- The variational EM algorithm alternates between updating the variational parameters $\hat{h}, \hat{s}$ and optimizing model parameters $W, \mu, \alpha, \beta, b$.
- The inference step uses a closed-form update for $\hat{h}_i$ based on the expected log-posterior, with damping to improve convergence.
Experimental results
Research questions
- RQ1Can a hybrid model combining spike-and-slab priors with sparse coding improve unsupervised feature discovery compared to standard sparse coding or ssRBM?
- RQ2Does decoupling sparsity control (via $b_i$) from activation magnitude control (via $\mu_i, \alpha_i$) lead to better generalization and more interpretable features?
- RQ3Can structured variational inference enable scalable training of S3C on large-scale datasets like CIFAR-10 using GPU acceleration?
- RQ4How does S3C perform in semi-supervised learning when only a small fraction of labeled data is available?
- RQ5Can S3C features be effectively transferred to new tasks, as demonstrated in a real-world transfer learning challenge?
Key findings
- S3C achieved a test accuracy of 78.3% on CIFAR-10 using a 3×3 pooling grid, matching the performance of sparse coding with natural encoding and outperforming ssRBM.
- With a 2×2 pooling grid, S3C achieved 76.2% accuracy, demonstrating robustness even with fewer features.
- S3C outperformed the ssRBM, which required 4,096 basis vectors and a 3×3 grid to achieve only 76.7% accuracy.
- In semi-supervised learning, S3C showed improved generalization on medium-sized labeled subsets, indicating flexible regularization.
- S3C won the NIPS 2011 Transfer Learning Challenge with 48.6% test accuracy, using only unlabeled data for feature learning and a small labeled set for fine-tuning.
- The structured variational inference method enabled scalable training on large datasets and high-dimensional latent spaces, making S3C suitable for deep generative models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.