Introduction
Deep neural networks have proven exceptionally effective at generative modeling. But why do deeper architectures perform so much better than shallow ones? This paper explores the hypothesis that deeper representations "disentangle" the underlying factors of variation in data. By doing so, they effectively "unfold" complex data manifolds, allowing Markov Chain Monte Carlo (MCMC) samplers to move—or "mix"—between different data modes much more efficiently.
The Mixing Problem in Generative Models
In generative modeling, the goal is often to sample from a complex distribution, such as the set of all possible handwritten digits or human faces. MCMC methods, like Gibbs sampling, are typically used for this task. However, these algorithms frequently suffer from a "mixing" problem: they get stuck in local regions of the data space.
In raw pixel space, high-probability data points (e.g., a perfect "3" and a perfect "5") live on thin, highly curved surfaces called manifolds. These manifolds are separated by vast "deserts" of low-probability, noisy configurations. For a sampler to transition from the "3" manifold to the "5" manifold, it must traverse these deserts. Because the probability of landing in a desert is near zero, the sampler remains trapped in one mode for extended periods.
The Unfolding Hypothesis
The authors investigate whether deep representations can bridge these low-probability deserts by reshaping the underlying geometry of the data. They propose the Unfolding Hypothesis: as data is transformed through successive layers of a deep network, the highly curved manifolds of the input space are "unfolded" and flattened.
In this flattened latent space, the distance between different modes becomes shorter, and the space between them is "filled" with higher-probability intermediate states. Furthermore, disentangling factors of variation expands the relative volume that high-probability points occupy. A random step in the latent space of a deep network is much more likely to land on a plausible configuration than a random step in raw pixel space. If a network successfully separates factors—for instance, one neuron controlling "rotation" and another "identity"—the sampler can simply "flip a bit" to jump between semantically related but visually distinct images.
Methods and Datasets
To test these hypotheses, the authors utilized two primary deep architectures:
- Deep Belief Networks (DBNs): Probabilistic models formed by stacking Restricted Boltzmann Machines (RBMs).
- Contractive Auto-Encoders (CAEs): Neural networks trained to reconstruct input while remaining insensitive to small perturbations, aiding in learning the manifold structure.
The experimental approach involved running a Markov chain in the top-level hidden representation and projecting those samples back to pixel space. They also performed linear interpolation by mapping two data points to a hidden layer and examining the points on a straight line between them. The study utilized two classic benchmarks: MNIST (handwritten digits) and the Toronto Face Database (TFD) (faces exhibiting various emotions and identities).
Key Results: Visual Evidence and Interpolation
The experiments yielded strong evidence supporting the unfolding hypothesis.
- Visual Evidence of Mixing: On the TFD dataset, a sampler running in the deeper hidden layers of a CAE moved rapidly between different facial expressions and genders. In contrast, samplers in shallow models tended to get stuck, generating very similar-looking faces over long periods.
- Interpolation Quality: When interpolating between two images in the top layer of a deep model, the intermediate images were clear and plausible (e.g., a face smoothly transitioning its expression). Conversely, interpolating in raw pixel space or shallow layers resulted in "ghosting"—blurry, unrealistic overlays of the two images.
- Quantitative Mixing: Chains sampled from deeper representations visited significantly more object classes within a fixed number of steps. On the TFD dataset, deeper models visited nearly twice as many classes as shallow ones during short MCMC runs.
- Log-Likelihood: Using Parzen window density estimation, samples generated from deeper layers achieved higher log-likelihoods, quantitatively confirming they were of higher quality and better covered the test data distribution.
Limitations and Future Work
While the paper demonstrates that trained deep models mix better, it highlights a "chicken and egg" problem in training dynamics: if good mixing is required to estimate gradients during training, but good mixing is only achieved after the model is deep and well-trained, how can the model be effectively trained from scratch?
Additionally, the use of Parzen windows for log-likelihood estimation is known to be problematic in high-dimensional spaces, though it was standard practice at the time. For future work, the authors suggest investigating "tempering" techniques—adjusting the "temperature" of the distribution—in conjunction with deep representations to further accelerate both learning and sampling.
Summary updated