Adversarial Mixup Resynthesizers

Christopher Beckham, Sina Honari, Alex Lamb, Vikas Verma, Farnoosh Ghadiri, R. Devon Hjelm, Christopher J. Pal

Introduction

Autoencoders are workhorses of unsupervised learning, but they traditionally suffer from two classic headaches: blurriness (reconstructions lack sharp details because standard loss functions favor "safe," blurry averages) and poor interpolation (averaging the latent codes of two distinct items, like a boot and a sneaker, often yields a messy, ghost-like hybrid rather than a realistic intermediate object).

Adversarial Mixup Resynthesizers (AMR) tackle these issues by improving how autoencoders combine information from different inputs. By combining adversarial training with a novel "mixing consistency" loss, AMR generates interpolations that are not only realistic but also semantically consistent with the original data.

The AMR Architecture

Applying techniques like Mixup (linearly interpolating between data points) to generative models is tricky. The goal is to mix latent representations so that the decoded output looks like a real, novel data point residing on the "data manifold"—the imaginary surface where realistic images live.

AMR Architecture

The AMR architecture builds on several key components to achieve this:

  • Adversarial Reconstruction Autoencoder (ARAE): To fight blurriness, AMR incorporates a GAN-style discriminator that tries to distinguish between real images and reconstructed ones, forcing the decoder to produce sharper details.
  • Bernoulli Mixup: Instead of a simple weighted average of two latent vectors, AMR explores "Bernoulli mixing." It samples a binary mask to decide, element-by-element, which features to take from which input.
  • Mixing Consistency Loss: This is the model's "secret sauce." When the model creates a mixed representation, it decodes it into an image. The consistency loss requires that if you re-encode that new image, the resulting latent code should match the original mixed code. This prevents the decoder from "cheating" by just outputting one of the two original images to fool the discriminator.
  • Supervised Mixing: The authors also propose a version where a small neural network learns to generate the mixing mask based on specific class labels (e.g., "make a mix that looks like a male with glasses").

Key Insights

The authors evaluated AMR on two popular computer vision benchmarks: UT Zappos50K (shoe images) and CelebA (celebrity faces). Several key insights emerged:

  • The Manifold Constraint: Without specific constraints, mixed latent codes often decode into "garbage" because they land in empty regions of the latent space. The adversarial loss pushes these points toward the data manifold, while the consistency loss ensures they stay anchored to the input features.
  • Mixing vs. Averaging: Bernoulli mixing (masking) allows the model to pick and choose distinct attributes (like the sole of one shoe and the upper of another) rather than just creating a transparent overlay, proving more effective than simple convex combinations.
  • The Role of $\beta$: The consistency coefficient ($\beta$) acts as a dial for creativity. A low $\beta$ allows the model to produce very realistic images that might ignore the input mix, while a high $\beta$ ensures the output is a faithful hybrid but might be harder to make look "real."

Results

Quantitatively, AMR outperformed the baseline ARAE using the Frechet Inception Distance (FID) metric. On CelebA, AMR achieved an FID of 4.62 for mixes, significantly better than the ARAE baseline of 5.94.

Shoe Interpolations

Qualitatively, the visual results show much smoother transitions. In shoe interpolations, AMR successfully morphs a heavy boot into a light sneaker through a series of plausible-looking hybrid shoes, avoiding the ghosting effects seen in standard pixel or ARAE interpolations. In supervised face experiments, the model successfully transitioned attributes like "is male" and "wearing lipstick" across different identities.

Limitations and Future Work

The model sometimes struggles with highly correlated attributes. For example, in CelebA, "lipstick" and "heavy makeup" are often entangled, making it difficult for the mixer to manipulate one without the other.

Future directions include conducting more extensive hyperparameter tuning to balance the competing losses, investigating how these mixed representations can improve performance on downstream tasks like semi-supervised classification, and exploring more complex mixing functions beyond simple Bernoulli masks.

Summary updated

BibTeX
@inproceedings{beckham2019adversarial,
  author = {Christopher Beckham and Sina Honari and Alex Lamb and Vikas Verma and Farnoosh Ghadiri and R. Devon Hjelm and Christopher J. Pal},
  title = {{Adversarial Mixup Resynthesizers}},
  booktitle = {DGS @ ICLR},
  year = {2019},
  url = {https://openreview.net/forum?id=47YJ7uDlrB},
}
Figure