Abstract
Neural Bayes is a novel parameterization method that allows neural networks to express complex Bayesian statistical quantities—like posterior and conditional distributions—in closed form. By leveraging this, the authors develop powerful unsupervised learning objectives for maximizing mutual information and labeling disjoint manifolds, outperforming several established baselines in representation learning.
Introduction
In unsupervised representation learning, the objective is to learn meaningful features from data without explicit labels. Common approaches include Mutual Information Maximization (MIM) and Clustering. However, calculating statistical quantities involving latent variables is notoriously difficult, often requiring "variational bounds" or restrictive distributional assumptions. Furthermore, clustering high-dimensional data on "disjoint manifolds" (separate, non-overlapping surfaces) remains a significant challenge.
Methods
The authors introduce Neural Bayes, a method to parameterize discrete latent variable models.
The Parameterization
Given an input $x$ and a discrete latent variable $z$, the authors demonstrate that a neural network $L(x)$ with a softmax output can express the posterior $p(z|x)$, the conditional $p(x|z)$, and the marginal $p(z)$ in closed form. This approach does not require assuming a specific distribution shape for the data.
Unsupervised Objectives
- MIM Objective: An objective to maximize the mutual information between $x$ and $z$. Theorem 1 proves that gradients for this objective can be simplified, allowing training with standard mini-batches despite the objective requiring global dataset expectations.
- Disjoint Manifold Labeling (DML): An objective based on Jensen-Shannon divergence to partition data by assigning different labels to samples from different disjoint manifolds.
Regularization
Two specific regularization terms are crucial for practical success:
- Uniform Prior Regularization ($\alpha$): Prevents "dead filters" by encouraging equal use of latent states.
- Jacobian Regularization ($\beta$): Enforces network smoothness, which is theoretically necessary to correctly identify separate manifolds.
Experimental Results
The paper evaluates Neural Bayes on MNIST, CIFAR-10, CIFAR-100, and STL-10.
State-of-the-Art Features
On CIFAR-10, Neural Bayes-MIM achieved a classification accuracy of 82.81%, outperforming Deep Infomax (80.95%). On CIFAR-100, it reached 55.47%, significantly beating Deep Infomax's 49.74%.
Manifold Labeling
On MNIST, the DML approach labeled the 10 digit classes with 99.22% accuracy purely by treating them as disjoint manifolds—achieving nearly perfect unsupervised clustering.
Sensitivity and Ablation
Ablation studies showed that regularization is essential. Without the uniform prior, filters stop responding; without smoothness, the model fails to generalize. Figure 5 shows the sensitivity of test accuracy to the hyperparameter $\alpha$ and the impact of feature scaling.
Discussion and Limitations
While powerful, Neural Bayes has limitations:
- Batch Size Sensitivity: High-fidelity gradients generally require large batch sizes (500+).
- Discrete Latents: The current framework is limited to discrete latent variables ($z$).
- Hyper-parameter Tuning: Performance is sensitive to the weights $\alpha$ and $\beta$, requiring careful tuning for new datasets.
Conclusion
Neural Bayes provides a flexible bridge between deep learning and Bayesian inference. By enabling closed-form computation of statistical quantities, it allows for more rigorous and effective unsupervised representation learning.
Summary updated