TL;DR
Standard disentangled variational auto-encoders (VAEs) strictly force every latent dimension to be statistically independent, an assumption that frequently fails when underlying factors reside on multi-dimensional manifolds or are non-separable. This paper introduces the Partially Disentangled VAE (PDisVAE), which replaces the classic Total Correlation penalty with a flexible Partial Correlation (PC) objective to enforce group-wise independence while permitting complex within-group entanglement.
What Problem Does This Paper Address?
Unsupervised disentangled representation learning typically aims to align each single latent dimension with an independent, real-world factor of variation (e.g., azimuth, lighting, position). However, the real world rarely complies with such strict 1D independence:
- Irregular domains: For example, $(x, y)$ coordinates constrained within a non-rectangular shape (like a butterfly) are statistically entangled—marginal independence $p(x, y) = p(x)p(y)$ simply does not hold.
- Multi-dimensional concepts: Rich attributes such as RGB/HSV color or 3D object pose inherently require higher-dimensional manifolds rather than isolated scalar axes.
- Flawed surrogates: Merely encouraging marginal independence between individual pairs across groups ($z_i \perp z_j$) is mathematically insufficient to guarantee group-wise independence ($(z_1, z_2) \perp z_3$).
While prior methods like ISA-VAE attempted group disentanglement using fixed, rigid priors (such as $L^p$-nested distributions), they struggle when real latent distributions deviate from those specific parametric forms.
Methods
-
Partial Correlation (PC) Objective: PDisVAE modifies the VAE loss by replacing the dimension-wise Total Correlation (TC) penalty with a group-wise penalty: $$\mathcal{L} = \frac{1}{N}\sum_{n=1}^N \mathrm{ELBO}(x^{(n)}) - \beta \cdot \mathrm{KL}\left(q(z) \,\middle\|\, \prod_{g=1}^G q(z_g)\right)$$ When $G=1$, PDisVAE naturally collapses to a standard VAE; when $G=K$, it recovers fully disentangled models like $\beta$-TCVAE and FactorVAE.
-
Optimal Importance Sampling (IS) for Minibatches: Computing the aggregated posterior across massive datasets is intractable. The authors analyze minibatch estimators and theoretically prove (Theorem 3.1) that an Importance Sampling estimator is unbiased and possesses strictly lower variance than Minibatch Stratified Sampling (MSS) for any batch size $M > 2$.
- Graceful Rank Deficiency: When a group's assigned capacity ($H$) exceeds the intrinsic dimensionality of the true factor ($H_{\text{true}}$), PDisVAE automatically absorbs excess capacity into uninformative "dummy" Gaussian dimensions rather than distorting other factors.
Datasets
- Synthetic Entangled Groups: A 6D latent dataset split into three rank-2 entangled groups with non-linear dependencies, projected linearly into a 20D observation space with Gaussian noise.
- Synthetic Fully Disentangled Latents: A 3-factor fully independent baseline used to evaluate whether PDisVAE properly reduces to full disentanglement without over-constraining the model.
- pdSprites (Partial dSprites): A newly proposed variant of the popular dSprites benchmark. It features 805 gray-scale images ($32 \times 32$) with three ground-truth factors: $(x, y)$ positions restricted to an irregular triangular-exclusion region (forming an entangled rank-2 group), independent of object scale (rank-1).
- Mouse Dorsal Cortex Voltage Imaging: Real-world neural voltage recordings (150 frames, $50 \times 50$ pixels) tracking cortical dynamics during sensory air-puff stimulation.
- CelebA: 202,599 natural face images resized to $64 \times 64$.
Key Insights and Ideas
- Beyond the "One Latent = One Factor" Paradigm: Treating high-level semantics as multi-dimensional manifolds prevents models from artificially fracturing continuous, coupled properties (like 2D space or color gamuts) across arbitrary 1D coordinate axes.
- Penalty Beats Rigid Prior: Penalizing the empirical divergence $\mathrm{KL}(q(z) \parallel \prod q(z_g))$ allows latents within a group to take any arbitrary distribution, providing significantly greater flexibility than rigid prior-based ICA/ISA formulations.
- Diagnostic Within-Group TC: Evaluating the internal total correlation of individual groups post-training enables researchers to check whether a learned group is genuinely entangled or reducible to smaller sub-factors without needing ground-truth labels.
Key Results
- Synthetic Benchmarks: On the 6D entangled synthetic task, PDisVAE recovered true latents significantly better than baselines, achieving the highest latent alignment $R^2$ and lowest test Partial Correlation ($p < 0.0001$).
- pdSprites: PDisVAE attained a latent alignment $R^2$ of 0.54, substantially outperforming $\beta$-TCVAE (0.33) and ISA-VAE (0.23), while achieving the top Mutual Information Gap (MIG = 0.49 vs. 0.36 for $\beta$-TCVAE). It faithfully mapped the irregular boundaries of the location distribution without leaking positional info into the size factor.
- Biological Imaging: In mouse cortical data, setting $G=6$ groups (with $K=12$) accurately isolated primary motor cortex (M1) activity from somatosensory barrel cortex (S1-bf) oscillations with a reconstruction RMSE of 0.049, whereas a fully disentangled model ($K=6, G=6$) suffered a much worse RMSE of 0.059.
- CelebA Facial Images: With $G=4$ and $G=6$, PDisVAE mapped background color across 2D/3D manifolds in HSV space, avoiding the artificial 1D color trajectory constraints imposed by fully disentangled VAEs ($G=12$).
Limitations and Future Work
- Manual Group Architecture: Users must manually specify the number of groups $G$ and their internal dimensionality $H$. While the model tolerates over-parameterized ranks via dummy dimensions, choosing excessively large dimensions degrades training efficiency and latent quality.
- Future Directions: Developing dynamic mechanisms that automatically discover and adapt group counts and internal ranks during training remains an open challenge.
Summary updated