Multi-Attribute Transfer via Disentangled Representation

Jianfu Zhang, Yuanyuan Huang, Yaoyi Li, Weijie Zhao, Liqing Zhang

Introduction

Image-to-image translation has seen significant progress with models like StarGAN, which allow for multi-attribute manipulation. However, these models often suffer from a lack of "instance-level diversity." When a model is instructed to change a subject's hair color to "brown," it typically applies a generic, one-size-fits-all representation of brown hair rather than capturing the specific shade, texture, or lighting of a target reference. This paper addresses this gap by introducing a novel framework for multi-attribute transfer that utilizes disentangled representations to preserve the unique "style" of attributes.

Disentangling the Latent Space

The core of the proposed method is an auto-encoder architecture $G = (Enc, Swap, Dec)$ designed to project images into a structured latent space. Unlike traditional models that use a single vector for all attributes, this model divides the embedding into $k+1$ "latent units."

Each of the first $k$ units is dedicated to a specific attribute (such as hair color or facial expression), while the final unit ($z$) captures attribute-irrelevant information like the background and identity. This modularity allows the model to perform "attribute swapping" by simply exchanging the corresponding latent units between two images. Because the latent space is continuous, the model can also perform channel-wise interpolation, enabling smooth transitions—for instance, gradually shifting hair color through a range of shades.

The Role of Attribute Verification Loss

To ensure the model captures the specific "concept" of an attribute rather than just a generic label, the authors introduce a novel Attribute Verification Loss. While standard classification loss ensures the presence of an attribute, the verification loss encourages latent units from the same image to be more similar to each other than to units from different images, even if they share the same label. This "secret sauce" forces the encoder to extract the fine-grained style of the specific instance, preventing the model from falling back on generic representations.

Experimental Results

The model was rigorously tested on the CelebA and RaFD datasets. Quantitatively, the proposed framework achieved a Frechet Inception Distance (FID) of 45.23 on CelebA, a substantial improvement over StarGAN's 78.90 and DNA-GAN's 76.08. Lower FID scores indicate higher image quality and greater diversity in the synthesized outputs.

Qualitatively, the results demonstrate superior attribute isolation. When changing a single feature, such as hair color, the model preserves complex details in the background and identity-specific features like skin tone and ear shape. Furthermore, the model excels at "style retention," successfully differentiating between subtle variations in expressions (e.g., a slight beam versus a wide grin) during transfer. This precision is maintained even when tested on the RaFD dataset without fine-tuning, showcasing the model's generalizability.

Key Insights: Style vs. Label

A critical distinction made in this work is the difference between a "label" and a "concept." A label like "smiling" is a binary category, but the "concept" of a smile encompasses an infinite variety of intensities and styles. By focusing on verification rather than just classification, the model learns to replicate the specific distribution of the target attribute. This modular approach treats an image like a system of plug-and-play components, where one can pull out the "hair" module and replace it without disturbing the "eyes" or "nose" modules.

Conclusion and Future Directions

By treating image attributes as modular latent units, this research moves image-to-image translation toward more precise and diverse synthesis. While the model shows high generalizability, challenges remain regarding significant domain shifts—such as moving from the complex backgrounds of CelebA to the plain white backgrounds of RaFD. Additionally, future work will likely explore more spatially complex or overlapping attributes, such as age or gender, which may require more sophisticated latent partitioning strategies.

Summary updated

BibTeX
@inproceedings{zhang2019multi,
  author = {Jianfu Zhang and Yuanyuan Huang and Yaoyi Li and Weijie Zhao and Liqing Zhang},
  title = {{Multi-Attribute Transfer via Disentangled Representation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33019195},
}
Figure