Overview
This paper transforms the Contractive Auto-Encoder (CAE)—originally designed for feature learning—into a generative model capable of producing high-quality data samples. By leveraging the Jacobian of the learned representation to define a "random walk" along a data manifold, the authors also introduce a novel unsupervised pooling technique that significantly improves classification performance by learning local invariances.
The Challenge: Generative and Invariance Gaps
In machine learning, the manifold hypothesis suggests that high-dimensional data (like images) actually lies on or near low-dimensional surfaces (manifolds). While algorithms like Principal Component Analysis (PCA) find linear manifolds, real-world data is highly non-linear and complex.
Contractive Auto-Encoders (CAEs) were developed to capture this structure by penalizing the sensitivity of the hidden representation to small input changes. However, CAEs were primarily viewed as "feature extractors" rather than generative models like Restricted Boltzmann Machines (RBMs). This paper addresses two critical gaps:
- Generative Gap: How do we sample new data points from a model that only knows how to "contract" space?
- Invariance Gap: How can we stack CAEs into deep networks such that higher layers learn to be invariant to the local variations (like small rotations or shifts) discovered by lower layers?
Methodology
The authors build upon the standard CAE objective, which minimizes reconstruction error plus a regularization term: the Frobenius norm of the Jacobian matrix of the encoder. This forces the model to be "contractive" (insensitive) in most directions, except for those necessary to reconstruct the training data (the tangent space of the manifold).
1. The Sampling Algorithm
The authors propose a stochastic process to sample from a trained CAE. Instead of picking points at random, the algorithm performs a walk:
- Perturbation: Starting at a point $x$, it moves in the "allowed" directions of variation defined by the Jacobian ($JJ^T$).
- Projection: It then uses the decoder to "project" this perturbed point back toward the high-density manifold.
The authors prove that this process forms an ergodic Markov chain that eventually settles into a stationary distribution representing the data.
2. CAE+ and Unsupervised Pooling
To create deeper, more robust networks, the authors introduce a new training criterion for the second layer ($CAE+$). It encourages the second-layer features to be invariant to the tangent directions discovered by the first layer. This acts as a form of unsupervised pooling, similar to how convolutional neural networks pool pixels to achieve translation invariance, but here the "pooling" is learned automatically from the data's geometry.
Key Insights
- The Jacobian is a Map: The Jacobian of a CAE isn't just a regularizer; it's a local coordinate system. Its leading singular vectors dictate exactly which directions "belong" to the data manifold.
- Contraction vs. Reconstruction: The power of the CAE comes from the tug-of-war between the contractive penalty (which wants to flatten everything to a point) and the reconstruction error (which forces the model to preserve information). This balance perfectly captures the manifold's tangent plane.
- Generative CAEs: Unlike RBMs, which require complex MCMC sampling, the CAE sampling process is more intuitive—it’s essentially a random walk that is constantly "corrected" by the decoder to stay on the manifold.
Experimental Results
The researchers evaluated their approach on standard benchmarks, including MNIST (handwritten digits) and the Toronto Face Database (TFD).
Visual Quality and Density: Samples generated from a 2-layer CAE on MNIST and TFD were visually comparable to, and in some cases more diverse than, those from Deep Belief Networks (DBNs).
Quantitatively, using a Parzen-window estimator, the CAE-2 achieved a higher log-likelihood on the Toronto Face Database ($2110.09$) compared to a DBN-2 ($1908.80$).
Classification Boost: The "CAE-2p" (the model with the novel pooling layer) achieved a test error of 21.78% on TFD. This significantly outperformed standard MLPs (26.17%) and basic stacked CAEs (23.73%), representing state-of-the-art performance for models not using prior domain knowledge (like hard-coded convolutions).
Limitations and Future Work
- Reconstruction Trade-off: The authors note that forcing higher layers to be invariant to lower-layer variations naturally worsens reconstruction error. There is a fundamental tension between being "invariant" (discarding detail) and "reconstructing" (preserving detail).
- Density Modeling: While the sampling process converges, the model doesn't provide an explicit, easy-to-calculate probability density function $P(x)$.
- Future Directions: The authors suggest exploring how to better link the local covariance used in their sampling process to a formal density model, potentially leading to even better generative performance.
Summary updated