Dual Contrastive Loss and Attention for GANs
Not on the map. Why?
Abstract (arXiv)
Generative Adversarial Networks (GANs) produce impressive results on unconditional image generation when powered with large-scale image datasets. Yet generated images are still easy to spot especially on datasets with high variance (e.g. bedroom, church). In this paper, we propose various improvements to further push the boundaries in image generation. Specifically, we propose a novel dual contrastive loss and show that, with this loss, discriminator learns more generalized and distinguishable representations to incentivize generation. In addition, we revisit attention and extensively experiment with different attention blocks in the generator. We find attention to be still an important module for successful image generation even though it was not used in the recent state-of-the-art models. Lastly, we study different attention architectures in the discriminator, and propose a reference attention mechanism. By combining the strengths of these remedies, we improve the compelling state-of-the-art Fr'echet Inception Distance (FID) by at least 17.5% on several benchmark datasets. We obtain even more significant improvements on compositional synthetic scenes (up to 47.5% in FID). Code and models are available at https://github.com/ningyu1991/AttentionDualContrastGAN .
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 92 of its 112 references that are in the map. First posted on arXiv 31 Mar 2021.
Builds on
92 of 112 references.
References · 92
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 5,986
- 2017Squeeze-and-Excitation Networkscited by 4,763
- 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,510
- 2014Deep Learning Face Attributes in the Wildcited by 3,679
- 2019Analyzing and Improving the Image Quality of StyleGANcited by 3,580
- 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,967
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
38 more
- 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,609
- 2018CBAM: Convolutional Block Attention Modulecited by 2,463
- 2017Non-local Neural Networkscited by 2,290
- 2017Improved Training of Wasserstein GANscited by 2,223
- 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,048
- 2016Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Networkcited by 1,898
- 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,838
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2018Spectral Normalization for Generative Adversarial Networkscited by 1,618
- 2017Deformable Convolutional Networkscited by 1,481
- 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,445
- 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,421
- 2020Big Self-Supervised Models are Strong Semi-Supervised Learnerscited by 1,375
- 2015LSUN: Construction of a Large-scale Image Dataset using Deep Learning with Humans in the Loopcited by 1,350
- 2019Semantic Image Synthesis with Spatially-Adaptive Normalizationcited by 1,295
- 2017High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANscited by 1,176
- 2016Colorful Image Colorizationcited by 1,113
- 2017Deep Image Priorcited by 1,097
- 2019StarGAN v2: Diverse Image Synthesis for Multiple Domainscited by 1,095
- 2017StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translationcited by 1,036
- 2018Dual Attention Network for Scene Segmentationcited by 1,001
- 2016Least Squares Generative Adversarial Networkscited by 1,000
- 2019CNN-generated images are surprisingly easy to spot... for nowcited by 842
- 2018Self-Attention Generative Adversarial Networkscited by 809
- 2018Multimodal Unsupervised Image-to-Image Translationcited by 795
- 2018Image Transformercited by 770
- 2016Generative Adversarial Text to Image Synthesiscited by 735
- 2017Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networkscited by 707
- 2018Deformable ConvNets v2: More Deformable, Better Resultscited by 666
- 2020Contrastive Learning for Unpaired Image-to-Image Translationcited by 637
- 2017Unsupervised Image-to-Image Translation Networkscited by 602
- 2018Free-Form Image Inpainting with Gated Convolutioncited by 594
- 2018Generative Image Inpainting with Contextual Attentioncited by 578
- 2016StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networkscited by 575
- 2018Image Inpainting for Irregular Holes Using Partial Convolutionscited by 505
- 2017Towards Principled Methods for Training Generative Adversarial Networkscited by 460
- 2020InterFaceGAN: Interpreting the Disentangled Face Representation Learned by GANscited by 393
- 2017Residual Attention Network for Image Classificationcited by 385
50 most cited of 92 All 92 (JSON)
Built on by
Citing papers per year: 2021: 7; 2022: 10; 2023: 11; 2024: 0; 2025: 1; 2026: 1.
30 papers.
Sort:
By area:
- 2021Projected GANs Converge Fastercited by 204
- 2021Data-Efficient Instance Generation from Instance Discriminationcited by 58
- 2023Generative Models: What Do They Know? Do They Know Things? Let's Find Out!cited by 50
- 2021Beyond the Spectrum: Detecting Deepfakes via Re-Synthesiscited by 44
- 2023StyleGAN knows Normal, Depth, Albedo, and Morecited by 44
- 2021A Practical Contrastive Learning Framework for Single-Image Super-Resolutioncited by 30
- 2022Modulated Contrast for Versatile Image Synthesiscited by 23
- 2022Improving GANs with A Dynamic Discriminatorcited by 20
- 2023Diverse Inpainting and Editing with GAN Inversioncited by 20
- 2021View Generalization for Single Image Textured 3D Modelscited by 19
- 2022Fine Detailed Texture Learning for 3D Meshes with Generative Modelscited by 15
- 2022LayoutDETR: Detection Transformer Is a Good Multimodal Layout Designercited by 15
18 more
- 2023Image-to-Image Translation with Disentangled Latent Vectors for Face Editingcited by 13
- 2023Progressive Learning of 3D Reconstruction Network from 2D GAN Datacited by 10
- 2023Make It So: Steering StyleGAN for Any Image Inversion and Editingcited by 9
- 2023Unsupervised HDR Image and Video Tone Mapping via Contrastive Learningcited by 6
- 2023Warping the Residuals for Image Editing with StyleGANcited by 6
- 2021Transferring Unconditional to Conditional GANs with Hyper-Modulationcited by 4
- 2022StyLitGAN: Prompting StyleGAN to Produce New Illumination Conditionscited by 4
- 2022PaDPaF: Partial Disentanglement with Partially-Federated GANscited by 3
- 2022Structure-Guided Image Completion with Image-level and Object-level Semantic Discriminatorscited by 2
- 2022DGFont++: Robust Deformable Generative Networks for Unsupervised Font Generationcited by 2
- 2023SP-BatikGAN: An Efficient Generative Adversarial Network for Symmetric Pattern Generationcited by 1
- 2023Synthesis of Batik Motifs using a Diffusion -- Generative Adversarial Networkcited by 1
- 2021Generative Adversarial Learning via Kernel Density Discriminationcited by 0
- 2022Improving the Latent Space of Image Style Transfercited by 0
- 2022StyleRes: Transforming the Residuals for Real Image Editing with StyleGANcited by 0
- 2023ComGAN: Toward GANs Exploiting Multiple Samplescited by 0
- 2025Enhancing Robustness in Post-Processing Watermarking: An Ensemble Attack Network Using CNNs and Transformerscited by 0
- 2026HP-GAN: Harnessing pretrained networks for GAN improvement with FakeTwins and discriminator consistencycited by 0
- 2026HP-GAN: Harnessing pretrained networks for GAN improvement with FakeTwins and discriminator consistency3 Feb 2026
- 2025Enhancing Robustness in Post-Processing Watermarking: An Ensemble Attack Network Using CNNs and Transformers3 Sep 2025
- 2023Warping the Residuals for Image Editing with StyleGAN18 Dec 2023
- 2023Generative Models: What Do They Know? Do They Know Things? Let's Find Out!28 Nov 2023
- 2023Diverse Inpainting and Editing with GAN Inversion27 Jul 2023
- 2023Synthesis of Batik Motifs using a Diffusion -- Generative Adversarial Network22 Jul 2023
- 2023StyleGAN knows Normal, Depth, Albedo, and More1 Jun 2023
- 2023Progressive Learning of 3D Reconstruction Network from 2D GAN Data18 May 2023
- 2023Make It So: Steering StyleGAN for Any Image Inversion and Editing27 Apr 2023
- 2023ComGAN: Toward GANs Exploiting Multiple Samples24 Apr 2023
- 2023SP-BatikGAN: An Efficient Generative Adversarial Network for Symmetric Pattern Generation19 Apr 2023
- 2023Unsupervised HDR Image and Video Tone Mapping via Contrastive Learning13 Mar 2023
18 more
- 2023Image-to-Image Translation with Disentangled Latent Vectors for Face Editing11 Jan 2023
- 2022DGFont++: Robust Deformable Generative Networks for Unsupervised Font Generation30 Dec 2022
- 2022StyleRes: Transforming the Residuals for Real Image Editing with StyleGAN29 Dec 2022
- 2022LayoutDETR: Detection Transformer Is a Good Multimodal Layout Designer19 Dec 2022
- 2022Structure-Guided Image Completion with Image-level and Object-level Semantic Discriminators13 Dec 2022
- 2022PaDPaF: Partial Disentanglement with Partially-Federated GANs7 Dec 2022
- 2022Improving GANs with A Dynamic Discriminator20 Sep 2022
- 2022Improving the Latent Space of Image Style Transfer24 May 2022
- 2022StyLitGAN: Prompting StyleGAN to Produce New Illumination Conditions20 May 2022
- 2022Fine Detailed Texture Learning for 3D Meshes with Generative Models17 Mar 2022
- 2022Modulated Contrast for Versatile Image Synthesis17 Mar 2022
- 2021Transferring Unconditional to Conditional GANs with Hyper-Modulation4 Dec 2021
- 2021A Practical Contrastive Learning Framework for Single-Image Super-Resolution27 Nov 2021
- 2021Projected GANs Converge Faster1 Nov 2021
- 2021Generative Adversarial Learning via Kernel Density Discrimination13 Jul 2021
- 2021View Generalization for Single Image Textured 3D Models10 Jun 2021
- 2021Data-Efficient Instance Generation from Instance Discrimination8 Jun 2021
- 2021Beyond the Spectrum: Detecting Deepfakes via Re-Synthesis29 May 2021
- 2021Projected GANs Converge Fastercited by 204
- 2021Data-Efficient Instance Generation from Instance Discriminationcited by 58
- 2021Beyond the Spectrum: Detecting Deepfakes via Re-Synthesiscited by 44
- 2023StyleGAN knows Normal, Depth, Albedo, and Morecited by 44
- 2021A Practical Contrastive Learning Framework for Single-Image Super-Resolutioncited by 30
- 2022Modulated Contrast for Versatile Image Synthesiscited by 23
- 2022Improving GANs with A Dynamic Discriminatorcited by 20
- 2023Diverse Inpainting and Editing with GAN Inversioncited by 20
- 2021View Generalization for Single Image Textured 3D Modelscited by 19
- 2022Fine Detailed Texture Learning for 3D Meshes with Generative Modelscited by 15
- 2022LayoutDETR: Detection Transformer Is a Good Multimodal Layout Designercited by 15
- 2023Image-to-Image Translation with Disentangled Latent Vectors for Face Editingcited by 13
12 most cited of 29 All 29 (JSON)
- 2026HP-GAN: Harnessing pretrained networks for GAN improvement with FakeTwins and discriminator consistency3 Feb 2026
- 2025Enhancing Robustness in Post-Processing Watermarking: An Ensemble Attack Network Using CNNs and Transformers3 Sep 2025
- 2023Warping the Residuals for Image Editing with StyleGAN18 Dec 2023
- 2023Diverse Inpainting and Editing with GAN Inversion27 Jul 2023
- 2023Synthesis of Batik Motifs using a Diffusion -- Generative Adversarial Network22 Jul 2023
- 2023StyleGAN knows Normal, Depth, Albedo, and More1 Jun 2023
- 2023Progressive Learning of 3D Reconstruction Network from 2D GAN Data18 May 2023
- 2023Make It So: Steering StyleGAN for Any Image Inversion and Editing27 Apr 2023
- 2023ComGAN: Toward GANs Exploiting Multiple Samples24 Apr 2023
- 2023SP-BatikGAN: An Efficient Generative Adversarial Network for Symmetric Pattern Generation19 Apr 2023
- 2023Unsupervised HDR Image and Video Tone Mapping via Contrastive Learning13 Mar 2023
- 2023Image-to-Image Translation with Disentangled Latent Vectors for Face Editing11 Jan 2023
12 newest of 29 All 29 (JSON)