Abstract
We introduce the JL1-VAE, a novel approach to unsupervised representation learning that encourages "local disentanglement" by applying an $L_1$ penalty to the generator's Jacobian matrix. Standard Variational Auto-Encoders (VAEs) often suffer from rotational identifiability issues, where latent axes do not align with true generative factors. By incentivizing sparsity in the Jacobian, our model forces latent variables to correspond to localized changes in the image space. We demonstrate that JL1-VAE effectively resolves local rotational ambiguities and outperforms state-of-the-art baselines on both synthetic and natural image datasets.
Introduction
In unsupervised representation learning, the primary objective is to discover the underlying "factors of variation"—independent parameters like position, color, or rotation—that generate raw data. While VAEs are a popular framework for this task, they face a significant model identification problem. The latent space is frequently rotationally invariant, meaning the model may identify the correct subspace but fail to align its axes with individual generative factors. Consequently, a single latent variable often controls a mixture of real-world factors.
Existing solutions like the $\beta$-VAE attempt to align latent axes with Principal Component Analysis (PCA) directions. However, these methods struggle when multiple factors possess similar singular values. Furthermore, the pursuit of global disentanglement (where one latent variable maps to one factor across the entire dataset) is often mathematically intractable without specific inductive biases. This paper proposes a shift toward local disentanglement, ensuring that latent variables represent independent sources of change within local neighborhoods of the latent space.
Methodology: Jacobian $L_1$ Regularization
The core innovation is the introduction of Jacobian $L_1$ Regularization. The Jacobian matrix ($J_g$) of the generator function captures how output pixels respond to infinitesimal changes in latent variables. By adding an $L_1$ penalty to this matrix during training, the model is incentivized toward sparsity.
Sparsity in the Jacobian provides two critical benefits:
- Localization: A sparse Jacobian implies that a change in one latent variable affects only a small subset of pixels. This naturally associates latent variables with localized objects or parts.
- Symmetry Breaking: Unlike the rotationally invariant $L_2$ norm, the $L_1$ norm is sensitive to orientation, preferring solutions where changes are aligned with the coordinate axes.
The JL1-VAE objective function augments the standard $\beta$-VAE loss with a term minimizing the $L_1$ norm of the Jacobian, which is estimated via finite differences during the forward pass.
Experimental Setup
We evaluated the JL1-VAE across three distinct datasets designed to test its ability to isolate independent agents and localized features:
- Natural Image Patches: $16 \times 16$ grayscale crops used to visualize the "receptive fields" of latent variables.
- Three-Dots Dataset: A synthetic dataset of $64 \times 64$ images containing three identical, overlapping black dots. This serves as a stress test for symmetry and rotational ambiguity.
- MPI3D-Multi: A modified robotic arm dataset where four independent images are tiled into a $2 \times 2$ grid to test the separation of localized agents.
Results and Discussion
Visualizing the Jacobian columns reveals a stark difference between models. While PCA and $\beta$-VAE produce global, blurry changes across the entire image, the JL1-VAE generates sharp, localized "receptive fields" that resemble the filters found in the human visual cortex.
In the Three-Dots and MPI3D-Multi datasets, JL1-VAE successfully isolated the movement of individual objects into separate latent dimensions. Quantitatively, the model significantly outperformed six state-of-the-art baselines (including FactorVAE and $\beta$-TCVAE) on "Local MIG" (Mutual Information Gap) and "Local Modularity" metrics ($p < 0.001$). While JL1-VAE performs similarly to $\beta$-VAE on global metrics, its primary strength lies in resolving the local rotational ambiguities that typically plague unsupervised models.
Conclusion
JL1-VAE introduces a simple yet powerful inductive bias for representation learning. By penalizing the $L_1$ norm of the generator's Jacobian, we achieve superior local disentanglement and more interpretable latent features. Future work will focus on reducing the computational complexity of Jacobian estimation and exploring the application of this regularization to multimodal robotic systems.
Summary updated