Adversarial Information Factorization

Antonia Creswell, Yumnah Mohamied, Biswa Sengupta, Anil A BharatharXiv 2017

TL;DR

This paper introduces Information Factorization conditional VAE-GAN (IFcVAE-GAN), a generative model that successfully disentangles specific image attributes (like smiling or wearing glasses) from an object's core identity. By employing a novel adversarial training strategy, the model enables precise "switch-flipping" attribute manipulation while maintaining high-fidelity reconstruction of the original subject.

What Problem Does This Paper Address?

In the world of latent space generative models like Variational Autoencoders (VAEs) and Generative Adversarial Networks (GANs), a common challenge is entanglement. Ideally, a latent representation should be "factored"—meaning different dimensions control independent features. For example, in a face model, one part of the code should represent who the person is (identity), and another should represent whether they are smiling (attribute).

However, standard models often bleed information across these dimensions. If you try to change the "smiling" bit in a traditional conditional VAE, the person's identity often shifts as well because the identity encoding still contains "smile-related" information. The authors aim to solve this by forcing the model to strictly separate identity from specific binary attributes, allowing for clean image editing without identity loss.

Methods

The authors propose the IFcVAE-GAN architecture, which combines the reconstruction strengths of VAEs with the high-quality synthesis of GANs, then adds a critical third component for factorization.

  1. Factored Latent Space: The encoder $E_\phi$ splits its output into two distinct parts: a continuous identity vector $\hat{z}$ and a binary attribute vector $\hat{y}$.
  2. Adversarial Information Factorization: This is the core innovation. They introduce an auxiliary network $A_\psi$ that acts as a "leak detector." It tries to predict the attribute $y$ using only the identity vector $\hat{z}$.
  3. Mini-Max Game: The encoder is trained to perform a dual task: it must provide enough information for the decoder to reconstruct the image, but it must also "fool" the auxiliary network so that $A_\psi$ cannot guess the attribute from $\hat{z}$. This pressure forces the encoder to scrub all attribute-related information out of the identity vector and pack it exclusively into the attribute vector $\hat{y}$.
  4. Hybrid Loss: The model is optimized using a combination of reconstruction loss (MSE), KL-divergence (for the VAE prior), adversarial loss (from a GAN discriminator to ensure realism), and the new adversarial factorization loss.
The IFcVAE-GAN architecture (top) compared to previous conditional VAE-GAN approaches (bottom). Note the addition of the auxiliary network $A_\psi$ for factorization.

Datasets

The model was trained and evaluated on the CelebA (Large-scale CelebFaces Attributes) dataset. This dataset contains over 200,000 celebrity images, each annotated with 40 binary attributes (e.g., Smiling, Eyeglasses, Blonde Hair).

Key Insights and Ideas

  • Active Disentanglement: Simply providing a label to a conditional model isn't enough to ensure factorization. Without an explicit penalty, the model will take the "path of least resistance" and store attribute information wherever it's convenient, leading to entanglement.
  • The Adversary as a Filter: Using an adversarial network to remove information is a powerful paradigm. Here, the adversary acts as a filter that ensures the identity representation is "clean" of specific attributes.
  • Switch-Flipping Manipulation: Because the factorization is so clean, attribute editing becomes a simple matter of encoding an image, flipping the binary attribute bit (e.g., $0 \rightarrow 1$ for smiling), and decoding it back.

Key Results

The authors conducted an ablation study to prove that their adversarial factorization term is the "secret sauce" for successful editing.

  • Attribute Manipulation Success: When tasked with turning a smiling face into a non-smiling one, the IFcVAE-GAN achieved a 98% success rate. In contrast, a naive conditional VAE-GAN (the baseline) only succeeded 22% of the time, often failing to remove the smile because the information was still embedded in the identity vector.
  • Classification Performance: Because the encoder is forced to learn a very clear representation of attributes to separate them, it naturally becomes an excellent classifier. The model achieved state-of-the-art or competitive results on 10 different facial attribute classification tasks, outperforming specialized models in 6 out of 10 categories.
Figure 2: Facial Attribute Classification. We compare the performance of our classifier, Ey,φ, to a state of art classifier (Zhuang et al., 2018). Our model outperforms that of Zhuang et al. (2018) for 6 out of 10 attributes and achieves comparable results for most other attributes.

Limitations and Future Work

  • Blurriness: Like most VAE-based models, the reconstructed images can sometimes appear slightly blurred compared to pure GAN outputs, though the GAN discriminator helps mitigate this.
  • Binary Constraints: The current work focuses on binary attributes (yes/no). Extending this to continuous attributes (e.g., degree of smile) or multi-class categories remains a future challenge.
  • Identity Preservation Limits: While significantly better than baselines, very strong attribute changes (like adding heavy facial hair) can still occasionally interfere with the perceived identity, suggesting that some high-level features are naturally harder to disentangle than others.

Summary updated

BibTeX
@misc{creswell2017adversarial,
  author = {Antonia Creswell and Yumnah Mohamied and Biswa Sengupta and Anil A Bharath},
  title = {{Adversarial Information Factorization}},
  year = {2017},
  eprint = {1711.05175},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.05175},
}
Figure