Abstract
Restricted Boltzmann Machines (RBMs) are traditionally utilized as unsupervised feature extractors or for pre-training deep architectures. This paper explores the potential of the Classification RBM (ClassRBM) as a standalone, self-contained classifier. By integrating generative and discriminative training objectives into a hybrid framework, the ClassRBM achieves competitive performance against standard neural networks and Support Vector Machines (SVMs). We demonstrate that generative learning acts as a powerful regularizer, particularly in semi-supervised and high-dimensional settings.
Introduction
During the early 2010s, RBMs were central to the resurgence of deep learning, yet their application was largely restricted to a two-stage pipeline: unsupervised feature learning followed by supervised classification using external models like SVMs. This approach is often suboptimal as it requires separate hyperparameter tuning and may discard task-relevant information during the unsupervised phase. This research investigates whether a "black box" classifier based entirely on the RBM framework can match or exceed state-of-the-art performance by modeling the joint distribution of inputs and labels directly.
Methods
The Classification RBM (ClassRBM) models the joint distribution $p(y, \mathbf{x})$ of labels $y$ and inputs $\mathbf{x}$ through a shared hidden layer $\mathbf{h}$.
Hybrid Training Objective
The primary innovation is a hybrid objective function that combines discriminative and generative components: $$\mathcal{L}_{hybrid} = \mathcal{L}_{disc} + \alpha \mathcal{L}_{gen}$$ Here, $\mathcal{L}_{disc}$ maximizes the conditional probability of labels given inputs, while $\mathcal{L}_{gen}$ maximizes the joint probability. The generative term serves as a data-dependent regularizer, ensuring the model captures the underlying structure of the input data.
Sparsity and Scalability
To improve interpretability and robustness, a Sparse Hybrid ClassRBM was developed by applying a sparsity penalty to hidden biases. For high-dimensional data, such as text, the authors introduced a "computation-aware" gradient estimator that focuses on subsets of input variables, making generative gradients tractable for large vocabularies. Furthermore, the model was extended to multitask and multilabel scenarios using approximate inference techniques like Mean Field (MF) and Loopy Belief Propagation (LBP).
Experimental Results
The ClassRBM was evaluated across several benchmarks, including MNIST, MNIST-BI (background images), 20 Newsgroups, and various music tagging datasets.
Performance Benchmarks
- MNIST: The Sparse Hybrid ClassRBM achieved a 1.16% error rate, outperforming SVMs (1.40%) and standard feed-forward networks (1.93%).
- 20 Newsgroups: In high-dimensional text classification, the Hybrid ClassRBM reached 23.8% error, significantly better than SVMs (32.8%).
- Semi-Supervised Learning: On MNIST-BI, incorporating unlabeled data via the generative objective reduced the error rate from 42.4% to 37.5%.
Key Insights
The experiments revealed that generative learning provides essential regularization, preventing overfitting when labeled data is scarce. Sparsity was found to be particularly effective for image data, forcing hidden units to act as localized feature detectors. Notably, simple Contrastive Divergence (CD-1) proved sufficient for estimating generative gradients in a classification context, simplifying the training process.
Conclusion
The Classification RBM proves to be a versatile and powerful standalone classifier. Its ability to naturally handle semi-supervised learning and multitask objectives through a unified generative-discriminative framework offers significant advantages over traditional discriminative models. While inference in multilabel settings remains computationally intensive, the ClassRBM represents a robust alternative to standard neural architectures, especially in data-constrained or high-dimensional environments.
Summary updated