Show, Attend and Translate: Unpaired Multi-Domain Image-to-Image Translation with Visual Attention

Honglun Zhang, Wenqing Chen, Jidong Tian, Yongkun Wang, Yaohui JinarXiv 2018

Abstract

Recently unpaired multi-domain image-to-image translation has attracted great interests and obtained remarkable progress, where a label vector is utilized to indicate multi-domain information. In this paper, we propose SAT (Show, Attend and Translate), an unified and explainable generative adversarial network equipped with visual attention that can perform unpaired image-to-image translation for multiple domains. By introducing an action vector, we treat the original translation tasks as problems of arithmetic addition and subtraction. Visual attention is applied to guarantee that only the regions relevant to the target domains are translated. Extensive experiments on a facial attribute dataset demonstrate the superiority of our approach and the generated attention masks better explain what SAT attends when translating images.

Introduction

Image-to-image (I2I) translation aims to modify specific attributes of an image—such as hair color or age—while preserving the underlying identity, background, and lighting. While early models succeeded in translating between two specific domains, multi-domain translation remains challenging. Previous state-of-the-art approaches often suffered from "feature bleeding," where modifying one attribute unintentionally altered unrelated regions. Furthermore, these models lacked explainability, making it difficult to verify which image regions influenced the translation.

Methods: The SAT Framework

The proposed SAT (Show, Attend and Translate) model introduces two primary innovations to address these challenges: the action vector and a visual attention mechanism.

The Action Vector

Unlike traditional models that only consider the target state, SAT defines an action vector ($a_t$) as the difference between the target label ($c_t$) and the source label ($c_s$): $a_t = c_t - c_s$. This formulation allows the model to treat translation as an arithmetic operation: a value of 1 signifies adding a feature, -1 signifies removing it, and 0 signifies preservation. This logical approach helps the model learn the specific "delta" required for a transition rather than just matching a target distribution.

The SAT training pipeline, illustrating the use of action vectors and various reconstruction losses to ensure identity preservation and cycle consistency.

Visual Attention Mechanism

To prevent feature bleeding, the SAT generator is decoupled into two sub-networks: a Translation Network (TN) that generates the potential translated content and an Attention Network (AN) that predicts a 1-channel attention mask ($M$). The final output image ($y$) is a linear combination of the translated content ($y'$) and the original image ($x$):

$$y = M \cdot y' + (1 - M) \cdot x$$

This mechanism forces the model to restrict modifications to the masked regions, effectively protecting the background and unrelated facial features.

Results and Explainability

The SAT model was evaluated on the CelebA dataset, focusing on attributes such as hair color, gender, and age.

Qualitative Performance and Explainability

A key advantage of SAT is its built-in explainability. The learned attention masks serve as heat maps, revealing exactly where the model focuses during translation. As shown in Figure 3, when changing hair color, the mask accurately isolates the hair region, leaving the face and background untouched. This prevents the blurriness and color shifts often seen in baseline models like StarGAN.

Qualitative results of SAT across various attributes. The attention masks demonstrate the model's ability to isolate specific regions (e.g., hair, facial features) for translation.

Quantitative and Human Evaluation

In crowd-sourced human evaluations, SAT significantly outperformed StarGAN. For single-attribute translations, SAT was preferred in 73.6% to 88.0% of cases. The model also demonstrated robustness in handling multi-attribute translations and real-valued (non-binary) inputs, allowing for exaggerated expressions without introducing significant artifacts.

Conclusion

The SAT framework advances multi-domain I2I translation by combining an intuitive arithmetic approach with a powerful attention mechanism. By providing explicit attention masks, it offers a level of explainability missing in previous GAN-based architectures. Future work may involve training on datasets with continuous labels to further refine control and applying the framework to more diverse domains beyond facial attributes.

Summary updated

BibTeX
@misc{zhang2018show,
  author = {Honglun Zhang and Wenqing Chen and Jidong Tian and Yongkun Wang and Yaohui Jin},
  title = {{Show, Attend and Translate: Unpaired Multi-Domain Image-to-Image Translation with Visual Attention}},
  year = {2018},
  eprint = {1811.07483},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.07483},
}
Figure