[Paper Review] AttentionGAN: Unpaired Image-to-Image Translation using Attention-Guided Generative Adversarial Networks
AttentionGAN introduces attention-guided generators and discriminators to unpaired image-to-image translation, enabling foreground-focused translation while preserving background, achieving sharper, more realistic results across multiple datasets.
State-of-the-art methods in image-to-image translation are capable of learning a mapping from a source domain to a target domain with unpaired image data. Though the existing methods have achieved promising results, they still produce visual artifacts, being able to translate low-level information but not high-level semantics of input images. One possible reason is that generators do not have the ability to perceive the most discriminative parts between the source and target domains, thus making the generated images low quality. In this paper, we propose a new Attention-Guided Generative Adversarial Networks (AttentionGAN) for the unpaired image-to-image translation task. AttentionGAN can identify the most discriminative foreground objects and minimize the change of the background. The attention-guided generators in AttentionGAN are able to produce attention masks, and then fuse the generation output with the attention masks to obtain high-quality target images. Accordingly, we also design a novel attention-guided discriminator which only considers attended regions. Extensive experiments are conducted on several generative tasks with eight public datasets, demonstrating that the proposed method is effective to generate sharper and more realistic images compared with existing competitive models. The code is available at https://github.com/Ha0Tang/AttentionGAN.
Motivation & Objective
- Motivate improved unpaired image-to-image translation by focusing changes on discriminative foreground content while preserving background.
- Develop an attention-guided GAN framework that can learn foreground and background attentions without extra supervision.
- Propose two generation schemes (I and II) to handle simple and complex semantic translations.
- Regularize training with cycle-consistency and novel attention-guided discriminators to stabilize learning.
Proposed method
- Two attention-guided generators (G and F) with dedicated attention and content masks to produce final outputs.
- Scheme I uses a single network to produce both attention and content masks and fuses masks with the input image via G(x)=C_y*A_y + x*(1-A_y); similarly for F(y).
- Scheme II employs separate sub-networks for attention and content masks (G_E, G_A, G_C) and learns multiple foreground content masks and a background attention mask to enable richer, multi-mask generation (G(x) = sum_f=1^{n-1} C_y^f*A_y^f + x*A_y^b).
- Attention masks and content masks are learned jointly under cycle-consistency losses (VIA modified schemes) and adversarial losses.
- Attention-guided discriminators D_YA and D_XA take attention masks as input to focus discrimination on attended regions.
- Regularization includes total variation loss on attention masks and pixel-level identity losses to stabilize training.
Experimental results
Research questions
- RQ1Can an attention-guided GAN learn to translate unpaired images by focusing changes on discriminative foreground regions while preserving background?
- RQ2Does separating attention and content generation (Scheme II) yield superior results on complex translations (e.g., horse to zebra) than Scheme I?
- RQ3How do attention-guided discriminators affect translation quality and artifact reduction compared with standard GAN discriminators?
- RQ4Are eight public datasets sufficient to demonstrate the generality of AttentionGAN across faces, natural scenes, and artwork?
- RQ5What is the impact of multi-mask generation (foreground/content) on the translation performance and diversity of outputs?
Key findings
- AttentionGAN produces sharper, more realistic images and better preserves background across multiple datasets than competitive baselines.
- Scheme II with separate attention and content networks and multiple masks outperforms Scheme I on complex translations like horse-to-zebra.
- Attention-guided discriminators help focus the adversarial game on attended regions, improving fidelity in targeted changes.
- Extensive experiments on eight datasets, including faces, animals, maps, and style transfer, show state-of-the-art performance without requiring extra supervision for attention masks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.