Abstract
SeGMA (Semi-Supervised Gaussian Mixture Auto-Encoder) introduces a novel approach to semi-supervised generative modeling by utilizing a single continuous latent space structured as a Gaussian Mixture Model (GMM). By leveraging the Cramer-Wold distance for a closed-form training objective, SeGMA avoids the complexities of discrete latent variables and sampling. This architecture facilitates smooth class interpolations, continuous style transfers, and attribute exaggeration, outperforming traditional semi-supervised VAEs in both classification accuracy and generation quality on benchmark datasets like SVHN and CelebA.
What Problem Does This Paper Address?
Generative models like VAEs and GANs are excellent at modeling complex data distributions, but controlling the specific class of the generated output usually requires massive amounts of labeled data. Semi-supervised generative models attempt to solve this by using a small amount of labeled data alongside a large pool of unlabeled data.
However, existing semi-supervised VAEs (like M1+M2 or ADGM) typically use two separate latent variables: a continuous one for "style" and a discrete (categorical) one for "class." This hard architectural separation creates a problem: you cannot smoothly interpolate between classes because intermediate states of a discrete variable are meaningless. Furthermore, these models often require complex, multi-network architectures and computationally expensive sampling during training.
Methods
The authors propose the Semi-Supervised Gaussian Mixture Auto-Encoder (SeGMA). It builds on the Wasserstein Auto-Encoder (WAE) framework but introduces several key innovations:
- Single Continuous Latent Space: Instead of separate style and class variables, SeGMA uses one continuous latent space. The target distribution is a Gaussian Mixture Model (GMM), where each Gaussian component corresponds to a specific class.
- Semi-Supervised Clustering: A small amount of labeled data is used to anchor specific classes to specific Gaussian components via a simple cross-entropy loss, acting as a Gaussian classifier in the latent space.
- Closed-Form MMD via Cramer-Wold: To match the encoded data to the GMM target distribution, WAEs use a Maximum Mean Discrepancy (MMD) penalty. SeGMA uses the Cramer-Wold distance, which yields a closed-form mathematical expression for spherical Gaussians. This eliminates the need for sampling, making training faster and more stable.
Datasets
The model was evaluated on three standard benchmark datasets using restricted labels to simulate a semi-supervised environment:
- MNIST: 100 labeled samples.
- SVHN: 1,000 labeled samples.
- CelebA: 1,000 labeled samples, simplified into four classes based on 'male' and 'smiling' attributes.
Key Insights and Ideas
- Topological Class Relationships: Because all classes live in the same continuous space, the model naturally organizes them geometrically. For example, when interpolating between digits, the model smoothly transitions through intermediate visual characteristics shared between classes.
- Continuous Style Transfer: By encoding an image and mathematically pushing its latent vector toward the center of a different class's Gaussian component, the model changes the class (e.g., from "not smiling" to "smiling") while preserving the continuous "style" (lighting, identity).
- Attribute Exaggeration: Moving a latent vector away from a specific class component can exaggerate opposing features, such as increasing the thickness of a beard when moving away from a "female" component.
Key Results
- Classification Accuracy: SeGMA significantly outperforms baselines on harder datasets. On SVHN, SeGMA achieved a 22.4% test error compared to ADGM's 41.2%. On CelebA, it achieved 24.6% error vs. ADGM's 41.7%.
- Generation Quality: Measured by Fréchet Inception Distance (FID), SeGMA is highly competitive. On CelebA, it achieved an FID of 50.54, edging out ADGM (51.96).
- Interpolation Quality: This is where SeGMA shines. When generating images by interpolating between two random test images, SeGMA's FID on SVHN was 50.01, significantly better than ADGM's 76.66, which often produced blurry results.
Limitations and Future Work
- Low-Density Regions: Simple linear interpolation between different classes can sometimes pass through low-density "gaps" between clusters, occasionally resulting in blurry intermediate images. Non-linear interpolation methods could resolve this.
- Restrictive Target Distribution: The Cramer-Wold distance relies on the assumption that Gaussian components are spherical. While deep networks can compensate for this, it technically limits the expressiveness of the target distribution.
Summary updated