[Paper Review] Jigsaw-VAE: Towards Balancing Features in Variational Autoencoders
This paper proposes Jigsaw-VAE, a variational autoencoder that mitigates feature imbalance in latent representations by applying stochastic spatial permutation and a mixture prior, enabling balanced learning of both dominant and rare features. The method improves performance on downstream clustering tasks under distributional shift and enhances generation diversity and realism compared to baseline VAEs.
The latent variables learned by VAEs have seen considerable interest as an unsupervised way of extracting features, which can then be used for downstream tasks. There is a growing interest in the question of whether features learned on one environment will generalize across different environments. We demonstrate here that VAE latent variables often focus on some factors of variation at the expense of others - in this case we refer to the features as ``imbalanced''. Feature imbalance leads to poor generalization when the latent variables are used in an environment where the presence of features changes. Similarly, latent variables trained with imbalanced features induce the VAE to generate less diverse (i.e. biased towards dominant features) samples. To address this, we propose a regularization scheme for VAEs, which we show substantially addresses the feature imbalance problem. We also introduce a simple metric to measure the balance of features in generated images.
Motivation & Objective
- To address the problem of feature imbalance in VAEs, where models overfit to dominant features like color at the expense of rarer features like shape.
- To improve the generalization of VAE-based representations in downstream tasks such as clustering when test data distribution shifts from training.
- To develop a method that encourages balanced learning of multiple factors of variation (e.g., color and structure) in the latent space.
- To introduce a new metric, Feature Presence Metric (FPM), to quantitatively evaluate how well generated samples retain training data features.
- To demonstrate that permutation-based regularization can effectively reduce representation bias in VAEs without compromising reconstruction or sampling quality.
Proposed method
- Introduces a stochastic jigsaw permutation layer that applies random spatial tiling and shuffling to input images before encoding, forcing the VAE to learn local structural relationships.
- Employs a mixture prior over the latent space to smooth conflicts between the likelihood and KL divergence terms, improving posterior alignment.
- Applies the permutation operation independently per sample, ensuring each forward pass sees a different arrangement of image patches.
- Uses a modified VAE objective with the permutation-invariant reconstruction loss and the mixture prior to encourage balanced feature learning.
- Trains the model end-to-end using the standard evidence lower bound (ELBO) with the new regularization components.
- Adapts the model for downstream clustering by training a clustering head on the VAE-learned latent codes, evaluating feature balance via normalized mutual information (NMI).
Experimental results
Research questions
- RQ1Can stochastic input permutation in VAEs reduce bias toward dominant features such as color in image data?
- RQ2Does the proposed Jigsaw-VAE method improve the balance of learned features in the latent space compared to standard VAEs and other disentanglement methods?
- RQ3How does the model perform on downstream clustering tasks when the test distribution shifts toward a single feature (e.g., all digits colored yellow)?
- RQ4Can the proposed Feature Presence Metric (FPM) effectively quantify the retention of training data features in generated samples?
- RQ5Does Jigsaw-VAE generate more diverse and realistic samples than existing VAE variants like β-VAE and d-VAE?
Key findings
- Jigsaw-VAE achieved an NMI score of 0.9473 on the single-color MNIST test set, significantly outperforming β-VAE (0.8766) and VAE (0.8872), indicating better balance between color and shape features.
- On the single-color test set, Jigsaw-VAE achieved a median NMI of 0.379, compared to 0.114 for Mixup-VAE and 7.8e-6 for β-VAE, demonstrating robustness to feature distribution shift.
- In reconstruction tasks, Jigsaw-VAE successfully preserved both color and shape in generated samples even when input digits were uniformly colored, unlike non-Jigsaw models that incorrectly assigned colors based on dominant clusters.
- The proposed Feature Presence Metric (FPM) showed that Jigsaw-VAE retained more training data features in generated images than β-VAE, despite β-VAE performing competitively on MSE and FPM in standard settings.
- Jigsaw-VAE produced smoother interpolations between samples, avoiding abrupt changes in features, which indicates better disentanglement and continuity in the latent space.
- On CelebA, Jigsaw-VAE generated more realistic and diverse samples than β-VAE, which, despite high FPM and MSE scores, produced less visually realistic images.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.