Abstract
Deep generative models like Variational Autoencoders (VAEs) excel at modeling complex, nonlinear data but often function as "black boxes," where latent representations lack clear physical or structural meaning. This paper introduces the output interpretable VAE (oi-VAE), a framework that bridges the gap between the expressive power of deep learning and the interpretability of traditional factor analysis. By utilizing group-structured architectures and sparsity-inducing priors, the oi-VAE forces specific latent dimensions to influence only specific groups of observed variables. Our results on synthetic, motion capture, and neuroimaging data demonstrate that this "disentanglement by design" not only improves interpretability but also enhances generalization and physical plausibility.
Introduction
Variational Autoencoders are widely celebrated for their ability to generate realistic high-dimensional data. However, a significant drawback is their lack of transparency: in a standard VAE, every dimension of the latent code $z$ can influence every output pixel or sensor. This entanglement makes it nearly impossible to determine which part of the internal code controls specific features, such as a limb in a motion capture model or a region in a brain scan. This lack of interpretability is a major hurdle in high-stakes fields like medicine or finance.
Traditional Latent Factor Models (LFMs) provide interpretability by assuming a few hidden factors drive observed data, but they are typically linear and fail to capture the nonlinear complexities of real-world signals. The oi-VAE addresses this by introducing a structured decoder that respects the natural groupings inherent in many datasets.
The oi-VAE Architecture
The core innovation of the oi-VAE is its departure from the monolithic decoder used in standard VAEs. Instead, the model employs three distinct components to ensure interpretability:
- Group-Specific Generators: The model uses a separate small neural network (generator) for each natural group in the data (e.g., individual joints in a body).
- The $W$ Matrix: A linear transformation matrix ($W$) is inserted between the latent code $z$ and these group generators, acting as a "switchboard" that routes latent information.
- Sparsity-Inducing Priors: To ensure a clean mapping, a group lasso penalty is applied to the columns of $W$. This encourages "column-wise sparsity," forcing most latent dimensions to have zero influence on most groups.
To achieve true machine-precision sparsity rather than just small values, the authors utilize collapsed variational inference paired with a proximal gradient descent algorithm. This ensures that the resulting model is truly sparse and interpretable.
Experimental Results
Synthetic and Motion Capture Data
The model was first validated on a "Synthetic Bars" dataset ($8 \times 8$ images), where it successfully identified which latent factors controlled specific rows. In more complex CMU Motion Capture (MoCap) experiments, the oi-VAE automatically discovered anatomical groupings. For instance, it mapped specific latent dimensions to the upper back, thorax, and lower back without prior anatomical knowledge.
Crucially, the oi-VAE solved the "Silly Walk" problem common in standard VAEs. Because its generators focus on local correlations within groups, the generated samples are much more physically realistic. Furthermore, the model showed superior generalization; on a "brisk walk" test, the oi-VAE achieved a log-likelihood of -198,663, vastly outperforming the standard VAE's -723,795.
Neuroimaging (MEG)
In Magnetoencephalography (MEG) data, which maps brain activity to 44 cortical regions, the oi-VAE successfully identified known physiological systems, such as the "dorsal attention network" and the "default mode network." This demonstrates the model's utility in scientific discovery, where identifying active latent networks in specific brain areas is critical.
Conclusion
The oi-VAE demonstrates that interpretability and performance are not mutually exclusive. By forcing deep models to respect the natural boundaries of the physical world through sparsity and group-structured architectures, we can create generative models that are both powerful and understandable. Future work may explore nonlinear selection processes and the application of these principles to other architectures like Generative Adversarial Networks (GANs).
Summary updated