Adversarial Learning of Disentangled and Generalizable Representations for Visual Attributes

James Oldfield, Yannis Panagakis, Mihalis A. NicolaouarXiv 2019

Abstract

This paper introduces a novel adversarial learning framework for image-to-image translation (IIT) that learns disentangled, continuous, and generalizable latent representations of visual attributes. Unlike traditional models that rely on discrete domain labels, the proposed approach utilizes a maximum-entropy disentanglement loss and a batch-shuffling training strategy. This allows for intensity-preserving, multi-attribute transfers and smooth latent interpolations without requiring rigid binary labels at test time. Evaluations on the MultiPIE, BU-3DFE, and RaFD datasets demonstrate the model's superior ability to capture intra-attribute variance and generalize to unseen identities.

Introduction

Image-to-image translation (IIT) models, such as CycleGAN and StarGAN, have shown remarkable success in mapping images between domains. However, these models often suffer from two primary limitations. First, they typically rely on discrete, binary domain labels (e.g., "smiling" vs. "neutral"), which prevents them from capturing the natural variance or intensity of an attribute. Second, the latent spaces in these models often lack semantic structure, making it difficult to disentangle attributes like identity, expression, and illumination. This paper addresses these challenges by proposing a framework that learns a highly structured, continuous latent space capable of transferring nuanced attributes from reference images.

Methodology

The proposed architecture is an autoencoder-based GAN consisting of $M+1$ encoders—one for each of the $M$ target attributes and one for the remaining background/identity variations—and a single decoder. Two key innovations drive the learning of disentangled and generalizable representations:

1. Disentanglement via Uniform Posteriors

To ensure that each encoder captures only its designated attribute, the authors employ pre-trained classifiers. While a standard classification loss ensures the latent code contains the relevant attribute information, a novel maximum-entropy loss is introduced to enforce disentanglement. This loss forces the latent code to yield a uniform distribution when passed through classifiers for other attributes, effectively filtering out leaked information.

2. Generalization via Batch Shuffling

To promote a compositional latent space, the model employs a batch-shuffling strategy during training. Latent representations are randomly swapped across the mini-batch (e.g., combining the identity of one subject with the expression of another). The decoder must then synthesize a realistic image from this hybrid latent vector. This process forces the network to learn how to combine arbitrary latent codes into coherent images, enabling zero-shot attribute mixing at test time.

Experimental Results

Quantitative Performance

The proposed method consistently outperformed baselines like StarGAN in expression synthesis. On the BU dataset, the model achieved a Fréchet Inception Distance (FID) of 46.62 (vs. StarGAN's 59.58) and a classification accuracy of 0.77 (vs. StarGAN's 0.74), indicating higher image quality and better attribute preservation.

Multi-Attribute Transfer and Interpolation

A significant advantage of this approach is the ability to perform intensity-preserving transfers. Because attributes are represented as continuous vectors extracted from reference images, the model can replicate the exact intensity of a smile or gaze from a source to a target.

Figure 1: Smooth latent interpolation between expressions, demonstrating the continuous nature of the learned attribute space and the ability to control expression intensity.

Furthermore, the continuous latent space allows for smooth interpolations. The model can generate realistic transitions between different expressions or even create novel identities by interpolating between the identity embeddings of multiple individuals. This capability extends to unseen identities, allowing the network to synthesize transitions it never explicitly observed during training.

Figure 2: Examples of attribute transfer across different subjects. The model successfully disentangles identity from expression, allowing for the application of complex expressions to diverse faces.

Conclusion

This work demonstrates that adversarial learning, combined with maximum-entropy disentanglement and batch shuffling, can produce a powerful latent space for visual attributes. By moving beyond binary labels to continuous representations, the model achieves greater flexibility and realism in image-to-image translation. Future work may involve integrating these techniques with high-resolution unconditional generators to further enhance synthesis quality.

Summary updated

BibTeX
@misc{oldfield2019adversarial,
  author = {James Oldfield and Yannis Panagakis and Mihalis A. Nicolaou},
  title = {{Adversarial Learning of Disentangled and Generalizable Representations for Visual Attributes}},
  year = {2019},
  eprint = {1904.04772},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.04772},
}
Figure