NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Composable Distributions of Latent Space Augmentations

Omead Pooladzandi, Jeffrey Jiang, Sunay Bhat, Gregory J. PottiearXiv 2023

Abstract

We propose a composable framework for latent space image augmentation that allows for easy combination of multiple augmentations. Image augmentation has been shown to be an effective technique for improving the performance of a wide variety of image classification and generation tasks. Our framework is based on the Variational Autoencoder architecture and uses a novel approach for augmentation via linear transformation within the latent space itself. We explore losses and augmentation latent geometry to enforce the transformations to be composable and involuntary, thus allowing the transformations to be readily combined or inverted. Finally, we show these properties are better performing with certain pairs of augmentations, but we can transfer the latent space to other sets of augmentations to modify performance, effectively constraining the VAE's bottleneck to preserve the variance of specific augmentations and features of the image which we care about. We demonstrate the effectiveness of our approach with initial results on the MNIST dataset against both a standard VAE and a Conditional VAE. This latent augmentation method allows for much greater control and geometric interpretability of the latent space, making it a valuable tool for researchers and practitioners in the field.

Introduction

Data augmentation is a fundamental technique in deep learning, used to enhance model robustness by expanding training sets with transformations like flips, rotations, and crops. However, these are often treated as "black box" preprocessing steps. Standard generative models, such as Variational Autoencoders (VAEs), frequently entangle image content with these augmentations. For instance, a Conditional VAE (CVAE) might generate a plausible flipped digit but often fails to preserve the unique stylistic nuances of the specific input. The Latent Augmentation VAE (LAVAE) framework addresses this by treating augmentations as learnable geometric shifts within the latent space, enabling precise control and geometric interpretability.

Methods

The core innovation of LAVAE is moving augmentation logic from the image space into the latent space. The training process involves three stages: first, populating the latent space with a standard VAE; second, learning linear transformations ($L_{aug}$) that map original latent vectors to their augmented counterparts; and third, utilizing multiple decoder heads to transfer the learned geometry to new sets of augmentations.

The LAVAE architecture uses trainable linear matrices ($L_{aug}$) to perform augmentations directly on latent vectors before decoding.

By utilizing linear matrices, the model gains two critical properties:

  • Composability: Multiple augmentations can be applied by multiplying their respective matrices ($L_1 \cdot L_2$).
  • Invertibility: Augmentations can be reversed using the matrix inverse ($L^{-1}$), allowing the model to recover the original image from an augmented input.

Results and Discussion

LAVAE demonstrates significant improvements in reconstruction accuracy and feature disentanglement. In head-to-head tests on MNIST flip tasks, LAVAE achieved a Mean Squared Error (MSE) of 297.1, vastly outperforming the standard CVAE's MSE of 989.8.

Qualitative comparison of image-space vs. latent-space augmentations, demonstrating successful composition and inversion on MNIST digits.

Key insights from the evaluation include:

  • Emergent Algebra: Composability emerges naturally; multiplying latent matrices produces valid results even for sequences not explicitly seen during training.
  • Disentanglement: Unlike CVAEs, which often generate generic versions of a class, LAVAE preserves the specific "uniqueness" of the input (e.g., stroke thickness and slant) across transformations.
  • Stability Radii: Recursive application of transforms revealed that some images are more stable than others, providing a metric for how augmentations affect specific data points.

Conclusion and Future Work

LAVAE provides a robust framework for composable latent space manipulations. While currently validated on MNIST, future research will focus on scaling these linear transforms to high-dimensional datasets like CIFAR or ImageNet and extending the framework to continuous transformations, such as arbitrary rotation angles and perspective shifts.

Summary updated

BibTeX
@misc{pooladzandi2023towards,
  author = {Omead Pooladzandi and Jeffrey Jiang and Sunay Bhat and Gregory J. Pottie},
  title = {{Towards Composable Distributions of Latent Space Augmentations}},
  year = {2023},
  eprint = {2303.03462},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.03462},
}
Figure