mlsanityData to 7 Oct 2026

Dual Contrastive Loss and Attention for GANs

arXiv 2103.16748 ↗First posted 31 Mar 2021cs.CV cs.GRcited by 30

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  4. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  5. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  6. 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 5,986
  7. 2017Squeeze-and-Excitation Networkscited by 4,763
  8. 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,510
  9. 2014Deep Learning Face Attributes in the Wildcited by 3,679
  10. 2019Analyzing and Improving the Image Quality of StyleGANcited by 3,580
  11. 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,967
  12. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
38 more
  1. 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,609
  2. 2018CBAM: Convolutional Block Attention Modulecited by 2,463
  3. 2017Non-local Neural Networkscited by 2,290
  4. 2017Improved Training of Wasserstein GANscited by 2,223
  5. 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,048
  6. 2016Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Networkcited by 1,898
  7. 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,838
  8. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  9. 2018Spectral Normalization for Generative Adversarial Networkscited by 1,618
  10. 2017Deformable Convolutional Networkscited by 1,481
  11. 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,445
  12. 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,421
  13. 2020Big Self-Supervised Models are Strong Semi-Supervised Learnerscited by 1,375
  14. 2015LSUN: Construction of a Large-scale Image Dataset using Deep Learning with Humans in the Loopcited by 1,350
  15. 2019Semantic Image Synthesis with Spatially-Adaptive Normalizationcited by 1,295
  16. 2017High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANscited by 1,176
  17. 2016Colorful Image Colorizationcited by 1,113
  18. 2017Deep Image Priorcited by 1,097
  19. 2019StarGAN v2: Diverse Image Synthesis for Multiple Domainscited by 1,095
  20. 2017StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translationcited by 1,036
  21. 2018Dual Attention Network for Scene Segmentationcited by 1,001
  22. 2016Least Squares Generative Adversarial Networkscited by 1,000
  23. 2019CNN-generated images are surprisingly easy to spot... for nowcited by 842
  24. 2018Self-Attention Generative Adversarial Networkscited by 809
  25. 2018Multimodal Unsupervised Image-to-Image Translationcited by 795
  26. 2018Image Transformercited by 770
  27. 2016Generative Adversarial Text to Image Synthesiscited by 735
  28. 2017Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networkscited by 707
  29. 2018Deformable ConvNets v2: More Deformable, Better Resultscited by 666
  30. 2020Contrastive Learning for Unpaired Image-to-Image Translationcited by 637
  31. 2017Unsupervised Image-to-Image Translation Networkscited by 602
  32. 2018Free-Form Image Inpainting with Gated Convolutioncited by 594
  33. 2018Generative Image Inpainting with Contextual Attentioncited by 578
  34. 2016StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networkscited by 575
  35. 2018Image Inpainting for Irregular Holes Using Partial Convolutionscited by 505
  36. 2017Towards Principled Methods for Training Generative Adversarial Networkscited by 460
  37. 2020InterFaceGAN: Interpreting the Disentangled Face Representation Learned by GANscited by 393
  38. 2017Residual Attention Network for Image Classificationcited by 385

50 most cited of 92 All 92 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 7; 2022: 10; 2023: 11; 2024: 0; 2025: 1; 2026: 1.

30 papers.

Sort:

By area:

  1. 2021Projected GANs Converge Fastercited by 204
  2. 2021Data-Efficient Instance Generation from Instance Discriminationcited by 58
  3. 2023Generative Models: What Do They Know? Do They Know Things? Let's Find Out!cited by 50
  4. 2021Beyond the Spectrum: Detecting Deepfakes via Re-Synthesiscited by 44
  5. 2023StyleGAN knows Normal, Depth, Albedo, and Morecited by 44
  6. 2021A Practical Contrastive Learning Framework for Single-Image Super-Resolutioncited by 30
  7. 2022Modulated Contrast for Versatile Image Synthesiscited by 23
  8. 2022Improving GANs with A Dynamic Discriminatorcited by 20
  9. 2023Diverse Inpainting and Editing with GAN Inversioncited by 20
  10. 2021View Generalization for Single Image Textured 3D Modelscited by 19
  11. 2022Fine Detailed Texture Learning for 3D Meshes with Generative Modelscited by 15
  12. 2022LayoutDETR: Detection Transformer Is a Good Multimodal Layout Designercited by 15
18 more
  1. 2023Image-to-Image Translation with Disentangled Latent Vectors for Face Editingcited by 13
  2. 2023Progressive Learning of 3D Reconstruction Network from 2D GAN Datacited by 10
  3. 2023Make It So: Steering StyleGAN for Any Image Inversion and Editingcited by 9
  4. 2023Unsupervised HDR Image and Video Tone Mapping via Contrastive Learningcited by 6
  5. 2023Warping the Residuals for Image Editing with StyleGANcited by 6
  6. 2021Transferring Unconditional to Conditional GANs with Hyper-Modulationcited by 4
  7. 2022StyLitGAN: Prompting StyleGAN to Produce New Illumination Conditionscited by 4
  8. 2022PaDPaF: Partial Disentanglement with Partially-Federated GANscited by 3
  9. 2022Structure-Guided Image Completion with Image-level and Object-level Semantic Discriminatorscited by 2
  10. 2022DGFont++: Robust Deformable Generative Networks for Unsupervised Font Generationcited by 2
  11. 2023SP-BatikGAN: An Efficient Generative Adversarial Network for Symmetric Pattern Generationcited by 1
  12. 2023Synthesis of Batik Motifs using a Diffusion -- Generative Adversarial Networkcited by 1
  13. 2021Generative Adversarial Learning via Kernel Density Discriminationcited by 0
  14. 2022Improving the Latent Space of Image Style Transfercited by 0
  15. 2022StyleRes: Transforming the Residuals for Real Image Editing with StyleGANcited by 0
  16. 2023ComGAN: Toward GANs Exploiting Multiple Samplescited by 0
  17. 2025Enhancing Robustness in Post-Processing Watermarking: An Ensemble Attack Network Using CNNs and Transformerscited by 0
  18. 2026HP-GAN: Harnessing pretrained networks for GAN improvement with FakeTwins and discriminator consistencycited by 0