Abstract
Latent variable models like the Variational Auto-Encoder (VAE) are commonly used to learn representations of images. However, for downstream tasks like semantic classification, the representations learned by VAE are less competitive than other non-latent variable models. This has led to some speculations that latent variable models may be fundamentally unsuitable for representation learning. In this work, we study what properties are required for good representations and how different VAE structure choices could affect the learned properties. We show that by using a decoder that prefers to learn local features, the remaining global features can be well captured by the latent, which significantly improves performance of a downstream classification task. We further apply the proposed model to semi-supervised learning tasks and demonstrate improvements in data efficiency.
Introduction
While Variational Auto-Encoders (VAEs) excel at image generation, they often struggle to learn representations that are useful for downstream semantic tasks like classification. Standard VAEs are frequently outperformed by non-latent models, such as those using self-supervised contrastive learning. This performance gap has raised questions about whether the latent variable framework is fundamentally limited for representation learning.
The authors argue that the issue lies not in the VAE framework itself, but in the inductive bias of the decoder. In a classic VAE, the decoder assumes pixels are conditionally independent given the latent code. This forces the latent code to capture every detail, from high-level semantics to fine-grained textures. This "cluttered" representation makes it difficult for simple classifiers to extract relevant semantic information.
Methodology: The Local PixelVAE (LPVAE)
To address this, the researchers propose a structural modification based on partitioning information into local features (color, texture, edges) and global features (object shape, semantic category).
The core of their approach is the Local PixelVAE (LPVAE). Instead of a standard independent decoder, they employ a Local Autoregressive Decoder—essentially a PixelCNN with a restricted "dependency horizon" ($h$). By limiting the decoder's view to a small local neighborhood, the decoder becomes specialized in predicting local pixel correlations.
Because the decoder handles these "local" details, the latent variable $z$ is no longer required to represent them. To maximize data likelihood, the model is forced to use the latent space to capture the remaining global features that the local decoder cannot perceive.
Key Insights: Minimality and the "Goldilocks" Decoder
A central finding is that a good representation should be minimal—containing only the necessary information for the task. The authors observe that as the decoder's local power increases (by increasing $h$), the mutual information between the image and the latent code decreases, indicating a more minimal representation.
A standard VAE (weak decoder) results in a cluttered latent space. Conversely, a fully powerful autoregressive decoder might lead to "latent collapse," where the model ignores the latent space entirely. The local autoregressive decoder provides a "Goldilocks" middle ground that "untangles" the information, leading to representations that perform significantly better on linear probes even if nonlinear probe performance was already high.
Key Results
The LPVAE demonstrates substantial improvements across several benchmarks:
- CIFAR-10 Linear Probe: The proposed FPVAE (Full PixelVAE) achieved a linear probe accuracy of 71.10%, vastly outperforming the standard VAE's 46.82% and exceeding other latent models like BiGAN.
- MNIST Linear Probe: Increasing the dependency horizon $h$ from 0 to 2 improved linear probe accuracy from 90.9% to 95.2%.
- Semi-Supervised Learning: On MNIST with only 100 labels, the LPVAE reached 96.41% accuracy, outperforming existing VAE-based semi-supervised methods like M2 and EQVAE.
Limitations and Future Work
The authors note that the "global-is-better" assumption is tailored for semantic classification and might not apply to domains like medical imaging, where local details are critical. Additionally, the use of PCA for measuring intrinsic dimension assumes linear subspaces; future work could explore non-linear estimation. Finally, scaling these inductive biases to high-resolution datasets like ImageNet remains an open challenge.
Summary updated