[Paper Review] Gaussian-Bernoulli RBMs Without Tears
This paper introduces a novel Gibbs-Langevin sampling algorithm and a modified contrastive divergence (CD) method that enable robust, high-quality image generation from Gaussian-Bernoulli RBMs (GRBMs) using large learning rates. The approach achieves state-of-the-art FID scores on MNIST, FashionMNIST, and CelebA, demonstrating that single-layer GRBMs can generate realistic images without complex tricks or heuristics.
We revisit the challenging problem of training Gaussian-Bernoulli restricted Boltzmann machines (GRBMs), introducing two innovations. We propose a novel Gibbs-Langevin sampling algorithm that outperforms existing methods like Gibbs sampling. We propose a modified contrastive divergence (CD) algorithm so that one can generate images with GRBMs starting from noise. This enables direct comparison of GRBMs with deep generative models, improving evaluation protocols in the RBM literature. Moreover, we show that modified CD and gradient clipping are enough to robustly train GRBMs with large learning rates, thus removing the necessity of various tricks in the literature. Experiments on Gaussian Mixtures, MNIST, FashionMNIST, and CelebA show GRBMs can generate good samples, despite their single-hidden-layer architecture. Our code is released at: \url{https://github.com/lrjconan/GRBM}.
Motivation & Objective
- Address the long-standing challenge of training GRBMs effectively for image data, where previous methods suffer from instability and poor sample quality.
- Overcome the limitations of standard Gibbs sampling and contrastive divergence (CD) in GRBM training, which often lead to noisy gradients and poor convergence.
- Enable unconditional image generation from GRBMs by modifying CD to allow sampling from noise, facilitating direct comparison with deep generative models.
- Demonstrate that gradient clipping and modified CD are sufficient for stable training, eliminating reliance on ad hoc techniques like adaptive learning rates or parallel tempering.
- Show that GRBMs with a single hidden layer can generate high-quality samples across diverse datasets, challenging assumptions about their limited capacity.
Proposed method
- Propose a hybrid Gibbs-Langevin sampling algorithm that combines Gibbs and Langevin steps, improving mixing and gradient estimation over standard Gibbs sampling.
- Introduce a modified CD algorithm that enables data generation from noise by adjusting the positive phase to start from Gaussian noise, not data.
- Apply gradient clipping to stabilize training with large learning rates, removing the need for heuristic techniques like adaptive learning rates or parallel tempering.
- Learn individual variance parameters per visible unit (achieving ~1e-5 on MNIST), improving reconstruction and sample sharpness compared to fixed or shared variances.
- Use Monte Carlo estimation of log-likelihood gradients via the proposed sampling method, with energy-based modeling to capture complex data distributions.
- Implement a Metropolis adjustment in the Langevin step to improve acceptance rates, though it is found to slightly degrade performance on complex image data.
Experimental results
Research questions
- RQ1Can a hybrid Gibbs-Langevin sampling method outperform standard Gibbs sampling in training GRBMs for image generation?
- RQ2Can a modified CD algorithm enable unconditional image generation from GRBMs starting from noise, allowing fair comparison with deep generative models?
- RQ3Is gradient clipping sufficient to enable stable training of GRBMs with large learning rates, eliminating the need for other heuristic techniques?
- RQ4Can GRBMs with a single hidden layer generate high-quality images on complex datasets like CelebA, despite their architectural simplicity?
- RQ5How do learned variances and filters in GRBMs compare to those in other models, and do they reflect meaningful feature representations?
Key findings
- The Gibbs-Langevin sampling method with no Metropolis adjustment achieves the best FID score of 17.49 on MNIST, outperforming standard Gibbs (47.53) and Langevin variants.
- On FashionMNIST, GRBMs generate coherent shapes of clothing items, though they fail to capture fine textures due to the model's limited inductive bias.
- On CelebA-32 and CelebA-2K-64, GRBMs generate reasonably realistic face images, demonstrating generalization to more complex and diverse data distributions.
- Learned variances converge to approximately 1e-5 on MNIST, significantly lower than previous methods, contributing to sharper sample generation.
- The learned filters include both point-like and stroke-like patterns, indicating that GRBMs learn meaningful, structured features from data.
- The modified CD with gradient clipping enables stable training at large learning rates, making the method robust and practical without requiring specialized hyperparameter tuning.
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.